/* ============================================================
   PHỤ NỮ THÔNG MINH — Design System CSS
   Đọc APP_CONFIG.md để hiểu design tokens và ngữ cảnh
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Dancing+Script:wght@500;600&display=swap');

/* ── CSS Variables (Design Tokens) ───────────────────────── */
:root {
    --primary: #E8C4B8;
    --primary-dark: #C9956C;
    --primary-light: #F9EDE8;
    --primary-ultra: #FDF6F3;
    --accent: #D4849A;
    --accent-deep: #B56B82;
    --accent-light: #F5E6ED;
    --gold: #C9A84C;
    --gold-light: #F5EDD4;
    --neutral-900: #1A1A2E;
    --neutral-700: #3D3D55;
    --neutral-500: #6B6B83;
    --neutral-300: #C4C4D0;
    --neutral-100: #F4F4F8;
    --neutral-50: #FAFAFD;
    --white: #FFFFFF;
    --success: #5DAB7F;
    --warning: #E8A838;
    --error: #D45B5B;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-script: 'Dancing Script', cursive;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(212, 132, 154, .08);
    --shadow-md: 0 8px 28px rgba(212, 132, 154, .14);
    --shadow-lg: 0 20px 60px rgba(212, 132, 154, .18);
    --shadow-xl: 0 30px 80px rgba(26, 26, 46, .15);

    --transition: .25s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: .45s cubic-bezier(.4, 0, .2, 1);

    --header-h: 72px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.1rem;
}

.script {
    font-family: var(--font-script);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(212, 132, 154, .4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 132, 154, .5);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-ghost {
    color: var(--neutral-700);
}

.btn-ghost:hover {
    color: var(--accent);
}

.btn-sm {
    padding: 8px 18px;
    font-size: .82rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-icon {
    padding: 10px;
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    justify-content: center;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #A8862C 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(201, 168, 76, .35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, .45);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-new {
    background: var(--accent-light);
    color: var(--accent-deep);
}

.badge-sale {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-best {
    background: var(--gold-light);
    color: var(--gold);
}

.badge-premium {
    background: var(--neutral-900);
    color: var(--white);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ── Forms / Inputs ───────────────────────────────────────── */
.input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .9rem;
    background: var(--white);
    transition: var(--transition);
    color: var(--neutral-900);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 132, 154, .15);
}

/* ── Star Rating ──────────────────────────────────────────── */
.stars {
    display: inline-flex;
    gap: 2px;
}

.stars svg {
    width: 14px;
    height: 14px;
}

.star-filled {
    color: var(--gold);
    fill: var(--gold);
}

.star-empty {
    color: var(--neutral-300);
    fill: var(--neutral-300);
}

.star-half {
    color: var(--gold);
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 48px 0;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .tagline {
    font-family: var(--font-script);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--neutral-500);
    max-width: 550px;
    margin: 0 auto;
    font-size: .95rem;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 196, 184, .3);
    transition: var(--transition);
}

#main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.logo-main {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--accent-deep);
}

.logo-sub {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--neutral-500);
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: .88rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent-deep);
    background: var(--accent-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search bar in header */
.header-search {
    position: relative;
}

.header-search input {
    width: 200px;
    padding: 8px 16px 8px 36px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-full);
    font-size: .85rem;
    transition: var(--transition);
    background: var(--neutral-50);
}

.header-search input:focus {
    width: 260px;
    border-color: var(--accent);
    background: var(--white);
    outline: none;
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    pointer-events: none;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232, 196, 184, .3);
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: var(--transition);
}

.search-results-dropdown.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--primary-ultra);
}

.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-item .name {
    font-size: .85rem;
    font-weight: 500;
}

.search-result-item .price {
    font-size: .8rem;
    color: var(--accent-deep);
}

/* Cart badge */
.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-deep);
    color: var(--white);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--neutral-700);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FDF6F3 0%, #F9EDE8 40%, #F5E6ED 100%);
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8C4B8' fill-opacity='0.12'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    min-height: calc(100vh - var(--header-h));
    padding: 80px 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-family: var(--font-script);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title em {
    color: var(--accent-deep);
    font-style: normal;
}

.hero-desc {
    color: var(--neutral-500);
    font-size: 1.05rem;
    max-width: 440px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--neutral-900);
    font-weight: 600;
}

