/* ========== FONTS & IMPORTS ========== */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ========== RESET & DESIGN TOKENS ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Coffee Palette */
    --color-dark-brown: #1a1110;
    --color-brown: #3d2817;
    --color-warm-brown: #5c3d2e;
    --color-tan: #8b7355;
    --color-gold: #d4a574;
    --color-gold-light: #e8d4a8;
    --color-cream: #f5ede0;
    --color-white: #faf8f5;

    /* High-contrast text on dark / brown backgrounds */
    --text-on-dark: #ffffff;
    --text-on-dark-soft: #fff8f0;
    --text-on-dark-accent: #ffe8b8;
    
    /* Semantic Colors */
    --text-primary: #1a1110;
    --text-secondary: #5c3d2e;
    --text-muted: #8b7355;
    --text-light: #a89968;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5ede0;
    --bg-tertiary: #ebe3d6;
    --bg-dark: #1a1110;
    
    --border-light: #e8dfd4;
    --border-medium: #d4c4b0;
    --border-focus: #d4a574;
    
    /* Status Colors */
    --color-success: #2d5016;
    --color-error: #a1362a;
    --color-warning: #c87137;
    --color-info: #4a7ba7;
    
    /* Effects */
    --shadow-xs: 0 1px 2px rgba(26, 17, 16, 0.04);
    --shadow-sm: 0 2px 4px rgba(26, 17, 16, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 17, 16, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 17, 16, 0.16);
    --shadow-xl: 0 16px 48px rgba(26, 17, 16, 0.18);
    
    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 2.5rem;
    --space-9: 3rem;
    --space-10: 3.5rem;
    --space-11: 4rem;
    --space-12: 4.5rem;
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-pill: 999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 68px;
    --header-height-mobile: 64px;
    --container-max: 1240px;
    --container-px: 1rem;
    
    /* Z-Index */
    --z-fixed: 100;
    --z-modal-backdrop: 200;
    --z-modal: 300;
    --z-dropdown: 150;
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
        --container-px: 1rem;
    }
}

@media (max-width: 640px) {
    :root {
        --container-px: 1rem;
    }
}

/* ========== GLOBAL STYLES ========== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), 
                opacity var(--transition-fast),
                background-color var(--transition-fast);
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

h5, h6 {
    font-size: 1rem;
}

p {
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-gold);
    color: var(--bg-primary);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 999;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 0;
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-px);
    margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    min-height: 44px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-warm-brown) 100%);
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-dark-brown) 0%, var(--color-brown) 100%);
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary svg {
    stroke: var(--text-on-dark);
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--color-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-gold-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--color-brown);
    color: var(--color-brown);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(61, 40, 23, 0.08);
    border-color: var(--color-dark-brown);
}

.btn-text {
    background: transparent;
    color: var(--color-gold);
    border: none;
    padding: var(--space-2) var(--space-4);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-text:hover {
    opacity: 0.8;
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
}

@media (max-width: 640px) {
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .btn-large {
        min-height: 44px;
    }
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--color-error);
    margin-left: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--border-medium);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    background-color: rgba(212, 165, 116, 0.02);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c3d2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-right: var(--space-10);
    padding-left: var(--space-4);
}

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
    border-color: var(--color-error);
    background-color: rgba(161, 54, 42, 0.04);
}

.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(161, 54, 42, 0.1);
}

.field-hint {
    display: block;
    margin-top: var(--space-2);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.field-error {
    display: block;
    margin-top: var(--space-2);
    font-size: 0.85rem;
    color: var(--color-error);
    font-weight: 500;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-4);
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-image {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -1px;
}

.logo-text .tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.nav-desktop {
    display: flex;
    gap: var(--space-6);
    flex: 1;
    align-items: center;
    justify-content: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: var(--space-2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: right;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.header-action-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.header-action-link:hover {
    background: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--text-on-dark);
}

.header-action-link:hover .header-action-label,
.header-action-link:hover .header-action-icon {
    color: var(--text-on-dark);
    stroke: var(--text-on-dark);
}

.header-action-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.header-action-label {
    display: inline;
}

.header-action-link--cart {
    border-color: var(--color-gold);
    background: rgba(212, 165, 116, 0.15);
}

.header-action-link--cart:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark-brown);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    inset-inline-start: -6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-error);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .header-action-label {
        display: none;
    }

    .header-action-link {
        padding: var(--space-2);
    }
}

/* ========== MOBILE NAVIGATION ========== */
.nav-overlay {
    position: fixed;
    top: var(--header-height-mobile);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0);
    z-index: calc(var(--z-fixed) - 1);
    transition: background-color var(--transition-base);
    pointer-events: none;
}

