/* ================================================================
   MODERNSHOP — LUXURY DESIGN SYSTEM
   style.css | v2.0
   ================================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    /* Brand Colors */
    --cream:         #FAF8F4;
    --charcoal:      #1A1A1A;
    --charcoal-80:   rgba(26,26,26,0.8);
    --warm-gray:     #6B6459;
    --border-color:  rgba(26,26,26,0.09);

    /* Accent / Gold */
    --accent:        #C8A96E;
    --accent-light:  #EDD9A3;
    --accent-dark:   #9E7A3E;
    --accent-bg:     rgba(200,169,110,0.08);

    /* Semantic */
    --success:       #3D8B5F;
    --danger:        #C0392B;
    --info:          #2980B9;
    --warning:       #D4890A;

    /* Typography */
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'DM Sans', -apple-system, sans-serif;

    /* Shadows */
    --shadow-xs:     0 1px 4px rgba(26,26,26,0.06);
    --shadow-sm:     0 2px 12px rgba(26,26,26,0.08);
    --shadow-md:     0 6px 28px rgba(26,26,26,0.11);
    --shadow-lg:     0 16px 48px rgba(26,26,26,0.15);
    --shadow-xl:     0 28px 72px rgba(26,26,26,0.20);
    --shadow-gold:   0 8px 32px rgba(200,169,110,0.35);

    /* Radius */
    --r-xs:   4px;
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   16px;
    --r-xl:   24px;
    --r-full: 9999px;

    /* Transitions */
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:       0.15s;
    --t-base:       0.28s;
    --t-slow:       0.45s;

    /* Layout */
    --max-w: 1280px;
    --px:    2.5rem;
}

/* ===== BASE RESET ===== */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    background: rgba(250,248,244,0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--t-base) var(--ease);
    padding: 0.9rem 0;
}

.navbar.scrolled {
    background: rgba(250,248,244,0.97) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
    color: var(--charcoal) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity var(--t-fast) var(--ease);
}

.navbar-brand i {
    color: var(--accent);
    font-size: 1.3rem;
}

.navbar-brand:hover { opacity: 0.8; }

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--warm-gray) !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--r-full);
    transition: all var(--t-fast) var(--ease);
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--charcoal) !important;
    background: rgba(26,26,26,0.06);
}

/* Search */
.search-container .form-control {
    border-radius: var(--r-full);
    border-color: var(--border-color);
    background: rgba(26,26,26,0.04);
    font-size: 0.875rem;
    transition: all var(--t-base) var(--ease);
}

.search-container .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
    background: white;
}

.search-container .input-group-text {
    border-radius: var(--r-full) 0 0 var(--r-full);
    border-color: var(--border-color);
    background: rgba(26,26,26,0.04);
}

/* Search Results Dropdown */
#searchResults {
    border-radius: var(--r-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--charcoal);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--t-fast) var(--ease);
    font-size: 0.875rem;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--cream); }

.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

/* Cart icon */
.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    background: rgba(26,26,26,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    transition: all var(--t-fast) var(--ease);
    cursor: pointer;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--charcoal);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cream);
    animation: popIn 0.35s var(--ease-spring);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--charcoal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--t-fast) var(--ease);
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: var(--r-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: var(--warm-gray);
    transition: all var(--t-fast) var(--ease);
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.dropdown-item i { width: 18px; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,169,110,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 15% 85%, rgba(200,169,110,0.07) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-text {
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(110px, 17vw, 260px);
    font-weight: 900;
    color: rgba(255,255,255,0.028);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 10rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media(max-width:1200px){ .hero-inner { padding: 0 6rem; } }
@media(max-width:900px) { .hero-inner { padding: 0 3rem; } }
@media(max-width:600px) { .hero-inner { padding: 0 1.5rem; } }

.hero-content { padding: 6rem 0; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    animation: fadeInUp 0.7s var(--ease) both;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    font-weight: 900;
    color: white;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s 0.1s var(--ease) both;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    animation: fadeInUp 0.7s 0.2s var(--ease) both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s 0.3s var(--ease) both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: var(--charcoal);
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all var(--t-base) var(--ease);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-hero-primary:hover {
    background: white;
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    border: 1.5px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.65);
    border-radius: var(--r-full);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all var(--t-base) var(--ease);
    font-family: var(--font-body);
}

.btn-hero-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Stats Card */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4rem 0;
    animation: fadeInUp 0.8s 0.25s var(--ease) both;
}

.hero-stats-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: blur(24px);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 320px;
    width: 100%;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.38);
    font-weight: 400;
    letter-spacing: 0.06em;
}

