/* Maison Alchemist - Figma Editorial Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors */
    --primary: #000000;
    --on-primary: #ffffff;
    --ink: #000000;
    --canvas: #ffffff;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
    --on-inverse-soft: rgba(255, 255, 255, 0.16);
    --hairline: #000000;
    --hairline-soft: #000000;
    --surface-soft: #f7f7f5;
    
    /* Pastel Color Blocks */
    --block-lime: #dceeb1;
    --block-lilac: #c5b0f4;
    --block-cream: #f4ecd6;
    --block-pink: #efd4d4;
    --block-mint: #c8e6cd;
    --block-coral: #f3c9b6;
    --block-navy: #1f1d3d;
    --accent-magenta: #ff3d8b;
    --success: #1ea64a;
    --warning: #ff9500;
    --danger: #ff3b30;
    --info: #007aff;
    
    /* Border Radius */
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 24px;
    --rounded-xl: 32px;
    --rounded-pill: 50px;
    --rounded-full: 9999px;
    
    /* Spacing */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 96px;
    
    /* Typography Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 320;
    line-height: 1.45;
    letter-spacing: -0.26px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Elegant editorial scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--canvas);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--rounded-full);
}

/* Container limits */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Spacing and layout helpers */
.py-5 {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}
.text-center { text-align: center; }
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Figma Typography tokens mapping */
.display-xl {
    font-size: 86px;
    font-weight: 300;
    line-height: 1.00;
    letter-spacing: -1.72px;
}
.display-lg {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.10;
    letter-spacing: -0.96px;
}
.headline {
    font-size: 26px;
    font-weight: 540;
    line-height: 1.35;
    letter-spacing: -0.26px;
}
.subhead {
    font-size: 26px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.26px;
}
.card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}
.body-lg {
    font-size: 20px;
    font-weight: 330;
    line-height: 1.40;
    letter-spacing: -0.14px;
}
.body-sm {
    font-size: 16px;
    font-weight: 330;
    line-height: 1.45;
    letter-spacing: -0.14px;
}
.eyebrow {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}
.caption {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.60px;
}

/* Section titles for Figma pacing */
.section-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.64px;
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}
.section-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--spacing-xxl);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    opacity: 0.7;
}

/* Figma Pill-Buttons components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: var(--rounded-pill);
    cursor: pointer;
    border: 1px solid var(--primary);
    box-shadow: 2px 2px 0px var(--primary);
    transition: var(--transition);
}
.btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--primary);
}
.btn:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0px var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}
.btn-primary:hover {
    background-color: #222;
}

.btn-secondary {
    background-color: var(--canvas);
    color: var(--ink);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background-color: var(--surface-soft);
}

.btn-sm {
    padding: 6px 18px;
    font-size: 13px;
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background-color: #d32f2f;
}

/* Icon circular button */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-full);
    background-color: var(--surface-soft);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background-color: var(--hairline);
}

/* Top Nav Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}
.nav-links a {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}
.nav-links a:hover, .nav-links a.active {
    font-weight: 600;
}

/* Search input */
.nav-search {
    position: relative;
    width: 240px;
}
.nav-search input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    background: var(--surface-soft);
    border: 1px solid var(--primary);
    border-radius: var(--rounded-pill);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.nav-search input:focus {
    border-color: var(--primary);
    background: var(--canvas);
    width: 290px;
    box-shadow: 2px 2px 0px var(--primary);
}
.nav-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    min-width: 350px;
    background: var(--canvas);
    border: 1px solid var(--primary);
    border-radius: var(--rounded-md);
    margin-top: 10px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
    box-shadow: 4px 4px 0px var(--primary);
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--hairline-soft);
    transition: var(--transition);
}
.search-result-item:hover {
    background: var(--surface-soft);
}
.search-result-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--rounded-sm);
    margin-right: 15px;
}
.search-result-info h4 {
    font-size: 15px;
    margin-bottom: 2px;
    font-weight: 600;
}
.search-result-info p {
    font-size: 12px;
    color: var(--ink);
    opacity: 0.6;
}
.search-result-info .price {
    font-weight: 600;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}
