:root {
    --bg-body: #f8f4ee;
    --bg-card: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --danger: #e0848f;
    --success: #00b894;
    --radius-card: 15px;
    --radius-btn: 50px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
    --font-main: 'Quicksand', sans-serif;
    --max-width: 1400px;
    --header-height: 70px;

    --btn-green: #73b7ab;
    --btn-green-hover: #5fa095;
    --btn-green-text: #ffffff;

    --btn-white: #ffffff;
    --btn-white-hover: #f9f9f9;
    --btn-white-text: #2d3436;

    --btn-apricot: #f5b6a3;
    --btn-apricot-hover: #e8a390;
    --btn-apricot-text: #ffffff;

    --btn-danger: #e0848f;
    --btn-danger-hover: #d57e89;

    --clr-green: #73b7ab;
    --clr-apricot: #f5b6a3;
    --clr-blue: #80cacd;
    --clr-purple: #bdabc4;
    --clr-beige: #f8f4ee;
    --clr-beige-hover: #e0d8c8;

    --clr-strawberry-pink: #e0848f;
    --clr-beach-sand: #eeba9b;
    --clr-buzzing-bees: #f3ee9c;
    --clr-paradise-green: #bcb5a3;
    --clr-aruba-blue: #96cacb;
    --clr-baltic-sea: #87b4d4;
    --clr-scented-levander: #c9b6d4;
    --clr-flushing-pink: #f1cddb;
}

/* --- Reset & Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

html,
body {
    position: relative;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

/* For smaller screens, remove body padding to use full width */
@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: var(--bg-card);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- App Card Container --- */
.app-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: var(--max-width);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Use clip instead of hidden to prevent horizontal scroll without breaking position: sticky */
    overflow-x: clip;
}

@media (max-width: 768px) {
    .app-card {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Social Sharing Buttons --- */
.social-share {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-beige);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.blog-social-share {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-beige);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.social-share-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.social-share-links {
    display: flex;
    gap: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background-color: var(--clr-beige);
    color: var(--text-dark);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    flex-shrink: 0;
}

.btn-social svg {
    fill: currentColor;
    display: block;
    flex-shrink: 0;
    transition: inherit;
}

.btn-social.fb-icon svg {
    width: 15px;
    height: 15px;
}

.btn-social.x-icon svg {
    width: 15px;
    height: 15px;
}

.btn-social:hover {
    background-color: var(--clr-apricot);
    color: #ffffff;
    transform: scale(1.1) translateZ(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    border: none;
    cursor: pointer;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
    color: white;
}

.btn-primary {
    background-color: var(--btn-green);
    color: var(--btn-green-text);
}

.btn-primary:hover {
    background-color: var(--btn-green-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--btn-white);
    color: var(--btn-white-text);
}

.btn-secondary:hover {
    background-color: var(--btn-white-hover);
    transform: translateY(-2px);
}

.btn-apricot {
    background-color: var(--btn-apricot);
    color: var(--btn-apricot-text);
}

.btn-apricot:hover {
    background-color: var(--btn-apricot-hover);
    transform: translateY(-2px);
}

.btn-icon-only {
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-white);
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-icon-only:hover {
    background: var(--btn-white-hover);
    transform: translateY(-2px);
    color: var(--clr-green);
}

.btn-icon-only:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-icon-only svg {
    width: 20px;
    height: 20px;
}

/* --- Sticky top bar (banner + header together) --- */
.sticky-top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Info Banner --- */
.info-banner {
    background: var(--clr-apricot);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transition: border-radius 0.3s ease;
}

.app-card.is-scrolled .info-banner {
    border-radius: 0;
}

.info-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.info-banner__item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.info-banner__item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.info-banner__dot {
    margin: 0 12px;
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .sticky-top-bar {
        border-radius: 0;
    }

    .info-banner {
        border-radius: 0;
        padding: 6px 16px;
    }

    .info-banner__inner {
        flex-direction: column;
        gap: 2px;
        align-items: center;
    }

    .info-banner__dot {
        display: none;
    }
}

/* --- Header --- */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}



/* Hide Input Spinners Global */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Align Nav Left near Logo */
#main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-start;
    padding-left: 2rem;
}

/* Tools on the right */
.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 0 0 auto;
}

#main-nav a.nav-link {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

#main-nav a.nav-link:hover,
#main-nav a.nav-link.active {
    color: var(--clr-green);
    position: relative;
}

#main-nav a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-green);
    border-radius: 2px;
}