/* ================================================================
   MARQUEE STRIP
   ================================================================ */
.marquee-strip {
    background: var(--charcoal);
    padding: 0.8rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
}

.marquee-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--charcoal), transparent);
}

.marquee-strip::after {
    right: 0;
    background: linear-gradient(-90deg, var(--charcoal), transparent);
}

.marquee-inner {
    display: flex;
    gap: 3rem;
    animation: marquee 24s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: var(--r-full);
    background: var(--accent);
    flex-shrink: 0;
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.main-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px) 6rem;
    width: 100%;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
}

.section-label { display: flex; flex-direction: column; gap: 0.35rem; }

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title-main {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    transition: all var(--t-fast) var(--ease);
    white-space: nowrap;
}

.section-link:hover { color: var(--charcoal); }
.section-link i { transition: transform var(--t-fast) var(--ease); }
.section-link:hover i { transform: translateX(4px); }

/* ================================================================
   CATEGORIES
   ================================================================ */
.categories-section { margin: 4rem 0 3rem; }

.categories-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.35rem;
    border-radius: var(--r-full);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--t-base) var(--ease);
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--warm-gray);
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.products-section { margin: 0 0 5rem; }

.product-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.product-card-new {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-base) var(--ease);
    position: relative;
    cursor: pointer;
}

.product-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

/* Card Image */
.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--cream);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease);
}

.product-card-new:hover .product-card-img img { transform: scale(1.07); }

/* Badges */
.product-badge-new {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge-new.sale { background: #E53935; color: white; }
.product-badge-new.new  { background: var(--charcoal); color: white; }
.product-badge-new.hot  { background: var(--accent); color: var(--charcoal); }

/* Hover Overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
    z-index: 3;
}

.product-card-new:hover .product-overlay { opacity: 1; }

.overlay-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 0.9rem;
    transition: all var(--t-base) var(--ease);
    transform: translateY(12px);
    box-shadow: var(--shadow-sm);
}

.product-card-new:hover .overlay-btn { transform: translateY(0); }
.product-card-new:hover .overlay-btn:nth-child(2) { transition-delay: 0.05s; }

.overlay-btn:hover { background: var(--accent); color: var(--charcoal); }

/* Card Body */
.product-card-body { padding: 1.2rem 1.25rem 1.4rem; }

.product-cat-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.4rem;
}

.product-name-new {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.85rem;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color var(--t-fast) var(--ease);
}

.product-name-new a {
    color: inherit;
    text-decoration: none;
}

.product-card-new:hover .product-name-new { color: var(--charcoal); }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-price-new {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1;
}

/* Add to Cart Button */
.add-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.52rem 1.05rem;
    background: var(--charcoal);
    color: white;
    border: none;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-base) var(--ease);
    font-family: var(--font-body);
    white-space: nowrap;
}

.add-cart-btn:hover {
    background: var(--accent);
    color: var(--charcoal);
    transform: scale(1.04);
    box-shadow: var(--shadow-gold);
}

.add-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   VIEW ALL BUTTON
   ================================================================ */
.view-all-wrap { text-align: center; margin-top: 3rem; }

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2.5rem;
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
    background: transparent;
    border-radius: var(--r-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-base) var(--ease);
    letter-spacing: 0.04em;
    font-family: var(--font-body);
    cursor: pointer;
}

.btn-view-all:hover {
    background: var(--charcoal);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-view-all i { transition: transform var(--t-fast) var(--ease); }
.btn-view-all:hover i { transform: translateX(5px); }

/* ================================================================
   GENERAL BUTTON STYLES (Bootstrap override)
   ================================================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--r-full);
    transition: all var(--t-base) var(--ease);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-success:hover {
    background: #2E6B47;
    border-color: #2E6B47;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-secondary {
    background: rgba(26,26,26,0.08);
    border-color: transparent;
    color: var(--charcoal);
}

.btn-secondary:hover {
    background: rgba(26,26,26,0.14);
    border-color: transparent;
    color: var(--charcoal);
}

.btn-outline-primary {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.btn-outline-primary:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: white;
}

/* ================================================================
   CART & TABLE STYLES
   ================================================================ */
.table {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.table thead th {
    background: var(--charcoal);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    border: none;
    padding: 1rem 1.25rem;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: var(--border-color);
    font-size: 0.9rem;
}

.table tbody tr {
    transition: background var(--t-fast) var(--ease);
}

.table tbody tr:hover { background: rgba(200,169,110,0.04); }

/* ================================================================
   CARD (Bootstrap)
   ================================================================ */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card-header {
    background: var(--cream);
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.card-body { padding: 1.5rem; }

/* ================================================================
   FORMS
   ================================================================ */
.form-control, .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--r-md);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--t-fast) var(--ease);
    background: white;
    color: var(--charcoal);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

textarea.form-control { resize: vertical; min-height: 110px; }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    border-radius: var(--r-md);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success { background: rgba(61,139,95,0.1); color: var(--success); }
.alert-danger  { background: rgba(192,57,43,0.1); color: var(--danger); }
.alert-info    { background: rgba(41,128,185,0.1); color: var(--info); }
.alert-warning { background: rgba(212,137,10,0.1); color: var(--warning); }

/* ================================================================
   BADGES
   ================================================================ */
.badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.38em 0.75em;
    border-radius: var(--r-full);
}

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.15rem;
    background: var(--charcoal);
    color: white;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 360px;
    animation: slideInLeft 0.35s var(--ease-spring) both;
    font-size: 0.875rem;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.toast-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    animation: toastProgress var(--toast-duration, 4.5s) linear forwards;
}