.hero-stat-label {
    font-size: .8rem;
    color: var(--neutral-500);
    margin-top: 2px;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-img-main {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-float-card.card-1 {
    bottom: 10%;
    left: -8%;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    top: 12%;
    right: -6%;
    animation-delay: 1.5s;
}

.hero-float-card .fc-label {
    font-size: .72rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-float-card .fc-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--neutral-900);
    margin-top: 2px;
}

.hero-float-card .fc-sub {
    font-size: .78rem;
    color: var(--accent-deep);
    margin-top: 2px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* ============================================================
   CATEGORIES STRIP
   ============================================================ */
.categories-section {
    padding: 56px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    background: var(--neutral-50);
}

.category-card:hover,
.category-card.active {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cat-icon {
    font-size: 2rem;
}

.cat-name {
    font-weight: 600;
    font-size: .85rem;
    text-align: center;
    color: var(--neutral-700);
}

.cat-desc {
    font-size: .75rem;
    color: var(--neutral-500);
    text-align: center;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.product-card-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--primary-ultra);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.product-card-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--neutral-300);
}

.product-card-wishlist:hover,
.product-card-wishlist.active {
    color: #E05D7A;
    transform: scale(1.15);
}

.product-card-quick {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(212, 132, 154, .92);
    padding: 12px;
    text-align: center;
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.product-card:hover .product-card-quick {
    transform: translateY(0);
}

.product-card-body {
    padding: 16px;
}

.product-card-brand {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.product-card-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.product-card-rating .count {
    font-size: .75rem;
    color: var(--neutral-500);
}

.product-card-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-deep);
}

.product-card-original {
    font-size: .82rem;
    color: var(--neutral-300);
    text-decoration: line-through;
}

.product-card-discount {
    font-size: .72rem;
    font-weight: 700;
    color: #DC2626;
    background: #FEE2E2;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   FILTER SIDEBAR / BAR
   ============================================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 32px 8px 14px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-full);
    font-size: .85rem;
    cursor: pointer;
    background: var(--white);
    color: var(--neutral-700);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B83' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: .82rem;
    border: 1.5px solid var(--neutral-300);
    color: var(--neutral-700);
    transition: var(--transition);
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-deep);
}

.filter-count {
    font-size: .82rem;
    color: var(--neutral-500);
    margin-left: auto;
    white-space: nowrap;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    padding-top: calc(var(--header-h) + 40px);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.gallery-main {
    aspect-ratio: 1/1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--primary-ultra);
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    color: var(--neutral-800);
}

.product-info-brand {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-info-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: .9rem;
    color: var(--neutral-500);
}

.product-info-pricing {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}

.product-info-price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-deep);
    font-weight: 500;
}

.product-info-original {
    font-size: 1.1rem;
    color: var(--neutral-300);
    text-decoration: line-through;
}

.product-info-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: #FEE2E2;
    color: #DC2626;
    font-size: .78rem;
    font-weight: 700;
}

.product-info-desc {
    color: var(--neutral-500);
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: .95rem;
}

.product-options {
    margin-bottom: 28px;
}

.product-options-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-opt {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--neutral-300);
    font-size: .82rem;
    cursor: pointer;
    transition: var(--transition);
}

.color-opt.active,
.color-opt:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-deep);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-ctrl button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    color: var(--neutral-700);
    transition: var(--transition);
}

.qty-ctrl button:hover {
    background: var(--neutral-100);
}

.qty-ctrl .qty-val {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
}

.product-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

.product-cta .btn-primary {
    flex: 1;
    justify-content: center;
    padding: 14px;
    font-size: .95rem;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--primary-ultra);
    border-radius: var(--radius-md);
}

.product-meta-row {
    display: flex;
    gap: 12px;
    font-size: .85rem;
}

.product-meta-key {
    color: var(--neutral-500);
    min-width: 120px;
    flex-shrink: 0;
}

.product-meta-val {
    color: var(--neutral-700);
    font-weight: 500;
}

.product-tabs {
    margin-top: 48px;
}

.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--neutral-100);
    margin-bottom: 32px;
}

.tab-btn {
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--neutral-500);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--accent-deep);
    border-bottom-color: var(--accent-deep);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--neutral-700);
}

.benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-deep);
    font-size: .9rem;
    flex-shrink: 0;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ingredient-tag {
    padding: 6px 14px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: .8rem;
    color: var(--neutral-700);
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding: 32px;
    background: var(--primary-ultra);
    border-radius: var(--radius-lg);
}

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

