/*
 * MAMOU Home Decor - Checkout Flow Shared Styles
 * Used by: cart.html, checkout-success.html, order-tracking.html
 */

/* ============================================
   CSS Variables - MAMOU Brand
   ============================================ */
:root {
    /* Brand Colors */
    --color-primary: #8B7355;
    --color-primary-dark: #6B5A45;
    --color-primary-light: #A89070;
    --color-secondary: #2D5016;
    --color-accent: #D4A574;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-text: #2D2D2D;
    --color-text-light: #6B7280;
    --color-background: #F9F7F4;
    /* F-C12: was #E5E7EB (~1.25:1 vs white, fails WCAG 1.4.11 3:1 UI floor).
       Darkened so form-input borders, .qty-value dividers, the back-button
       outline, and the shipping-bar empty-track all clear the 3:1 minimum
       for non-text UI components. ~3.1:1 vs white. */
    --color-border: #8A929D;
    --color-border-light: #F3F4F6;

    /* Status */
    --color-success: #16A34A;
    --color-error: #DC2626;
    --color-warning: #F59E0B;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================
   Base Reset & Typography
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Header
   ============================================ */
.checkout-header {
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.checkout-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* F-C6: cart.html uses <p class="brand-name"> instead of <h1> to avoid
   double-h1 with the page-level "Shopping Cart" / "Checkout" heading.
   Sibling pages (checkout-success.html, order-tracking.html) keep their
   <h1> since the brand label IS their only h1. Both selectors share styles. */
.checkout-header .logo h1,
.checkout-header .logo .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.025em;
}

.checkout-header .logo .tagline {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.125rem;
}

.checkout-header .header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.checkout-header .header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.checkout-header .header-nav a:hover {
    color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */
.checkout-footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.checkout-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkout-footer p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-white);
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-white);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .checkout-header .logo h1,
    .checkout-header .logo .brand-name {
        font-size: 1.25rem;
    }

    .checkout-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .checkout-header .logo .tagline {
        display: none;
    }
}
