/*
Theme Name: Denicheur Theme
Theme URI: https://example.com
Author: Dénicheur
Description: Thème reproduisant le visuel Luminelle Bijoux
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: denicheurtheme
Tags: e-commerce, custom-background, custom-logo, translation-ready, woocommerce
*/

:root {
    --dt-primary: #000000;
    --dt-accent: #000000;
    --dt-accent-hover: #333333;
    --dt-bg: #ffffff;
    --dt-surface: #ffffff;
    --dt-text: #000000;
    --dt-text-light: #666666;
    --dt-border: #e2e2e2;
    --dt-font: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--dt-font);
    background-color: var(--dt-bg);
    color: var(--dt-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--dt-primary);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--dt-accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* ================================= */
/* Header */
/* ================================= */

.site-header {
    background: var(--dt-surface);
    border-bottom: 1px solid var(--dt-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title a {
    color: var(--dt-accent);
}

.custom-logo {
    width: 120px !important;
    max-width: 120px !important;
    height: auto;
    display: block;
}

.main-navigation {
    flex: 2;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--dt-primary);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--dt-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-navigation a:hover::before {
    transform: scaleX(1);
}

.menu-item-has-children>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8rem;
    display: inline-block;
    vertical-align: middle;
}

.main-navigation .menu-item-has-children a:hover::before {
    width: calc(100% - 20px);
}

.main-navigation a:hover {
    color: var(--dt-primary);
}

/* Dropdown styling */
.main-navigation ul li {
    position: relative;
    padding: 1rem 0;
}

.main-navigation ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1002;
    border-top: 2px solid #000;
}

.main-navigation ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul .sub-menu li {
    padding: 0;
    width: 100%;
}

.main-navigation ul .sub-menu a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: background 0.2s, padding-left 0.2s;
}

.main-navigation ul .sub-menu a::after {
    display: none;
    /* No underline for sub-menu items */
}

.main-navigation ul .sub-menu a:hover {
    background: #f9f9f9;
    padding-left: 1.8rem;
}

/* Indicators for items with children */
.menu-item-has-children>a::after {
    content: '\f107';
    /* Font Awesome angle down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8rem;
    display: inline-block;
    vertical-align: middle;
}

.main-navigation ul .sub-menu .menu-item-has-children>a::after {
    content: '\f105';
    /* Angle right for second level */
    float: right;
}

.fa-times {
    font-size: 1.5rem;
}

.header-tools {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
}

.header-icon {
    display: flex;
    align-items: center;
    color: var(--dt-accent);
    transition: color 0.2s, transform 0.2s;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.header-icon:hover {
    color: var(--dt-accent-hover);
    background: none !important;
    transform: scale(1.1);
}

.mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .main-navigation {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .header-cart .cart-text {
        display: none;
    }

    .site-branding {
        flex: 1;
    }

    .header-tools {
        flex: 1;
    }

    .custom-logo {
        width: 96px !important;
        max-width: 96px !important;
    }

    .main-navigation.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: calc(100vh - 72px);
        background: #fff;
        z-index: 1001;
        padding: 0.55rem 0.9rem 0.85rem;
        border-top: 1px solid #ececec;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        overflow-y: auto;
        animation: dt-slide-down 0.22s ease-out;
    }

    .main-navigation.active ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.08rem;
    }

    .main-navigation.active a {
        font-size: 0.95rem;
        display: block;
        width: 100%;
        padding: 0.42rem 0.16rem;
        line-height: 1.2;
    }

    /* Mobile Sub-menu */
    .main-navigation.active .sub-menu {
        display: block !important;
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0.2rem 0 0.2rem 0.7rem !important;
        transform: none !important;
        border: none !important;
    }

    .main-navigation.active .sub-menu a {
        font-size: 0.86rem !important;
        text-transform: none !important;
        padding: 0.24rem 0 !important;
        color: #666;
    }

    .main-navigation.active .menu-item-has-children>a::after {
        display: none;
    }
}

