/**
 * Yaspara - Premium Design System
 * Theme: Modern Emerald & Gold (Neo-Pharma Luxury)
 */

/* ============================================
   1. VARIABLES & TOKENS
   ============================================ */
:root {
    /* Color Palette - Emerald & Gold */
    --primary: #0F4C3A;
    /* Deep Emerald - Trust, Health */
    --primary-dark: #082D22;
    /* Darker Emerald */
    --primary-light: #1B634D;
    /* Lighter Emerald */
    --primary-rgb: 15, 76, 58;

    --secondary: #C5A059;
    /* Muted Gold - Premium */
    --secondary-dark: #B08D45;
    --secondary-light: #E0C078;
    --secondary-rgb: 197, 160, 89;

    --accent: #F3E5AB;
    /* Vanilla/Cream - Soft highlights */

    /* Functional Colors */
    --success: #2E7D32;
    --warning: #ED6C02;
    --danger: #D32F2F;
    --info: #0288D1;

    /* Neutral/Surface Colors */
    --bg-body: #F9FAFB;
    /* Very light cool grey */
    --bg-surface: #FFFFFF;
    --bg-alt: #F3F4F6;

    /* Text Colors */
    --text-main: #1F2937;
    /* Nearly Black */
    --text-secondary: #4B5563;
    /* Dark Grey */
    --text-muted: #9CA3AF;
    /* Medium Grey */
    --text-light: #F9FAFB;
    /* Off-white */

    /* Borders & Dividers */
    --border-color: #E5E7EB;
    --border-focus: var(--secondary);
    --focus-ring: rgba(var(--secondary-rgb), 0.22);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(15, 76, 58, 0.15), 0 10px 10px -5px rgba(15, 76, 58, 0.04);

    /* Spacing & Layout */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --header-height: 80px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

.text-gold {
    color: var(--secondary) !important;
}

.text-emerald {
    color: var(--primary) !important;
}

/* ============================================
   3. LAYOUT & STRUCTURE
   ============================================ */
/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.top-bar a:hover {
    color: var(--secondary);
}

/* Main Header */
.main-header {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    position: relative;
}

.navbar-brand span.fw-bold {
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-mark {
    font-size: 2rem;
    margin-right: 10px;
    line-height: 1;
}

.brand-lockup {
    line-height: 1;
}

.brand-name {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
}

/* Search Form */
.search-form .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.search-form .input-group:focus-within {
    box-shadow: 0 0 0 3px var(--focus-ring);
    /* Gold glow */
    border-color: var(--secondary);
}

.search-form .form-control {
    border: none;
    padding-left: 1.5rem;
    padding-right: 1rem;
    height: 48px;
    background: var(--bg-surface);
}

.search-form .btn-primary {
    border-radius: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: var(--primary);
    border-color: var(--primary);
}

.search-form .btn-primary:hover {
    background-color: var(--primary-dark);
}

/* User Icons & Cart */
.header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 2px;
    transition: var(--transition-base);
    min-width: 60px;
}

.header-icon {
    position: relative;
    display: grid;
    place-items: center;
}

.header-icon-link i {
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition-base);
    line-height: 1;
}

.header-icon-link span:not(.badge) {
    margin-top: 4px;
}

.header-icon-link:hover {
    color: var(--secondary);
}

.header-icon-link:hover i {
    color: var(--secondary);
    transform: translateY(-2px);
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    z-index: 10;
}

/* Navigation */
.main-navbar {
    background: var(--primary) !important;
    /* Force Emerald */
    box-shadow: var(--shadow-md);
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem !important;
    transition: var(--transition-base);
    position: relative;
}

.main-navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.main-navbar .nav-link:hover:after,
.main-navbar .nav-link.active:after {
    width: 100%;
}

.main-navbar .nav-link:hover {
    color: var(--secondary) !important;
}

.main-navbar .nav-link:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 0 4px var(--focus-ring);
    border-radius: 12px;
}

.main-navbar .nav-link.nav-cta {
    border-radius: 9999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-navbar .nav-link.nav-cta:hover,
.main-navbar .nav-link.nav-cta:focus {
    background-color: var(--secondary-dark) !important;
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-premium);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
    padding-left: 1.75rem;
    /* Slight shift */
}

