/* ================= GLOBAL ================= */
:root {
    --background: #1a1a1a;
    --primary: #402c24;
    /* Brown */
    --secondary: #d4af37;
    /* Gold */
    --highlight: #eb5b30ee;
    /* Orange */
    --highlight-dark: #e64a19;
    /* Dark Orange */
    --danger: #d32f2f;
    /* Red */
    --accent: #2e7d32;
    /* Green */
    --light: #f8f8f8;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff;
}

/* ================= TOP BAR ================= */
.top-bar {
    /* background: #0f5c4f;
    color: white; */
    background: var(--background);
    color: var(--secondary);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* ================= NAVBAR ================= */
.navbar {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 50px;
    /* border-bottom: 1px solid #eee; */
    /* border-bottom: 2px solid var(--secondary); */
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;

    background: linear-gradient(to right,
            var(--accent),
            var(--secondary),
            var(--danger),
            var(--accent));
}

.logo {
    font-size: 30px;
    /* color: #0f5c4f; */
    color: var(--primary);
    font-weight: bold;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    /* color: #333; */
    color: var(--text);
    font-size: 18px;
}


.nav-links a:hover {
    color: var(--highlight);
}

.icons {
    display: flex;
    gap: 20px;
    font-size: 22px;
    cursor: pointer;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    height: 80vh;
    /* background: url('/frontend/assets/images/hero-bg.png') center/cover no-repeat; */
    display: flex;
    align-items: center;
    padding: 80px;
    overflow: hidden;
}



.overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(9, 74, 62, 0.75); */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
    /* width: 60%; */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: white;
}

.hero-content h4 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 45px;
    line-height: 1.1;
    font-weight: bold;
}

.highlight {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    margin-top: 40px;
    /* background: #d5c16f;
    color: #0f5c4f; */
    background: var(--secondary);
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

/* .btn:hover {
    background: #b8962e;
} */
.btn:hover {
    background: linear-gradient(135deg, var(--highlight), var(--highlight-dark));
    color: #fff;
    transform: translateY(-2px);
}

/* Badge */
.badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: white;
    color: #0f5c4f;
    padding: 30px 20px;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    z-index: 2;
}

/* Bottom Strip */
.bottom-strip {
    background: #0f5c4f;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 22px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .overlay {
        width: 100%;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }
}


/* ================= AFFILIATE CARDS ================= */
.affiliate-glass {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.title {
    font-size: 30px;
    /* color: #0f5c4f; */
    color: var(--primary);
    margin-bottom: 10px;
}

.subtitle {
    margin-bottom: 50px;
    color: #666;
}

.glass-box {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.glass-item {
    position: relative;
    border-radius: 16px;
    padding: 40px;
    min-width: 200px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.glass-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;

    background: conic-gradient(var(--accent),
            var(--secondary),
            var(--highlight),
            var(--accent));
}

.glass-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.glass-item h3 {
    font-size: 42px;
    color: var(--primary);
    font-weight: bold;
}

.glass-item span {
    display: block;
    margin-top: 10px;
    color: #555;
}

/* ================= HOW IT WORKS ================= */
.s-wrap {
    padding: 30px 20px;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
}

.s-inner {
    max-width: 100%;
    margin: 0 auto;
}

.s-head {
    text-align: center;
    margin-bottom: 48px;
}

.s-tag {
    display: inline-block;
    /* background: #0f5c4f; */
    background: linear-gradient(135deg, var(--highlight), var(--danger));
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.s-title {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    /* color: #0a3d32; */
    color: var(--primary);
    margin: 0 0 8px;
    line-height: 1.15;
}

.s-title em {
    /* color: #d5c16f; */
    color: var(--secondary);
    font-style: normal;
}

.s-sub {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.s-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.s-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: repeating-linear-gradient(to right,
            #0f5c4f 0,
            #0f5c4f 6px,
            transparent 6px,
            transparent 14px);
    z-index: 0;
}

.s-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.s-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    /* border: 2px solid #0f5c4f; */
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    transition: all 0.3s;
}

.s-step:hover .s-icon-wrap {
    /* background: #0f5c4f; */
    /* background: var(--secondary); */
    background: var(--highlight);
    border-color: var(--highlight);
}

.s-icon-wrap svg {
    transition: stroke 0.3s;
}

.s-step:hover .s-icon-wrap svg {
    stroke: #fff;
}

.s-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #d5c16f;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: #0a3d32;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s-name {
    font-size: 14px;
    font-weight: 500;
    color: #0a3d32;
    margin: 0 0 6px;
}

.s-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
    margin: 0 0 10px;
}