.cart-btn-wrapper {
    position: relative;
}

.btn-cart {
    background-color: var(--btn-green);
    color: var(--btn-green-text);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Empty Cart State */
.btn-cart.cart-empty {
    background-color: var(--btn-white);
    color: var(--btn-white-text);
    border-color: var(--btn-white);
}

.btn-cart.cart-empty svg {
    color: var(--btn-white-text) !important;
}

.btn-cart.cart-empty .js-cart-count {
    background: var(--btn-white);
    color: var(--btn-white-text);
}

.btn-cart:hover {
    background-color: var(--btn-green-hover);
    color: var(--btn-green-text);
}

.btn-cart.cart-empty:hover {
    background-color: var(--btn-white-hover);
    color: var(--btn-white-text);
    border-color: var(--clr-green);
}

/* Settings Dropdown */
.settings-dropdown {
    position: relative;
    z-index: 1001;
}

.dropbtn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid #eee;
}

.dropdown-group span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    padding: 0.5rem 0.8rem 0.2rem;
    font-weight: 700;
}

.dropdown-content a {
    padding: 10px 16px;
    display: block;
    font-size: 0.95rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #f0f7f6;
    color: var(--clr-green);
}

.dropdown-content a.active {
    font-weight: bold;
    color: var(--clr-green);
    background-color: #f0f7f6;
}

.dropdown-division {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}

.settings-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--avatar-border-color, var(--clr-green));
    background-color: #fff;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #eee;
}

.user-dropdown-wrapper.active .user-dropdown-content {
    display: block;
    animation: fadeIn 0.1s ease;
}

.user-dropdown-content a {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown-content a:hover {
    background-color: #f0f7f6;
    color: var(--clr-green);
}

.user-dropdown-content a svg {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.user-dropdown-content a:hover svg {
    color: var(--clr-green);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-controls {
    display: none;
}

/* Mobile Controls */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex !important;
        order: 2;
    }

    .header-tools {
        display: none !important;
    }

    .user-avatar-circle {
        width: 35px;
        height: 35px;
    }

    .user-dropdown-content {
        position: fixed;
        top: 70px;
        right: 20px;
        left: 20px;
        width: auto;
    }

    .btn-cart .cart-label {
        display: none;
    }

    .btn-cart {
        padding: 0.6rem;
        gap: 6px;
    }

    .mobile-controls .user-dropdown-wrapper {
        display: none;
    }

    .mobile-settings-dropdown .dropdown-content {
        position: fixed;
        top: 70px;
        right: 20px;
        left: auto;
        width: auto;
        min-width: 150px;
    }

    .mobile-settings-dropdown:hover .dropdown-content {
        display: none;
    }

    .mobile-settings-dropdown.open .dropdown-content {
        display: block;
        animation: fadeIn 0.2s ease;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--clr-beige);
    padding: 3rem 1rem;
    margin-top: auto;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    height: 50px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--clr-green);
}

.footer-bottom {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 1rem;
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #fff;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--success);
    min-width: 250px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.error {
    border-left-color: var(--danger);
}

/* --- Utility Classes --- */
.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
    color: var(--text-dark);
}

/* --- Product Cards (Shared) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.product-card {
    background: var(--clr-beige);
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    height: 100%;
    /* Force cards to take full height of grid cell */
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.blog-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.blog-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.product-card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
    /* Prevent top image from shrinking */
}

.product-img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.product-card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-top img {
    transform: scale(1.05);
}

/* --- Label 1: Horizontal Ribbon from Right Edge --- */
.label-ribbon-right {
    position: absolute;
    top: 20px;
    right: -8px;
    background: var(--clr-purple);
    color: white;
    padding: 6px 15px 6px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.label-ribbon-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 100%;
    background: var(--clr-purple);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
}

.label-ribbon-right::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    border-top: 8px solid #97889c;
    /* Slightly darker apricot for the shadow */
    border-right: 8px solid transparent;
}

/* --- Label 2: Pill exactly above boundary --- */
.label-pill-center {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 50%);
    /* Moves it exactly half its height down */
    background: var(--clr-purple);
    color: white;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.ribbon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.ribbon {
    position: absolute;
    top: 30px;
    left: -60px;
    width: 240px;
    background: var(--clr-strawberry-pink);
    color: white;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
}

.ribbon-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ribbon-price {
    font-size: 1.0rem;
    font-weight: 800;
}

.product-card-content {
    padding: 1.5rem 1.0rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 0 0 14px 14px;
}