/* ============================================
   4. COMPONENTS
   ============================================ */
.filter-sidebar {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--primary-rgb), 0.10);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: 0 16px 34px rgba(15, 76, 58, 0.08);
}

.filter-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.filter-sidebar h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filter-sidebar .form-check {
    padding-left: 1.65rem;
}

.filter-sidebar .form-check-input {
    border-color: rgba(var(--primary-rgb), 0.22);
}

.filter-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.filter-sidebar .form-control:focus,
.filter-sidebar .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Section */
.hero-slider {
    position: relative;
    padding: 26px 0 0;
}

.hero-slider--premium .container {
    max-width: 1110px;
}

.hero-slider--premium .hero-carousel {
    position: relative;
}

.hero-slider--premium .carousel-indicators {
    left: 22px;
    right: auto;
    bottom: 18px;
    margin: 0;
    justify-content: flex-start;
    gap: 8px;
}

.hero-slider--premium .carousel-indicators [data-bs-target] {
    width: 18px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(15, 76, 58, 0.16);
    opacity: 1;
    transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slider--premium .carousel-indicators .active {
    width: 44px;
    background-color: rgba(46, 199, 153, 0.95);
}

.hero-banner-card {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    border: 4px solid rgba(255, 141, 0, 0.86);
    box-shadow: 0 26px 70px rgba(15, 76, 58, 0.14);
    height: 340px;
    min-height: 340px;
}

.hero-banner-card__img {
    width: 100%;
    height: 340px;
    min-height: 340px;
    object-fit: cover;
    display: block;
    background: #fff;
}

.hero-banner-card__fallback {
    height: 340px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    background: radial-gradient(1200px 520px at 20% 30%, rgba(255, 141, 0, 0.18) 0%, rgba(255, 141, 0, 0) 60%),
        linear-gradient(135deg, rgba(15, 76, 58, 0.92) 0%, rgba(8, 45, 34, 0.92) 100%);
}

.hero-banner-card__kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-banner-card__title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 10px;
    max-width: 24ch;
}

.hero-banner-card__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    max-width: 54ch;
}

.hero-side-card {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 245, 235, 0.9);
    border: 1px solid rgba(255, 141, 0, 0.22);
    box-shadow: 0 18px 54px rgba(15, 76, 58, 0.10);
}

.hero-side-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-side-card__text {
    position: absolute;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 76, 58, 0.14);
    box-shadow: 0 16px 34px rgba(15, 76, 58, 0.12);
    color: rgba(15, 76, 58, 0.92);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.hero-side-card__text--bottom-right {
    bottom: 12px;
    right: 12px;
    text-align: right;
}

.hero-side-card__text--bottom-left {
    bottom: 12px;
    left: 12px;
    text-align: left;
}

.hero-side-card__text--top-right {
    top: 12px;
    right: 12px;
    text-align: right;
}

.hero-side-card__text--top-left {
    top: 12px;
    left: 12px;
    text-align: left;
}

.hero-side-card__text--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-slide {
    height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(900px 520px at 20% 30%, rgba(197, 160, 89, 0.22) 0%, rgba(197, 160, 89, 0) 60%),
        radial-gradient(900px 520px at 80% 40%, rgba(15, 76, 58, 0.18) 0%, rgba(15, 76, 58, 0) 62%),
        linear-gradient(90deg, rgba(8, 45, 34, 0.92) 0%, rgba(15, 76, 58, 0.55) 70%, rgba(8, 45, 34, 0.18) 100%);
}

.hero-layout {
    position: relative;
    z-index: 10;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 64px 0;
}