.s-pill {
    display: inline-block;
    /* background: #f0faf6; */
    background: rgba(255, 87, 34, 0.1);
    color: var(--highlight-dark);
    color: #0f5c4f;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ======= CTA ======= */
.s-cta {
    text-align: center;
    margin-top: 44px;
}

.s-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.s-btn:hover {
    color: #fff;
    background: #0a3d32;
    box-shadow: 0 8px 24px rgba(15, 92, 79, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .s-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .s-steps::before {
        display: none;
    }

    .s-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .s-steps {
        grid-template-columns: 1fr;
    }

    .s-wrap {
        padding: 40px 20px;
    }
}

/* ================= CREATOR SCROLL ================= */
.cr-wrap {
    padding: 60px 0;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
}

.cr-head {
    text-align: center;
    margin-bottom: 44px;
    padding: 0 40px;
}

.cr-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--highlight), var(--danger));
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.cr-title {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    color: var(--text);
    margin: 0 0 8px;
}

.cr-title em {
    color: var(--secondary);
    font-style: normal;
}

.cr-sub {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

/* Scroll Track Wrapper */
.cr-track-wrap {
    position: relative;
}

/* Gradient fade (optional UI effect) */
.cr-track-wrap::before,
.cr-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.cr-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.cr-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Track (MANUAL SCROLL ENABLED) */
.cr-track {
    display: flex;
    gap: 24px;
    padding: 20px 0;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cr-track::-webkit-scrollbar {
    display: none;
}

.cr-card {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;

    scroll-snap-align: start;
}

.cr-ring {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(var(--accent),
            var(--secondary),
            var(--highlight),
            var(--accent));
    transition: all 0.35s;
}

.cr-card:hover .cr-ring {
    transform: translateY(-10px) scale(1.07);
    box-shadow: 0 24px 48px rgba(15, 92, 79, 0.2);
}

.cr-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    background: #e8f5f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-ring-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge */
.cr-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #d5c16f;
    color: #0a3d32;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    border: 2px solid #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text */
.cr-name {
    font-size: 14px;
    font-weight: 500;
    color: #0a3d32;
    margin: 14px 0 3px;
    text-align: center;
}

.cr-handle {
    font-size: 12px;
    color: #bbb;
    margin: 0 0 8px;
}

.cr-stat {
    display: inline-block;
    background: #f0faf6;
    color: #0f5c4f;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 20px;
}

/* CTA */
.cr-cta {
    text-align: center;
    margin-top: 48px;
    padding: 0 20px;
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.cr-btn:hover {
    color: #fff;
    background: #0a3d32;
    box-shadow: 0 10px 28px rgba(15, 92, 79, 0.22);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .cr-title {
        font-size: 28px;
    }

    .cr-card {
        width: 150px;
    }

    .cr-ring {
        width: 110px;
        height: 110px;
    }
}

/* ================ Affiliate  ============= */
.affiliate-modern {
    position: relative;
    padding: 120px 20px 80px;
    background: var(--background);
    text-align: center;
    overflow: hidden;
    color: var(--secondary);
}

.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.25), transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.affiliate-box {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: auto;
}

.affiliate-box h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.affiliate-box p {
    color: #d1d1d1;
    font-size: 18px;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--highlight), var(--highlight-dark));
    color: #0a3d32;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
}

.primary-btn:hover {
    background: var(--secondary);
    color: var(--primary);
}

.secondary-btn {
    border: 1px solid #fff;
    padding: 14px 30px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
}

.secondary-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ================= TRUST ================= */

.trust-strip {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 14px;
    letter-spacing: 1px;
    color: #aaa;
    position: relative;
}

.trust-item::before {
    content: "✔";
    color: #d5c16f;
    margin-right: 6px;
}

.trust-item:hover {
    color: white;
}

