/* ==========================================================
   Chocolatati – Luxury overrides
   Load AFTER main.css and AFTER the inline <style> blocks
   ========================================================== */
:root {
    --cc-choco: #3a2018;
    --cc-choco-deep: #24120d;
    --cc-brand: #6f2a1c;
    --cc-gold: #b8935a;
    --cc-gold-soft: #d9bf8f;
    --cc-cream: #faf5ee;
    --cc-ivory: #fffdf9;
    --cc-line: #eadfce;
    --cc-text: #2b1d18;
    --cc-muted: #8a7a6e;
    --cc-shadow: 0 18px 45px rgba(58, 32, 24, .10);
}

body {
    background: var(--cc-ivory) !important;
    color: var(--cc-text);
    font-family: 'Tajawal', 'Cormorant Garamond', serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: .01em;
}

.main {
    background: var(--cc-ivory);
}

/* ---------- Section titles: centered, gold ornament ---------- */
.section-title {
    justify-content: center !important;
    text-align: center;
    position: relative;
    margin-bottom: 44px !important;
}

    .section-title h3,
    .brand-showcase .brand-showcase__heading h3 {
        font-size: clamp(26px, 3vw, 38px) !important;
        font-weight: 700;
        color: var(--cc-choco);
        position: relative;
        padding-bottom: 20px;
    }

        .section-title h3::after,
        .brand-showcase .brand-showcase__heading h3::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 90px;
            height: 2px;
            transform: translateX(-50%);
            background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
        }

        .section-title h3::before,
        .brand-showcase .brand-showcase__heading h3::before {
            content: "◆";
            position: absolute;
            bottom: -7px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 9px;
            line-height: 1;
            color: var(--cc-gold);
            background: var(--cc-ivory);
            padding: 0 8px;
            z-index: 1;
        }

.brand-showcase .brand-showcase__heading {
    justify-content: center;
    text-align: center;
}

.brand-showcase .carausel-10-columns-arrow {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
}

/* ---------- Sections rhythm ---------- */
.section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
}

.product-tabs {
    background: var(--cc-cream);
}

.brand-showcase {
    background: var(--cc-ivory);
}

/* ---------- Hero ---------- */
.single-hero-slider {
    border-radius: 6px !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--cc-shadow);
}

    .single-hero-slider::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(36,18,13,.72) 0%, rgba(36,18,13,.35) 55%, rgba(36,18,13,0) 100%);
        z-index: 0;
    }

[dir="rtl"] .single-hero-slider::before {
    background: linear-gradient(270deg, rgba(36,18,13,.72) 0%, rgba(36,18,13,.35) 55%, rgba(36,18,13,0) 100%);
}

.single-hero-slider::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(217,191,143,.55);
    pointer-events: none;
}

