/* ===================================================
   PRISTINE PARADIGM — app.css
   Luxury Jewelry E-commerce
   Color: Deep Purple #4C1365 + Gold (Light/Mid/Deep)
   NOTE: purple/gold variables re-matched to the exact
   tones sampled from the ArmiJen logo artwork.
=================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --green-900: #330D44;
    --green-800: #4C1365;
    --green-700: #5F187F;
    --green-600: #781EA0;
    --green-400: #A633D9;
    --green-200: #D8A5EE;
    --green-100: #F2E2F9;
    --ivory:     #f7f5f0;
    --ivory-dark:#eeebe3;
    --cream:     #faf9f6;
    --gold:        #E9B931;
    --gold-light:  #ECC24B;
    --gold-deep:   #C29515;
    --black:     #0a0a0a;
    --text:      #1a1a1a;
    --text-mid:  #4a4a4a;
    --text-muted:#7a7a7a;
    --white:     #ffffff;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow:    0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Jost', sans-serif;
    --nav-h:     120px;
    --radius:    4px;
    --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- NAVBAR ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--green-800);
}

/* Announcement Bar */
.announcement-bar {
    background: var(--green-900);
    text-align: center;
    padding: 9px 1rem;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
}
.announcement-bar a {
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.12em;
    transition: color var(--transition);
}
.announcement-bar a:hover { color: var(--white); }

/* Main Nav */
.nav-main {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    height: 80px;
}
.nav-brand {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-brand img {
    height: 56px;
    width: auto;
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav-links--left { justify-content: flex-end; }
.nav-links--right { justify-content: flex-start; }
.nav-links a {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    right: 2rem;
}
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
    position: relative;
}
.nav-icon:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    width: 16px; height: 16px;
    background: var(--gold);
    color: var(--green-900);
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    color: white;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: var(--transition);
}

/* Mobile Drawer */
.nav-drawer {
    display: none;
    background: var(--green-700);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer.open { display: block; }
.nav-drawer ul { display: flex; flex-direction: column; gap: 0; }
.nav-drawer a {
    display: block;
    padding: 0.85rem 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color var(--transition);
}
.nav-drawer a:hover { color: var(--white); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.85rem 2.25rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-hero {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.9);
    color: var(--white);
    padding: 1rem 2.75rem;
    letter-spacing: 0.2em;
    font-size: 11px;
}
.btn-hero:hover {
    background: var(--white);
    color: var(--green-800);
}
.btn-primary {
    background: var(--green-800);
    color: var(--white);
    border: 1px solid var(--green-800);
}
.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
}
.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--green-800);
    color: var(--green-800);
}
.btn-outline-dark:hover {
    background: var(--green-800);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
    color: var(--text);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    max-height: 550px;
    overflow: hidden;
    background: var(--green-900);
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1.04); }

/* Darken the image so the floating text stays readable */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.32);
    z-index: 1;
    pointer-events: none;
}

/* Floating centered text over the slideshow */
.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 0 1.5rem;
    text-align: center;
}
.hero-overlay-content .hero-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
}
.hero-overlay-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin: 0;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.hero-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background var(--transition), transform var(--transition);
}
.hero-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* ---------- BRAND DIVIDER ---------- */
.brand-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: var(--ivory-dark);
}
.brand-mark img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.3;
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 2rem; }
.section--featured { background: var(--white); }
.section--categories { background: var(--ivory); }
.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--green-800);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
}
.product-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--ivory);
}
.product-image {
    width: 100%; height: 100%;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--green-800);
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    font-family: var(--font-body);
    font-weight: 500;
}
.product-info {
    padding: 1rem 0 0.25rem;
}
.product-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.product-price {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 400;
}

/* ---------- AVAILABILITY STRIP ---------- */
.availability-strip {
    background: var(--green-800);
    padding: 3rem 2rem;
}
.availability-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}
.availability-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 2rem;
}
.availability-item:first-child { padding-left: 0; }
.availability-item:last-child { padding-right: 0; }
.availability-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    opacity: 0.85;
}
.availability-item h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
}
.availability-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}
.availability-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ---------- CATEGORY GRID ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.category-card {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--green-200);
}
.category-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
    filter: brightness(0.7);
}
.category-card:hover .category-image {
    transform: scale(1.06);
    filter: brightness(0.55);
}
.category-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(to top, rgba(51,13,68,0.75), transparent);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.08em;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.65);
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}
.footer-brand .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.footer-brand p {
    font-size: 13px;
    font-style: italic;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.45);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.footer-col h5 {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.footer-social a:hover { color: var(--white); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr auto 1fr;
    }
    .nav-links--left,
    .nav-links--right { display: none; }
    .nav-toggle { display: flex; }
    .nav-actions { position: static; gap: 0.5rem; justify-content: flex-end; }
    .nav-brand img { height: 44px; }

    .hero { height: 42vh; min-height: 320px; }
    .hero-overlay-content { padding: 0 1.25rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }

    .availability-inner { flex-direction: column; gap: 1.5rem; }
    .availability-item { padding: 0; width: 100%; }
    .availability-divider { width: 100%; height: 1px; }

    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

    .brand-divider { padding: 2rem 1.5rem; }
    .section { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
}

/* ── PRODUCT DETAIL PAGE ───────────────────────── */
.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--green-800); }
.breadcrumb span:not(:last-child) { color: var(--ivory-dark); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 2rem auto 5rem;
    padding: 0 2rem;
    align-items: start;
}

/* Gallery */
.detail-gallery { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 100px; }