.hero-panel {
    max-width: 720px;
    color: white;
    border-radius: 24px;
    padding: 28px 26px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 45, 34, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel h1 {
    color: white;
    font-size: 3.25rem;
    margin: 14px 0 14px;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.hero-panel p {
    font-size: 1.08rem;
    margin: 0 0 18px;
    opacity: 0.92;
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.hero-btn-secondary {
    border-radius: var(--radius-full);
    border-width: 1px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(8, 45, 34, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-highlight i {
    color: rgba(255, 255, 255, 0.92);
}

.hero-slider .carousel-indicators {
    margin-bottom: 18px;
    gap: 10px;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.42);
    opacity: 1;
    transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slider .carousel-indicators .active {
    width: 46px;
    background-color: var(--secondary);
}

.hero-control {
    width: auto;
    opacity: 1;
    padding: 0 16px;
}

.hero-control-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-control:hover .hero-control-icon {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(197, 160, 89, 0.55);
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    display: none;
}

@media (max-width: 992px) {
    .hero-slider {
        padding: 18px 0 0;
    }
    .hero-banner-card,
    .hero-banner-card__img,
    .hero-banner-card__fallback {
        height: 250px;
        min-height: 250px;
    }
    .hero-slide {
        height: 520px;
    }
    .hero-layout {
        min-height: 520px;
        padding: 48px 0;
    }
    .hero-panel h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 576px) {
    .hero-slider--premium .carousel-indicators {
        left: 16px;
        bottom: 14px;
    }
    .hero-banner-card {
        border-radius: 26px;
        border-width: 3px;
    }
    .hero-banner-card__fallback {
        padding: 22px;
    }
    .hero-banner-card__title {
        font-size: 1.85rem;
    }
    .hero-slide {
        height: 460px;
    }
    .hero-layout {
        min-height: 460px;
        padding: 34px 0;
    }
    .hero-panel {
        padding: 20px 18px 16px;
        border-radius: 20px;
    }
    .hero-panel h1 {
        font-size: 2.15rem;
    }
    .hero-panel p {
        font-size: 1rem;
    }
    .hero-control {
        padding: 0 10px;
    }
    .hero-control-icon {
        width: 40px;
        height: 40px;
    }
}

.product-cta {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.product-cta:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.2);
    color: white;
}

.product-cta-icon {
    font-size: 1.1rem;
}

.btn-hero {
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
}

.btn-hero:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* Category Card Premium */
.category-card-premium {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.category-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-premium:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 76, 58, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.category-card-premium:hover .category-overlay {
    background: rgba(15, 76, 58, 0.4);
}

.category-name {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.category-tile {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 190px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.16), rgba(8, 45, 34, 0.08));
    box-shadow: 0 18px 46px rgba(15, 76, 58, 0.12);
    border: 1px solid rgba(15, 76, 58, 0.12);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 380px at 20% 30%, rgba(197, 160, 89, 0.18) 0%, rgba(197, 160, 89, 0) 60%);
    opacity: 0;
    transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.category-tile-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-tile-media img,
.category-tile-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease;
}

.category-tile-media img {
    filter: grayscale(100%);
}

.category-tile-fallback {
    background: linear-gradient(135deg, var(--cat-accent, #0F4C3A), var(--cat-accent-2, #082D22));
}

.category-tile-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(180deg, rgba(8, 45, 34, 0.08) 0%, rgba(8, 45, 34, 0.6) 65%, rgba(8, 45, 34, 0.92) 100%);
}

.category-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.category-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.category-tile-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.category-tile-icon span {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.category-tile-arrow {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    transform: translate3d(0, 0, 0);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-tile-body {
    display: grid;
    gap: 6px;
}

.category-tile-title {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.category-tile-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.35;
    max-width: 32ch;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(15, 76, 58, 0.18);
    border-color: rgba(197, 160, 89, 0.32);
}

.category-tile:hover::before {
    opacity: 1;
}

.category-tile:hover .category-tile-media img,
.category-tile:hover .category-tile-fallback {
    transform: scale(1.09);
}

.category-tile:hover .category-tile-media img {
    filter: grayscale(0%);
}

.category-tile:hover .category-tile-arrow {
    transform: translate3d(0, -2px, 0);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(197, 160, 89, 0.45);
}

@media (max-width: 576px) {
    .category-tile {
        min-height: 162px;
        border-radius: 20px;
    }
    .category-tile-overlay {
        padding: 14px;
    }
    .category-tile-title {
        font-size: 1.18rem;
    }
    .category-tile-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    .category-tile-arrow {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
}

/* Homepage Sections */
.homepage-section {
    margin-bottom: 4rem;
}

@media (max-width: 576px) {
    .homepage-section {
        margin-bottom: 2.75rem;
    }

    .section-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    /* Adjust to sit on the border */
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-link:hover {
    color: var(--secondary);
}

/* Features Section (Why Yaspara) */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.feature-box:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

/* Product Card - Premium Redesign */
.product-card-premium {
    background: var(--bg-surface);
    border: 1px solid rgba(15, 76, 58, 0.07);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 12px 24px rgba(15, 76, 58, 0.08);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card-premium:hover {
    border-color: rgba(15, 76, 58, 0.16);
    box-shadow: 0 16px 34px rgba(15, 76, 58, 0.11);
    transform: translate3d(0, -3px, 0);
}

.product-image-wrapper {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 22px 18px 18px;
    min-height: 220px;
}

.product-discount-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #FF4D67 0%, #FF2D55 55%, #FF7A59 100%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 18px 34px rgba(255, 45, 85, 0.22);
    backdrop-filter: blur(10px);
    transform: translate3d(0, 0, 0);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card-premium:hover .product-discount-badge {
    transform: translate3d(0, -2px, 0) scale(1.02);
    box-shadow: 0 22px 44px rgba(255, 45, 85, 0.26);
    filter: saturate(1.03);
}

.product-image-wrapper img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: contain;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card-premium:hover .product-image-wrapper img {
    transform: translate3d(0, -2px, 0) scale(1.04);
}

.product-image-link {
    display: grid;
    place-items: center;
    width: 100%;
}

.routine-section .product-card-premium {
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 76, 58, 0.08);
}

.routine-section .product-image-wrapper {
    padding: 16px 14px 14px;
    min-height: 170px;
}

.routine-section .product-image-wrapper img {
    height: 140px;
    max-width: 150px;
}

.routine-section .product-description {
    display: none;
}

.routine-section .product-body {
    padding: 14px 14px 16px;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 76, 58, 0.10);
    background: rgba(255, 255, 255, 0.95);
    color: rgba(31, 41, 55, 0.7);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-wishlist:hover {
    transform: translate3d(0, -1px, 0) scale(1.04);
    color: var(--danger);
    border-color: rgba(211, 47, 47, 0.35);
}

.product-ribbon {
    position: absolute;
    top: 14px;
    left: -40px;
    z-index: 2;
    transform: rotate(-45deg);
    width: 140px;
    text-align: center;
    padding: 6px 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
}

.product-ribbon--new {
    background: linear-gradient(135deg, #FF4D67 0%, #FF2D55 55%, #FF7A59 100%);
}

.product-ribbon--sale {
    background: linear-gradient(135deg, #FF4D67 0%, #FF2D55 55%, #FF7A59 100%);
}

.product-ribbon--bestseller {
    background: #5B7CFF;
}

.product-body {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.82rem * 1.35 * 2);
}

.product-title-flame {
    margin-left: 0.45rem;
    font-size: 0.95em;
}

.product-title:hover {
    color: var(--secondary-dark);
}

.product-description {
    margin: 6px 0 0;
    color: rgba(31, 41, 55, 0.68);
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.82rem * 1.45 * 2);
}

.product-price-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
}

.product-price-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 0.78rem;
    text-decoration: line-through;
    color: rgba(31, 41, 55, 0.55);
}

.product-discount-chip {
    position: relative;
    background: linear-gradient(135deg, #FF4D67 0%, #FF2D55 50%, #FF7A59 100%);
    color: #fff;
    font-weight: 900;
    font-size: 0.74rem;
    border-radius: 9999px;
    padding: 6px 11px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(255, 45, 85, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.product-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    min-height: 42px;
    background: linear-gradient(135deg, rgba(36, 193, 132, 0.98) 0%, rgba(15, 76, 58, 0.98) 65%, rgba(8, 45, 34, 0.98) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 0 0 20px 20px;
    border: 0;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.product-cta:hover {
    color: #fff;
    filter: brightness(1.02);
    transform: translate3d(0, -2px, 0);
}

.product-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -30%;
    width: 60%;
    height: 180%;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(25deg);
    transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card-premium:hover .product-cta::before {
    transform: translate3d(90%, 0, 0) rotate(25deg);
}

.product-cta-text {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.product-cta-icon {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 576px) {
    .product-image-wrapper {
        min-height: 200px;
        padding: 18px 14px 14px;
    }

    .product-image-wrapper img {
        max-width: 160px;
        height: 160px;
    }

    .product-cta {
        padding: 9px 10px;
    }
}

/* Footer */
footer.bg-dark {
    background-color: #051b14 !important;
    /* Very Dark Emerald */
    color: rgba(255, 255, 255, 0.7) !important;
}

footer h5,
footer h6 {
    color: white;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.1);
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.text-success {
    color: var(--success) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

/* Micro-interactions */
a {
    transition: color 0.2s ease-in-out;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Checkout & Order */
.checkout-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-md);
}

.checkout-summary-header {
    background: var(--bg-alt);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-summary-body {
    padding: 1.5rem;
}

/* Product Detail */
.product-gallery {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.product-main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.product-thumbnail {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    opacity: 0.6;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
}

.nav-tabs-premium {
    border: 1px solid rgba(15, 76, 58, 0.14);
    border-radius: var(--radius-lg);
    padding: 6px;
    gap: 6px;
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.06), rgba(197, 160, 89, 0.05));
    box-shadow: 0 16px 32px rgba(15, 76, 58, 0.08);
}

.nav-tabs-premium .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 900;
    padding: 0.85rem 1.2rem;
    position: relative;
    background: transparent;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-tabs-premium .nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.55);
}

.nav-tabs-premium .nav-link.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(15, 76, 58, 0.10);
}

.nav-tabs-premium .nav-link.active::after {
    content: none;
}

.nav-tabs-premium + .tab-content {
    background: var(--bg-surface) !important;
    border: 1px solid rgba(15, 76, 58, 0.14) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 20px 44px rgba(15, 76, 58, 0.10) !important;
    padding: 1.6rem !important;
}

.nav-tabs-premium + .tab-content .tab-pane {
    color: var(--text-secondary);
    line-height: 1.85;
}

/* Product Detail Page */
.product-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    line-height: 1.15;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.product-detail-price .product-old-price {
    font-size: 1.25rem;
    margin-left: 1rem;
    color: var(--text-muted);
}

.product-gallery-premium {
    position: relative;
    overflow: hidden;
}

.product-gallery-premium .product-main-image {
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
}

.product-gallery-premium:hover .product-main-image {
    transform: scale(1.04);
}

.product-detail-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.96), rgba(255, 122, 89, 0.96));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 34px rgba(255, 45, 85, 0.22);
    backdrop-filter: blur(10px);
}

.product-detail-badge__label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    opacity: 0.95;
}

.product-detail-badge__value {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 3px;
}

.product-info-premium {
    background: var(--bg-surface);
    border: 1px solid rgba(15, 76, 58, 0.10);
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    box-shadow: 0 16px 36px rgba(15, 76, 58, 0.10);
}

.product-detail-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0;
}

.product-detail-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 76, 58, 0.18), rgba(197, 160, 89, 0.18), rgba(15, 76, 58, 0.08));
    margin: 12px 0;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.product-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 76, 58, 0.14);
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.06), rgba(197, 160, 89, 0.06));
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(15, 76, 58, 0.08);
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 280ms cubic-bezier(0.2, 0.8, 0.2, 1), background 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-meta-chip i {
    color: var(--secondary-dark);
    font-size: 0.95rem;
    line-height: 1;
}