.single-hero-slider .slider-content {
    position: relative;
    z-index: 1;
}

    .single-hero-slider .slider-content h1 {
        color: #fff !important;
        font-weight: 700;
        letter-spacing: .02em;
        text-shadow: 0 2px 18px rgba(0,0,0,.35);
    }

    .single-hero-slider .slider-content p {
        color: var(--cc-gold-soft) !important;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

/* ---------- Brand cards ---------- */
.brand-showcase .brand-card {
    background: #fff;
    border: 1px solid var(--cc-line);
    border-radius: 4px;
    box-shadow: none;
}

    .brand-showcase .brand-card:hover {
        transform: translateY(-6px);
        border-color: var(--cc-gold);
        box-shadow: var(--cc-shadow);
    }

.brand-showcase .brand-card__image {
    background: var(--cc-cream);
    border: 1px solid var(--cc-line);
    border-radius: 50%;
}

.brand-showcase .brand-card__name a {
    color: var(--cc-choco);
}

    .brand-showcase .brand-card__name a:hover {
        color: var(--cc-gold);
    }

/* ---------- Product cards ---------- */
.product-cart-wrap {
    background: #fff;
    border: 1px solid var(--cc-line) !important;
    border-radius: 4px !important;
    overflow: hidden;
    box-shadow: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .product-cart-wrap:hover {
        transform: translateY(-6px);
        border-color: var(--cc-gold) !important;
        box-shadow: var(--cc-shadow) !important;
    }

    .product-cart-wrap .product-img-action-wrap {
        background: var(--cc-cream);
    }

    .product-cart-wrap .product-content-wrap {
        padding: 18px 16px 20px;
        text-align: center;
    }

.product-content-wrap h2,
.product-content-wrap h2 a {
    color: var(--cc-choco) !important;
    font-weight: 700;
}

    .product-content-wrap h2 a:hover {
        color: var(--cc-gold) !important;
    }

.product-content-wrap .product-category a {
    color: var(--cc-gold) !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 11px;
}

.product-content-wrap .font-small.text-muted,
.product-content-wrap .font-small.text-muted a {
    color: var(--cc-muted) !important;
}

.product-card-bottom {
    justify-content: center !important;
    flex-direction: column;
    gap: 12px;
}

.product-price span,
.product-price .current-price {
    color: var(--cc-brand) !important;
    font-weight: 700;
    font-size: 18px;
}

.product-price .old-price {
    color: var(--cc-muted) !important;
    font-weight: 400;
}

/* Rating stars in gold */
.product-rate, .product-rate-cover .product-rate {
    filter: sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(.95);
}

/* Badges */
.product-badges span {
    background: var(--cc-choco) !important;
    color: var(--cc-gold-soft) !important;
    border-radius: 2px !important;
    letter-spacing: .1em;
    font-weight: 600;
}

    .product-badges span.new {
        background: var(--cc-gold) !important;
        color: #fff !important;
    }

/* Quick action icons */
.product-action-1 .action-btn {
    background: #fff !important;
    color: var(--cc-choco) !important;
    border: 1px solid var(--cc-line) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 16px rgba(58,32,24,.12);
}

    .product-action-1 .action-btn:hover {
        background: var(--cc-choco) !important;
        color: var(--cc-gold-soft) !important;
        border-color: var(--cc-choco) !important;
    }

/* ---------- Buttons ---------- */
.add-cart .add,
.btn, .button, .button-add-to-cart {
    background: transparent !important;
    color: var(--cc-choco) !important;
    border: 1px solid var(--cc-choco) !important;
    border-radius: 2px !important;
    padding: 9px 22px !important;
    font-weight: 600;
    letter-spacing: .08em;
    box-shadow: none !important;
    transition: all .25s ease;
}

    .add-cart .add:hover,
    .btn:hover, .button:hover, .button-add-to-cart:hover {
        background: var(--cc-choco) !important;
        color: var(--cc-gold-soft) !important;
        border-color: var(--cc-choco) !important;
    }

    .add-cart .add i {
        color: var(--cc-gold);
    }

/* ---------- Offers banner ---------- */
.banner-img.style-2 {
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--cc-shadow);
}

    .banner-img.style-2::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(36,18,13,.15), rgba(36,18,13,.75));
    }

    .banner-img.style-2::after {
        content: "";
        position: absolute;
        inset: 12px;
        border: 1px solid rgba(217,191,143,.6);
        pointer-events: none;
    }

    .banner-img.style-2 .banner-text {
        position: relative;
        z-index: 1;
    }

        .banner-img.style-2 .banner-text h2 {
            font-weight: 700;
            letter-spacing: .03em;
        }

/* Progress bar */
.sold .progress {
    background: var(--cc-line);
    height: 5px;
    border-radius: 0;
}

.sold .progress-bar {
    background: var(--cc-gold) !important;
}

/* Carousel arrows */
.slider-arrow span,
.slider-arrow .slick-arrow,
.slick-arrow {
    background: #fff !important;
    color: var(--cc-choco) !important;
    border: 1px solid var(--cc-line) !important;
    border-radius: 50% !important;
}

    .slick-arrow:hover {
        background: var(--cc-choco) !important;
        color: var(--cc-gold-soft) !important;
    }

.slick-dots li button, .dot-style-1 .slick-dots li button {
    background: var(--cc-gold-soft) !important;
}

.slick-dots li.slick-active button {
    background: var(--cc-gold) !important;
}

/* ---------- Quick-view modal ---------- */
.custom-modal .modal-content {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(36,18,13,.35);
}

.custom-modal .title-detail a {
    color: var(--cc-choco);
}