.toast-item.success .toast-dot { background: #4CAF50; }
.toast-item.info    .toast-dot { background: #42A5F5; }
.toast-item.error   .toast-dot { background: #EF5350; }
.toast-item.warning .toast-dot { background: #FFA726; }

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}

.toast-text { flex: 1; }
.toast-title-t { font-weight: 600; font-size: 0.85rem; line-height: 1.3; }
.toast-msg-t   { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 0.1rem; }

.toast-x {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    transition: color var(--t-fast) var(--ease);
    flex-shrink: 0;
}

.toast-x:hover { color: white; }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    border-radius: var(--r-xl);
    width: 90%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(22px) scale(0.97);
    transition: transform var(--t-base) var(--ease-spring);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.modal-head h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--border-color);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-gray);
    font-size: 0.85rem;
    transition: all var(--t-fast) var(--ease);
}

.modal-close-btn:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.modal-body-content { padding: 1.75rem; }

/* ================================================================
   LOADING
   ================================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250,248,244,0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: var(--r-full);
    animation: spin 0.75s linear infinite;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: var(--r-full);
    background: var(--charcoal);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 99;
    transition: all var(--t-base) var(--ease);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top-btn:hover {
    background: var(--accent);
    color: var(--charcoal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ================================================================
   REVEAL ON SCROLL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.45);
    position: relative;
    font-size: 0.875rem;
}

footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer h5 {
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

footer a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
    display: inline-block;
}

footer a:hover { color: white; }

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    transition: all var(--t-base) var(--ease);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--charcoal);
    transform: translateY(-3px);
}

/* ================================================================
   LIST GROUP (sidebar nav)
   ================================================================ */
.list-group-item {
    border: none;
    border-radius: var(--r-sm) !important;
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--warm-gray);
    transition: all var(--t-fast) var(--ease);
    padding: 0.7rem 1rem;
}

.list-group-item:hover { background: var(--cream); color: var(--charcoal); }

.list-group-item.active {
    background: var(--charcoal);
    color: white;
    border: none;
}

/* ================================================================
   QUICK VIEW SEARCH RESULT
   ================================================================ */