.product-meta-chip:hover {
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 16px 30px rgba(15, 76, 58, 0.12);
    border-color: rgba(197, 160, 89, 0.34);
    color: var(--primary-dark);
}

.product-meta-chip--success {
    border-color: rgba(46, 125, 50, 0.22);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.10), rgba(46, 125, 50, 0.06));
    color: #1B5E20;
}

.product-meta-chip--success i {
    color: #1B5E20;
}

.product-meta-chip--warning {
    border-color: rgba(237, 108, 2, 0.24);
    background: linear-gradient(135deg, rgba(237, 108, 2, 0.12), rgba(237, 108, 2, 0.07));
    color: #9A3412;
}

.product-meta-chip--warning i {
    color: #9A3412;
}

.product-trust {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 76, 58, 0.12);
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.06), rgba(197, 160, 89, 0.05));
    display: grid;
    gap: 10px;
    box-shadow: 0 14px 28px rgba(15, 76, 58, 0.08);
}

@media (min-width: 576px) {
    .product-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        align-items: center;
    }
}

.product-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-secondary);
}

.product-trust-item i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 76, 58, 0.12);
    color: var(--primary);
    box-shadow: 0 10px 18px rgba(15, 76, 58, 0.10);
    flex: 0 0 auto;
}

.product-detail-actions .btn-outline-secondary {
    border-color: rgba(15, 76, 58, 0.22);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.75);
}