.custom-modal .text-brand {
    color: var(--cc-brand) !important;
}

.custom-modal .stock-status {
    color: var(--cc-gold) !important;
    background: var(--cc-cream) !important;
}

/* ---------- Selection / scrollbar polish ---------- */
::selection {
    background: var(--cc-gold);
    color: #fff;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .section-title {
        margin-bottom: 30px !important;
    }

    .single-hero-slider::after {
        inset: 8px;
    }
}

/* ==========================================================
   Patch 2 – tuned against the real main.css (Nest 6.0)
   ========================================================== */

/* main.css gives h3 a 30px side margin (and .rtl flips it): kill it so the ornament centers */
.section-title h3,
.rtl .section-title h3 {
    margin: 0 !important;
}

.section-title .title {
    justify-content: center;
}

/* Carousel arrows use .slider-btn in this theme */
.slider-arrow .slider-btn {
    background: #fff !important;
    color: var(--cc-choco) !important;
    border: 1px solid var(--cc-line) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 16px rgba(58,32,24,.10);
    transition: all .25s ease;
}

    .slider-arrow .slider-btn:hover {
        background: var(--cc-choco) !important;
        color: var(--cc-gold-soft) !important;
        border-color: var(--cc-choco) !important;
    }

/* "Hot / Save" badge was pink in main.css */
.product-cart-wrap .product-badges span.hot,
.product-cart-wrap .product-badges span.sale,
.product-cart-wrap .product-badges span.best {
    background: var(--cc-choco) !important;
    color: var(--cc-gold-soft) !important;
}

.product-cart-wrap .product-badges span {
    border-radius: 0 0 8px 0 !important;
    padding: 8px 16px 9px !important;
}

/* Header */
.header-top-ptb-1 {
    background: var(--cc-choco-deep);
    color: var(--cc-gold-soft);
    border-bottom: 0 !important;
}

    .header-top-ptb-1 a, .header-top-ptb-1 li, .header-top-ptb-1 span {
        color: var(--cc-gold-soft) !important;
    }

        .header-top-ptb-1 a:hover {
            color: #fff !important;
        }

.header-middle-ptb-1 {
    background: var(--cc-ivory);
}

.header-style-1 .header-bottom, .header-bottom-bg-color {
    border-top: 1px solid var(--cc-line);
    border-bottom: 1px solid var(--cc-line);
    background: #fff;
}

.sticky-bar.stick {
    box-shadow: 0 8px 28px rgba(58,32,24,.10);
    background: rgba(255,253,249,.96) !important;
    backdrop-filter: blur(8px);
}

.main-menu > nav > ul > li > a {
    color: var(--cc-cream) !important;
    font-weight: 700;
    letter-spacing: .04em;
}

    .main-menu > nav > ul > li > a:hover,
    .main-menu > nav > ul > li > a.active {
        color: var(--cc-cream) !important;
    }

.header-style-1 .main-categori-wrap > a.categories-button-active {
    background: var(--cc-choco) !important;
    color: var(--cc-gold-soft) !important;
    border-radius: 2px;
}

.search-style-2 form select {
    color: var(--cc-choco);
    border-color: var(--cc-line);
}

.search-style-2 form input {
    border-color: var(--cc-line);
}

    .search-style-2 form input:focus {
        border-color: var(--cc-gold);
    }

.hotline p {
    color: var(--cc-choco);
}

/* Footer */
.footer-mid, footer.main {
    background: var(--cc-choco-deep) !important;
    color: #cdbba8;
}

    .footer-mid p, .footer-mid li, .footer-mid a, .footer-mid span {
        color: #cdbba8;
    }

        .footer-mid a:hover {
            color: var(--cc-gold-soft) !important;
        }

    .footer-mid .widget-title {
        color: var(--cc-gold-soft) !important;
        letter-spacing: .08em;
    }

.footer-bottom {
    background: #1a0b07;
    border-top: 1px solid rgba(217,191,143,.18);
    color: #a08f7d;
}

    .footer-bottom p, .footer-bottom a, .footer-bottom span {
        color: #a08f7d !important;
    }