.detail-main-image {
    aspect-ratio: 1 / 1;
    background: var(--ivory);
    overflow: hidden;
    border-radius: var(--radius);
}
.detail-main-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.detail-main-image:hover img { transform: scale(1.03); }

.detail-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.thumb {
    aspect-ratio: 1 / 1;
    background: var(--ivory);
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.thumb.active { border-color: var(--green-800); }
.thumb:hover { border-color: var(--green-400); }

/* Product Info Panel */
.detail-info { padding-top: 0.5rem; }

.detail-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 500;
}
.detail-name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--green-800);
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.detail-price {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}

/* Availability Tag */
.availability-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.45rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.75rem;
}
.avail-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.avail-onhand {
    background: rgba(120,30,160,0.12);
    color: var(--green-600);
    border: 1px solid rgba(120,30,160,0.25);
}
.avail-mto {
    background: rgba(233,185,49,0.1);
    color: var(--gold-deep);
    border: 1px solid rgba(233,185,49,0.25);
}

/* Option Groups */
.option-group { margin-bottom: 1.5rem; }
.options-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 0.65rem;
}
.option-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt-btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--ivory-dark);
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
}
.opt-btn:hover { border-color: var(--green-600); color: var(--green-800); }
.opt-btn.active {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--white);
}

/* Quantity */
.qty-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; }
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--ivory-dark);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 38px; height: 38px;
    background: var(--ivory);
    color: var(--text);
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.qty-btn:hover { background: var(--ivory-dark); }
.qty-val {
    min-width: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 0 0.5rem;
    border-left: 1px solid var(--ivory-dark);
    border-right: 1px solid var(--ivory-dark);
    line-height: 38px;
}

/* Action Buttons */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.btn-ocean {
    background: var(--green-800);
    border: 1px solid var(--green-800);
    color: var(--white);
}
.btn-ocean:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-accent {
    background: transparent;
    border: 1px solid var(--green-800);
    color: var(--green-800);
}
.btn-accent:hover { background: var(--green-800); color: var(--white); }

/* Description */
.product-description {
    padding: 1.5rem 0;
    border-top: 1px solid var(--ivory-dark);
}
.product-description h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--green-800);
    margin-bottom: 0.65rem;
    letter-spacing: 0.04em;
}
.product-description p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.6;
}
.alert-info {
    background: rgba(76,19,101,0.06);
    border: 1px solid rgba(76,19,101,0.15);
    color: var(--green-700);
}
.alert-info svg { flex-shrink: 0; margin-top: 1px; color: var(--green-600); }
.mt-3 { margin-top: 1.25rem; }

/* ── PRODUCT DETAIL RESPONSIVE ─────────────────── */
@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .detail-gallery { position: static; }
}

@media (max-width: 480px) {
    .product-detail { padding: 0 1rem; margin-bottom: 3rem; }
    .detail-actions { grid-template-columns: 1fr; }
    .detail-thumbnails { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
}

/* ===================================================
   PRISTINE PARADIGM — CART PAGE
=================================================== */

/* ── CART PAGE LAYOUT ─────────────────────────── */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 2rem auto 5rem;
    padding: 0 2rem;
    align-items: start;
}

/* ── CART ITEMS ───────────────────────────────── */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--ivory-dark);
    align-items: start;
}
.cart-item:first-child { border-top: 1px solid var(--ivory-dark); }

.cart-item-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--ivory);
    display: block;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-item-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--green-800);
    letter-spacing: 0.02em;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.cart-item-lead {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    width: fit-content;
    margin: 0.2rem 0 0.5rem;
}
.cart-item-lead.avail-onhand {
    background: rgba(120,30,160,0.1);
    color: var(--green-600);
    border: 1px solid rgba(120,30,160,0.2);
}
.cart-item-lead.avail-mto {
    background: rgba(233,185,49,0.1);
    color: var(--gold-deep);
    border: 1px solid rgba(233,185,49,0.2);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.remove-btn {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-body);
    padding: 0.3rem 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: color var(--transition);
}
.remove-btn:hover { color: #c0392b; }

/* ── CART SUMMARY ASIDE ───────────────────────── */
.cart-summary {
    background: var(--white);
    border: 1px solid var(--ivory-dark);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
}

.summary-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--green-800);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ivory-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-mid);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(238,235,227,0.7);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--ivory-dark);
    border-bottom: none;
}

.discount-row {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
}
.discount-input {
    flex: 1;
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--ivory-dark);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text);
    background: var(--cream);
    outline: none;
    transition: border-color var(--transition);
}
.discount-input::placeholder { color: var(--text-muted); }
.discount-input:focus { border-color: var(--green-600); }

#discountMsg { margin: 0.5rem 0; }

.checkout-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    background: var(--green-800);
    border: 1px solid var(--green-800);
    color: var(--white);
    border-radius: var(--radius);
    transition: background var(--transition);
}
.checkout-btn:hover { background: var(--green-700); border-color: var(--green-700); }

/* alert variants used in cart */
.alert-success {
    background: rgba(120,30,160,0.08);
    border: 1px solid rgba(120,30,160,0.2);
    color: var(--green-600);
}
.alert-danger {
    background: rgba(192,57,43,0.07);
    border: 1px solid rgba(192,57,43,0.18);
    color: #c0392b;
}

/* ── CART RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
    .cart-page {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .cart-page { padding: 0 1rem; margin-bottom: 3rem; }
    .cart-item { grid-template-columns: 88px 1fr; gap: 1rem; }
    .cart-item-img { width: 88px; height: 88px; }
    .cart-item-actions { flex-wrap: wrap; gap: 0.65rem; }
}

.gold-text {
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}