.product-detail-actions .btn-outline-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 76, 58, 0.18);
}

.product-detail-price {
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.product-detail-price__current {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.product-detail-discount {
    background: linear-gradient(135deg, #FF4D67 0%, #FF2D55 55%, #FF7A59 100%);
    color: #fff;
    font-weight: 900;
    border-radius: 9999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    box-shadow: 0 12px 24px rgba(255, 45, 85, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-detail-order {
    box-shadow: 0 14px 30px rgba(15, 76, 58, 0.18);
}

.product-detail-order,
.btn-add-to-cart--detail {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-full);
}

.product-detail-order::before,
.btn-add-to-cart--detail::before {
    content: '';
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -60%;
    width: 55%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 100%);
    transform: skewX(-18deg) translate3d(0, 0, 0);
    opacity: 0;
    transition: opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.product-detail-order>*,
.btn-add-to-cart--detail>* {
    position: relative;
    z-index: 1;
}

.product-detail-order:hover::before,
.btn-add-to-cart--detail:hover::before {
    opacity: 1;
    transform: skewX(-18deg) translate3d(260%, 0, 0);
}

.btn-add-to-cart {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-base);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-add-to-cart--detail {
    background: var(--secondary);
    color: #000;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(197, 160, 89, 0.26);
}

.btn-add-to-cart:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-add-to-cart--detail:hover {
    background: var(--secondary-dark);
    color: #000;
}

.order-form {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* ============================================
   6. INTERACTIONS & EFFECTS (Performance-first)
   - Hover: transform + transition (GPU-friendly)
   - Reveal: IntersectionObserver trigger + transform transitions
   - Ripple: JS-driven circle, CSS transition (420ms)
   - Loading: global overlay + button spinners
   ============================================ */

/* Smooth hover animations (200–500ms) */
.btn,
.btn-order,
.btn-add-to-cart,
.btn-hero,
.header-icon-link,
.dropdown-item,
.product-card-premium,
.category-card-premium,
.feature-box {
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-duration: 300ms;
}

.btn:active,
.btn-order:active,
.btn-add-to-cart:active,
.btn-hero:active {
    transform: translateY(0) scale(0.98);
}

.form-control,
.form-select {
    transition: box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
    transform: translate3d(0, -1px, 0);
}

.btn:focus-visible,
.btn-order:focus-visible,
.btn-add-to-cart:focus-visible,
.btn-hero:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(197, 160, 89, 0.35);
    outline-offset: 2px;
}

/* Reveal-on-scroll (JS adds .reveal-on-scroll; IO adds .is-revealed) */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.motion-ok .reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 340ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.motion-ok .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Ripple micro-interaction (JS injects .yaspara-ripple__circle) */
.yaspara-ripple {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.yaspara-ripple__circle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.35);
    opacity: 0.65;
    transform: translate3d(-50%, -50%, 0) scale(0);
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yaspara-ripple__circle.is-animating {
    transform: translate3d(-50%, -50%, 0) scale(2.2);
    opacity: 0;
}

/* Loading overlay (use for async operations and form submit) */
.yaspara-loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 45, 34, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 9999;
}

.yaspara-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yaspara-spinner {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--secondary);
    animation: yaspara-spin 900ms linear infinite;
}

@keyframes yaspara-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button loading state */
.btn.is-loading,
.btn-order.is-loading,
.btn-add-to-cart.is-loading,
.btn-hero.is-loading {
    position: relative;
    cursor: progress;
}

.btn.is-loading::after,
.btn-order.is-loading::after,
.btn-add-to-cart.is-loading::after,
.btn-hero.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.05em;
    height: 1.05em;
    margin-left: -0.525em;
    margin-top: -0.525em;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: yaspara-spin 900ms linear infinite;
    pointer-events: none;
}

/* Responsive: keep effects subtle on smaller screens */
@media (max-width: 768px) {
    .reveal-on-scroll {
        transform: translate3d(0, 10px, 0);
    }
}

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {

    .reveal-on-scroll,
    .reveal-on-scroll.is-revealed,
    .yaspara-ripple__circle,
    .yaspara-spinner,
    .btn,
    .btn-order,
    .btn-add-to-cart,
    .btn-hero,
    .form-control,
    .form-select,
    a,
    .product-card-premium,
    .category-card-premium,
    .feature-box {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .yaspara-loading-overlay {
        transition: none !important;
    }
}

/* Cart & Checkout Specifics */
.cart-table {
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.cart-table thead th {
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 1rem;
}

.cart-table tbody tr {
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.cart-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-table td {
    padding: 1.25rem 1rem;
    border: none;
}

.cart-table td:first-child {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.cart-table td:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    padding: 3px;
    border: 1px solid var(--border-color);
}

.qty-control .btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.qty-control .btn:hover {
    background: var(--primary);
    color: white;
}

.qty-control input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.summary-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.summary-card .header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.summary-card .header h4 {
    color: white;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 2px dashed var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form Styles Refinement */
.premium-form .form-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.premium-form .form-control,
.premium-form .form-select {
    border-color: var(--border-color);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: #fff;
    transition: var(--transition-base);
}

.premium-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 76, 58, 0.1);
    transform: translateY(-1px);
}

.checkout-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-section-title i {
    color: var(--secondary);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.product-emotion-badges {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}

.emotion-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.75);
    color: rgba(15, 76, 58, 0.92);
    box-shadow: 0 18px 34px rgba(15, 76, 58, 0.12);
}

.emotion-badge--new {
    background: rgba(255, 232, 240, 0.85);
    color: #7a2a49;
}

.emotion-badge--bestseller {
    background: rgba(255, 245, 214, 0.9);
    color: #6b4e18;
}

.emotion-badge--selection {
    background: rgba(220, 244, 237, 0.85);
    color: rgba(15, 76, 58, 0.92);
}

.product-quickview,
.product-wishlist {
    position: absolute;
    top: 12px;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 76, 58, 0.14);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 34px rgba(15, 76, 58, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 4;
}

.product-quickview {
    right: 58px;
    color: rgba(15, 76, 58, 0.9);
}

.product-wishlist {
    right: 12px;
    color: rgba(122, 42, 73, 0.9);
}

.product-card-premium:hover .product-quickview,
.product-card-premium:hover .product-wishlist {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(15, 76, 58, 0.16);
    background: rgba(255, 255, 255, 0.92);
}

.product-wishlist.is-active {
    border-color: rgba(255, 45, 85, 0.22);
    background: rgba(255, 232, 240, 0.9);
    color: #ff2d55;
}

.yaspara-quickview,
.yaspara-wishlist {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.yaspara-quickview[aria-hidden="false"],
.yaspara-wishlist[aria-hidden="false"] {
    pointer-events: auto;
}

.yaspara-quickview__backdrop,
.yaspara-wishlist__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 12, 0.55);
    opacity: 0;
    transition: opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yaspara-quickview[aria-hidden="false"] .yaspara-quickview__backdrop,
.yaspara-wishlist[aria-hidden="false"] .yaspara-wishlist__backdrop {
    opacity: 1;
}

.yaspara-quickview__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(980px, calc(100% - 32px));
    transform: translate3d(-50%, -46%, 0) scale(0.98);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 22px;
    box-shadow: 0 40px 110px rgba(15, 76, 58, 0.28);
    backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.yaspara-quickview[aria-hidden="false"] .yaspara-quickview__dialog {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
}

.yaspara-quickview__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 76, 58, 0.14);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    place-items: center;
    color: rgba(15, 76, 58, 0.85);
}