.search-result-price {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 0.85rem;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%            { transform: translateY(-8px); }
    60%            { transform: translateY(-4px); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    :root { --px: 2rem; }
    .product-grid-new { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .hero-visual { display: none; }
    .hero-content { padding: 5rem 0 3.5rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .product-grid-new { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --px: 1.5rem; }
    .hero-title { font-size: clamp(2.2rem, 7vw, 3rem); }
    .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
    .toast-item { min-width: auto; width: 100%; max-width: 100%; }
    .navbar-collapse {
        background: white;
        border-radius: var(--r-lg);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
    }
}

@media (max-width: 580px) {
    :root { --px: 1.1rem; }
    .product-grid-new { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .product-card-body { padding: 1rem; }
    .product-name-new { font-size: 0.9rem; }
    .product-price-new { font-size: 1rem; }
    .add-cart-btn { padding: 0.45rem 0.75rem; font-size: 0.72rem; }
    .back-to-top-btn { bottom: 1rem; right: 1rem; }
    .hero-cta-group { flex-direction: column; }
    .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .navbar, footer, .back-to-top-btn,
    .toast-container, .product-overlay { display: none !important; }
    body { background: white; }
    .product-card-new { box-shadow: none; border: 1px solid #ddd; }
}

/* ================================================================
   NAVBAR v2 — Custom (header.php v2)
   ================================================================ */
#mainNavbar {
    background: rgba(250,248,244,0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26,26,26,0.07);
    padding: 0;
    height: 68px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
#mainNavbar.scrolled {
    background: rgba(250,248,244,0.98) !important;
    box-shadow: 0 2px 24px rgba(26,26,26,0.09);
}

/* Brand */
.brand-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--charcoal,#1A1A1A);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent,#C8A96E); font-size: 0.9rem; flex-shrink: 0;
}
.brand-text {
    font-family: var(--font-display,'Playfair Display',serif);
    font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em;
    color: var(--charcoal,#1A1A1A);
}
.navbar-brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    text-decoration: none; padding: 0;
}

/* Mobile toggler */
.navbar-toggler-custom {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar-toggler-custom span {
    display: block; height: 2px; width: 100%;
    background: var(--charcoal,#1A1A1A); border-radius: 2px;
    transition: all 0.25s ease; transform-origin: center;
}
.navbar-toggler-custom.open span:nth-child(1){ transform: rotate(45deg) translate(5px,5px); }
.navbar-toggler-custom.open span:nth-child(2){ opacity: 0; }
.navbar-toggler-custom.open span:nth-child(3){ transform: rotate(-45deg) translate(5px,-5px); }

/* Collapse */
.navbar-collapse-custom {
    display: flex; align-items: center; gap: 2rem; flex: 1;
    justify-content: space-between; padding: 0;
}

/* Nav links */
.nav-links-list {
    display: flex; align-items: center; gap: 0.25rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-link-item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.85rem; border-radius: 50px;
    text-decoration: none; font-size: 0.875rem; font-weight: 500;
    color: var(--warm-gray,#6B6459); transition: all 0.2s ease;
}
.nav-link-item i { font-size: 0.8rem; }
.nav-link-item:hover, .nav-link-item.active {
    background: rgba(26,26,26,0.07); color: var(--charcoal,#1A1A1A);
}

/* Right section */
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Search */
.nav-search { position: relative; }
.search-toggle-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(26,26,26,0.06); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--charcoal,#1A1A1A); font-size: 0.9rem;
    transition: all 0.2s ease;
}
.search-toggle-btn:hover { background: rgba(26,26,26,0.12); }
.search-panel {
    position: absolute; top: calc(100% + 0.75rem); right: 0;
    width: 320px; background: white;
    border: 1px solid rgba(26,26,26,0.09);
    border-radius: 16px; box-shadow: 0 8px 32px rgba(26,26,26,0.12);
    display: none; overflow: hidden; z-index: 200;
}
.search-panel.open { display: block; animation: fadeInDrop 0.2s ease; }
@keyframes fadeInDrop { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.search-input-wrap {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1rem; border-bottom: 1px solid rgba(26,26,26,0.07);
}
.search-icon-inner { color: rgba(26,26,26,0.35); font-size: 0.85rem; flex-shrink: 0; }
#searchInput {
    flex: 1; border: none; outline: none; font-size: 0.875rem;
    font-family: inherit; color: var(--charcoal,#1A1A1A); background: transparent;
}
#searchInput::placeholder { color: rgba(26,26,26,0.35); }
.search-clear {
    background: none; border: none; cursor: pointer; padding: 0;
    color: rgba(26,26,26,0.3); font-size: 0.8rem;
    transition: color 0.15s; display: none;
}
.search-clear:hover { color: var(--charcoal,#1A1A1A); }
.search-results-panel { max-height: 360px; overflow-y: auto; }

/* Cart */
.nav-cart {
    position: relative; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(26,26,26,0.06); display: flex; align-items: center;
    justify-content: center; color: var(--charcoal,#1A1A1A); text-decoration: none;
    font-size: 1rem; transition: all 0.2s ease; flex-shrink: 0;
}
.nav-cart:hover { background: var(--charcoal,#1A1A1A); color: white; }
.nav-cart .cart-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--accent,#C8A96E); color: var(--charcoal,#1A1A1A);
    font-size: 0.62rem; font-weight: 800; min-width: 17px; height: 17px;
    border-radius: 50px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--cream,#FAF8F4);
}

/* Profile Dropdown */
.profile-dropdown { position: relative; }
.profile-trigger {
    display: flex; align-items: center; gap: 0.5rem;
    background: none; border: none; cursor: pointer; padding: 0;
}
.profile-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--charcoal,#1A1A1A); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
    transition: all 0.2s ease;
}
.profile-trigger:hover .profile-avatar { background: var(--accent,#C8A96E); color: var(--charcoal,#1A1A1A); }
.profile-info {
    flex-direction: column; align-items: flex-start; gap: 0;
    text-align: left;
}
.profile-name { font-size: 0.8rem; font-weight: 600; color: var(--charcoal,#1A1A1A); line-height: 1.2; }
.profile-role { font-size: 0.68rem; color: var(--warm-gray,#6B6459); }
.profile-caret {
    font-size: 0.65rem; color: var(--warm-gray,#6B6459);
    transition: transform 0.2s ease;
}
.profile-dropdown.open .profile-caret { transform: rotate(180deg); }

/* Profile Panel */
.profile-panel {
    position: absolute; top: calc(100% + 0.75rem); right: 0;
    width: 280px; background: white;
    border: 1px solid rgba(26,26,26,0.08);
    border-radius: 20px; box-shadow: 0 16px 48px rgba(26,26,26,0.15);
    display: none; overflow: hidden; z-index: 200;
}
.profile-panel.open { display: block; animation: fadeInDrop 0.22s ease; }

.profile-panel-header {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
}
.pp-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(200,169,110,0.2); color: var(--accent,#C8A96E);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
    border: 2px solid rgba(200,169,110,0.3);
}
.pp-info { flex: 1; min-width: 0; }
.pp-name {
    font-size: 0.9rem; font-weight: 700; color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-role { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 0.1rem; }

.profile-panel-body { padding: 0.6rem; }

.pp-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 0.85rem; border-radius: 12px;
    text-decoration: none; color: var(--charcoal,#1A1A1A);
    transition: background 0.15s ease; cursor: pointer;
}
.pp-item:hover { background: rgba(26,26,26,0.05); }

.pp-item-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(26,26,26,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--charcoal,#1A1A1A); flex-shrink: 0;
    transition: all 0.2s ease;
}
.pp-item:hover .pp-item-icon { background: var(--charcoal,#1A1A1A); color: white; }

.pp-item-admin:hover .pp-item-icon { background: #C8A96E; color: #1A1A1A; }

.pp-item-text { flex: 1; min-width: 0; }
.pp-item-label { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.pp-item-sub { font-size: 0.72rem; color: var(--warm-gray,#6B6459); }
.pp-item-arrow { font-size: 0.65rem; color: rgba(26,26,26,0.25); }

.pp-divider {
    height: 1px; background: rgba(26,26,26,0.07);
    margin: 0.4rem 0.85rem;
}

.profile-panel-footer { padding: 0.6rem; border-top: 1px solid rgba(26,26,26,0.07); }

.pp-logout {
    display: flex; align-items: center; gap: 0.6rem;
    width: 100%; padding: 0.7rem 0.85rem; border-radius: 12px;
    background: none; border: none; cursor: pointer;
    color: #C0392B; font-size: 0.85rem; font-weight: 600;
    text-decoration: none; transition: background 0.15s ease;
    font-family: inherit;
}
.pp-logout:hover { background: rgba(192,57,43,0.07); color: #C0392B; }

/* Auth buttons */
.nav-btn-outline {
    display: inline-flex; align-items: center;
    padding: 0.5rem 1.1rem; border-radius: 50px;
    border: 1.5px solid rgba(26,26,26,0.15);
    color: var(--charcoal,#1A1A1A); text-decoration: none;
    font-size: 0.82rem; font-weight: 600; transition: all 0.2s ease;
}
.nav-btn-outline:hover { border-color: var(--charcoal,#1A1A1A); }
.nav-btn-solid {
    display: inline-flex; align-items: center;
    padding: 0.5rem 1.1rem; border-radius: 50px;
    background: var(--charcoal,#1A1A1A); color: white;
    text-decoration: none; font-size: 0.82rem; font-weight: 600;
    transition: all 0.2s ease;
}
.nav-btn-solid:hover { background: var(--accent,#C8A96E); color: var(--charcoal,#1A1A1A); }

/* Mobile */
@media(max-width:900px){
    .navbar-toggler-custom { display: flex; }
    .navbar-collapse-custom {
        display: none; position: absolute;
        top: 68px; left: 0; right: 0;
        background: white; flex-direction: column;
        align-items: stretch; padding: 1rem;
        border-bottom: 1px solid rgba(26,26,26,0.09);
        box-shadow: 0 8px 24px rgba(26,26,26,0.1);
        gap: 0.5rem; z-index: 999;
    }
    .navbar-collapse-custom.open { display: flex; }
    .nav-links-list { flex-direction: column; align-items: stretch; }
    .nav-link-item { padding: 0.75rem 1rem; border-radius: 10px; }
    .nav-right { flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid rgba(26,26,26,0.07); }
    .profile-panel, .search-panel { position: fixed; left: 1rem; right: 1rem; width: auto; }
}