/* ===== CSS Variables ===== */
:root {
    --primary: #8B5BA8;
    --primary-light: #A67BC2;
    --primary-dark: #6B4587;
    --white: #FFFFFF;
    --cream: #FAF8FC;
    --cream-dark: #F0ECF5;
    --accent: #D4A574;
    --accent-light: #E8C9A0;
    --accent-dark: #B8895A;
    --text-primary: #2D2235;
    --text-secondary: #5A4D66;
    --text-muted: #8A7D96;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
    --shadow-sm: 0 2px 4px rgba(107, 69, 135, 0.1);
    --shadow-md: 0 4px 12px rgba(107, 69, 135, 0.15);
    --shadow-lg: 0 8px 24px rgba(107, 69, 135, 0.2);
    --border-radius: 8px;
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 1rem;
    color: var(--white);
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation (WCAG 2.4.7) */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast (WCAG 1.4.3) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; }
.section { padding: 3rem 0; }

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}
.search-form {
    display: flex;
    align-items: center;
    background: var(--cream);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    flex: 1;
    max-width: 400px;
}
.search-input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 0.25rem;
    outline: none;
}
.search-button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}
.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}
.logo-tagline {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.language-switcher form { display: inline; }
.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.25rem;
    transition: color var(--transition);
}
.lang-btn.active, .lang-btn:hover { color: var(--primary); font-weight: 600; }
.lang-separator { color: var(--text-muted); }
.user-btn, .cart-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.cart-count-loading {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.user-dropdown { position: relative; }
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 180px;
    display: none;
    overflow: hidden;
    z-index: 200;
}
.user-dropdown-menu.show { display: block; }
.user-dropdown-menu a, .user-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    transition: background var(--transition);
}
.user-dropdown-menu a:hover, .user-dropdown-menu button:hover { background: var(--cream); }
.logout-form { border-top: 1px solid var(--cream-dark); margin-top: 0.25rem; padding-top: 0.25rem; }
.user-dropdown-menu .logout-btn {
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.user-dropdown-menu .logout-btn:hover { background: #ffebee; }
.user-dropdown-menu .logout-btn svg, .user-dropdown-menu .logout-btn i { opacity: 0.8; }
.user-btn-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: background var(--transition);
}
.user-btn-auth:hover { background: var(--cream); }
.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-arrow {
    opacity: 0.5;
    transition: transform var(--transition);
}
.user-dropdown-menu.show + .dropdown-arrow,
.user-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
.user-dropdown-header {
    padding: 0.75rem 1rem;
    background: var(--cream);
}
.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}
.user-dropdown-divider {
    height: 1px;
    background: var(--cream-dark);
    margin: 0.25rem 0;
}
.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.user-dropdown-menu a i, .user-dropdown-menu button i {
    font-size: 1rem;
    opacity: 0.7;
}
@media (max-width: 768px) {
    .user-name { display: none; }
    .dropdown-arrow { display: none; }
    .user-btn-auth { padding: 0; }
}

/* ===== Mobile Search ===== */
.search-btn-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
}
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 300;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    transition: transform var(--transition);
}
.mobile-search-overlay.open { transform: translateY(0); }
.mobile-search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}
.mobile-search-form {
    display: flex;
    flex: 1;
    background: var(--cream);
    border-radius: 50px;
    padding: 0.5rem 1rem;
}
.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 1rem;
    outline: none;
}
.mobile-search-submit {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    cursor: pointer;
}
.mobile-search-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    padding: 0.25rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .search-btn-mobile { display: none; }
}

