/*
Theme Name: Lohary Luxury
Theme URI: https://example.com/lohary-luxury
Author: Senior WP Developer
Author URI: https://example.com
Description: A modern, tech-driven, minimalist and clinical-luxury WordPress theme crafted for high-end hygiene & body care brands. Features a pure CSS/JS hero slider, a custom "Product" post type, WooCommerce style overrides, and refined micro-interactions.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lohary
Tags: luxury, minimalist, custom-post-type, e-commerce, woocommerce, responsive
*/

/* =============================================================
   1. DESIGN TOKENS / CSS VARIABLES
   ============================================================= */
:root {
    /* Core palette */
    --color-midnight: #0A192F;   /* Deep Navy - backgrounds / text */
    --color-rosegold: #C58C73;   /* Rose Gold / Bronze - accents */
    --color-pearl: #F8F9FA;      /* Pearl White - body background */

    /* Extended tonal ramp derived from the core palette */
    --color-midnight-80: rgba(10, 25, 47, 0.80);
    --color-midnight-60: rgba(10, 25, 47, 0.60);
    --color-midnight-10: rgba(10, 25, 47, 0.08);
    --color-rosegold-light: #D8A992;
    --color-rosegold-dark: #A9725B;
    --color-line: rgba(10, 25, 47, 0.10);
    --color-muted: #6B7688;
    --color-white: #FFFFFF;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Rhythm & shape */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(10, 25, 47, 0.08);
    --shadow-hover: 0 22px 50px rgba(10, 25, 47, 0.18);
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.25s ease;

    /* Layout */
    --container-max: 1240px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --header-height: 84px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-midnight);
    background-color: var(--color-pearl);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-rosegold-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-rosegold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--color-midnight);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.2em; }

/* Accessibility helper */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* =============================================================
   3. LAYOUT PRIMITIVES
   ============================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(4rem, 9vw, 8rem);
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-rosegold);
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* =============================================================
   4. BUTTONS  (expensive micro-interactions)
   ============================================================= */
.btn {
    --btn-bg: var(--color-rosegold);
    --btn-fg: var(--color-white);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.4rem;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                background var(--transition-fast),
                color var(--transition-fast);
    z-index: 0;
}

/* sliding sheen fill on hover */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-rosegold-dark);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--transition-base);
    z-index: -1;
}

.btn:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(197, 140, 115, 0.4);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.btn:active { transform: translateY(-1px); }

/* Outline / ghost variant */
.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--color-midnight);
    border-color: var(--color-midnight);
}

.btn--ghost::after { background: var(--color-midnight); }

.btn--ghost:hover { color: var(--color-white); }

/* Light variant for dark backgrounds */
.btn--light {
    --btn-bg: transparent;
    --btn-fg: var(--color-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--light::after { background: var(--color-rosegold); }

.btn--light:hover { border-color: var(--color-rosegold); }

/* =============================================================
   5. HEADER / NAVIGATION
   ============================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background var(--transition-base),
                box-shadow var(--transition-base),
                height var(--transition-base);
}

/* transparent over hero, solid after scroll */
.site-header.is-transparent {
    background: transparent;
}

.site-header.is-scrolled {
    background: var(--color-midnight);
    box-shadow: 0 6px 24px rgba(10, 25, 47, 0.25);
    height: 70px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-brand {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-white);
    line-height: 1;
}

.site-brand a { color: inherit; }
.site-brand a:hover { color: var(--color-rosegold); }
.site-brand .brand-accent { color: var(--color-rosegold); }

/* Primary nav */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2.6rem);
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    padding-block: 0.4rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--color-rosegold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--transition-base);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--color-rosegold);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cart-link {
    position: relative;
    color: var(--color-white);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cart-link .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; height: 20px;
    margin-left: 4px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-midnight);
    background: var(--color-rosegold);
    border-radius: 50px;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 26px; height: 2px;
    margin: 0 auto;
    background: var(--color-white);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   6. HERO SLIDER (pure CSS/JS)
   ============================================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--color-midnight);
}

.hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease, visibility 1.2s ease;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--color-midnight) 0%,
        var(--color-midnight-80) 45%,
        var(--color-midnight-60) 100%
    );
    z-index: 1;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    color: var(--color-white);
    padding-top: var(--header-height);
}

.hero-slide__content .eyebrow { color: var(--color-rosegold-light); }

.hero-slide__title {
    color: var(--color-white);
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 0.5em;
}