/* ==========================================================
   Patch 3 – Mobile fixes for list pages (Brand_Items.aspx,
   Category_Items.aspx …): .page-header + .product-list + sidebar
   ========================================================== */
@media (max-width: 991.98px) {
    .primary-sidebar.sticky-sidebar {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        margin-top: 24px;
    }

    .primary-sidebar .theiaStickySidebar {
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    /* page header (brand title + breadcrumb) */
    .page-header.mt-30 {
        margin-top: 14px !important;
    }

    .page-header.mb-50 {
        margin-bottom: 22px !important;
    }

    .archive-header {
        padding: 26px 18px !important;
        border-radius: 6px !important;
        background-color: var(--cc-cream);
        border: 1px solid var(--cc-line);
        text-align: center;
    }

        .archive-header h1 {
            font-size: 24px !important;
            line-height: 1.35;
            margin-bottom: 10px !important;
            color: var(--cc-choco);
            overflow-wrap: anywhere;
        }

        .archive-header .col-xl-3 {
            width: 100%;
        }

        .archive-header .breadcrumb {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px 6px;
            font-size: 13px;
            line-height: 1.6;
        }

    /* results counter */
    .shop-product-fillter {
        display: block !important;
        padding: 0 0 14px !important;
        margin-bottom: 18px !important;
        border-bottom: 1px solid var(--cc-line);
    }

        .shop-product-fillter .totall-product p {
            font-size: 14px;
            margin: 0;
        }

    /* product list: compact horizontal card instead of a full-width image */
    .product-list {
        margin-bottom: 30px !important;
    }

        .product-list .product-cart-wrap {
            display: grid !important;
            grid-template-columns: 108px minmax(0, 1fr);
            gap: 14px;
            align-items: start !important;
            padding: 12px;
            margin-bottom: 14px !important;
            background: #fff;
            border: 1px solid var(--cc-line) !important;
            border-radius: 4px !important;
            overflow: hidden !important;
        }

            .product-list .product-cart-wrap:not(:last-child) {
                margin-bottom: 14px !important;
            }

            .product-list .product-cart-wrap .product-img-action-wrap {
                max-width: 100% !important;
                width: 100%;
                margin: 0 !important;
            }

                .product-list .product-cart-wrap .product-img-action-wrap .product-img {
                    border-radius: 4px;
                    background: var(--cc-cream);
                }

                    .product-list .product-cart-wrap .product-img-action-wrap .product-img .product-img-inner {
                        padding: 4px;
                    }

            .product-list .product-cart-wrap .product-img img {
                width: 100%;
                height: auto;
                object-fit: contain;
            }

            .product-list .product-cart-wrap .product-content-wrap {
                padding: 0 !important;
                min-width: 0;
                text-align: start;
            }

                .product-list .product-cart-wrap .product-content-wrap .product-category a {
                    font-size: 11px !important;
                    margin-top: 0 !important;
                }

            .product-list .product-cart-wrap h2 {
                font-size: 15px !important;
                line-height: 1.5;
                min-height: 0 !important;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                overflow-wrap: anywhere;
            }

            .product-list .product-cart-wrap .product-rate-cover {
                margin-bottom: 8px !important;
            }

            .product-list .product-cart-wrap p.mt-15 {
                display: none !important;
            }

            .product-list .product-cart-wrap .product-content-wrap .product-price span {
                font-size: 17px !important;
            }

                .product-list .product-cart-wrap .product-content-wrap .product-price span.old-price {
                    font-size: 13px !important;
                }

            .product-list .product-cart-wrap .mt-30 {
                margin-top: 10px !important;
            }

            .product-list .product-cart-wrap .btn {
                width: 100%;
                justify-content: center;
                padding: 8px 12px !important;
                font-size: 13px;
                letter-spacing: .04em;
            }

    /* sidebar widgets */
    .sidebar-widget {
        padding: 18px !important;
        margin-bottom: 20px !important;
    }

        .sidebar-widget.widget-category-2 ul li {
            padding: 10px 14px;
        }

    .product-sidebar .single-post .content h5 {
        font-size: 14px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .product-list .product-cart-wrap {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 11px;
        padding: 10px;
    }

    .archive-header h1 {
        font-size: 21px !important;
    }
}