.product-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2rem * 1.6 * 1);
    /* Force 1 line height */
}

.product-short-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.4;
    flex: 1 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure <p> inside description doesn't override display */
.product-short-desc p {
    display: inline;
    margin: 0;
}

.product-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-meta-row .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-green);
    margin: 0;
}

.product-meta-row .stock {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-light);
}


/* --- Delivery Date Global --- */
.delivery-date {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--clr-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.delivery-date svg {
    margin-right: 5px;
    color: var(--clr-green);
}

.cart-delivery-date {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cart-delivery-date {
        justify-content: center;
        width: 100%;
    }
}


.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.product-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    /* Padding for shadow/hover visibility */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel .product-card {
    flex: 0 0 350px;
    /* Fixed width for carousel items */
    max-width: 350px;
}

.carousel-nav {
    background: var(--btn-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: absolute;
    color: var(--text-dark);
    transition: all 0.3s;
}

.carousel-nav:hover {
    background: var(--clr-green);
    color: white;
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none;
        /* Hide arrows on mobile, use touch scroll */
    }

    .product-carousel {
        padding-left: 0;
        padding-right: 0;
        gap: 15px;
        /* Reduce gap on mobile */
        /* Override parent container padding to snap scroll to edge */
        margin-left: -2rem;
        margin-right: -2rem;
        width: calc(100% + 4rem);
    }

    /* Add margins to the first and last cards to keep them aligned when scrolled */
    .product-carousel .product-card:first-child {
        margin-left: 2rem;
    }

    .product-carousel::after {
        content: "";
        flex: 0 0 calc(2rem - 15px);
        display: block;
    }

    .product-carousel .product-card {
        flex: 0 0 320px;
        /* Smaller width for mobile to show ~1.5 cards */
        max-width: 320px;
    }

    /* Compress padding inside the card on mobile carousel to fit buttons */
    .product-carousel .product-card-content {
        padding: 1rem;
        /* Reduced from 1.5rem default */
        padding-bottom: 1rem;
    }

    /* Compress buttons on mobile carousel */
    .product-carousel .btn-half {
        padding: 0.6rem 0.8rem;
        /* Reduced horizontal padding */
        font-size: 0.9rem;
        flex: 1;
        max-width: none;
    }

    .product-carousel .action-half {
        flex: 0 0 45px;
        max-width: 45px;
        width: 45px;
    }

    .product-carousel .product-actions-wrapper.has-qty .btn-half {
        flex: 0 0 40%;
        padding: 0.6rem 0.2rem;
    }

    .product-carousel .product-actions-wrapper.has-qty .action-half {
        flex: 1;
        max-width: none;
        width: auto;
    }

    /* Fix for Price/Stock Layout on Mobile Carousel */
    .product-carousel .product-meta-row {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 1rem;
    }

    .product-carousel .product-meta-row .price {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        line-height: 1.2;
    }

    /* Override inline margin from JS to use flex gap */
    .product-carousel .product-meta-row .price .original-price {
        margin-right: 0 !important;
    }
}

.product-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.btn-half {
    flex: 1;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    transition: flex 0.4s ease;
}

.action-half {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    overflow: hidden;
    transition: flex 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: flex-end;
}

.product-actions-wrapper.has-qty .btn-half {
    flex: 0 0 50%;
    padding: 0.7rem 0.2rem;
}

.product-actions-wrapper.has-qty .action-half {
    flex: 1;
    width: auto;
    justify-content: center;
    overflow: visible;
}

.product-actions-wrapper.has-qty .hide-on-expanded {
    display: none;
}

.qty-half {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--btn-white);
    border-radius: 30px;
    padding: 0 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.qty-half button.btn-qty {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--clr-apricot);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.qty-half input.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 0;
}

.qty-half input::-webkit-outer-spin-button,
.qty-half input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    margin: 0;
}

.qty-control input {
    -moz-appearance: textfield;
    appearance: none;
}

/* --- Qty Control (Generic) --- */
/* --- Qty Control (Generic - Unified based on Product Card) --- */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: fit-content;
    background-color: #fff;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    /* Match card shadow if possible or standard */
    min-width: 120px;
    /* Ensure enough space */
}

.qty-control button.btn-qty {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--clr-apricot);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.qty-control button.btn-qty:hover {
    background-color: #fab1a0;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.qty-control input.qty-input {
    width: 45px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    background: transparent;
}