/* ===== Side Menu ===== */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: left var(--transition);
    display: flex;
    flex-direction: column;
}
.side-menu.open { left: 0; }
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--cream-dark);
}
.side-menu-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    letter-spacing: 1px;
}
.side-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.side-menu-close:hover { color: var(--text-primary); }
.side-menu-list {
    list-style: none;
    padding: 2rem 0;
    flex: 1;
}
.side-menu-list li { margin-bottom: 0.5rem; }
.side-menu-list a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.side-menu-list a:hover {
    background: var(--cream);
    color: var(--primary);
    border-left-color: var(--primary);
}
.side-menu-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--cream-dark);
}
.side-menu-social {
    display: flex;
    gap: 1.5rem;
}
.side-menu-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color var(--transition);
}
.side-menu-social a:hover { color: var(--primary); }
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.side-menu-overlay.show { opacity: 1; visibility: visible; }

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.footer-tagline { font-size: 0.75rem; color: var(--accent); }
.footer-links { margin: 1rem 0; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--cream-dark); font-size: 0.875rem; }
.footer-links a:hover { color: var(--white); }
.footer-copyright { font-size: 0.875rem; color: var(--text-muted); margin-top: 1rem; }
.footer-credit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-credit a {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity var(--transition);
}
.footer-credit a:hover { opacity: 1; color: var(--cream-dark); }
.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-credit-logo {
    height: 1rem;
    width: auto;
    vertical-align: middle;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    gap: 0.5rem;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--accent); color: var(--white); }
.btn-secondary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ===== Forms ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); }
.form-input, .form-textarea, select.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 91, 168, 0.1); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group-small { max-width: 120px; }
.form-group-full { grid-column: 1 / -1; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.field-validation-error { color: var(--error); font-size: 0.875rem; margin-top: 0.25rem; display: block; }
.input-validation-error,
.form-input.touched:invalid,
.form-textarea.touched:invalid,
.form-input.touched.validation-error,
.form-textarea.touched.validation-error {
    border-color: var(--error);
    background-color: #fff8f8;
}
.input-validation-error:focus,
.form-input.touched:invalid:focus,
.form-textarea.touched:invalid:focus,
.form-input.touched.validation-error:focus,
.form-textarea.touched.validation-error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}
.validation-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}
.form-input.touched:invalid + .validation-message,
.form-input.touched.validation-error + .validation-message,
.form-textarea.touched:invalid + .validation-message,
.form-textarea.touched.validation-error + .validation-message {
    display: block;
}
.validation-summary { background: #ffebee; color: var(--error); padding: 1rem; border-radius: var(--border-radius); margin-bottom: 1rem; }

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 400px;
    text-align: center;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease;
    pointer-events: auto;
}
.toast-success {
    background: var(--success);
    color: white;
}
.toast-error {
    background: var(--error);
    color: white;
}
.toast.fade-out {
    animation: toastFadeOut 0.5s ease forwards;
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== Promo Banner ===== */
.promo-banner {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    color: var(--primary);
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-bg {
    display: none;
}
.hero-top {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    flex-shrink: 0;
}
.hero-middle {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
}
.hero-bottom {
    position: relative;
    z-index: 1;
    margin-bottom: 5rem;
    flex-shrink: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: rgba(155, 123, 184, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(155, 123, 184, 0.3);
    color: var(--primary);
}
.hero-title {
    margin-bottom: 0.5rem;
}
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.logo-ka {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary-dark);
    letter-spacing: -2px;
}
.logo-formula {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-dark);
    letter-spacing: 8px;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: #5a4a6a;
}
.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    margin: 0 0 1.5rem 0;
    font-style: italic;
    letter-spacing: 3px;
}
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #5a4a6a;
    font-weight: 500;
}
.feature-icon { font-size: 1.25rem; }
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(155, 123, 184, 0.4);
}
.btn-hero:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(155, 123, 184, 0.5);
}
.btn-hero .btn-arrow {
    transition: transform var(--transition);
}
.btn-hero:hover .btn-arrow { transform: translateX(4px); }