@keyframes dt-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-cart {
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-cart svg {
    margin-right: 6px;
}

.header-cart-count {
    position: absolute;
    left: -6px;
    bottom: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff6a00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
    z-index: 2;
}

.header-cart-count.is-empty {
    display: none;
}

.header-icon svg {
    margin-right: 6px;
}

.header-search-icon svg {
    margin-right: 0;
}



/* ================================= */
/* Hero & Sections */
/* ================================= */

.hero-section {
    background: url('assets/bg-hero.jpg') center/cover no-repeat;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 1rem;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: clamp(1.55rem, 7.2vw, 2.05rem);
        line-height: 1.15;
        letter-spacing: 0.8px;
    }

    .hero-section {
        height: 50vh;
        min-height: 300px;
    }
}

.section-title {
    margin: 0;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2.2rem;
}

.main-intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.28rem, 6vw, 1.7rem);
        line-height: 1.15;
        letter-spacing: 0.8px;
    }

    .main-intro-title {
        font-size: clamp(1.35rem, 6.4vw, 1.95rem);
        line-height: 1.15;
        letter-spacing: 1px;
    }
}

/* Homepage mobile safety: prevent section heading overflow/breakage */
@media (max-width: 768px) {
    .home .products-section>div {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 0.5rem 0.8rem !important;
        margin-bottom: 1.4rem !important;
        padding-bottom: 0.75rem !important;
    }

    .home .products-section>div .section-title {
        flex: 1 1 100%;
        margin-bottom: 0.15rem;
    }

    .home .products-section>div a {
        font-size: 0.76rem !important;
        letter-spacing: 0.4px !important;
    }

    .home .faq-title {
        font-size: clamp(1.3rem, 5.8vw, 1.8rem);
        line-height: 1.2;
    }
}

.intro-section {
    max-width: 900px;
    margin: 0 auto 4rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.products-section {
    margin-bottom: 5rem;
}

.hashtag-section {
    text-align: center;
    padding: 3rem 0;
}

.hashtag-section h3 {
    color: var(--dt-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hashtag-section p {
    font-size: 0.9rem;
    color: var(--dt-text-light);
}

/* ================================= */
/* Buttons */
/* ================================= */

.button,
.woocommerce ul.products li.product .button,
input[type="submit"]:not(.adminbar-button) {
    background-color: var(--dt-accent) !important;
    color: #fff !important;
    border-radius: 2px !important;
    padding: 0.8rem 2rem !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background 0.3s !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer;
}

.button:hover,
.woocommerce ul.products li.product .button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--dt-accent-hover) !important;
}

/* ================================= */
/* WooCommerce Overrides */
/* ================================= */

.woocommerce .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: start !important;
}

.woocommerce .products::before,
.woocommerce .products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    text-align: center;
    clear: none !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    margin: 0 0 1.5rem 0;
    background: #f8f8f8;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    height: 2.6rem !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 0 1rem !important;
    color: #000 !important;
}

.woocommerce ul.products li.product .price {
    margin-top: auto !important;
    margin-bottom: 1.5rem !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: block !important;
    height: 3rem !important;
    line-height: 3rem !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price bdi,
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    display: inline !important;
}

.woocommerce ul.products li.product .button {
    margin: 0 auto !important;
    width: 100% !important;
    padding: 12px !important;
    font-size: 0.75rem !important;
}

/* Star Rating */
.star-rating {
    margin: 0 auto 1rem !important;
    font-size: 0.85rem !important;
    width: 5.4rem !important;
    height: 1rem !important;
    line-height: 1 !important;
}

.star-rating span {
    color: #ffc107 !important;
}

.star-rating::before {
    color: #e2e2e2 !important;
    opacity: 1 !important;
}

/* Global Star Rating Color */
.woocommerce .star-rating span::before,
.woocommerce-page .star-rating span::before {
    color: #ffc107 !important;
}

.woocommerce span.onsale {
    background-color: var(--dt-primary) !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    min-height: auto;
    border-radius: 0;
}

