@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* --- DESIGN SYSTEM TOKENS (Aurelian & Onyx) --- */
:root {
    /* Color Palette */
    --color-background: #faf9f6;        /* Ivory warm base */
    --color-surface-white: #ffffff;     /* Pure white panels */
    --color-surface-dim: #dbdad7;       /* Stone dim backgrounds */
    --color-surface-container: #efeeeb; /* Stone light containers */
    --color-on-surface: #1a1c1a;        /* Carbon black */
    --color-text-charcoal: #2d2d2d;     /* Deep charcoal primary body */
    --color-text-muted: #6f6e6b;        /* Muted brown-gray */
    --color-primary: #735b25;           /* Deep luxury gold */
    --color-primary-gold: #b89b5e;      /* Brushed Quiet Gold */
    --color-true-black: #121212;        /* High-contrast brand elements */
    --color-error: #ba1a1a;             /* Deep garnet error */
    --color-border: rgba(45, 45, 45, 0.08); /* Low opacity hairline border */
    --color-border-focus: #b89b5e;

    /* Spacing Units */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --section-gap: 120px;
    --margin-desktop: 80px;
    --margin-mobile: 20px;
    --container-max: 1440px;

    /* Fonts */
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'DM Sans', sans-serif;
    
    /* Layout heights */
    --header-height: 80px;
}

/* --- BASE STYLING --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-background);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-charcoal);
    overflow-x: hidden;
    background-color: var(--color-background);
}

/* Typography Helpers */
h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-true-black);
    letter-spacing: -0.01em;
}

.caps-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-true-black);
}

p {
    font-family: var(--font-sans);
    color: var(--color-text-charcoal);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

/* Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}
.material-symbols-outlined:hover {
    color: var(--color-primary-gold);
}

/* Container */
.shop-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
    width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--color-surface-dim);
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-gold);
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: none;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    height: 70px;
    background-color: var(--color-background);
}

/* White text for transparent header */
header:not(.scrolled) .nav-link,
header:not(.scrolled) .brand-logo-main,
header:not(.scrolled) .material-symbols-outlined {
    color: var(--color-surface-white);
}

header:not(.scrolled) .brand-logo-sub {
    color: #e6d3a3;
}

header:not(.scrolled) .cart-counter {
    background-color: var(--color-surface-white);
    color: var(--color-true-black);
}

header:not(.scrolled) .nav-link:hover, 
header:not(.scrolled) .nav-link.active {
    color: var(--color-primary-gold);
}

header:not(.scrolled) .nav-link::after {
    background-color: var(--color-primary-gold);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo-text {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 0.1em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-true-black);
}

.brand-logo-text span {
    color: var(--color-primary-gold);
}

/* --- BRAND LOGO CUSTOM VECTOR STYLING (A&O FASHION) --- */
.brand-logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-emblem {
    height: 48px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
}

.brand-logo-main {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-true-black);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.brand-logo-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--color-primary-gold);
    margin-top: 2px;
    text-transform: uppercase;
}

/* Header Scrolled state transitions */
header.scrolled .brand-logo-emblem {
    height: 40px;
}
header.scrolled .brand-logo-main {
    font-size: 26px;
}
header.scrolled .brand-logo-sub {
    font-size: 9px;
}

/* Hover effects */
.brand-logo-link:hover .brand-logo-emblem {
    transform: rotate(15deg) scale(1.05);
}

.brand-logo-link:hover .brand-logo-main {
    color: var(--color-primary-gold);
}

/* Footer brand logo custom vertical alignment styling */
.brand-logo-link-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
}

.brand-logo-emblem-vertical {
    height: 56px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-text-vertical {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-logo-main-vertical {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-true-black);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.brand-logo-sub-vertical {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--color-primary-gold);
    margin-top: 4px;
    text-transform: uppercase;
}

/* Footer Hover effects */
.brand-logo-link-vertical:hover .brand-logo-emblem-vertical {
    transform: rotate(-15deg) scale(1.05);
}

.brand-logo-link-vertical:hover .brand-logo-main-vertical {
    color: var(--color-primary-gold);
}

nav.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-charcoal);
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-true-black);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.cart-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-true-black);
    color: var(--color-background);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle {
    display: none;
}

/* --- HERO SECTION --- */
.hero-section {
    height: calc(100vh - 40px);
    position: relative;
    background-color: var(--color-surface-dim);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-surface-white);
    max-width: 650px;
}

.hero-subtitle {
    color: var(--color-background);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    font-size: 14px;
    font-weight: 100 !important;
    -webkit-font-smoothing: antialiased;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    color: var(--color-surface-white);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-serif);
}

