/* Main Site Styles */
@font-face {
    font-family: 'PP Hatton';
    src: url('/fonts/pp-hatton-medium-500.woff2') format('woff2'),
         url('/fonts/pp-hatton-medium-500.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque Alt';
    src: url('/fonts/galano-grotesque-alt.woff2') format('woff2'),
         url('/fonts/galano-grotesque-alt.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Galano Grotesque Alt", Arial, sans-serif;
/*    
    background:linear-gradient(rgba(250, 245, 241,0.15), rgba(250, 245, 241,0.15)),
    url("/img/whitewash-background.jpg");
    background:url("/img/whitewash-background.jpg") repeat;

    background:url("/img/paper-texture-reduced.jpg") repeat;

    background:linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), url("/img/paper-texture-reduced.jpg");

    background-size:contain;
    background-attachment:fixed;
    */
    background-color: #FEF2DB;
    background:url("/img/wtr-lg-bg.jpg") repeat;
    background-position:center;
    background-size:cover;

}


H1, H2, H3 {
    font-family: "PP Hatton", Georgia, Times, "Times New Roman", serif;
    font-weight:100;
}


/*body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
*/


/*body {
    background: 
        linear-gradient(rgba(241, 231, 195, 0.65), rgba(241, 231, 195, 0.65)),
        url("/img/sepia-plasterboard-texture.jpg");
    background-size: cover;
    background-attachment: fixed;
}
*/


/*
header {
        background:linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url("/img/whitewash-background.jpg");

}*/

/* ***************************/
/* HEADER                    */
/*****************************/

header {
    background:linear-gradient(rgba(255, 185, 28, 0.2),rgba(255, 185, 28,0.2));
}



/* ***************************/
/* FOOTER */
/*****************************/

footer {
    color:#fff;
    background:linear-gradient(rgba(1, 49, 22, 0.75), rgba(4, 52, 2, 0.75));
}


/**********************/
/* Background-primary */
/*********************/
.background-primary { 
    background-color:rgb(191, 57, 8) !important
}



/*******************************/
/****** CUSTOM NAV HOVER *******/
/*******************************/
.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.25rem;
}

/* For dark navbar */
.navbar-dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}


/***********************/
/* UTISCI              */
/***********************/
    /* Utisci */
    .utisci {
        columns: 6 15rem;
        column-gap: 1rem;
    }

    .utisci figure {
        width: 12rem;
        background: #EC985A;
        background:transparent;
        color: white;
        margin: 0 1rem 1rem 0;
        display: inline-block;
        width: 100%;
    }


/**********************************************/
/* PROMO                                     */
/* https://css-generators.com/ribbon-shapes/ */
/*********************************************/

.promo {
  color: #fff;
  background-color:#BB5B0C; /*WCAG compliant*/
  font-size:1.1rem;
}
.promo {
  --f: .5em; /* control the folded part */
  
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
  transform-origin: 100% 100%;
}

.promo.promo-nagrada { background-color:#97077A }
.promo.promo-popust  { background-color:#EB0000; }
.promo.promo-novo    { background-color:#1F6147; } 
.promo.promo-u-pripremi    {  }


/*******************/
/* The rest of CSS */
/*******************/

.knjiga-carousel img {
    aspect-ratio: 1400/1867; 
}


/*******************/
/* The rest of CSS */
/*******************/


.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.cart-badge {
    position: absolute;
    top: 0px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    border: 1px solid #dee2e6;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}


.btn {
    border-radius: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card {
    border-radius: 10px;
    border: 1px solid #e3e6f0;
}

.form-control {
    border-radius: 8px;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.alert {
    border-radius: 10px;
    border: none;
}

/*.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}*/

/* Image carousel styles */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.7);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem 0.75rem;
    }
}

/* Additional styles from layout-main */
.product-grid-item {
    margin-bottom: 2rem;
}

.btn-cart {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-cart:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    height: 35px;
}

/* Quantity input number styling */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}