.nav-icon {
    position: relative;
    color: var(--ink);
    font-size: 18px;
}
.nav-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: var(--rounded-full);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Marquee ribbon strip under header */
.marquee-strip {
    background: var(--inverse-canvas);
    color: var(--inverse-ink);
    height: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--hairline);
}
.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}
.marquee-content span {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 40px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Hero opening section */
.hero {
    background: var(--canvas) !important;
    height: auto;
    padding: var(--spacing-section) 0;
    border-bottom: 1px solid var(--hairline);
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}
.hero-title {
    font-size: 86px;
    font-weight: 300;
    line-height: 1.00;
    letter-spacing: -1.72px;
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
}
.hero-desc {
    font-size: 20px;
    font-weight: 330;
    line-height: 1.40;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Figma Color Block Panels */
.color-block {
    border-radius: 24px 8px 32px 12px;
    padding: var(--spacing-xxl);
    margin-bottom: var(--spacing-section);
    border: 1px solid var(--primary);
    box-shadow: 4px 4px 0px var(--primary);
}
.color-block-lime { background-color: var(--block-lime); color: var(--ink); }
.color-block-lilac { background-color: var(--block-lilac); color: var(--ink); }
.color-block-cream { background-color: var(--block-cream); color: var(--ink); }
.color-block-pink { background-color: var(--block-pink); color: var(--ink); }
.color-block-mint { background-color: var(--block-mint); color: var(--ink); }
.color-block-coral { background-color: var(--block-coral); color: var(--ink); }
.color-block-navy { 
    background-color: var(--block-navy); 
    color: var(--inverse-ink); 
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.16);
}
.color-block-navy h2, .color-block-navy h3, .color-block-navy h4, .color-block-navy a {
    color: var(--inverse-ink);
}

/* Micro-rotations to evoke manual notes/collage collage signature layout */
.rotate-left-micro {
    transform: rotate(-0.8deg);
}
.rotate-right-micro {
    transform: rotate(0.6deg);
}

/* Categories Grid using color blocks */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-section);
}
.category-block {
    border-radius: 20px 8px 24px 6px;
    padding: var(--spacing-xl);
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid var(--primary);
    box-shadow: 3px 3px 0px var(--primary);
    transition: var(--transition);
}
.category-block:hover {
    transform: translate(-2px, -2px) rotate(0deg) !important;
    box-shadow: 5px 5px 0px var(--primary);
}
.category-block h3 {
    font-size: 26px;
    font-weight: 540;
}
.category-block p {
    font-size: 15px;
    opacity: 0.8;
}

/* Brand Grid style */
.brands-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    margin-bottom: var(--spacing-section);
}
.brand-item {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Cards Grid with Hairline Border */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}
.product-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 12px 4px 16px 6px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 0px var(--primary);
}
.product-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--primary);
}
.product-img-wrapper {
    position: relative;
    height: 300px;
    background: var(--surface-soft);
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--rounded-pill);
}
.product-badge.clone {
    background: var(--surface-soft);
    color: var(--ink);
    border: 1px solid var(--primary);
}
.product-compare-chk {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.product-compare-chk input {
    accent-color: var(--primary);
}

.product-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-brand {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink);
    opacity: 0.6;
    margin-bottom: var(--spacing-xs);
}
.product-title {
    font-size: 22px;
    font-weight: 540;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}
.product-notes-preview {
    font-size: 14px;
    color: var(--ink);
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--hairline-soft);
}
.product-price-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.product-price {
    font-size: 18px;
    font-weight: 700;
}

/* Sidebar & Listing Filters Layout */
.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
}
.sidebar-filters {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    padding: var(--spacing-lg);
    border-radius: var(--rounded-md);
    align-self: start;
}
.filter-group {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--hairline-soft);
}
.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}
.filter-title {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}
.filter-list {
    list-style: none;
}
.filter-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 15px;
}
.filter-list input[type="checkbox"], .filter-list input[type="radio"] {
    margin-right: var(--spacing-sm);
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.price-inputs {
    display: flex;
    gap: var(--spacing-xs);
}
.price-inputs input {
    width: 50%;
    padding: 10px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    color: var(--ink);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.price-inputs input:focus {
    border-color: var(--primary);
}

/* Sorting of Listing */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--hairline);
}
.listing-header p {
    font-size: 15px;
    opacity: 0.7;
}
.sort-select {
    padding: 8px 12px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    color: var(--ink);
    border-radius: var(--rounded-sm);
    font-size: 13px;
    outline: none;
}
.sort-select:focus {
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
}
.page-link {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--hairline);
    background: var(--canvas);
    border-radius: var(--rounded-sm);
    color: var(--ink);
    font-size: 14px;
}
.page-link:hover, .page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

