/* ==========================================================================
   AURELIA FINE JEWELRY - DESIGN SYSTEM & TOKENS
   Quiet Luxury + Editorial E-Commerce Architectural Standard
   ========================================================================== */

:root {
    /* Color Palette - Warm Ivory, Champagne Gold, Deep Espresso */
    --color-bg: #FDFBF7;
    --color-surface: #FAF6F0;
    --color-surface-elevated: #F3ECE2;
    --color-text-main: #1C1917;
    --color-text-muted: #666059;
    --color-accent-gold: #C5A059;
    --color-accent-gold-hover: #A8833D;
    --color-border: #E8E2D8;
    --color-border-dark: #332E2A;
    --color-white: #FFFFFF;
    --color-dark-surface: #171514;

    /* Typography */
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

    /* Modular Fluid Scale */
    --step--2: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
    --step--1: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
    --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
    --step-2: clamp(1.5rem, 1.35rem + 0.8vw, 1.85rem);
    --step-3: clamp(2rem, 1.7rem + 1.2vw, 2.5rem);
    --step-4: clamp(2.6rem, 2.1rem + 2vw, 3.5rem);

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --site-max-width: 1400px;
    --header-height: 80px;
    --radius-subtle: 2px;

    /* Motion Tokens */
    --ease-editorial: cubic-bezier(0.25, 1, 0.35, 1);
    --dur-fast: 200ms;
    --dur-base: 350ms;
    --dur-slow: 600ms;

    /* Z-Index Hierarchy */
    --z-base: 1;
    --z-header: 100;
    --z-drawer: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-text-main);
    color: var(--color-bg);
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    transition: top var(--dur-fast);
}

.skip-link:focus {
    top: 1rem;
}

/* Layout Containers */
.container {
    width: 90%;
    max-width: var(--site-max-width);
    margin-inline: auto;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4-col {
    grid-template-columns: repeat(4, 1fr);
}

.align-center {
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center {
    text-align: center;
}

/* Typography Standard */
h1,
h2,
h3,
h4,
.brand-name {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--step-4);
}

h2 {
    font-size: var(--step-3);
}

h3 {
    font-size: var(--step-2);
}

.sub-caption {
    font-family: var(--font-sans);
    font-size: var(--step--2);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.body-text {
    font-size: var(--step-0);
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-bottom: var(--space-sm);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-dark-surface);
    color: var(--color-surface-elevated);
    font-size: var(--step--2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-bar__content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.announcement-bar__close {
    position: absolute;
    right: 0;
    color: var(--color-surface-elevated);
    font-size: 1.2rem;
    line-height: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--dur-base) var(--ease-editorial);
}

.header__inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header__brand .brand-name {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    letter-spacing: 0.22em;
    font-weight: 500;
}

.header__brand .brand-tag {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--color-accent-gold);
    margin-top: -3px;
}

.nav__list {
    display: flex;
    gap: var(--space-md);
}

.nav__link {
    font-size: var(--step--1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-block: 0.25rem;
    transition: color var(--dur-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent-gold);
    transition: width var(--dur-base) var(--ease-editorial);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.icon-btn {
    position: relative;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--dur-fast);
}

.icon-btn:hover {
    opacity: 0.7;
}

.badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: var(--color-accent-gold);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.header__mobile-toggle {
    display: none;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 1.5px;
    background-color: var(--color-text-main);
    position: absolute;
    transition: transform var(--dur-fast);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: '';
    top: -7px;
}

.hamburger-inner::after {
    content: '';
    top: 7px;
}

/* Buttons & CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: var(--radius-subtle);
    transition: all var(--dur-base) var(--ease-editorial);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-text-main);
    color: var(--color-bg);
    border: 1px solid var(--color-text-main);
}

.btn--primary:hover {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-white);
}

.btn--secondary {
    background-color: var(--color-accent-gold);
    color: var(--color-white);
    border: 1px solid var(--color-accent-gold);
}

.btn--secondary:hover {
    background-color: var(--color-accent-gold-hover);
}

.btn--outline {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}

.btn--outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg);
}

.btn--full {
    width: 100%;
}

.link-btn {
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Search Drawer */
.search-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    display: none;
}

.search-drawer.active {
    display: block;
}

.search-drawer__inner {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-drawer input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-dark);
    padding: 0.5rem 0;
    font-size: var(--step-1);
    font-family: var(--font-serif);
}