@media (max-width: 900px) {
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 600px) {
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

.single-product div.product {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure tabs and related products take full row in flex container */
.woocommerce-tabs,
.related.products {
    flex: 0 0 100%;
}

.woocommerce-product-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 2rem;
}

.summary {
    flex: 1.2;
    min-width: 300px;
}

.woocommerce-Price-amount bdi {
    color: #000;
    font-weight: 700;
}

.price del {
    color: #999;
    font-weight: 400;
    font-size: 0.9em;
    margin-right: 10px;
}

.price ins {
    text-decoration: none;
}

/* Hide screen reader text in price to avoid clutter */
.price .screen-reader-text {
    display: none !important;
}

@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
        gap: 2rem;
    }

    .woocommerce-product-gallery,
    .summary {
        max-width: 100%;
        width: 100% !important;
    }
}


/* Single Product Tabs */
.woocommerce-tabs {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid #eee;
}

.woocommerce-tabs ul.tabs {
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 3rem !important;
    margin-bottom: 3rem !important;
    background: none !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #999 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 0.9rem !important;
    padding: 1rem 0 !important;
    display: block !important;
    position: relative !important;
    transition: color 0.3s !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #000 !important;
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.woocommerce-Tabs-panel {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0 !important;
    line-height: 1.8;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

.woocommerce-product-details__short-description {
    margin-bottom: 2rem;
    color: #666;
}

/* Related Products */
.related.products {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
    text-align: center;
    width: 100% !important;
    display: block !important;
    flex: 0 0 100% !important;
    clear: both !important;
}

.related.products h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4rem;
    color: #000;
    font-weight: 900;
    width: 100% !important;
    display: block !important;
    text-align: center;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px;
    margin: 0 auto !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.related.products ul.products li.product {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
    height: 100%;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    height: 2.6rem !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 1.5rem 0 1rem !important;
    width: 100% !important;
}

.related.products ul.products li.product .price {
    margin-top: auto !important;
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
    display: block !important;
    height: 3rem !important;
    line-height: 3rem !important;
}

.related.products ul.products li.product .price .woocommerce-Price-amount,
.related.products ul.products li.product .price bdi,
.related.products ul.products li.product .price .woocommerce-Price-currencySymbol {
    display: inline !important;
}

.related.products ul.products li.product .button {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    font-size: 0.75rem !important;
}

@media (max-width: 900px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================================= */
/* Reassurance Section (Global) */
/* ================================= */

.reassurance-section {
    padding: 5rem 0;
    background: #fff;
    text-align: center;
    margin-top: 30px;
}

.reassurance-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.reassurance-item {
    flex: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reassurance-icon {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reassurance-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #000;
    text-transform: none;
    line-height: 1.2;
}

.reassurance-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 250px;
}

@media (max-width: 900px) {
    .reassurance-inner {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem 1rem !important;
    }

    .reassurance-item {
        flex: none !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ================================= */
/* Footer */
/* ================================= */

.site-footer {
    background: #000000;
    color: #ffffff;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #111;
}

.site-footer a {
    color: #ffffff;
}

.site-footer a:hover {
    color: #cccccc;
}

.site-footer h4 {
    color: #ffffff;
}

.site-footer p {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333;
}

.footer-columns {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    flex: 1;
    width: auto;
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 2.2rem;
    }

    .footer-col {
        flex: 0 0 100%;
        width: 100%;
    }
}

.footer-col h4,
.footer-col .widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: #ffffff;
    font-size: 0.85rem;
}

.footer-col ul a:hover {
    color: #cccccc;
}

.footer-col p {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.6;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    margin-right: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #000000;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer__payment {
    margin-bottom: 1.5rem;
}

.list-payment {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-payment__item {
    display: flex;
    align-items: center;
}

.list-payment__item svg {
    width: 38px;
    height: 24px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #999999;
    margin: 0;
}

/* ================================= */
/* Search Modal & Autocomplete */
/* ================================= */

.dt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: dt-fade-in 0.3s ease;
}

.dt-modal-content {
    background: #fff;
    width: 100%;
    max-width: 760px;
    border-radius: 0;
    padding: 3rem 2.6rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: dt-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

@keyframes dt-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dt-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--dt-text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--dt-accent);
}

.modal-title {
    text-align: center;
    font-size: 1.12rem;
    margin-bottom: 1.15rem;
    color: var(--dt-primary);
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 600;
}

.search-form-wrap form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    border: none;
    border-bottom: 2px solid #000;
    border-radius: 0;
    padding: 0.95rem 3rem 0.95rem 0;
    font-size: 1.08rem;
    font-weight: 400;
    font-family: var(--dt-font);
    transition: border-color 0.3s;
    background: transparent;
}

.search-field:focus {
    outline: none;
    border-color: #000;
}

.search-submit {
    position: absolute;
    right: 0;
    background: none !important;
    border: none;
    color: #000;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
}

/* AJAX Results Grid */
.search-results-container {
    margin-top: 1.1rem;
    max-height: 360px;
    overflow-y: auto;
}

.ajax-search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ajax-search-results li {
    border-bottom: 1px solid var(--dt-border);
}

.ajax-search-results li:last-child {
    border-bottom: none;
}

.ajax-search-results a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: var(--dt-radius);
}