body.nav-open .nav-overlay {
    background: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.mobile-nav {
    position: fixed;
    top: var(--header-height-mobile);
    bottom: 0;
    right: 0;
    width: min(85vw, 320px);
    background: var(--bg-primary);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    z-index: var(--z-fixed);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

body.nav-open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 1.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2;
}

.mobile-nav-link:active {
    background: var(--bg-secondary);
    color: var(--color-gold);
}

/* ========== MESSAGES ========== */
.messages {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 99;
    background: var(--bg-primary);
}

.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.95rem;
    animation: slideInDown 0.3s ease;
}

.alert-success {
    background: rgba(45, 80, 22, 0.12);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.alert-error {
    background: rgba(161, 54, 42, 0.12);
    color: var(--color-error);
    border-left: 4px solid var(--color-error);
}

.alert-warning {
    background: rgba(200, 113, 55, 0.12);
    color: var(--color-warning);
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: rgba(74, 123, 167, 0.12);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-top: var(--header-height);
    padding: var(--space-9) var(--container-px);
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.95) 0%, rgba(92, 61, 46, 0.95) 100%),
                url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"%3E%3Cdefs%3E%3CpatternId="a" patternUnits="userSpaceOnUse" width="100" height="100"%3E%3Crect fill="%23fff" width="100" height="100"/%3E%3Crect fill="%23f5ede0" x="0" y="0" width="50" height="50"/%3E%3Crect fill="%23f5ede0" x="50" y="50" width="50" height="50"/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill="url(%23a)" width="1000" height="200"/%3E%3C/svg%3E');
    background-size: auto, 400px 400px;
    background-attachment: fixed;
    color: var(--text-on-dark);
    text-align: center;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header p,
.page-header .page-lead,
.page-header li,
.page-header span:not(.btn *),
.page-header a:not(.btn) {
    color: var(--text-on-dark);
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-header h1 {
    margin-bottom: var(--space-3);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
}

.page-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-on-dark-soft);
    font-weight: 500;
}

.page-header .blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    padding: 0;
    color: var(--text-on-dark);
}

.page-header .blog-meta,
.page-header .blog-meta .meta-item,
.page-header .blog-meta span,
.page-header .blog-meta svg {
    color: var(--text-on-dark);
    opacity: 1;
    fill: none;
    stroke: var(--text-on-dark);
}

@media (max-width: 768px) {
    .page-header {
        margin-top: var(--header-height-mobile);
        padding: var(--space-7) var(--space-4);
    }
    
    .page-header h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding-top: 0;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 17, 16, 0.8) 0%, rgba(92, 61, 46, 0.8) 100%),
                url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"%3E%3Cdefs%3E%3CradialGradient id="g" cx="50%25" cy="50%25" r="50%25"%3E%3Cstop offset="0%25" stop-color="%23d4a574" stop-opacity="0.05"/%3E%3Cstop offset="100%25" stop-color="%231a1110" stop-opacity="0.1"/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill="url(%23g)" width="1000" height="1000"/%3E%3C/svg%3E');
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-on-dark);
    text-align: center;
    overflow: hidden;
}

.hero-album {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.hero-album-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-album-image.is-active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: var(--space-7);
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    margin-bottom: var(--space-4);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-on-dark);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: var(--space-7);
    line-height: 1.8;
    opacity: 1;
    color: var(--text-on-dark-soft);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-content,