.hero-description {
    font-family: var(--font-sans) !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1.6;
    color: var(--color-background);
    margin-bottom: var(--spacing-xl);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn-primary {
    background-color: var(--color-true-black);
    color: var(--color-background);
    border: 1px solid var(--color-true-black);
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0; /* Strict Sharp Corners */
}

.btn-primary:hover {
    background-color: var(--color-primary-gold);
    border-color: var(--color-primary-gold);
    color: var(--color-true-black);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-surface-white);
    border: 1px solid var(--color-surface-white);
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0; /* Sharp Corners */
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--color-surface-white);
    color: var(--color-true-black);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-true-black);
    border: 1px solid var(--color-true-black);
    padding: 14px 30px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-outline-dark:hover {
    background-color: var(--color-true-black);
    color: var(--color-background);
}

/* --- CORE SECTIONS --- */
.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: 36px;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1.5px;
    background-color: var(--color-primary-gold);
}

.section-link {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-charcoal);
    border-bottom: 1px solid var(--color-primary-gold);
    padding-bottom: 2px;
}

.section-link:hover {
    color: var(--color-primary-gold);
}

/* --- SHOP VIEW & PRODUCT CATALOG --- */
.catalog-section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: var(--spacing-xxl);
}

.filter-btn {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--color-true-black);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary-gold);
    transition: all 0.3s ease;
}

.filter-btn.active::after {
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--color-surface-container);
    margin-bottom: var(--spacing-md);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-cover: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(250, 249, 246, 0.9);
    padding: 6px 12px;
    font-size: 9px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(18, 18, 18, 0.05);
}

.product-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    color: var(--color-background);
    text-align: center;
    padding: 14px 0;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.product-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-gold);
    font-weight: 500;
}

.product-title {
    font-size: 16px;
    color: var(--color-text-charcoal);
    font-family: var(--font-sans);
    font-weight: 400;
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: var(--color-primary-gold);
}

.product-price {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-true-black);
    letter-spacing: 0.05em;
}

/* --- EDITORIAL BRAND CALLOUT --- */
.editorial-section {
    background-color: var(--color-surface-container);
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-xl);
    align-items: center;
}

.editorial-text-col {
    grid-column: span 5;
}

.editorial-image-col {
    grid-column: 7 / span 6;
    position: relative;
}

.editorial-date {
    color: var(--color-primary-gold);
    margin-bottom: var(--spacing-md);
}

.editorial-title {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.editorial-title span {
    font-style: italic;
    color: var(--color-primary);
}

.editorial-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.editorial-story-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.editorial-story-link .line {
    width: 48px;
    height: 1px;
    background-color: var(--color-true-black);
    transition: width 0.3s ease;
}

.editorial-story-link:hover .line {
    width: 64px;
    background-color: var(--color-primary-gold);
}

.editorial-main-img {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--color-surface-dim);
    object-fit: cover;
    object-cover: cover;
}

.editorial-overlay-img {
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 50%;
    aspect-ratio: 1/1;
    border: 12px solid var(--color-surface-container);
    background-color: var(--color-surface-white);
    object-fit: cover;
    object-cover: cover;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    border-top: 1px solid var(--color-border);
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    text-align: center;
}

.newsletter-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.newsletter-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xxl);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-input-group {
    position: relative;
    width: 100%;
}

.newsletter-input {
    width: 100%;
    border-bottom: 1px solid var(--color-true-black);
    padding: 16px 0;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--color-primary-gold);
}

.newsletter-btn {
    width: 100%;
    margin-top: 8px;
}

/* --- CHECKOUT VIEW --- */
.checkout-view {
    padding-top: calc(var(--header-height) + var(--spacing-xxl));
    padding-bottom: var(--section-gap);
    display: none; /* Controlled by js */
}

.checkout-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.checkout-form-side {
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-border);
    padding: var(--spacing-xxl);
}

.checkout-title {
    font-size: 32px;
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
}

.checkout-section-title {
    font-size: 18px;
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-true-black);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.form-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-charcoal);
}

.form-input {
    width: 100%;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 14px 18px;
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-primary-gold);
    background-color: var(--color-surface-white);
}