@media(max-width:768px) {
    .affiliate-box h2 {
        font-size: 30px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .trust-strip {
        gap: 20px;
    }
}

.trust-section {
    background: #f7f9f8;
    padding: 50px 20px;
    text-align: center;
}

.trust-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-logo img {
    height: 50px;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.trust-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .trust-logos {
        gap: 25px;
    }

    .trust-logo img {
        height: 40px;
    }
}

/* =========== Footer ============== */
.footer-premium {
    position: relative;
    background: var(--background);
    color: var(--secondary);
    padding: 80px 20px 30px;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('/frontend/assets/images/footer-bg.png') bottom center/cover no-repeat;
    opacity: 0.15;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.footer-logo img {
    width: 180px;
    /* adjust size */
    margin-bottom: 15px;
}

.footer-brand h2 {
    font-size: 38px;
    font-family: serif;
}

.footer-brand span {
    font-size: 16px;
}

.footer-brand p {
    margin: 10px 0;
    color: #ccc;
}

.footer-brand a {
    color: #d5c16f;
}

.newsletter-modern {
    margin-top: 20px;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-modern input {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: white;
}

.newsletter-modern button {
    background: #d5c16f;
    border: none;
    padding: 12px 20px;
    color: #0a3d32;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links h4 {
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    color: #ccc;
    margin-bottom: 6px;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-right {
    text-align: right;
}

.contact-btn {
    display: inline-block;
    background: #d5c16f;
    color: #0a3d32;
    padding: 10px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.social-round {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.social-round a {
    width: 40px;
    height: 40px;
    background: #d5c16f;
    color: #0a3d32;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.app-btns img {
    height: 40px;
    margin-left: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #bbb;
}

/* Responsive */
@media(max-width:768px) {
    .footer-main {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
    }

    .social-round {
        justify-content: flex-start;
    }
}

/* ========= Category section ========= */
.category-strip {
    background: #f8f8f8;
    padding: 20px 10px;
}

.cat-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cat-item {
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.cat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(var(--accent), var(--secondary), var(--highlight), var(--accent)) border-box,
        conic-gradient(var(--highlight), var(--secondary), var(--accent)) border-box;

    border: 2px solid transparent;
}

.cat-item span {
    font-size: 14px;
    color: var(--primary);
}

.cat-item.active .cat-icon {
    background: var(--highlight);
    border-color: var(--highlight);
    color: #fff;
    transform: scale(1.1);
}

.cat-item.active span {
    color: var(--highlight);
    font-weight: 600;
}

/* ====== Product section ====== */
.product-section {
    padding: 40px;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* gap: 25px; */
    justify-items: center;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 220px;
    margin-top: 10px
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 6px;
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: #000;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 6px;
}

.wishlist {
    position: absolute;
    top: 40px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

.top-choice {
    background: #e6f4ea;
    color: var(--accent);
    padding: 5px;
    font-size: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.product-card h3 {
    font-size: 15px;
    color: var(--primary);
    margin: 8px 0;
}

.rating {
    font-size: 13px;
    color: #777;
}

.price {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
}

.price .old {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.coupon {
    background: #eef7f2;
    color: var(--accent);
    font-size: 12px;
    padding: 6px;
    border-radius: 6px;
}

.add-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, var(--highlight), var(--highlight-dark));
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.add-btn:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* ============ Cart Action ============= */

/* ⭐ MODIFIED */
.cart-action {
    position: relative;
}

.qty-box {
    display: none;
    justify-content: space-between;
    background: var(--accent);
    color: #fff;
    border-radius: 30px;
    padding: 8px 15px;
    margin-top: 10px;
}

.product-card.active .add-btn {
    display: none;
}

.product-card.active .qty-box {
    display: flex;
}

.qty-box button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
}

.cart-wrapper {
    position: sticky;
    bottom: 20px;
    display: flex;
    justify-content: center;
}

.cart-bar {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    transition: 0.4s;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 25%;
}

.cart-bar.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-images {
    display: flex;
}

.cart-images img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -10px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.cart-btn {
    background: #ffd166;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

/* ========== Header Count ======== */
.header-cart {
    position: relative;
    cursor: pointer;
}

.header-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/*  ======== product modal ===== */
/* MODAL BACKGROUND */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* SHOW MODAL */
.product-modal.show {
    display: flex;
}

/* MODAL BOX */
.modal-content {
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    animation: popup 0.3s ease;
}

@keyframes popup {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-modal {
    font-size: 22px;
    cursor: pointer;
}

/* VARIANTS */
.variant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f7f7f7;
    transition: 0.3s;
}

.variant-item.active {
    border: 2px solid #2d6a4f;
    background: #eef7f2;
}

/* IMAGE */
.variant-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

/* INFO */
.variant-info {
    flex: 1;
}

.variant-info h4 {
    margin: 0;
    font-size: 14px;
}

.variant-info p {
    margin: 4px 0;
    font-weight: bold;
}

.variant-info .old {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
}

.variant-info .per {
    background: #d8f3dc;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.variant-info small {
    color: #2d6a4f;
}

.variant-add {
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

/* ====== Right side cart modal =======  */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px 0 0 12px;
}

.cart-sidebar.show {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0f3d2e, #1c6b4f);
    color: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cart-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cart-title p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.cart-header-right {
    display: flex;
    align-items: center;
}

/* .secure-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
} */

/* HEADER */
/* .cart-header {
    padding: 18px;
    background: linear-gradient(135deg, #0f3d2e, #1c6b52);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--danger);
} */

/* .close-cart {
    cursor: pointer;
    font-size: 22px;
} */

/* BODY */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f7f7f7;
}

/* ITEM CARD */
.cart-item {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.cart-item img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
}

/* INFO */
.cart-info h4 {
    font-size: 14px;
    margin: 0;
}

.cart-info p {
    font-weight: bold;
    margin: 3px 0;
}

/* QTY CONTROL */
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.qty-control button {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* REMOVE */
.remove-item {
    margin-left: auto;
    cursor: pointer;
    color: red;
    font-size: 18px;
}

/* FOOTER */
.cart-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.total-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* OVERLAY BACKGROUND */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    /* 🔥 blur effect */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9998;
}

/* SHOW OVERLAY */
.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}