.hero-content p {
    color: var(--text-on-dark);
}

@media (max-width: 768px) {
    .hero {
        min-height: 350px;
    }
    
    .hero-content {
        padding: var(--space-4);
    }
}

/* ========== SECTIONS ========== */
section {
    padding: var(--space-11) var(--container-px);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-9);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

@media (max-width: 768px) {
    section {
        padding: var(--space-7) var(--space-4);
    }

    .section-title {
        margin-bottom: var(--space-6);
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-7);
    margin-bottom: var(--space-9);
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.product-card .add-to-cart-form,
.product-card .product-card-contact {
    padding: 0 var(--space-4) var(--space-4);
    margin-top: auto;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(161, 54, 42, 0.9);
    color: var(--bg-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.out-of-stock {
    background: rgba(139, 115, 85, 0.9);
}

.product-info {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.product-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--space-3) 0 0 0;
}

.product-price.no-price {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.meta-item {
    display: inline-block;
}

.meta-sep {
    color: var(--border-light);
    margin: 0 var(--space-1);
}

.add-qty {
    display: flex;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.add-qty .product-qty-form {
    flex-shrink: 0;
}

.product-card .add-qty {
    padding-top: 0;
}

.product-details .add-qty .btn-large {
    flex: 1;
    min-width: 0;
}

.qty-input {
    width: 60px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 0.9rem;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-4);
    }

    .product-info {
        padding: var(--space-3);
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.15rem;
        margin-top: var(--space-2);
    }

    .product-subtitle {
        font-size: 0.8rem;
    }

    .product-card .add-to-cart-form,
    .product-card .product-card-contact {
        padding: 0 var(--space-3) var(--space-3);
    }

    .product-card .add-qty {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .product-card .add-qty .product-qty-form {
        align-self: center;
        max-width: 100%;
    }

    .product-card .add-qty .btn {
        width: 100%;
        padding: var(--space-2) var(--space-3);
        font-size: 0.85rem;
        min-height: 40px;
    }

    .product-card .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .product-card .quantity-form .qty-input {
        width: 42px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    padding: var(--header-height) var(--container-px) var(--space-11);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: start;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
}

.main-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
}

.gallery-thumb:hover {
    border-color: var(--color-gold);
}

.gallery-thumb.active {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

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

.product-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.product-title {
    margin: 0;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.product-meta {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.product-meta p {
    margin: var(--space-2) 0;
    font-size: 0.95rem;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price.no-price {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stock-status {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-status.in-stock {
    background: rgba(45, 80, 22, 0.2);
    color: var(--color-success);
}

.stock-status.out-of-stock {
    background: rgba(161, 54, 42, 0.2);
    color: var(--color-error);
}

.product-description {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.product-description h3 {
    margin-bottom: var(--space-3);
    font-size: 1.1rem;
}

.product-description p {
    margin: 0;
    line-height: 1.8;
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .product-images {
        position: static;
        top: auto;
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding: var(--header-height-mobile) var(--space-4) var(--space-7);
    }
    
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .price {
        font-size: 1.75rem;
    }

    .product-details .add-qty {
        flex-direction: column;
        align-items: stretch;
    }

    .product-details .add-qty .product-qty-form {
        align-self: flex-start;
    }

    .product-details .add-qty .btn-large {
        width: 100%;
    }
}

/* ========== CART PAGE ========== */
.cart-page {
    padding: var(--header-height) var(--container-px) var(--space-9);
}

.page-title {
    margin: var(--space-9) 0 var(--space-7);
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-7);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.item-image {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.item-details h3 {
    margin: 0;
    font-size: 1rem;
}

.item-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.item-quantity {
    display: flex;
    align-items: center;
}

.quantity-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.qty-btn:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

.quantity-form .qty-input {
    width: 50px;
    border: none;
    border-radius: 0;
    background: var(--bg-primary);
    text-align: center;
}

.item-total {
    text-align: left;
    white-space: nowrap;
}

.item-total p {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(161, 54, 42, 0.12);
    color: var(--color-error);
    font-size: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-remove:hover {
    background: var(--color-error);
    color: var(--bg-primary);
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
}

.order-summary {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
}

.order-summary h3 {
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
}

.summary-line:last-child {
    border: none;
    margin-top: var(--space-3);
    font-size: 1.25rem;
    color: var(--color-gold);
}

.total-price {
    font-weight: 700;
}

.checkout-form {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
}

.checkout-form-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: 1.1rem;
}

.checkout-form-header svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-11) var(--space-4);
    text-align: center;
}

.empty-cart-icon {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    opacity: 0.4;
}

.empty-cart p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: var(--header-height-mobile) var(--space-4) var(--space-7);
    }

    .page-title {
        margin: var(--space-6) 0 var(--space-5);
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }
    
    .cart-item {
        grid-template-columns: 72px 1fr auto;
        grid-template-rows: auto auto;
        gap: var(--space-2) var(--space-3);
        align-items: start;
    }

    .item-image {
        grid-row: 1 / 3;
    }

    .item-details {
        grid-column: 2 / 4;
    }

    .remove-form {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
    
    .item-quantity {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }

    .item-total {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        text-align: left;
    }

    .item-total p {
        font-size: 1rem;
    }
}

/* ========== FILTERS ========== */
.products-filters {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-7);
    border: 1px solid var(--border-light);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-actions {
    display: flex;
    gap: var(--space-2);
    grid-column: 1 / -1;
}

.filter-actions button {
    flex: 1;
}

.tags-row {
    grid-column: 1 / -1;
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.tag-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.tag-check:hover {
    background: var(--border-light);
}

.tag-check input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--color-gold);
}

.tag-check input[type="checkbox"]:checked + span {
    color: var(--color-gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .products-filters {
        padding: var(--space-4);
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        grid-column: 1;
        flex-direction: column;
    }

    .filter-actions button,
    .filter-actions .btn {
        width: 100%;
    }
}

/* ========== BLOG/MAGAZINE ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-7);
    margin-bottom: var(--space-9);
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-author {
    font-weight: 500;
}

.blog-date {
    display: block;
}

.blog-title {
    padding: 0 var(--space-4);
    margin: var(--space-3) 0;
    font-size: 1.2rem;
}

.blog-excerpt {
    padding: 0 var(--space-4) var(--space-4);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-body {
    padding: var(--space-7) var(--container-px);
    background: var(--bg-primary);
    line-height: 1.8;
}

.blog-body h2 {
    margin: var(--space-7) 0 var(--space-3);
}

.blog-body h2:first-child {
    margin-top: 0;
}

.blog-body p {
    margin-bottom: var(--space-4);
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-7);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-base);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
    border-color: var(--color-gold);
}

.pagination .current-page {
    padding: 0 var(--space-3);
    border: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .blog-body {
        padding: var(--space-6) var(--space-4);
    }

    .blog-title {
        font-size: 1.05rem;
    }
}

/* ========== ORDER PAGES ========== */
.confirmation-page,
.success-page,
.tracking-page {
    padding: var(--header-height) var(--container-px) var(--space-11);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-box,
.success-box {
    max-width: 720px;
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-9);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.confirmation-header {
    margin-bottom: var(--space-7);
}

.confirmation-header h1 {
    margin: var(--space-4) 0 var(--space-3);
}

.confirmation-lead {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    color: var(--color-success);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tracking-code-box {
    background: var(--bg-secondary);
    border: 2px dashed var(--color-gold);
    padding: var(--space-7);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.tracking-label {
    margin: 0 0 var(--space-3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tracking-code-value {
    margin: 0;
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-gold);
    line-height: 1.2;
}

.confirmation-notice {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    text-align: right;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-6);
}

.confirmation-notice svg {
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 2px;
}

.confirmation-notice p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.order-info {
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    text-align: right;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.order-info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.order-number {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--color-gold);
}

.order-status-badge {
    font-weight: 600;
    color: var(--color-brown);
}

.order-total {
    font-weight: 700;
    color: var(--color-gold);
}

.order-items-list {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-7);
    text-align: right;
}

.order-items-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.order-items-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
}

.order-items-body {
    padding: var(--space-6);
}

.order-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.order-item-title {
    font-weight: 500;
}

.order-item-qty {
    text-align: center;
    color: var(--text-muted);
}

.order-item-price {
    text-align: left;
    font-weight: 600;
}

.order-total-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-4) 0 0;
    margin-top: var(--space-3);
    border-top: 2px solid var(--color-gold);
    font-weight: 700;
    color: var(--color-gold);
}

.confirmation-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 640px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-item-row,
    .order-total-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        text-align: center;
    }

    .order-item-price,
    .order-total-row span:last-child {
        text-align: center;
    }

    .tracking-code-value {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    color: var(--color-success);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-box h2,
.success-box h2 {
    margin-bottom: var(--space-3);
}

.confirmation-box p,
.success-box p {
    margin-bottom: var(--space-4);
}

.tracking-code {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin: var(--space-4) 0;
}

.order-form {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.status-header-title {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tracking-code-display {
    margin: var(--space-4) 0;
    color: var(--text-secondary);
}

.tracking-code-display strong {
    color: var(--color-gold);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.status-timeline {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    margin-bottom: var(--space-7);
}

.status-timeline-title {
    margin: 0 0 var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.1rem;
}

.timeline-step {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 17px;
    top: 44px;
    width: 2px;
    height: calc(100% - 28px);
    background: var(--border-light);
}

.timeline-step.completed::after,
.timeline-step.current::after {
    background: var(--color-success);
}

.timeline-step.cancelled::after {
    background: var(--color-error);
}

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-step.completed .timeline-dot {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--bg-primary);
}

.timeline-step.current .timeline-dot {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--bg-primary);
}

.timeline-step.cancelled .timeline-dot {
    background: var(--color-error);
    border-color: var(--color-error);
    color: #fff;
}

.timeline-step.upcoming .timeline-dot {
    background: var(--bg-primary);
    border-color: var(--border-light);
    color: var(--text-muted);
}

.timeline-dot-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    animation: timelinePulse 1.5s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.7; }
}

.timeline-step.current .timeline-title {
    color: var(--color-brown);
}

.timeline-step.cancelled .timeline-title {
    color: var(--color-error);
}

.timeline-step.upcoming .timeline-title {
    color: var(--text-muted);
}

.timeline-step.upcoming .timeline-date {
    font-style: italic;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .confirmation-page,
    .success-page,
    .tracking-page {
        padding: var(--header-height-mobile) var(--space-4) var(--space-7);
    }
    
    .confirmation-box,
    .success-box {
        padding: var(--space-6);
    }

    .status-timeline {
        padding: var(--space-5);
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
    }
}

/* ========== CONTENT SECTIONS ========== */
.about-preview {
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content-wrapper {
    padding: var(--space-9) var(--container-px);
}

.content-prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-prose h2 {
    margin: var(--space-7) 0 var(--space-4);
}

.content-prose p {
    margin-bottom: var(--space-4);
}

.content-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

/* Brown CMS callout blocks */
.content-callout {
    background: linear-gradient(135deg, var(--color-dark-brown) 0%, var(--color-warm-brown) 100%);
    color: var(--text-on-dark);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-callout :is(h2, h3, h4, p, li, span, strong, em, a, div) {
    color: var(--text-on-dark);
}

.content-callout a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========== LOCATION PAGE ========== */
.location-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.location-item {
    display: flex;
    gap: var(--space-4);
}

.location-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

.location-details h3 {
    margin: 0 0 var(--space-2);
}

.location-details p {
    margin: 0;
    color: var(--text-secondary);
}

.location-map {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-map-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-lg);
    color: var(--text-on-dark);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.footer-map-link:hover {
    background: rgba(255, 255, 255, 0.24);
    color: var(--text-on-dark);
    border-color: var(--text-on-dark);
}

.footer-map-link .footer-map-icon svg {
    stroke: var(--text-on-dark);
}

.footer-map-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-map-icon svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .location-section {
        grid-template-columns: 1fr;
    }
}

/* ========== CONTACT PAGE ========== */
.contact-section {
    padding: var(--space-7) var(--container-px) var(--space-11);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    font-size: 1.05rem;
    color: var(--color-brown);
}

.info-card h3 svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--color-gold);
}

.info-card p {
    margin: 0 0 var(--space-3);
    line-height: 1.75;
    color: var(--text-secondary);
    word-break: break-word;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card a {
    color: var(--color-brown);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .contact-section {
        padding: var(--space-6) var(--space-4) var(--space-8);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .info-card {
        padding: var(--space-5);
    }

    .location-links {
        grid-template-columns: 1fr !important;
    }

    .location-section {
        padding: var(--space-7) var(--space-4) !important;
    }

    .tracking-form-wrapper,
    .status-header {
        padding: var(--space-5) !important;
    }

    .order-details-box .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .order-details-box .data-table th,
    .order-details-box .data-table td {
        padding: var(--space-3) !important;
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column !important;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, rgba(26, 17, 16, 0.95) 0%, rgba(61, 40, 23, 0.95) 100%);
    color: var(--text-on-dark);
    padding: var(--space-11) var(--container-px) var(--space-6);
    margin-top: var(--space-11);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-7);
    margin-bottom: var(--space-7);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-4);
    color: var(--text-on-dark-accent);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.footer-section p {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--text-on-dark);
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    padding: var(--space-2) 0;
}

.footer-section a {
    color: var(--text-on-dark);
    font-weight: 600;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--text-on-dark-accent);
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--text-on-dark);
}

.footer-contact-line a {
    color: var(--text-on-dark);
    font-weight: 600;
}

.footer-contact-line svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--text-on-dark);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    font-size: 0.9rem;
    opacity: 1;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-on-dark);
    font-weight: 500;
}