.yaspara-quickview__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
}

.yaspara-quickview__media {
    padding: 18px;
}

.yaspara-quickview__imgwrap {
    border-radius: 18px;
    border: 1px solid rgba(15, 76, 58, 0.12);
    background: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(15, 76, 58, 0.12);
}

.yaspara-quickview__img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
}

.yaspara-quickview__content {
    padding: 22px 22px 22px 8px;
    display: flex;
    flex-direction: column;
}

.yaspara-quickview__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.yaspara-quickview__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--primary);
}

.yaspara-quickview__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.yaspara-quickview__price .price-now {
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--secondary);
}

.yaspara-quickview__price .price-old {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.yaspara-quickview__desc {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.yaspara-quickview__actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.yaspara-quickview__micro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.yaspara-quickview__microitem {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 9999px;
    background: rgba(15, 76, 58, 0.05);
    border: 1px solid rgba(15, 76, 58, 0.10);
}

.yaspara-wishlist__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, calc(100% - 28px));
    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid rgba(15, 76, 58, 0.14);
    backdrop-filter: blur(18px);
    transform: translate3d(18px, 0, 0);
    opacity: 0;
    transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.yaspara-wishlist[aria-hidden="false"] .yaspara-wishlist__panel {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.yaspara-wishlist__header {
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(15, 76, 58, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yaspara-wishlist__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
    color: rgba(15, 76, 58, 0.65);
}

.yaspara-wishlist__title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
}

.yaspara-wishlist__close {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 76, 58, 0.14);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    place-items: center;
    color: rgba(15, 76, 58, 0.85);
}

.yaspara-wishlist__body {
    padding: 14px 18px;
    overflow: auto;
    display: grid;
    gap: 12px;
}

.yaspara-wishlist__footer {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(15, 76, 58, 0.12);
}

.wishlist-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 76, 58, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 36px rgba(15, 76, 58, 0.10);
}

