body {
    margin: 0;
    font-family: Arial;
    background: url("../images/background/baniere.jpg") no-repeat center/cover;
}

.backtitle {
    background: url("../images/background/baniere4.jpg") no-repeat center/cover;
    height: auto;
    background-size: cover;   
    padding: 10px 20px;
    padding-top: 20px;
}

.overlay {
    background: rgba(255,255,255,0.55);
    min-height: 100vh;
    padding: 20px;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.6);
    padding: 12px 20px;
    position: relative;
}

.logo-link {
    color: white;
    text-decoration: none;
    font-size: 26px;
    font-family: 'Playfair Display', serif;
}
.rating-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.rating-link:hover .stars {
    opacity: 0.8;
    transform: scale(1.03);
    transition: 0.2s;
    cursor: pointer;
}
.menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu a,
.dropbtn {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ceb141;
    text-decoration: none;

    padding: 10px 30px;
    background: #0f1b3b;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2); /* tiny white border */

    font-size: 16px;
    font-family: inherit;

    cursor: pointer;
    line-height: 1;
    height: 40px; /* forces same vertical alignment */
    box-sizing: border-box;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ceb141;
    background: rgba(0,0,0,0.7); /* instead of white */
    min-width: 230px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #ceb141;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.cart-btn {
    background: #ffffff22;
    padding: 10px 30px;
    border-radius: 8px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
.home {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.home-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 30px;
}

.home-intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 10px;
}

.home-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.home-rating {
    margin-top: 30px;
}

.rating-score {
    font-size: 32px;
    font-weight: bold;
}

.home-cta {
    margin-top: 30px;
}

.btn-main {
    display: inline-block;
    background: black;
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
}
.line,
.bullet,
.sub-bullet,
.indent {
    display: block;
    margin: 4px 0;
}

.sub-bullet {
    margin-left: 40px;
}

.bullet {
    margin-left: 20px;
}

.indent {
    margin-left: 30px;
}

.big {
    font-size: 22px;
    font-weight: 600;
}
.spacer {
    height: 16px;
}
.red {
    color: #c0392b;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
}

/* LEFT: search stays small */
.header-left input {
    width: 220px;   /* controlled size like original */
    padding: 8px;
}

/* RIGHT: buttons aligned to end */
.header-right {
    display: flex;
    gap: 10px;
}

.btn-alt {
    background: #6fad95;
    color: #0f1b3b;
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.home-split {
    display: flex;
    min-height: 100vh;
    margin-top: 20px;
    padding-top: 20px;
     align-items: stretch;
}
.home-left {
    flex: 1;
    padding: 20px 40px 40px 40px; /* instead of 60px */
    display: flex;
    flex-direction: column;
    align-items: center; /* center content horizontally */
    text-align: center;
    gap: 8px;
}
.home-right {
    flex: 1;
    padding-top: 80px; /* adjust this value */
}
.home-right img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
    display: block;
}
.logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 0;
}

.logo {
    max-width: 360px;
    height: auto;
}
.home-text {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 0;
    max-width: 500px;
}
.btn-main {
    display: inline-block;
    padding: 12px 22px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    width: fit-content;
}
.home-left .btn-main {
    margin-top: 30px;
}
    .stars {
    font-size: 22px;
    color: #f5a623;
    letter-spacing: 3px;
    }
    .rating-score {
    font-size: 24px;
    font-weight: bold;
    }
    
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 10px;
    margin-top: 10px;
}

.product {
    background: #f5ecdc;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

    .product img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 8px;
    }
.product-name {
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
}

.product-price {
    font-size: 14px;
    color: #555;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
}

.product-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.availability-banner {
    position: absolute;
    top: 10px;
    left: 10px;

    background: rgba(255, 215, 0, 0.95); /* yellow */
    color: #000;

    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;

    border-radius: 6px;
    z-index: 2;

    pointer-events: none;
}

/* Gallery */
.featured {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .featured img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 12px;
        transition: 0.4s ease;
    }

.container {
    display: flex;
    align-items: stretch;
    padding: 40px;        
    box-sizing: border-box;
    min-height: calc(100vh - 80px);
}

.left-column {
    width: 65%;
    display: flex;
    flex-direction: column;
    flex: 0 0 65%;
    gap: 20px;
    min-height: 0;
}
.info-panel {
    width: 35%;
    overflow-y: auto;
    flex: 0 0 35%;
}
.left-column,
.info-panel {
    padding: 0;   /* temporarily test this */
    margin: 0;
    min-height: 0; 
    align-items: center; 
}
.preview-container {
    width: 100%;
    height: 700px; 
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    overflow: hidden; /* prevents overflow */
}

    .preview-container img {
        max-height: 700px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
.scroll-gallery-wrapper {
    display: block;
    width: 65%;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.scroll-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 80px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
    .scroll-gallery::-webkit-scrollbar {
        height: 28px;
        display: none;
    }

.scroll-gallery::-webkit-scrollbar-thumb {
    background: #ae7d47;
    border-radius: 4px;
}

    .scroll-gallery img {
        flex: 0 0 auto;
        width: 160px;
        height: 210px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0.6;
    }
.scroll-gallery img.active {
    transform: scale(1.5);
    opacity: 1;
    z-index: 5;
}
.scroll-gallery img:hover {
        transform: scale(1.5);
        opacity: 1;
        z-index: 2;
}

.photo-item img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px 15px;
    border-radius: 8px;
    user-select: none;
}

    .arrow:hover {
        background: rgba(0,0,0,0.7);
    }

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

.big-panel {
    width: 100%;
    position: fixed;
    right: 0;
    top: 200px;
    bottom: 0;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
}
.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.content {
    white-space: pre-line;
    line-height: 1.3;
    color: #444;
}

/* LANGUAGE SWITCH */
.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
}