/* Page View Router Management */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-editorial);
}

.page-view.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(90vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding-block: var(--space-xl);
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.hero__lead {
    font-size: var(--step-1);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero .btn--outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero .btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

/* Interactive 3D Section */
.interactive-3d-section {
    padding-block: var(--space-xl);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.three-canvas-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    cursor: grab;
    background: radial-gradient(circle, rgba(253, 251, 247, 1) 0%, rgba(240, 233, 222, 1) 100%);
    border-radius: var(--radius-subtle);
    border: 1px solid var(--color-border);
}

.three-canvas-box:active {
    cursor: grabbing;
}

.material-pills {
    display: flex;
    gap: 0.5rem;
    margin-block: var(--space-sm);
}

.pill {
    font-size: var(--step--2);
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-muted);
}

.hint-text {
    font-size: var(--step--2);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

/* Bento Collection Grid */
.section {
    padding-block: var(--space-xl);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    border-radius: var(--radius-subtle);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-editorial);
}

.bento-card:hover img {
    transform: scale(1.05);
}

.bento-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-white);
}

.bento-card__content h3 {
    font-size: var(--step-2);
    color: var(--color-white);
}

.bento-card__content p {
    font-size: var(--step--1);
    opacity: 0.85;
}

.bento-card__content .link-btn {
    color: var(--color-accent-gold);
}

.bento-card--large {
    grid-column: span 2;
}

.bento-card--wide {
    grid-column: span 3;
    min-height: 300px;
}

/* Product Cards & Grid */
.bg-sand {
    background-color: var(--color-surface);
}

.product-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-base) var(--ease-editorial), box-shadow var(--dur-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    background-color: var(--color-surface-elevated);
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-editorial);
}

.product-card:hover .product-card__img {
    transform: scale(1.06);
}

.product-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(4px);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background var(--dur-fast);
}

.product-card__wishlist.active svg {
    fill: var(--color-accent-gold);
    stroke: var(--color-accent-gold);
}

.product-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: var(--step-1);
    margin-bottom: 0.25rem;
}