.wishlist-item__img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(15, 76, 58, 0.05);
    border: 1px solid rgba(15, 76, 58, 0.10);
    overflow: hidden;
}

.wishlist-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wishlist-item__name {
    font-weight: 900;
    color: rgba(17, 24, 39, 0.95);
    line-height: 1.2;
    margin-bottom: 4px;
}

.wishlist-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wishlist-item__price {
    font-weight: 900;
    color: var(--secondary);
}

.wishlist-item__remove {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 76, 58, 0.12);
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    place-items: center;
    color: rgba(17, 24, 39, 0.65);
}

.yaspara-trust-sticky {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 9900;
    pointer-events: none;
}

.yaspara-trust-sticky__inner {
    pointer-events: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 76, 58, 0.12);
    box-shadow: 0 26px 70px rgba(15, 76, 58, 0.18);
    backdrop-filter: blur(18px);
}

.yaspara-trust-sticky__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(15, 76, 58, 0.85);
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
}

.yaspara-trust-sticky__item i {
    color: rgba(197, 160, 89, 0.95);
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .yaspara-trust-sticky {
        display: none;
    }
    .product-detail-page {
        padding-bottom: 92px;
    }
    .yaspara-quickview__grid {
        grid-template-columns: 1fr;
    }
    .yaspara-quickview__content {
        padding: 0 18px 18px;
    }
    .yaspara-quickview__img {
        height: 320px;
    }
}

.yaspara-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9800;
    background: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(15, 76, 58, 0.12);
    box-shadow: 0 -18px 54px rgba(15, 76, 58, 0.14);
    backdrop-filter: blur(18px);
}

.yaspara-mobile-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.yaspara-mobile-cta__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.yaspara-mobile-cta__now {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.yaspara-mobile-cta__old {
    color: rgba(107, 114, 128, 0.9);
    text-decoration: line-through;
    font-weight: 800;
    font-size: 0.92rem;
    white-space: nowrap;
}

.yaspara-mobile-cta__button {
    border-radius: 9999px;
    padding: 12px 18px;
    box-shadow: 0 16px 34px rgba(15, 76, 58, 0.18);
    flex: 0 0 auto;
}