/* Product Detail Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.main-image-container {
    height: 480px;
    background: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    overflow: hidden;
}
.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbnails {
    display: flex;
    gap: var(--spacing-md);
}
.gallery-thumb {
    width: 70px;
    height: 70px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.5;
}
.gallery-thumb.active, .gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Info */
.detail-info {
    display: flex;
    flex-direction: column;
}
.detail-category {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}
.detail-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.64px;
    margin-bottom: var(--spacing-xs);
}
.detail-brand {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.7;
}
.detail-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}
.stars {
    color: var(--primary);
    font-size: 14px;
}
.detail-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

/* Perfume Notes Breakdown */
.notes-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    background: var(--block-cream);
    border: 1px solid var(--primary);
    border-radius: 16px 6px 20px 4px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 3px 3px 0px var(--primary);
}
.note-section h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: var(--spacing-xxs);
}
.note-section p {
    font-size: 14px;
    color: var(--ink);
}

/* Performance metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}
.metric-box {
    background: var(--canvas);
    border: 1px solid var(--primary);
    padding: var(--spacing-sm);
    border-radius: 8px 4px 10px 3px;
    text-align: center;
    box-shadow: 2px 2px 0px var(--primary);
    transition: var(--transition);
}
.metric-box:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--primary);
}
.metric-box label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--spacing-xxs);
}
.metric-box .value {
    font-size: 15px;
    font-weight: 600;
}

/* Size options selector */
.size-selector {
    margin-bottom: var(--spacing-lg);
}
.size-selector label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: var(--spacing-xs);
}
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}
.size-option-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.size-option-btn span {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-pill);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.size-option-btn input:checked + span {
    border-color: var(--primary);
    color: var(--on-primary);
    background: var(--primary);
}

.price-ml-display {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}
.variant-price {
    font-size: 30px;
    font-weight: 700;
}
.unit-price-ml {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.stock-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    margin-left: auto;
}
.stock-badge.in-stock { color: var(--success); }
.stock-badge.low-stock { color: var(--warning); }
.stock-badge.out-stock { color: var(--danger); }

/* Purchase row */
.purchase-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary);
    border-radius: var(--rounded-pill);
    overflow: hidden;
}
.quantity-selector button {
    background: transparent;
    border: none;
    color: var(--ink);
    width: 35px;
    height: 42px;
    font-size: 14px;
    cursor: pointer;
}
.quantity-selector button:hover {
    background: var(--surface-soft);
}
.quantity-selector input {
    width: 40px;
    height: 42px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    color: var(--ink);
    text-align: center;
    font-size: 14px;
    outline: none;
}

/* Compare Drawer */
.compare-drawer {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: var(--block-lilac);
    border-top: 1px solid var(--primary);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.compare-drawer.active {
    bottom: 0;
}
.compare-items-list {
    display: flex;
    gap: var(--spacing-md);
}
.compare-drawer-item {
    display: flex;
    align-items: center;
    background: var(--canvas);
    padding: 6px 15px;
    border-radius: var(--rounded-pill);
    border: 1px solid var(--primary);
    font-size: 13px;
}
.compare-drawer-item img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: var(--rounded-full);
}
.compare-drawer-item .remove {
    margin-left: 8px;
    color: var(--danger);
    cursor: pointer;
    font-weight: bold;
}