.product-card__meta {
    font-size: var(--step--2);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-card__price {
    font-size: var(--step-0);
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 1rem;
}

/* Editorial Storytelling Section */
.editorial-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.editorial__image-stack {
    position: relative;
    padding-bottom: 3rem;
}

.editorial__img-main {
    width: 85%;
    border-radius: var(--radius-subtle);
}

.editorial__img-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    border: 8px solid var(--color-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.stat-num {
    font-family: var(--font-serif);
    font-size: var(--step-2);
    display: block;
    color: var(--color-accent-gold);
}

.stat-lbl {
    font-size: var(--step--2);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Gifting Banner */
.gift-banner__box {
    background: var(--color-dark-surface);
    color: var(--color-surface-elevated);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border-radius: var(--radius-subtle);
    position: relative;
}

.gift-banner h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.gift-banner p {
    max-width: 50ch;
    margin: 0 auto var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

/* Shop Catalog Page Layout */
.shop-header {
    padding-block: var(--space-lg);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-lg);
}

.shop-sidebar {
    border-right: 1px solid var(--color-border);
    padding-right: var(--space-md);
}

.filter-group {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.filter-title {
    font-size: var(--step-0);
    margin-bottom: 1rem;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-btn {
    font-size: var(--step--1);
    color: var(--color-text-muted);
    transition: color var(--dur-fast);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--color-accent-gold);
    font-weight: 600;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkbox-label {
    font-size: var(--step--1);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.price-slider-box input[type="range"] {
    width: 100%;
    accent-color: var(--color-accent-gold);
}

.price-val-display {
    font-size: var(--step--1);
    margin-top: 0.5rem;
    font-weight: 600;
}

.shop-toolbar {
    margin-bottom: var(--space-md);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.sort-select {
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-size: var(--step--1);
}

.mobile-filter-trigger {
    display: none;
}

/* Active Filter Tags */
.active-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.tag-pill {
    font-size: var(--step--2);
    background: var(--color-surface-elevated);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tag-pill button {
    font-size: 1rem;
    line-height: 1;
}

.no-results {
    text-align: center;
    padding: var(--space-xl) 0;
}

/* Atelier Craftsmanship Page */
.atelier-hero {
    padding-block: var(--space-xl);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.rounded-img {
    border-radius: var(--radius-subtle);
}

.margin-bottom-lg {
    margin-bottom: var(--space-lg);
}

.grid-reverse {
    direction: rtl;
}

.grid-reverse>* {
    direction: ltr;
}

/* Newsletter Section */
.newsletter-section {
    padding-block: var(--space-xl);
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: var(--space-md) auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border-dark);
    background: var(--color-bg);
    font-size: var(--step--1);
}

/* Footer */
.footer {
    background-color: var(--color-dark-surface);
    color: var(--color-surface-elevated);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
    border-top: 1px solid var(--color-border-dark);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer h4 {
    color: var(--color-white);
    font-size: var(--step-0);
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    opacity: 0.8;
    transition: opacity var(--dur-fast);
}

.footer a:hover {
    opacity: 1;
    color: var(--color-accent-gold);
}

.footer__bottom {
    font-size: var(--step--2);
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
}

/* Slide-out Drawers & Modals */
.modal-overlay,
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 21, 20, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-editorial);
}

.modal-overlay.active,
.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 460px;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-editorial);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.drawer-overlay.active .drawer {
    transform: translateX(0);
}

.drawer__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.drawer__body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.drawer__footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.drawer__close,
.modal-close {
    font-size: 1.8rem;
    line-height: 1;
}

/* Product Detail Page (PDP) Modal */
.modal-container {
    background: var(--color-bg);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--space-md);
    border-radius: var(--radius-subtle);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdp-main-img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.pdp-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.pdp-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.pdp-thumb.active {
    border-color: var(--color-accent-gold);
}

.variant-selector {
    margin-block: 1rem;
}

.variant-title {
    font-size: var(--step--1);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.variant-options {
    display: flex;
    gap: 0.5rem;
}

.variant-chip {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border);
    font-size: var(--step--2);
    cursor: pointer;
}

.variant-chip.active {
    border-color: var(--color-text-main);
    background-color: var(--color-text-main);
    color: var(--color-bg);
}

/* Accordion Tab Styles */
.accordion {
    border-top: 1px solid var(--color-border);
    margin-top: 1.5rem;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    padding: 0.85rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--step--1);
    font-weight: 600;
    text-align: left;
}

.accordion-content {
    padding-bottom: 1rem;
    font-size: var(--step--1);
    color: var(--color-text-muted);
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Cart Drawer Item Style */
.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-item__img {
    width: 80px;
    height: 90px;
    object-fit: cover;
}

.cart-item__details {
    flex: 1;
}

.cart-item__title {
    font-size: var(--step-0);
    font-family: var(--font-serif);
}

.cart-item__price {
    font-weight: 600;
    font-size: var(--step--1);
}

.cart-item__meta {
    font-size: var(--step--2);
    color: var(--color-text-muted);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-dark-surface);
    color: var(--color-white);
    padding: 0.85rem 1.5rem;
    font-size: var(--step--1);
    border-left: 3px solid var(--color-accent-gold);
    z-index: var(--z-toast);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--dur-base) var(--ease-editorial);
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   Mobile First Adaptation (320px - 1024px+)
   ========================================================================== */

@media (max-width: 1024px) {
    .grid--4-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-card--large,
    .bento-card--wide {
        grid-column: span 2;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .pdp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--space-md);
        transform: translateX(-100%);
        transition: transform var(--dur-base) var(--ease-editorial);
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .header__mobile-toggle {
        display: block;
    }

    .grid--2-col {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--large,
    .bento-card--wide {
        grid-column: span 1;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
    }

    /* Drawer used instead */
    .mobile-filter-trigger {
        display: inline-flex;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero {
        min-height: 70vh;
    }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}