.hero-slide__text {
    color: rgba(248, 249, 250, 0.82);
    font-size: 1.15rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* Staggered reveal of the active slide's content */
.hero-slide__content > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.is-active .hero-slide__content > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.is-active .hero-slide__content > *:nth-child(1) { transition-delay: 0.35s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(2) { transition-delay: 0.5s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(3) { transition-delay: 0.65s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(4) { transition-delay: 0.8s; }

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.08);
    border: 1px solid rgba(248, 249, 250, 0.25);
    color: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.hero-arrow:hover {
    background: var(--color-rosegold);
    border-color: var(--color-rosegold);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow--prev { left: clamp(1rem, 3vw, 2.5rem); }
.hero-arrow--next { right: clamp(1rem, 3vw, 2.5rem); }

/* Dots */
.hero-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(1.5rem, 4vh, 3rem);
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.hero-dot {
    width: 40px; height: 4px;
    padding: 0;
    background: rgba(248, 249, 250, 0.3);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: background var(--transition-fast);
}

.hero-dot.is-active { background: rgba(248, 249, 250, 0.35); }

.hero-dot.is-active::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: var(--color-rosegold);
    transform-origin: left center;
    animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* =============================================================
   7. FEATURE / TRUST STRIP
   ============================================================= */
.feature-strip {
    background: var(--color-midnight);
    color: var(--color-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.feature-item {
    padding: 1rem;
}

.feature-item__icon {
    width: 56px; height: 56px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-rosegold);
    border: 1px solid rgba(197, 140, 115, 0.4);
    border-radius: 50%;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.feature-item:hover .feature-item__icon {
    background: var(--color-rosegold);
    color: var(--color-midnight);
    transform: translateY(-4px);
}

.feature-item h4 {
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.feature-item p {
    color: rgba(248, 249, 250, 0.6);
    font-size: 0.92rem;
    margin: 0;
}

/* =============================================================
   8. PRODUCT GRID & CARDS
   ============================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 140, 115, 0.5);
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg, #eef1f5, #dfe4ea);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__media img {
    transform: scale(1.06);
}

.product-card__badge {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-rosegold);
    padding: 0.4em 0.9em;
    border-radius: 50px;
}

/* quick-add reveal overlay */
.product-card__quick {
    position: absolute;
    left: 1rem; right: 1rem;
    bottom: 1rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.product-card:hover .product-card__quick {
    opacity: 1;
    transform: translateY(0);
}

.product-card__quick .btn {
    width: 100%;
    padding-block: 0.85rem;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem;
    flex-grow: 1;
}

.product-card__cat {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-rosegold);
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin: 0;
}

.product-card__title a { color: var(--color-midnight); }
.product-card__title a:hover { color: var(--color-rosegold-dark); }

.product-card__excerpt {
    font-size: 0.92rem;
    color: var(--color-muted);
    margin: 0.3rem 0 0;
}

.product-card__price {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-midnight);
}

.product-card__price del {
    color: var(--color-muted);
    font-weight: 400;
    font-size: 0.95rem;
    margin-right: 0.4em;
}

/* =============================================================
   9. SPLIT / STORY SECTION
   ============================================================= */
.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.split--reverse .split__media { order: 2; }

.split__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.split__media img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.split__media:hover img { transform: scale(1.05); }

.split__content h2 { margin-bottom: 0.6em; }
.split__content p { color: var(--color-muted); }

/* =============================================================
   10. NEWSLETTER / CTA BANNER
   ============================================================= */
.cta-banner {
    position: relative;
    background: var(--color-midnight);
    color: var(--color-white);
    text-align: center;
    border-radius: var(--radius-lg);
    padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(197,140,115,0.35), transparent 70%);
    z-index: 0;
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(248, 249, 250, 0.7); max-width: 520px; margin-inline: auto; }

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1 1 240px;
    padding: 1rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-white);
    background: rgba(248, 249, 250, 0.08);
    border: 1px solid rgba(248, 249, 250, 0.25);
    border-radius: 50px;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder { color: rgba(248, 249, 250, 0.5); }

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-rosegold);
    background: rgba(248, 249, 250, 0.12);
}

/* =============================================================
   11. SINGLE PRODUCT
   ============================================================= */
.single-product-wrap {
    padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 4rem));
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.breadcrumbs {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-rosegold); }
.breadcrumbs .sep { margin-inline: 0.5em; color: var(--color-rosegold); }

.product-single {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: flex-start;
}

.product-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, #eef1f5, #dfe4ea);
    box-shadow: var(--shadow-soft);
}

.product-gallery__main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.product-summary .product-cat {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-rosegold);
    display: block;
    margin-bottom: 0.8rem;
}

.product-summary h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.4em;
}

.product-summary .product-price {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 1.4rem;
}

.product-summary .product-price del {
    color: var(--color-muted);
    font-weight: 400;
    font-size: 1.2rem;
    margin-right: 0.5em;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-rosegold);
    margin-bottom: 1.4rem;
}