.newsletter-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Instagram Section ===== */
.instagram-section {
    background: var(--cream-dark);
    padding: 3rem 0;
}
.instagram-content {
    text-align: center;
}
.instagram-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}
.btn-instagram {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 50px;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card.product-coming-soon { opacity: 0.85; }
.product-link { display: block; text-decoration: none; color: inherit; }
.product-image-wrapper { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.product-card:hover .product-image { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-new { background: var(--accent); color: var(--white); }
.badge-coming-soon { background: var(--primary); color: var(--white); }
.product-info { padding: 1rem; }
.product-name { font-size: 1rem; margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.product-price { display: flex; align-items: center; gap: 0.5rem; }
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.875rem; }
.price-current { color: var(--primary); font-weight: 600; font-size: 1.125rem; }
.price-large { font-size: 1.5rem; }
.product-actions { padding: 0; }
.product-buttons { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; align-items: center; }
.product-buttons .buy-now-form { flex: 1; }
.product-buttons .btn-buy-now { width: 100%; padding: 0.75rem 1rem; }
.product-card-actions { display: flex; align-items: center; }
.product-card-actions .add-to-cart-btn { padding: 0.75rem; min-width: 48px; }
.qty-controls { display: flex; align-items: center; gap: 0.25rem; background: var(--cream); border-radius: var(--border-radius); padding: 0.25rem; }
.qty-controls .qty-btn { width: 32px; height: 32px; border: none; background: var(--white); border-radius: var(--border-radius); font-size: 1.25rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); color: var(--primary); }
.qty-controls .qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-controls .qty-value { min-width: 28px; text-align: center; font-weight: 600; font-size: 0.9rem; }

/* ===== Product Detail ===== */
.breadcrumb { margin-bottom: 2rem; font-size: 0.875rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-main-image { aspect-ratio: 1; background: var(--white); border-radius: var(--border-radius); overflow: hidden; }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails { display: flex; gap: 0.5rem; margin-top: 1rem; }
.thumbnail { width: 80px; height: 80px; border: 2px solid transparent; border-radius: var(--border-radius); overflow: hidden; cursor: pointer; background: none; padding: 0; }
.thumbnail.active, .thumbnail:hover { border-color: var(--primary); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-header { margin-bottom: 1.5rem; }
.product-title { font-size: 2rem; margin-bottom: 0.5rem; }
.product-sku { color: var(--text-muted); font-size: 0.875rem; }
.product-price-section { margin-bottom: 1.5rem; }
.product-description { margin-bottom: 1.5rem; color: var(--text-secondary); }
.product-stock { margin-bottom: 1rem; }
.stock-available { color: var(--success); font-weight: 500; }
.stock-warning { color: var(--warning); font-weight: 500; }
.stock-unavailable { color: var(--error); font-weight: 500; }
.quantity-selector { margin-bottom: 1rem; }
.quantity-selector label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.quantity-input { display: inline-flex; align-items: center; border: 1px solid var(--cream-dark); border-radius: var(--border-radius); }
.qty-btn { width: 40px; height: 40px; background: none; border: none; font-size: 1.25rem; color: var(--text-primary); }
.qty-btn:hover { background: var(--cream); }
.qty-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.quantity-input input { width: 60px; text-align: center; border: none; background: none; }
.add-to-cart-form { margin-top: 1.5rem; }

/* ===== Cart Page ===== */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.cart-items { background: var(--white); border-radius: var(--border-radius); padding: 1.5rem; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--cream-dark); }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 80px; height: 80px; border-radius: var(--border-radius); overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 500; margin-bottom: 0.25rem; }
.cart-item-name a { color: var(--text-primary); }
.cart-item-price { color: var(--text-muted); font-size: 0.875rem; }
.cart-item-total { font-weight: 600; }
.remove-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; padding: 0.5rem; }
.remove-btn:hover { color: var(--error); }
.cart-summary { background: var(--white); border-radius: var(--border-radius); padding: 1.5rem; height: fit-content; position: sticky; top: 100px; }
.summary-title { margin-bottom: 1.5rem; }
.discount-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--cream-dark); }
.discount-form { display: flex; gap: 0.5rem; }
.discount-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid var(--cream-dark); border-radius: var(--border-radius); }
.applied-discount { display: flex; justify-content: space-between; align-items: center; background: #e8f5e9; padding: 0.5rem 0.75rem; border-radius: var(--border-radius); }
.remove-discount-btn { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; }
.summary-lines { margin-bottom: 1.5rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.discount-line { color: var(--success); }
.total-line { border-top: 1px solid var(--cream-dark); padding-top: 1rem; font-weight: 600; font-size: 1.125rem; }
.continue-shopping { display: block; text-align: center; margin-top: 1rem; color: var(--text-muted); }
.empty-cart { text-align: center; padding: 4rem 2rem; }
.empty-cart-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-cart h2 { margin-bottom: 0.5rem; }
.empty-cart p { color: var(--text-muted); margin-bottom: 1.5rem; }
.quantity-form-inline { display: inline; }

/* ===== Checkout ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; }
.checkout-section { background: var(--white); border-radius: var(--border-radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.checkout-section h2 { margin-bottom: 1.5rem; font-size: 1.25rem; }
.shipping-options { display: flex; flex-direction: column; gap: 0.75rem; }
.shipping-option { display: flex; align-items: center; padding: 1rem; border: 1px solid var(--cream-dark); border-radius: var(--border-radius); cursor: pointer; transition: border-color var(--transition); }
.shipping-option:hover { border-color: var(--primary); }
.shipping-option input { margin-right: 1rem; }
.option-content { flex: 1; }
.option-name { font-weight: 500; display: block; }
.option-detail { font-size: 0.875rem; color: var(--text-muted); }
.option-price { font-weight: 600; color: var(--primary); }
.checkout-summary { background: var(--white); border-radius: var(--border-radius); padding: 1.5rem; height: fit-content; position: sticky; top: 100px; }
.order-items { margin-bottom: 1.5rem; max-height: 300px; overflow-y: auto; }
.order-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--cream-dark); }
.order-item:last-child { border-bottom: none; }
.order-item-image { width: 50px; height: 50px; border-radius: var(--border-radius); object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-name { font-size: 0.875rem; font-weight: 500; }
.order-item-qty { font-size: 0.75rem; color: var(--text-muted); }
.order-item-price { font-weight: 500; }
.checkout-note { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 1rem; }

/* Payment section */
.payment-section { background: var(--cream); border-radius: var(--border-radius); padding: 1.5rem; }
.payment-options { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.payment-option:hover:not(.disabled) { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option.selected .option-name,
.payment-option.selected .option-detail { color: var(--white); }
.payment-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--cream);
}
.payment-option input { margin-right: 1rem; }
.payment-option .option-content { display: flex; align-items: center; gap: 1rem; flex: 1; }
.payment-option .option-icon { font-size: 1.5rem; }
.payment-option .option-details { display: flex; flex-direction: column; }
.payment-option .option-name { font-weight: 500; }
.payment-option .option-detail { font-size: 0.8rem; color: var(--text-muted); }
.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
}
.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: #5d4e00;
}
.payment-notice i { font-size: 1.25rem; color: #f9a825; flex-shrink: 0; margin-top: 0.125rem; }
.payment-notice p { margin: 0; line-height: 1.5; }

/* Saved addresses */
.saved-addresses { margin-bottom: 1.5rem; }
.address-selector { display: flex; flex-direction: column; gap: 0.75rem; }
.address-option { display: flex; align-items: flex-start; padding: 1rem; border: 2px solid var(--cream-dark); border-radius: var(--border-radius); cursor: pointer; transition: all var(--transition); }
.address-option:hover { border-color: var(--primary-light); }
.address-option.selected { border-color: var(--primary); background: var(--cream); }
.address-option input[type="radio"] { margin-right: 1rem; margin-top: 0.25rem; }
.address-content { flex: 1; }
.address-name { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.address-line { display: block; font-size: 0.875rem; color: var(--text-muted); }
.address-phone { display: block; font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.new-address-option { border-style: dashed; }
.new-address-option .address-name { color: var(--primary); }
.address-form-fields.readonly-mode input { background: var(--cream); cursor: not-allowed; }
.address-actions { display: flex; gap: 0.5rem; margin-left: auto; align-self: flex-start; }
.address-edit-btn { background: none; border: none; padding: 0.25rem 0.5rem; cursor: pointer; font-size: 0.875rem; opacity: 0.6; transition: opacity var(--transition); border-radius: var(--border-radius); }
.address-edit-btn:hover { opacity: 1; background: rgba(0,0,0,0.05); }
.default-badge { font-size: 0.7rem; background: var(--primary); color: white; padding: 0.15rem 0.5rem; border-radius: 10px; margin-left: 0.5rem; font-weight: 500; vertical-align: middle; }

/* ===== Order Confirmation ===== */
.confirmation-content { max-width: 600px; margin: 0 auto; text-align: center; }
.confirmation-icon { width: 80px; height: 80px; background: var(--success); color: white; font-size: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.confirmation-title { margin-bottom: 0.5rem; }
.confirmation-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.order-number-box { background: var(--cream); padding: 1rem 2rem; border-radius: var(--border-radius); display: inline-block; margin-bottom: 2rem; }
.order-number-box .label { display: block; font-size: 0.875rem; color: var(--text-muted); }
.order-number-box .value { font-size: 1.25rem; font-weight: 600; color: var(--primary); }
.order-summary-box { background: var(--white); border-radius: var(--border-radius); padding: 1.5rem; text-align: left; margin-bottom: 2rem; }
.order-items-list { margin-bottom: 1.5rem; }
.order-totals .total-line { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.order-totals .grand-total { border-top: 1px solid var(--cream-dark); padding-top: 1rem; font-weight: 600; }
.shipping-info { background: var(--cream); padding: 1rem; border-radius: var(--border-radius); }
.shipping-info h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.confirmation-actions { display: flex; gap: 1rem; justify-content: center; }

/* ===== Auth Pages ===== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; }
.auth-container { max-width: 400px; margin: 0 auto; background: var(--white); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.auth-container-wide { max-width: 500px; }
.auth-title { text-align: center; margin-bottom: 2rem; }
.auth-form { margin-bottom: 1.5rem; }
.form-group-checkbox { display: flex; align-items: center; gap: 0.5rem; }
.form-group-checkbox label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.auth-footer { text-align: center; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 500; }

/* ===== Profile ===== */
.profile-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; }
.profile-nav { background: var(--white); border-radius: var(--border-radius); padding: 1rem 0; height: fit-content; }
.nav-item { display: block; padding: 0.75rem 1.5rem; color: var(--text-secondary); transition: all var(--transition); }
.nav-item:hover { background: var(--cream); color: var(--primary); }
.nav-item.active { background: var(--cream); color: var(--primary); font-weight: 500; border-left: 3px solid var(--primary); }
.profile-content { background: var(--white); border-radius: var(--border-radius); padding: 2rem; }
.form-section h2 { margin-bottom: 1.5rem; font-size: 1.25rem; }

/* ===== Orders List ===== */
.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card { background: var(--cream); padding: 1rem 1.5rem; border-radius: var(--border-radius); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.order-number { font-weight: 600; }
.order-date { color: var(--text-muted); font-size: 0.875rem; margin-left: 1rem; }
.order-status { padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.order-status.status-pending { background: #fff3e0; color: #e65100; }
.order-status.status-confirmed, .order-status.status-processing { background: #e3f2fd; color: #1565c0; }
.order-status.status-shipped { background: #e8f5e9; color: #2e7d32; }
.order-status.status-delivered { background: #e8f5e9; color: #1b5e20; }
.order-status.status-cancelled { background: #ffebee; color: #c62828; }
.order-summary { display: flex; justify-content: space-between; margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.875rem; }
.order-total { color: var(--text-primary); font-weight: 600; }

/* ===== Addresses Page ===== */
.addresses-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.addresses-header h2 { margin: 0; }
.address-form-container { background: var(--cream); padding: 1.5rem; border-radius: var(--border-radius); margin-bottom: 1.5rem; }
.addresses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.address-card { background: var(--cream); padding: 1.25rem; border-radius: var(--border-radius); position: relative; border: 2px solid transparent; }
.address-card.default { border-color: var(--primary); }
.address-card .default-star-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all var(--transition);
    line-height: 1;
}
.address-card .default-star-btn:hover { color: var(--primary); transform: scale(1.1); }
.address-card .default-star-btn.is-default { color: var(--primary); cursor: default; }
.address-details { margin-bottom: 1rem; }
.address-details strong { display: block; margin-bottom: 0.5rem; }
.address-details p { margin: 0.25rem 0; font-size: 0.875rem; color: var(--text-secondary); }
.address-phone { color: var(--text-muted) !important; }
.address-card-actions { display: flex; gap: 0.5rem; }
.address-card-actions .delete-form { display: inline; }
.btn-danger { color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--error); color: white; border-color: var(--error); }
.set-default-form { position: absolute; top: 0; right: 0; }
.form-actions { display: flex; gap: 1rem; margin-top: 1rem; }

/* ===== Order Detail Page ===== */
.order-detail-page .page-header { margin-bottom: 2rem; }
.order-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.order-detail-page .back-link:hover { color: var(--primary); }
.order-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.order-detail-page .page-title { margin-bottom: 0; font-size: 1.75rem; }

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.order-main, .order-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.order-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.order-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cream-dark);
}

/* Order meta info */
.order-info-section { padding: 1rem 1.5rem; }
.order-meta { display: flex; gap: 2rem; flex-wrap: wrap; }
.order-meta .order-date, .order-meta .order-tracking { display: flex; flex-direction: column; gap: 0.25rem; }
.meta-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.meta-value { font-weight: 500; color: var(--text-primary); }
.status-label { font-weight: 500; color: var(--text-secondary); }
.status-badge {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-badge.status-pending { background: #fff3e0; color: #e65100; }
.status-badge.status-confirmed, .status-badge.status-processing { background: #e3f2fd; color: #1565c0; }
.status-badge.status-shipped { background: #e0f2f1; color: #00796b; }
.status-badge.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-badge.status-cancelled { background: #ffebee; color: #c62828; }
.order-date { color: var(--text-muted); font-size: 0.875rem; }

.tracking-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.tracking-label { color: var(--text-secondary); font-weight: 500; }
.tracking-number {
    font-family: 'Courier New', monospace;
    background: var(--cream);
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.order-items-list { display: flex; flex-direction: column; gap: 1rem; }
.order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--border-radius);
    transition: transform var(--transition);
}
.order-item:hover { transform: translateX(4px); }
.item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    object-fit: cover;
    background: var(--white);
}
.item-details { display: flex; flex-direction: column; gap: 0.25rem; }
.item-name { font-weight: 600; color: var(--text-primary); }
.item-sku { font-size: 0.75rem; color: var(--text-muted); font-family: 'Courier New', monospace; }
.item-qty { font-size: 0.875rem; color: var(--text-secondary); }
.item-pricing { text-align: right; display: flex; flex-direction: column; gap: 0.25rem; }
.item-unit-price { font-size: 0.8rem; color: var(--text-muted); }
.item-total { font-size: 1.125rem; font-weight: 600; color: var(--primary); }

.order-totals { display: flex; flex-direction: column; gap: 0.5rem; }
.order-totals .total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}
.order-totals .total-line.discount { color: var(--success); }
.order-totals .total-line.grand-total {
    border-top: 2px solid var(--cream-dark);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}
.order-totals .total-line.grand-total span:last-child { color: var(--primary); }

/* Combined Summary Card */
.order-summary-card { padding: 0 !important; overflow: hidden; }
.summary-block { padding: 1.25rem 1.5rem; }
.summary-block h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.summary-divider { height: 1px; background: var(--cream-dark); margin: 0; }

.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.payment-row .payment-status { padding: 0.25rem 0.75rem; font-size: 0.8rem; }
.payment-method-label { font-size: 0.875rem; color: var(--text-secondary); }

.shipping-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.shipping-row .shipping-icon { font-size: 1.25rem; }

.address-compact { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; line-height: 1.4; }
.address-compact strong { color: var(--text-primary); }
.address-compact span { color: var(--text-secondary); }
.address-compact .address-phone { color: var(--text-muted); margin-top: 0.25rem; }

.order-summary-card .btn { margin: 1.25rem 1.5rem; width: calc(100% - 3rem); }

/* Order Progress Tracker */
.order-progress {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.progress-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
}
.progress-step.completed .step-icon {
    background: var(--primary);
    color: var(--white);
}
.progress-step.current .step-icon {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(139, 91, 168, 0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(139, 91, 168, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(139, 91, 168, 0.1); }
}
.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
}
.progress-step.completed .step-label,
.progress-step.current .step-label {
    color: var(--primary);
    font-weight: 500;
}
.progress-line {
    flex: 1;
    height: 3px;
    background: var(--cream-dark);
    margin-top: 18px;
    transition: background var(--transition);
}
.progress-line.completed { background: var(--primary); }

/* Payment Info */
.payment-info { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}
.payment-status.payment-pending { background: #fff3e0; color: #e65100; }
.payment-status.payment-paid { background: #e8f5e9; color: #2e7d32; }
.payment-status.payment-failed { background: #ffebee; color: #c62828; }
.payment-status.payment-refunded { background: #e3f2fd; color: #1565c0; }
.payment-status.payment-partiallyrefunded { background: #e3f2fd; color: #1565c0; }
.payment-icon { font-size: 1.25rem; }
.payment-method {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 1rem;
}

/* Shipping Method Box */
.shipping-method-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--border-radius);
}
.shipping-icon { font-size: 1.75rem; }
.shipping-details { display: flex; flex-direction: column; gap: 0.25rem; }
.shipping-name { font-weight: 600; color: var(--text-primary); }
.shipping-time { font-size: 0.8rem; color: var(--text-muted); }

/* Order Actions */
.order-actions { margin-top: 0.5rem; }

@media (max-width: 1024px) {
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-sidebar { order: -1; }
}
@media (max-width: 768px) {
    .order-item { grid-template-columns: 60px 1fr; }
    .item-pricing { grid-column: 1 / -1; text-align: left; flex-direction: row; gap: 1rem; align-items: center; }
    .order-status-bar { flex-direction: column; align-items: flex-start; }
    .progress-track { flex-wrap: wrap; gap: 1rem; justify-content: center; }
    .progress-line { display: none; }
    .step-label { max-width: none; }
}

/* ===== Contact ===== */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; }
.contact-item strong { display: block; margin-bottom: 0.25rem; }
.contact-hours { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--cream-dark); }
.contact-form-section h2 { margin-bottom: 0.5rem; }
.contact-form-note { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== Filters ===== */
.products-filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.875rem; color: var(--text-muted); }
.filter-group select { padding: 0.5rem 2rem 0.5rem 0.75rem; border: 1px solid var(--cream-dark); border-radius: var(--border-radius); background: var(--white); cursor: pointer; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state .btn { margin-top: 1rem; }

/* ===== Section Titles ===== */
.page-title { margin-bottom: 2rem; font-size: 2rem; }
.section-title { margin-bottom: 2rem; font-size: 1.75rem; text-align: center; }

/* ===== About Section ===== */
.about-content { text-align: center; max-width: 700px; margin: 0 auto; }
.about-text { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.8; }

/* ===== Coming Soon Section ===== */
.coming-soon { background: var(--cream-dark); }
.coming-soon-notice { text-align: center; padding: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .product-detail-grid, .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: static; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-nav { display: flex; overflow-x: auto; }
    .nav-item { white-space: nowrap; border-left: none !important; border-bottom: 3px solid transparent; }
    .nav-item.active { border-bottom-color: var(--primary); }
}

@media (max-width: 768px) {
    .search-form { display: none; }
    .hero { padding: 2rem 1rem 2rem; min-height: auto; height: auto; }
    .hero-top { margin-top: 1rem; }
    .hero-bottom { margin-top: 3rem; margin-bottom: 0; }
    .hero-tagline { font-size: 1.2rem; letter-spacing: 2px; }
    .logo-ka { font-size: 3rem; }
    .logo-formula { font-size: 1.2rem; letter-spacing: 5px; }
    .hero-title { font-size: 2.25rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 1rem; }
    .hero-features { gap: 1rem; }
    .hero-feature { font-size: 0.8rem; }
    .btn-hero { padding: 0.875rem 1.5rem; font-size: 0.9rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .cart-item { grid-template-columns: 60px 1fr auto; }
    .cart-item-quantity, .cart-item-total { grid-column: span 3; }
    .contact-content { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .search-form { display: none; }
    .confirmation-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .header-container { padding: 0.75rem 1rem; }
    .logo-main { font-size: 1.25rem; }
    .section { padding: 2rem 0; }
}

/* ===== Accessibility: Reduced Motion (WCAG 2.3.3) ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .product-card:hover { transform: none; }
    .product-card:hover .product-image { transform: none; }
    .btn-hero:hover { transform: none; }
    .order-item:hover { transform: none; }
    .progress-step.current .step-icon { animation: none; box-shadow: 0 0 0 4px rgba(139, 91, 168, 0.3); }
    .toast { animation: none; }
    .side-menu { transition: none; }
    .mobile-search-overlay { transition: none; }
}

/* ===== Accessibility: High Contrast Mode (WCAG 1.4.11) ===== */
@media (prefers-contrast: more) {
    :root {
        --shadow-sm: 0 0 0 1px var(--text-primary);
        --shadow-md: 0 0 0 2px var(--text-primary);
        --shadow-lg: 0 0 0 3px var(--text-primary);
    }

    .btn {
        border-width: 3px;
    }

    .btn-primary,
    .btn-secondary {
        border-color: currentColor;
    }

    .product-card {
        border: 2px solid var(--text-primary);
    }

    .form-input,
    .form-textarea,
    select.form-input {
        border-width: 2px;
        border-color: var(--text-primary);
    }

    .form-input:focus,
    .form-textarea:focus {
        border-color: var(--primary);
        outline-width: 3px;
    }

    a {
        text-decoration: underline;
    }

    .cart-count {
        border: 2px solid var(--white);
    }

    .order-status,
    .status-badge {
        border: 2px solid currentColor;
    }

    .side-menu-list a:hover,
    .side-menu-list a:focus {
        outline: 2px solid var(--text-primary);
        outline-offset: 2px;
    }
}

/* ===== Accessibility: Forced Colors / Windows High Contrast (WCAG 1.4.11) ===== */
@media (forced-colors: active) {
    .btn {
        border: 2px solid currentColor;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        forced-color-adjust: none;
        background: ButtonFace;
        color: ButtonText;
        border-color: ButtonText;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        background: Highlight;
        color: HighlightText;
        border-color: Highlight;
    }

    .product-card {
        border: 1px solid CanvasText;
    }

    .cart-count {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
    }

    .skip-link:focus {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
        outline: 3px solid HighlightText;
    }

    :focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }

    .form-input:focus,
    .form-textarea:focus {
        outline: 3px solid Highlight;
    }

    .order-status,
    .status-badge,
    .badge-new,
    .badge-coming-soon {
        border: 1px solid currentColor;
    }

    .progress-step.completed .step-icon,
    .progress-step.current .step-icon {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
    }

    .side-menu {
        border-right: 1px solid CanvasText;
    }

    .toast {
        border: 2px solid currentColor;
    }
}

/* ===== Accessibility: Focus Indicators Enhancement ===== */
/* Ensure all interactive elements have visible focus states */
[role="button"]:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Remove outline on mouse click but keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure touch targets are at least 44x44px (WCAG 2.5.5) */
@media (pointer: coarse) {
    .btn,
    .user-btn,
    .cart-btn,
    .menu-toggle,
    .lang-btn,
    .qty-btn,
    .remove-btn,
    .search-button,
    .side-menu-close,
    .mobile-search-close {
        min-width: 44px;
        min-height: 44px;
    }

    .side-menu-list a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