.rating-big-num {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--neutral-900);
    line-height: 1;
}

.rating-big-stars {
    margin: 8px 0;
    justify-content: center;
}

.rating-big-count {
    font-size: .85rem;
    color: var(--neutral-500);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .82rem;
}

.rating-bar-label {
    color: var(--neutral-700);
    min-width: 36px;
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--neutral-100);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    border-radius: 3px;
    transition: width .8s ease;
}

.rating-bar-count {
    color: var(--neutral-500);
    min-width: 24px;
    text-align: right;
}

.review-card {
    padding: 24px;
    border-bottom: 1px solid var(--neutral-100);
    transition: var(--transition);
}

.review-card:last-child {
    border-bottom: none;
}

.review-card:hover {
    background: var(--primary-ultra);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-deep);
    font-weight: 700;
    font-size: .9rem;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--neutral-900);
}

.reviewer-meta {
    font-size: .78rem;
    color: var(--neutral-500);
    margin-top: 2px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: var(--success);
    background: rgba(93, 171, 127, .1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.review-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 8px;
    color: var(--neutral-900);
}

.review-content {
    font-size: .88rem;
    color: var(--neutral-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-helpful {
    font-size: .78rem;
    color: var(--neutral-500);
}

.review-helpful button {
    color: var(--accent);
    font-weight: 500;
    margin-left: 4px;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--neutral-100);
    transition: var(--transition);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--primary-ultra);
}

.cart-item-info {
    flex: 1;
}

.cart-item-brand {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--neutral-500);
}

.cart-item-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--neutral-900);
    margin: 4px 0 8px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--accent-deep);
    font-size: .95rem;
}

.cart-item-remove {
    color: var(--neutral-300);
    font-size: 1.1rem;
    padding: 8px;
    transition: var(--transition);
    border-radius: 50%;
}

.cart-item-remove:hover {
    color: var(--error);
    background: #FEE2E2;
}

.cart-empty {
    text-align: center;
    padding: 80px 40px;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.cart-empty h3 {
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--neutral-500);
    font-size: .9rem;
    margin-bottom: 24px;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: .9rem;
    border-bottom: 1px solid var(--neutral-100);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-deep);
}

.cart-summary .btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