/* Compare Page Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-lg);
    border: 1px solid var(--hairline);
}
.compare-table th, .compare-table td {
    padding: var(--spacing-md);
    border: 1px solid var(--hairline);
    text-align: center;
}
.compare-table th {
    background: var(--surface-soft);
    font-size: 18px;
    font-weight: 600;
}
.compare-table td.property-name {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    background: var(--surface-soft);
    color: var(--primary);
    width: 200px;
}
.compare-table img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: var(--rounded-sm);
    border: 1px solid var(--hairline);
}

/* Cart Page layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-xl);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--primary);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.cart-table td {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--hairline);
}
.cart-product {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}
.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--rounded-sm);
    border: 1px solid var(--hairline);
}
.cart-product-title {
    font-size: 18px;
    font-weight: 600;
}
.cart-remove-btn {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.cart-summary {
    background: var(--surface-soft);
    border: 1px solid var(--primary);
    padding: var(--spacing-xl);
    border-radius: 20px 8px 24px 6px;
    align-self: start;
    box-shadow: 4px 4px 0px var(--primary);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 15px;
}
.summary-row.total {
    border-top: 1px solid var(--primary);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: 20px;
    font-weight: 700;
}
.coupon-input-group {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}
.coupon-input-group input {
    flex-grow: 1;
    padding: 10px 14px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    color: var(--ink);
    text-transform: uppercase;
    font-size: 13px;
    outline: none;
}
.coupon-input-group input:focus {
    border-color: var(--primary);
}
.coupon-message {
    font-size: 12px;
    margin-bottom: 10px;
}
.coupon-message.success { color: var(--success); }
.coupon-message.error { color: var(--danger); }

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
}
.checkout-section {
    background: var(--canvas);
    border: 1px solid var(--primary);
    padding: var(--spacing-xl);
    border-radius: 24px 8px 32px 12px;
    margin-bottom: var(--spacing-xl);
    box-shadow: 4px 4px 0px var(--primary);
}
.checkout-section h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: var(--spacing-xs);
}
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.address-card {
    border: 1px solid var(--hairline);
    padding: var(--spacing-md);
    border-radius: var(--rounded-md);
    cursor: pointer;
    position: relative;
}
.address-card.selected, .address-card:hover {
    border-color: var(--primary);
    background-color: var(--surface-soft);
}
.address-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    accent-color: var(--primary);
}
.address-card h4 {
    font-size: 15px;
    margin-bottom: 5px;
}
.address-card p {
    font-size: 13px;
    opacity: 0.8;
}

/* Forms styling */
.form-group {
    margin-bottom: var(--spacing-md);
}
.form-group label {
    display: block;
    margin-bottom: var(--spacing-xxs);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    color: var(--ink);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 2px 2px 0px var(--primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Timeline */
.order-tracking {
    margin: var(--spacing-lg) 0;
}
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hairline);
    z-index: 1;
}
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}
.timeline-dot {
    width: 26px;
    height: 26px;
    background: var(--canvas);
    border: 2px solid var(--hairline);
    border-radius: var(--rounded-full);
    margin: 0 auto 8px auto;
}
.timeline-step.active .timeline-dot {
    border-color: var(--primary);
    background: var(--primary);
}
.timeline-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

/* Admin layout custom styling */
.admin-sidebar {
    background: var(--primary) !important;
}
.admin-sidebar h1 {
    color: var(--on-primary) !important;
}
.admin-sidebar-menu a {
    color: var(--hairline) !important;
}
.admin-sidebar-menu a:hover, .admin-sidebar-menu a.active {
    background-color: var(--on-inverse-soft) !important;
    color: var(--on-primary) !important;
    border-left-color: var(--on-primary) !important;
}
.admin-content {
    background-color: var(--canvas);
}
.admin-table-container {
    border-radius: var(--rounded-md) !important;
}
.admin-table th {
    background-color: var(--surface-soft) !important;
    color: var(--ink) !important;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    border-radius: var(--rounded-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.placed { background: var(--surface-soft); color: var(--primary); border: 1px solid var(--primary); }
.status-badge.confirmed { background: var(--block-cream); color: var(--primary); }
.status-badge.shipped { background: var(--block-lilac); color: var(--primary); }
.status-badge.delivered { background: var(--block-mint); color: var(--success); }
.status-badge.cancelled { background: var(--block-pink); color: var(--danger); }

/* Review items list */
.review-item {
    background: var(--surface-soft);
    border: 1px solid var(--hairline);
    padding: var(--spacing-lg);
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-md);
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}
.review-author {
    font-weight: 600;
}
.review-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.admin-reply-box {
    background: var(--canvas);
    border-left: 2px solid var(--primary);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: var(--spacing-sm);
}
.admin-reply-box h5 {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--primary);
}

/* Alert Boxes */
.alert {
    padding: 12px 20px;
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-lg);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}
.alert-success {
    background: var(--block-mint);
    border: 1px solid var(--success);
    color: var(--success);
}
.alert-error {
    background: var(--block-pink);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Responsive details */
@media(max-width: 960px) {
    .product-detail-layout, .listing-layout, .cart-layout, .checkout-layout, .admin-layout {
        grid-template-columns: 1fr !important;
    }
    .hero-title {
        font-size: 48px;
    }
}