.lang-switch a:hover {
    transform: scale(1.9);
}
.active {
    font-weight: bold;
}
.panel {
    background: #f5ecdc;
    font-family: 'Lora', sans-serif;
}

.titlebig {
    font-family: 'Lora', sans-serif;
    font-size: 62px;
    letter-spacing: 0.9px;
    font-weight: 1000;
    margin-bottom: 20px;
    text-align: center;
    color: #0f1b3b;
}

.title {
    font-family: 'Lora', sans-serif;
    font-size: 30px;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #285572;
}

.content {
    font-family: 'Lora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    padding: 20px;
    color: #111;
}
.cart {
    margin-top: 20px;
}

.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 10px 0;
    border-bottom: 2px solid #222;
}

.cart-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-info {
    flex: 1;
}

.cart-name {
    font-weight: 600;
}

.cart-qty {
    font-size: 13px;
    color: #666;
}

.cart-price {
    font-size: 18px;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.cart-total {
    margin-top: 20px;
}

.checkout-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.discount-form,
form {
    width: 100%;
    box-sizing: border-box;
}

.discount-form input,
form input,
form textarea,
form select,
.discount-form button,
form button {
    width: 100%;
    box-sizing: border-box;
}
/* Modal (zoom) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    z-index: 9999;
}

    .modal img {
        max-width: 90%;
        max-height: 90%;
    }

    .modal span {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 30px;
        cursor: pointer;
    }
.footer-bar {
    margin-top: 60px;
    padding: 25px 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    background: #f5ecdc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}
    .footer-bar a {
       display: inline-block;
      margin: 0 25px;                 /* 👈 spacing between links */
      padding: 6px 12px;
      color: #444;
      text-decoration: none;
      font-size: 14px;
      border-radius: 6px;
      transition: all 0.2s ease;
    }
    .footer-bar a:hover {
      background: #eee;
      color: #000;
    }
    .footer-bar a + a {
        border-left: 1px solid #ddd;
        padding-left: 25px;
    }
    .flash-message {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    box-sizing: border-box;
    }
    .seo-hidden {
    position: absolute;
    left: -9999px;
    }
    .seo-subtitle {
    position: absolute;
    left: -9999px;
    }

/* -----------------------------------------
--------------------------------------------
------   MEDIA MOBILE    -------------------
--------------------------------------------
-------------------------------------------*/

  @media (max-width: 768px) {

    /* ===== GLOBAL FIX ===== */
    body {
        overflow-x: hidden;
    }
    /* ===== HEADER FIX ===== */
    .menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 6px;
        margin: 0;
        padding: 0;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 6px 8px;
        font-size: 13px;
        text-align: center;
        box-sizing: border-box;
        line-height: 1;    
        margin: 0;    
    }

    .hamburger {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        background: rgba(0,0,0,0.92);

        padding: 20px;
        z-index: 999;
    }

    .menu.show {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown-content a {
        color: #ddd;
        padding: 8px 0;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
    }


    .home-split {
        flex-direction: column;
    }

    .home-right img {
        height: 300px;
    }

    .home-left {
        padding: 30px;
    }
    .header-bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header-left input {
        width: 100%;
    }

    .header-right {
        display: grid;                         
        grid-template-columns: 1fr 1fr;  
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .btn-alt {
        width: 100%;                           /* fill grid cell */
        padding: 8px 6px;                      /* reduce width pressure */
        font-size: 13px;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }

    /* ===== MAIN LAYOUT FIX ===== */
    .container {
        display: flex;
        flex-direction: column;
    }

    /* IMAGE FULL WIDTH */
    .preview-container {
        width: 100%;
        height: auto;
    }

    .preview-container img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
    }

    /* GALLERY */
    .scroll-gallery-wrapper {
        width: 100%;
    }

    .scroll-gallery {
        padding: 10px;
        gap: 10px;
    }

    .scroll-gallery img {
        width: 80px;
        height: 100px;
    }

    /* 🔥 CRITICAL: REMOVE DESKTOP SPLIT */
    .info-panel {
        position: static;
        width: 100%;
        padding: 15px;
    }
    .big-panel {
        position: static;
        width: 100%;
        padding: 15px;
    }

    /* TEXT SCALE */
    .titlebig {
        font-size: 28px;
    }

    .title {
        font-size: 20px;
    }

    .content {
        font-size: 15px;
    }

}
form[action="cart.php"] button {
    width: auto;
    display: inline-block;
}