.product-rating .count {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.product-summary .product-desc {
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.product-purchase {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-line);
    border-radius: 50px;
    overflow: hidden;
}

.qty-selector button {
    width: 46px; height: 52px;
    font-size: 1.2rem;
    background: transparent;
    border: 0;
    color: var(--color-midnight);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-selector button:hover { background: var(--color-rosegold); color: var(--color-white); }

.qty-selector input {
    width: 48px; height: 52px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border: 0;
    background: transparent;
    color: var(--color-midnight);
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Product meta accordion / detail list */
.product-meta {
    border-top: 1px solid var(--color-line);
    padding-top: 1.6rem;
}

.product-meta__row {
    display: flex;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
}

.product-meta__row strong {
    min-width: 120px;
    color: var(--color-midnight);
    font-weight: 600;
}

.product-meta__row span { color: var(--color-muted); }

/* Detail tabs */
.product-details {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.detail-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.detail-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.detail-block p, .detail-block li { color: var(--color-muted); font-size: 0.95rem; }

/* =============================================================
   12. FOOTER
   ============================================================= */
.site-footer {
    background: var(--color-midnight);
    color: rgba(248, 249, 250, 0.7);
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-brand .brand-accent { color: var(--color-rosegold); }

.footer-col p { font-size: 0.92rem; }

.footer-col h5 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col a {
    color: rgba(248, 249, 250, 0.7);
    font-size: 0.92rem;
}

.footer-col a:hover { color: var(--color-rosegold); padding-left: 4px; }

.footer-col a { transition: color var(--transition-fast), padding-left var(--transition-fast); }

.social-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-row a {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border: 1px solid rgba(248, 249, 250, 0.2);
    border-radius: 50%;
    transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.social-row a:hover {
    background: var(--color-rosegold);
    border-color: var(--color-rosegold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    padding-block: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: rgba(248, 249, 250, 0.5);
}

/* =============================================================
   13. SCROLL REVEAL UTILITY
   ============================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* =============================================================
   13b. PAGINATION
   ============================================================= */
.lohary-pagination .nav-links,
.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 0 !important;
}

.lohary-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-midnight);
    background: var(--color-white);
    border: 1px solid var(--color-line) !important;
    border-radius: 50px;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.lohary-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers:hover {
    border-color: var(--color-rosegold) !important;
    color: var(--color-rosegold-dark);
    transform: translateY(-2px);
}

.lohary-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
    background: var(--color-rosegold);
    border-color: var(--color-rosegold) !important;
    color: var(--color-white);
}

/* =============================================================
   14. WOOCOMMERCE OVERRIDES  (luxury restyle)
   ============================================================= */
.woocommerce-page .woocommerce,
.woocommerce {
    font-family: var(--font-sans);
    color: var(--color-midnight);
}

/* WooCommerce product loop -> our card look */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 140, 115, 0.5);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce ul.products li.product:hover a img { transform: scale(1.06); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-midnight);
    padding: 1.2rem 1.5rem 0.2rem;
}

.woocommerce ul.products li.product .price {
    display: block;
    padding: 0 1.5rem;
    color: var(--color-midnight);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.15rem;
}

.woocommerce ul.products li.product .price del { color: var(--color-muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--color-rosegold-dark); }

.woocommerce ul.products li.product .onsale {
    background: var(--color-rosegold);
    color: var(--color-white);
    border-radius: 50px;
    min-height: auto;
    min-width: auto;
    padding: 0.4em 0.9em;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    top: 1rem; left: 1rem;
    margin: 0;
}

/* Buttons across WooCommerce -> our .btn styling */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce ul.products li.product .button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-rosegold);
    border: 1px solid var(--color-rosegold);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    margin: 1.2rem 1.5rem 1.5rem;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-fast);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce ul.products li.product .button:hover {
    background: var(--color-rosegold-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(197, 140, 115, 0.4);
}

/* Single product page */
.woocommerce div.product .product_title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-midnight);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--color-midnight);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.8rem;
}

.woocommerce div.product p.price ins { color: var(--color-rosegold-dark); text-decoration: none; }

.woocommerce .star-rating span { color: var(--color-rosegold); }

.woocommerce div.product form.cart div.quantity {
    border: 1px solid var(--color-line);
    border-radius: 50px;
    overflow: hidden;
}

.woocommerce div.product form.cart .quantity input.qty {
    border: 0;
    background: transparent;
    font-weight: 600;
    color: var(--color-midnight);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--color-rosegold);
    background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-midnight);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom-color: var(--color-line);
}

/* Messages / notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--color-rosegold);
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.woocommerce-message::before,
.woocommerce-info::before { color: var(--color-rosegold); }

/* =============================================================
   15. RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .product-single { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }

    /* Mobile nav */
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(80vw, 340px);
        height: 100vh;
        background: var(--color-midnight);
        padding: calc(var(--header-height) + 1rem) 2rem 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: -20px 0 60px rgba(0,0,0,0.4);
        z-index: 999;
    }

    .main-nav.is-open { transform: translateX(0); }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }

    .main-nav a { font-size: 1rem; }

    .site-header.is-transparent { background: var(--color-midnight); }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-arrow { display: none; }
    .product-purchase { flex-direction: column; align-items: stretch; }
    .product-purchase .btn { width: 100%; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}