/*
Theme Name: Nous Deux Fragrances
Theme URI: https://example.com/nous-deux-fragrances
Author: Nous Deux
Author URI: https://example.com
Description: A premium fragrance and home-scents ecommerce theme converted from the Wix "Nous Deux Fragrances" demo. Fully compatible with Elementor and WooCommerce. Ships with a one-click demo importer.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nousdeux
Tags: e-commerce, elementor, woocommerce, fragrance, one-column, custom-menu, sticky-post
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    --nd-ink:          #2b2a26;   /* headings / primary text            */
    --nd-ink-soft:     #403c37;   /* body text                          */
    --nd-muted:        #84796b;   /* secondary / captions               */
    --nd-cream:        #f6f2ea;   /* section background                 */
    --nd-ivory:        #fbf9f4;   /* page background                    */
    --nd-accent:       #b98a5e;   /* caramel accent                     */
    --nd-accent-soft:  #d8c3a5;
    --nd-dark:         #211f1b;   /* footers / dark bands               */
    --nd-dark-soft:    #2e2a24;
    --nd-heading-font: 'Playfair Display', 'Georgia', serif;
    --nd-body-font:    'Mulish', 'Helvetica Neue', Arial, sans-serif;
    --nd-radius:       3px;
    --nd-max-width:    1200px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--nd-ivory);
    color: var(--nd-ink-soft);
    font-family: var(--nd-body-font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nd-heading-font);
    color: var(--nd-ink);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.375rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

a {
    color: var(--nd-accent);
    text-decoration: none;
    transition: color .25s ease;
}
a:hover { color: var(--nd-ink); }

img { max-width: 100%; height: auto; }

::selection { background: var(--nd-accent); color: #fff; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); }

/* ==========================================================================
   3. ANNOUNCEMENT BAR
   ========================================================================== */
.nd-announcement {
    background: var(--nd-dark);
    color: #f4efe6;
    font-size: 12.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 16px;
    position: relative;
    z-index: 20;
}
.nd-announcement strong { font-weight: 600; }

/* ==========================================================================
   4. SITE HEADER & NAVIGATION
   ========================================================================== */
.nd-header-wrap {
    position: relative;
    z-index: 30;
    background: var(--nd-ivory);
    border-bottom: 1px solid rgba(43, 42, 38, .12);
}
.nd-header {
    max-width: var(--nd-max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.nd-header .nd-brand { display: flex; align-items: center; gap: 12px; }
.nd-header .nd-brand .nd-logo { width: 38px; height: 38px; object-fit: contain; }
.nd-header .nd-brand .nd-brand-name {
    font-family: var(--nd-heading-font);
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: var(--nd-ink);
    white-space: nowrap;
}
.nd-header .nd-brand a:hover .nd-brand-name { color: var(--nd-accent); }

.nd-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.nd-main-nav ul li {
    position: relative;
    font-size: 13.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nd-main-nav ul li a {
    display: block;
    padding: 10px 14px;
    color: var(--nd-ink-soft);
    position: relative;
}
.nd-main-nav ul li a:after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 6px;
    height: 1px;
    background: var(--nd-accent);
    opacity: 0;
    transition: opacity .3s ease;
}
.nd-main-nav ul li a:hover:after { opacity: 1; }
.nd-main-nav ul li a:hover { color: var(--nd-accent); }
.nd-main-nav ul li.current-menu-item > a,
.nd-main-nav ul li.current_page_item > a  { color: var(--nd-accent); }
.nd-header-actions { display: flex; gap: 10px; align-items: center; }
.nd-header-actions a.nd-action {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nd-ink-soft);
    padding: 8px 0;
}
.nd-header-actions a.nd-action:hover { color: var(--nd-accent); }
.nd-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    font-size: 10.5px;
    background: var(--nd-accent);
    color: #fff;
    border-radius: 50%;
    margin-left: 4px;
}

/* Mobile toggle */
.nd-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--nd-ink);
    color: var(--nd-ink);
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: var(--nd-radius);
    cursor: pointer;
}

@media (max-width: 991px) {
    .nd-header { grid-template-columns: auto 1fr auto; }
    .nd-main-nav { display: none; }
    .nd-menu-toggle { display: inline-block; }
    .nd-main-nav.open { display: block; }
    .nd-main-nav ul { flex-direction: column; }
}

/* ==========================================================================
   5. WOOCOMMERCE PRODUCT GRID (used by [products] shortcode in Elementor)
   ========================================================================== */
ul.products {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, 1fr);
}
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }

li.product {
    background: var(--nd-ivory);
    border: 1px solid rgba(43, 42, 38, .08);
    border-radius: var(--nd-radius);
    text-align: center;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
li.product:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(43,42,38,.12); }
li.product .woocommerce-loop-product__link { display: block; }
li.product img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .6s ease;
}
li.product:hover img { transform: scale(1.04); }
li.product .nd-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--nd-dark);
    color: #f6f2ea;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 4px 8px;
}
li.product .woocommerce-loop-product__title {
    font-family: var(--nd-heading-font);
    font-size: 1.06rem;
    color: var(--nd-ink);
    margin: 14px 0 4px;
    padding: 0;
}
li.product .product-cat {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nd-muted);
}
li.product .price {
    font-family: var(--nd-body-font);
    font-size: 1rem;
    color: var(--nd-ink);
    font-weight: 600;
}
li.product .price .woocommerce-Price-amount { color: var(--nd-ink); }
li.product .button {
    display: inline-block;
    background: var(--nd-dark);
    color: #fff;
    border: none;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: var(--nd-radius);
    cursor: pointer;
    transition: background .3s ease;
}
li.product .button:hover { background: var(--nd-accent); }
li.product .button.loading { opacity: .6; }
li.product .added_to_cart { display: none; }

@media (max-width: 991px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { ul.products { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. CONTENT AREA / PAGES
   ========================================================================== */
.site-content { min-height: 40vh; }
/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--nd-dark);
    color: #e9e4db;
    padding: 72px 24px 90px;
}
.nd-footer-inner {
    max-width: var(--nd-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.nd-footer-col h4 {
    font-family: var(--nd-heading-font);
    font-size: 1.05rem;
    color: #f2ede4;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.nd-footer-col ul { list-style: none; margin: 0; padding: 0; }
.nd-footer-col ul li { margin-bottom: 8px; }
.nd-footer-col ul li a {
    color: #cfc8bb;
    font-size: 13.5px;
    letter-spacing: .06em;
    transition: color .25s ease;
}
.nd-footer-col ul li a:hover { color: #fff; }
.nd-footer-col p { color: #cfc8bb; font-size: 13.5px; line-height: 1.8; }
.nd-footer-social a {
    display: inline-block;
    width: 34px; height: 34px;
    line-height: 32px;
    text-align: center;
    font-size: 13px;
    color: #cfc8bb;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    margin: 0 4px;
    transition: background .3s ease, color .3s ease;
}
.nd-footer-social a:hover { background: var(--nd-accent); color: #fff; border-color: var(--nd-accent); }
.nd-footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-top: 40px;
}
.nd-footer-payments img { height: 30px; width: auto; opacity: .92; }
.nd-footer-payments .nd-pay-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9f998c;
}
.nd-copyright {
    text-align: center;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: #9f998c;
    padding: 26px 0 34px;
}
@media (max-width: 991px) { .nd-footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .nd-footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   8. ENTRANCE ANIMATION HELPERS (used by Elementor + theme)
   ========================================================================== */
@keyframes ndFadeUp {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   9. ELEMENTOR POLISH
   ========================================================================== */
.elementor-widget-button .elementor-button {
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: var(--nd-radius);
}

/* Newsletter form used inside Elementor HTML widget */
.nd-newsletter-form { display: flex; gap: 0; max-width: 560px; margin: 0 auto; }
.nd-newsletter-form input[type=email] {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: #fff;
    font-family: var(--nd-body-font);
    border-radius: var(--nd-radius);
}
.nd-newsletter-form button {
    padding: 14px 22px;
    background: var(--nd-accent);
    color: #fff;
    border: none;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--nd-radius);
}
.nd-newsletter-note {
    font-size: 11.5px;
    color: rgba(255,255,255,.6);
    text-align: center;
    margin-top: 14px;
}
.nd-newsletter-success { color: #cfe6c9; text-align: center; margin-top: 12px; }

/* Instagram grid inside HTML widget */
.nd-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}
.nd-instagram-grid a { display: block; aspect-ratio: 1; overflow: hidden; }
.nd-instagram-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nd-instagram-grid a:hover img { transform: scale(1.06); }
@media (max-width: 767px) { .nd-instagram-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   10. MISC / WOOCOMMERCE PAGES
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb { font-size: 12.5px; letter-spacing: .06em; color: var(--nd-muted); }
.single-product .entry-title { font-family: var(--nd-heading-font); }
.woocommerce-Tabs-panel p { line-height: 1.8; }
.entry-content > p { font-size: 16px; }