.form-input.error {
    border-color: var(--color-error);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.payment-method-option {
    border: 1px solid var(--color-border);
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.payment-method-option:hover {
    border-color: var(--color-primary-gold);
}

.payment-method-option.selected {
    border-color: var(--color-true-black);
    background-color: var(--color-background);
}

.method-radio {
    margin-top: 4px;
    accent-color: var(--color-true-black);
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-true-black);
}

.method-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Conditional payment panels */
.payment-conditional-panel {
    display: none;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.payment-conditional-panel.active {
    display: block;
}

.bank-info-box {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.bank-row {
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.bank-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bank-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--color-true-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bank-iban {
    font-family: monospace;
    font-size: 13px;
    color: var(--color-text-charcoal);
    margin-top: 2px;
}

/* Stunning Interactive 3D Credit Card Form */
.credit-card-preview-container {
    perspective: 1000px;
    width: 100%;
    max-width: 320px;
    height: 190px;
    margin: 0 auto var(--spacing-xl) auto;
}

.credit-card-preview {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-card-preview.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #1e1e1e 0%, #111111 100%);
    color: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(184, 155, 94, 0.3); /* gold hairline */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-face-back {
    transform: rotateY(180deg);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card details styling */
.card-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #e5c07b 0%, #b89b5e 100%);
    border-radius: 4px;
    position: relative;
}

.card-type-logo {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-primary-gold);
}

.card-number-display {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 15px;
    text-align: center;
    color: #ffffff;
}

.card-holder-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.card-value {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

/* Back of Card */
.card-magnetic-strip {
    height: 40px;
    background-color: #000000;
    width: 100%;
}

.card-signature-area {
    margin: 10px 24px;
    background-color: #ffffff;
    height: 36px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 12px;
    color: #000000;
}

.card-cvv-display {
    font-family: monospace;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 1px;
}

.card-back-text {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 0 24px;
    line-height: 1.3;
}

/* Checkout Summary Side */
.checkout-summary-side {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-lg));
    background-color: var(--color-surface-container);
    padding: var(--spacing-xxl);
    border: 1px solid var(--color-border);
}

.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.summary-item-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.summary-item-img {
    width: 60px;
    height: 80px;
    background-color: var(--color-surface-dim);
    object-fit: cover;
    object-cover: cover;
}

.summary-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-true-black);
}

.summary-item-size-qty {
    font-size: 12px;
    color: var(--color-text-muted);
}

.summary-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-true-black);
}

.summary-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: var(--spacing-md) 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-charcoal);
}

.summary-row.total-row {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-true-black);
    margin-top: var(--spacing-md);
}

/* --- ORDER SUCCESS VIEW --- */
.success-view {
    padding-top: calc(var(--header-height) + var(--spacing-xxl));
    padding-bottom: var(--section-gap);
    display: none; /* Controlled by js */
}

.success-card {
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-border);
    max-width: 650px;
    margin: 0 auto;
    padding: var(--spacing-xxl);
    text-align: center;
}

.success-icon {
    font-size: 54px;
    color: var(--color-primary-gold);
    margin-bottom: var(--spacing-md);
}

.success-title {
    font-size: 42px;
    margin-bottom: var(--spacing-md);
}

.success-desc {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.receipt-box {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    padding: var(--spacing-xl);
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.receipt-title {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.receipt-id {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-charcoal);
}

.receipt-row.total {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-true-black);
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-sm);
}

.bank-transfer-instructions {
    background-color: rgba(184, 155, 94, 0.05);
    border-left: 3px solid var(--color-primary-gold);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: 12px;
}

/* --- ADMIN PANEL VIEW --- */
.admin-view {
    padding-top: calc(var(--header-height) + var(--spacing-xxl));
    padding-bottom: var(--section-gap);
    display: none; /* Controlled by js */
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.stat-card {
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-border);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-num {
    font-size: 32px;
    font-family: var(--font-serif);
    color: var(--color-true-black);
    font-weight: 600;
}

.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.admin-table-container {
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-border);
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.orders-table th {
    background-color: var(--color-surface-container);
    color: var(--color-true-black);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
}

.orders-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.orders-table tr:hover {
    background-color: var(--color-background);
}

.order-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-badge.pending {
    background-color: #fff9e6;
    color: #b38600;
}

.order-badge.processing {
    background-color: #e6f7ff;
    color: #0077b3;
}

.order-badge.shipped {
    background-color: #f0fdf4;
    color: #166534;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-admin-icon {
    padding: 6px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-admin-icon:hover {
    background-color: var(--color-true-black);
    color: var(--color-background);
}

.btn-admin-delete:hover {
    background-color: var(--color-error);
    border-color: var(--color-error);
    color: #ffffff;
}

/* Order Detail Modal */
.admin-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.admin-order-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal-card {
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--spacing-xxl);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-order-modal.active .admin-modal-card {
    transform: translateY(0);
}

/* Admin Access Verification Modal */
.admin-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.6);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-auth-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-auth-card {
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-border);
    padding: var(--spacing-xxl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.admin-auth-modal.active .admin-auth-card {
    transform: scale(1);
}

/* --- SHOPPING CART DRAWER (Slide-in) --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    height: 100vh;
    background-color: var(--color-background);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.close-cart-btn {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Empty Cart State */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: var(--spacing-md);
    color: var(--color-text-muted);
}

.empty-cart-icon {
    font-size: 48px;
    opacity: 0.5;
}

/* Cart Item Card */
.cart-item-card {
    display: flex;
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-lg);
}