/* Media Queries for Mobile Nav */
@media (max-width: 900px) {
    .main-header .container {
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo {
        flex: 0 0 auto;
        order: 1;
    }

    .header-tools {
        display: flex;
        flex: 0 0 auto;
        gap: 0.5rem;
        width: auto;
        justify-content: flex-end;
        order: 2;
        margin-left: auto;
    }

    .cart-label {
        display: none;
    }

    .btn-cart {
        padding: 0.5rem;
    }

    .btn-cart svg {
        margin: 0;
    }

    .hamburger {
        display: flex;
        flex: 0 0 auto;
        margin-left: 0.5rem;
        order: 3;
    }
}





@media (max-width: 900px) {
    #main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
    }

    .dropbtn {
        font-size: 0.8rem;
    }

    #main-nav.active {
        transform: translateY(0);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* --- Consolidated Hero Styles --- */
.hero-section {
    position: relative;
    height: 700px;
    width: 100%;
    overflow: hidden;
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

img.hero-cover:not(.hero-slide) {
    opacity: 1;
}

/* Desktop/mobile slider visibility */
.slider-desktop { display: block; }
.slider-mobile  { display: none; }

@media (max-width: 768px) {
    .slider-desktop { display: none; }
    .slider-mobile  { display: block; }
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-dark);
    transition: background 0.3s;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 28px;
    border-radius: 10px;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.hero-text-block {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 600px;
    margin-right: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        aspect-ratio: 16 / 9;
        display: block;
    }

    .hero-cover {
        position: absolute;
        height: 100%;
    }

    .hero-desktop-text {
        display: none !important;
    }
}

.hero-pre-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-pre-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.hero-subtitle span {
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }
}

.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Desktop: Bullet between items */
.hero-features li:not(:first-child)::before {
    content: "●";
    color: var(--clr-green);
    font-size: 0.8rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
    }

    .hero-features li {
        width: auto;
        justify-content: center;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .hero-features li:not(:first-child)::before {
        font-size: 0.6rem;
    }
}

.hero-features li::after {
    content: none !important;
}

/* --- Hero Mobile Text Section --- */
.hero-mobile-section {
    display: none;
}

.hero-mobile-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-mobile-text .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-mobile-text .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .hero-mobile-section {
        display: block;
        padding: 2rem 0rem;
        background-color: var(--clr-beige);
    }
}

/* --- Contact Section --- */
.contact-hero-section {
    padding: 6rem 1rem;
    background-color: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
    background: var(--clr-beige);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-green);
    box-shadow: 0 0 0 3px rgba(115, 183, 171, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Lightbox/Modal Shared */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.lightbox.active {
    display: flex !important;
}

/* --- Skeleton Loading --- */
.skeleton-card {
    background: var(--clr-beige);
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    height: 450px;
    /* Approx height of card */
    position: relative;
    box-shadow: none;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #e0d8c8;
    position: relative;
    overflow: hidden;
}

.skeleton-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-text {
    height: 1rem;
    background-color: #e0d8c8;
    border-radius: 4px;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
}

.skeleton-price {
    height: 1.5rem;
    width: 40%;
    margin: 0 auto;
}

.skeleton-btn {
    height: 45px;
    width: 100%;
    background-color: #e0d8c8;
    border-radius: 30px;
    margin-top: auto;
}

/* Shimmer Animation */
.skeleton-img::after,
.skeleton-text::after,
.skeleton-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* --- Validation Errors (Global) --- */
input.error,
select.error,
textarea.error,
.error-border {
    border-color: #e74c3c !important;
    /* Red border for invalid fields/containers */
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* --- Modals (Global) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
    line-height: 1;
}

.modal .close:hover,
.modal .close:focus {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

.modal-body-text h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.modal-body-text a:hover {
    color: var(--btn-green-hover) !important;
}

/* --- Legal Pages Styling --- */
.legal-page section {
    padding: 1rem 0rem;
}

.legal-page section p {
    margin-bottom: 0.2rem;
}

.legal-page section ol {
    margin: 1rem 0 1rem 2rem;
}

.legal-page section ul {
    list-style: disc;
    margin: 0.5rem 0 0.5rem 2rem;
}

/* ── LQIP blur-up ───────────────────────────────────────────────────────────── */
img.lqip {
    filter: blur(12px);
    transform: scale(1.03);
    transition: filter 0.4s ease, transform 0.4s ease;
    will-change: filter, transform;
}

img.lqip.lqip-loaded {
    filter: none;
    transform: scale(1);
}