.ajax-search-results a:hover {
    background: #f8f8f8;
}

.result-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--dt-radius);
    background: #f8f8f8;
}

.result-title {
    display: block;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--dt-primary);
    margin-bottom: 0.1rem;
    line-height: 1.3;
}

.result-price {
    font-size: 0.82rem;
    color: var(--dt-primary);
    font-weight: 600;
}

.view-all-results {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--dt-border);
}

.view-all-results a {
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.75rem;
    text-decoration: none;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .dt-modal-content {
        max-width: 100%;
        padding: 1.6rem 1.15rem;
    }

    .modal-title {
        font-size: 0.98rem;
        letter-spacing: 0.8px;
        margin-bottom: 0.8rem;
    }

    .modal-subtitle {
        font-size: 0.84rem;
        margin-bottom: 1.2rem;
    }

    .search-field {
        font-size: 0.96rem;
        padding: 0.8rem 2.4rem 0.8rem 0;
    }

    .search-submit {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.no-results {
    text-align: center;
    color: var(--dt-text-light);
    padding: 2rem 0;
}

/* Custom Scrollbar */
.search-results-container::-webkit-scrollbar {
    width: 6px;
}

.search-results-container::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: var(--dt-border);
    border-radius: 3px;
}

/* ================================= */
/* FAQ Section */
/* ================================= */

.faq-section {
    padding: 8rem 0;
    background: #000;
    color: #fff;
    margin: 4rem -1.5rem;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 2rem 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #ccc;
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 2rem;
}

.faq-answer p {
    color: #aaa;
    line-height: 1.8;
    margin: 0;
}

/* ================================= */
/* Shop Sidebar Layout */
/* ================================= */

.shop-layout {
    display: flex;
    gap: 4rem;
    margin: 4rem 0;
}

.shop-sidebar {
    flex: 0 0 22%;
    max-width: 22%;
}

.shop-content {
    flex: 1;
}

.shop-sidebar .widget {
    margin-bottom: 3rem;
}

.shop-sidebar .widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #000;
    color: #000;
}

/* Category List Styling */
.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar ul li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.shop-sidebar ul li a {
    color: #666;
    transition: color 0.2s;
}

.shop-sidebar ul li a:hover {
    color: #000;
    padding-left: 5px;
}

/* WooCommerce Price Filter UI */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #eee;
    height: 3px;
    border: none;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: #000;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #000;
    border: none;
    width: 12px;
    height: 12px;
    top: -5px;
    border-radius: 50%;
    cursor: pointer;
}

.widget_price_filter .price_slider_amount .button {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.7rem !important;
    margin-top: 1rem !important;
}

.widget_price_filter .price_label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

/* Responsive Shop */
.filter-toggle {
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    padding: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    border: none;
    margin-bottom: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 991px) {
    .filter-toggle {
        display: flex;
    }

    .shop-layout {
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        padding: 3rem 2rem;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .close-sidebar {
        background: none;
        border: none;
        color: #000;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 2rem;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .shop-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }

    .shop-sidebar-overlay.active {
        display: block;
    }

    .shop-content {
        max-width: 100%;
        flex: 1;
    }
}

/* Overriding products grid when sidebar is present */
.shop-content .woocommerce .products {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1200px) {
    .shop-content .woocommerce .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