.promo-input {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.promo-input input {
    flex: 1;
    min-width: 0;
}

.promo-input .btn {
    flex-shrink: 0;
}

/* ============================================================
   FEATURED BENEFITS BANNER
   ============================================================ */
.benefits-banner {
    background: linear-gradient(135deg, var(--neutral-900) 0%, #2D1B3D 100%);
    padding: 56px 0;
}

.benefits-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.bene-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.bene-title {
    color: var(--white);
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.bene-desc {
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
    line-height: 1.6;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
}

.newsletter .script {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.newsletter h2 {
    margin-bottom: 12px;
}

.newsletter p {
    color: var(--neutral-500);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
}

.newsletter-form .btn {
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
    background: var(--neutral-900);
    color: rgba(255, 255, 255, .6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo-main {
    color: #E8C4B8;
}

.footer-brand .logo-sub {
    color: rgba(255, 255, 255, .35);
}

.footer-brand p {
    margin-top: 16px;
    font-size: .85rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: .9rem;
}

.footer-social-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--white);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: .85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    min-width: 280px;
    transform: translateX(120%);
    opacity: 0;
    transition: var(--transition);
    border-left: 4px solid var(--success);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-left-color: var(--error);
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-msg {
    flex: 1;
    color: var(--neutral-700);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, .6);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    transform: translateY(24px) scale(.97);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.4rem;
    color: var(--neutral-500);
    transition: var(--transition);
    border-radius: 50%;
    padding: 4px;
}

.modal-close:hover {
    color: var(--neutral-900);
    background: var(--neutral-100);
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0
    }

    100% {
        background-position: 200% 0
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    height: 360px;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    height: 14px;
    width: 80%;
    margin-bottom: 8px;
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page {
    animation: pageIn .35s ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 60px;
    }

    .hero-visual {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-nav {
        display: none;
    }

    .header-search input {
        width: 140px;
    }

    .header-search input:focus {
        width: 180px;
    }

    .hamburger {
        display: flex;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 24px;
    }

    .benefits-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 8px;
    }

    .cat-desc {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .benefits-banner-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SHOPEE COLLECTION STORE UI
   ============================================================ */
.store-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.store-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.store-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ee4d2d;
    padding: 2px;
}

.store-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.store-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #757575;
}

.store-stats svg {
    color: #ee4d2d;
}

.divider-v {
    padding: 0 4px;
    color: #e8e8e8;
}

.store-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ee4d2d;
    transition: all 0.2s;
}

.store-share-btn:hover {
    background: #eee;
}

/* Tabs Navigation */
.store-tabs-container {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 2px solid #f0f0f0;
}

.store-tabs {
    display: flex;
}

.store-tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: #555;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}

.store-tab:hover {
    color: #ee4d2d;
}

.store-tab.active {
    color: #ee4d2d;
    font-weight: 600;
}

.store-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #ee4d2d;
    border-radius: 3px 3px 0 0;
}

/* Shopee Category Grid */
.shopee-categories {
    padding: 16px 0;
    background: #f5f5f5;
}

.shopee-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .shopee-cat-grid {
        gap: 8px;
    }
}

.shopee-cat-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.shopee-cat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shopee-cat-collage {
    aspect-ratio: 16/10;
    display: flex;
    gap: 1px;
    background: #e5e5e5;
}

.collage-main {
    flex: 1.25;
    overflow: hidden;
}

.collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.side-top {
    height: 50%;
    overflow: hidden;
}

.side-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-sub-grid {
    height: 50%;
    display: flex;
    gap: 1px;
}

.sub-img-box {
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.sub-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skeleton Effect */
.skeleton {
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* Collage Helpers */
.side-top {
    height: 50%;
    overflow: hidden;
    position: relative;
}

.side-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-img-box {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.sub-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skeleton Wave Animation */
@keyframes skeleton-wave {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton {
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: skeleton-wave 1.5s infinite;
}

/* Hide skeleton when image loaded */
.skeleton.loaded {
    background: transparent;
}

.skeleton.loaded::after {
    display: none;
}

.shopee-cat-collage img {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.shopee-cat-collage img.loaded {
    opacity: 1;
}

.shopee-cat-info {
    padding: 10px;
}

.shopee-cat-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopee-cat-count {
    font-size: 0.7rem;
    color: #888;
}
/* ============================================================
   NEW HEADER DESIGN (V2)
   ============================================================ */
#main-header {
    height: auto;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-100);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-search-v2 {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    padding: 2px;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: .9rem;
    outline: none;
}

.search-btn {
    padding: 8px 16px;
    color: var(--neutral-500);
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent);
}

.header-icon-btn {
    padding: 8px;
    color: var(--neutral-700);
    border-radius: 50%;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: var(--neutral-100);
    color: var(--accent);
}

/* Header Menu */
.header-menu {
    border-top: 1px solid var(--neutral-100);
    background: var(--white);
}

.menu-list {
    display: flex;
    gap: 32px;
}

.menu-item {
    padding: 12px 0;
    font-size: .85rem;
    font-weight: 500;
    color: var(--neutral-700);
    position: relative;
    transition: var(--transition);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.menu-item:hover {
    color: var(--accent);
}

.menu-item:hover::after {
    width: 100%;
}

/* Search Dropdown V2 */
.search-results-v2-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-100);
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
    display: none;
}

.search-results-v2-dropdown.visible {
    display: block;
}

.search-res-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--neutral-50);
}

.search-res-item:last-child {
    border-bottom: none;
}

.search-res-item:hover {
    background: var(--neutral-50);
}

.search-res-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-res-item .name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 2px;
}

.search-res-item .price {
    font-size: .8rem;
    color: var(--accent);
}

/* ============================================================
   PORTAL SECTIONS
   ============================================================ */
.section-title-wrapper {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0;
}

/* Hero Featured Section */
.hero-featured {
    background: linear-gradient(135deg, #fff 0%, var(--primary-ultra) 100%);
    padding: 64px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.featured-img-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Comparison Table */
.comparison-section {
    padding: 64px 0;
}

.comparison-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid var(--neutral-50);
}

.comparison-table th {
    background: var(--neutral-50);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* Review Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.article-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card img {
    width: 250px;
    object-fit: cover;
}

.article-body {
    padding: 32px;
}

.article-points {
    margin: 16px 0;
}

.article-point {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--neutral-700);
    margin-bottom: 8px;
}

.article-point svg {
    color: var(--success);
}