.cart-item-img {
    width: 90px;
    height: 120px;
    background-color: var(--color-surface-container);
    object-fit: cover;
    object-cover: cover;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-true-black);
    max-width: 220px;
}

.remove-item-btn {
    cursor: pointer;
    font-size: 18px;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: var(--color-error);
}

.cart-item-size {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
}

.qty-btn {
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.qty-btn:hover {
    background-color: var(--color-surface-container);
}

.qty-val {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-true-black);
}

/* Cart Drawer Footer */
.cart-drawer-footer {
    padding: var(--spacing-lg);
    background-color: var(--color-surface-container);
    border-top: 1px solid var(--color-border);
}

.free-shipping-progress {
    margin-bottom: var(--spacing-md);
}

.shipping-progress-text {
    font-size: 12px;
    margin-bottom: 4px;
}

.shipping-progress-text span {
    font-weight: 700;
}

.progress-bar-bg {
    height: 3px;
    background-color: var(--color-surface-dim);
    width: 100%;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-primary-gold);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-charcoal);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-true-black);
    margin-bottom: var(--spacing-lg);
}

.checkout-btn {
    width: 100%;
}

/* --- PRODUCT DETAIL MODAL (Quick View) --- */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    width: 90%;
    max-width: 960px;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-overlay.active .product-modal-card {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: var(--color-primary-gold);
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100%;
}

.modal-image-side {
    background-color: var(--color-surface-container);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.modal-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-cover: cover;
    transition: transform 0.5s ease;
}

.modal-image-side img:hover {
    transform: scale(1.03);
}

.modal-info-side {
    padding: var(--spacing-xxl) var(--spacing-xl);
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    justify-content: center;
}

.modal-category {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary-gold);
    font-weight: 500;
}

.modal-title {
    font-size: 36px;
    line-height: 1.1;
}

.modal-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-true-black);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
}

.modal-desc {
    color: var(--color-text-charcoal);
    font-size: 15px;
    line-height: 1.6;
}

.modal-materials {
    font-size: 13px;
    color: var(--color-text-muted);
}

.size-select-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.size-options {
    display: flex;
    gap: 12px;
}

.size-box {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-box:hover {
    border-color: var(--color-primary-gold);
}

.size-box.selected {
    border-color: var(--color-true-black);
    background-color: var(--color-true-black);
    color: var(--color-background);
}

.size-error-msg {
    color: var(--color-error);
    font-size: 12px;
    display: none;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: 12px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-surface-container);
    border-top: 1px solid var(--color-border);
    padding-top: var(--section-gap);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--section-gap);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-brand-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col-title {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-true-black);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-link {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-primary-gold);
}

.footer-social-row {
    display: flex;
    gap: 16px;
    margin-top: var(--spacing-sm);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-copyright {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.admin-entry-btn {
    margin-top: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px dashed var(--color-text-muted);
    transition: all 0.3s;
}

.admin-entry-btn:hover {
    color: var(--color-primary-gold);
    border-color: var(--color-primary-gold);
}

/* --- MOBILE RESPONSIVE STYLING --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --margin-desktop: 20px;
    }
    
    .shop-container {
        padding-left: var(--margin-mobile);
        padding-right: var(--margin-mobile);
    }
    
    /* Header menu mobile */
    .menu-toggle {
        display: block;
    }
    
    nav.main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-background);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xl);
        transform: translateY(-120%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--color-border);
        z-index: 90;
    }
    
    nav.main-nav.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .editorial-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: var(--spacing-xxl);
    }
    
    .editorial-text-col, .editorial-image-col {
        width: 100%;
    }
    
    .editorial-title {
        font-size: 36px;
    }
    
    .editorial-overlay-img {
        display: none;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-side {
        position: static;
        order: -1;
        margin-bottom: var(--spacing-xl);
    }
    
    .cart-drawer {
        width: 100%;
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
        max-height: 90vh;
    }
    
    .modal-info-side {
        max-height: none;
        padding: var(--spacing-lg);
    }
    
    .modal-title {
        font-size: 26px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-brand-col {
        align-items: center;
    }
    
    .footer-brand-text {
        max-width: none;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Added dynamically to fix scrolled state contrast and logo placement */
header.scrolled .nav-link,
header.scrolled .brand-logo-main,
header.scrolled .brand-logo-sub,
header.scrolled .cart-icon-btn,
header.scrolled .cart-icon-btn .material-symbols-outlined {
    color: var(--color-true-black) !important;
}

/* Push header contents to the far edges to ensure the logo is on the dark background */
header .shop-container,
.hero-section .shop-container {
    max-width: 100% !important;
    padding-left: 140px !important;
    padding-right: 140px !important;
}

@media (max-width: 768px) {
    header .shop-container,
    .hero-section .shop-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}