/* ========== CART CHECKOUT HINT (removed) ========== */

/* ========== NO PRICE MESSAGE ========== */
.no-price a {
    color: var(--color-brown);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.no-price a:hover {
    color: var(--color-gold);
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-4);
    right: var(--space-4);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 420px;
    margin-left: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(45, 80, 22, 0.08) 100%);
}

.toast-error {
    border-color: rgba(161, 54, 42, 0.4);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(161, 54, 42, 0.08) 100%);
}

.toast-body {
    flex: 1;
}

.toast-action {
    display: inline-block;
    margin-top: var(--space-2);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-brown);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.toast-action:hover {
    color: var(--color-gold);
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-base);
}

.toast-close:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

/* ========== CART BADGE ========== */
.cart-count--empty {
    display: none;
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-7) var(--space-4) var(--space-4);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* ========== UTILITIES ========== */
.no-products {
    text-align: center;
    padding: var(--space-11) var(--space-4);
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== CONTRAST FIXES (cascade / inline overrides) ========== */
/* Page header meta must stay light (beats .blog-meta below) */
.page-header .blog-meta,
.page-header .blog-meta .meta-item,
.page-header .blog-meta span,
.page-header .blog-meta svg {
    color: var(--text-on-dark) !important;
    stroke: var(--text-on-dark) !important;
    opacity: 1 !important;
}

/* Brown gradient panels in checkout */
.payment-info,
.payment-info p,
.payment-info h2 {
    color: var(--text-primary) !important;
}

.payment-info h2 svg {
    stroke: var(--text-primary);
}

.order-info,
.order-info > p {
    color: var(--text-primary) !important;
}

.order-info .order-number,
.order-info .order-total {
    color: var(--color-dark-brown) !important;
    -webkit-text-fill-color: var(--color-dark-brown) !important;
    background: none !important;
}

.transaction-form,
.transaction-form p,
.transaction-form h3 {
    color: var(--text-primary) !important;
}

/* Badges on dark/colored backgrounds */
.badge,
.badge.out-of-stock {
    color: var(--text-on-dark) !important;
    font-weight: 700;
}
