/* ============================================
   RANTI EXCLUSIVE — Premium Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #1a3a2a;
    --color-primary-light: #2d5a42;
    --color-primary-dark: #0f2419;
    --color-accent: #c4a265;
    --color-accent-light: #d4b87a;
    --color-accent-dark: #a88a4e;
    --color-bg: #f8f6f3;
    --color-bg-warm: #faf8f5;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-border: #e8e4df;
    --color-border-light: #f0ece7;
    --color-danger: #c0392b;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 15px;
}

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

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

button { cursor: pointer; font-family: var(--font-body); }

input, textarea, select {
    font-family: var(--font-body);
    font-size: 15px;
}

/* --- Typography --- */
.font-display { font-family: var(--font-display); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

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

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main { flex: 1; }

/* --- Grid Utility --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    padding: 8px 16px;
}
.btn-ghost:hover { color: var(--color-primary); background: var(--color-border-light); }

.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-lg { padding: 18px 40px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.btn-danger {
    background: transparent; color: var(--color-danger); border-color: var(--color-danger);
}
.btn-danger:hover { background: var(--color-danger); color: #fff; }

/* --- Inputs --- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-size: 15px;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}
.form-input::placeholder { color: var(--color-text-muted); }

textarea.form-input { resize: vertical; min-height: 120px; }

.form-input.is-invalid { border-color: var(--color-danger); }
.invalid-feedback { color: var(--color-danger); font-size: 13px; margin-top: 6px; }

/* --- Cards --- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-sale { background: var(--color-danger); color: #fff; }
.badge-new { background: var(--color-accent); color: #fff; }
.badge-category { background: var(--color-border-light); color: var(--color-text-secondary); }
.badge-warning { background: #fef3cd; color: #856404; }
.badge-success { background: #d4edda; color: #155724; }

/* --- Alert --- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-topbar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 8px 0;
}
.site-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

.site-logo img { height: 44px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}
.nav-actions a, .nav-actions button {
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    transition: color var(--transition);
    background: none;
    border: none;
    padding: 0;
    position: relative;
}
.nav-actions a:hover, .nav-actions button:hover { color: var(--color-accent); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .site-nav { flex-wrap: wrap; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer-col h5 {
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-border-light);
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-card__body {
    padding: 16px 18px 20px;
}

.product-card__category {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-card__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card__price-current {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
}

.product-card__price-original {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,36,25,0.75) 0%, rgba(26,58,42,0.45) 100%);
}
.hero__content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
}
.hero__eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
}
.hero__title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero__subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: 80px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    color: var(--color-text);
}
.section-header p {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-top: 8px;
}
.section-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-link:hover { color: var(--color-accent-dark); gap: 10px; }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    background: var(--color-primary);
    padding: 48px 0;
    text-align: center;
    color: #fff;
}
.page-header h1 { font-size: 36px; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 15px; }

.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 0;
    margin-bottom: 24px;
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--color-border); }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-white { color: #fff; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.5px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.py-section { padding: 80px 0; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border-width: 0;
}

/* ============================================
   TWO-COLUMN LAYOUT (cart, checkout)
   ============================================ */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 1024px) {
    .layout-split { grid-template-columns: 1fr; }
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* ============================================
   TABLE
   ============================================ */
.table-clean {
    width: 100%;
    border-collapse: collapse;
}
.table-clean th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 12px 16px;
    border-bottom: 2px solid var(--color-border-light);
}
.table-clean td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}
.table-clean tr:last-child td { border-bottom: none; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    justify-content: center;
    padding: 0;
}
.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: all var(--transition);
}
.pagination .page-item .page-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination .page-item.active .page-link {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================
   RADIO / CHECKBOX
   ============================================ */
.radio-group { display: flex; flex-direction: column; gap: 12px; }

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}
.radio-option:hover { border-color: var(--color-accent); }
.radio-option input[type="radio"] { accent-color: var(--color-primary); width: 18px; height: 18px; }
.radio-option.selected { border-color: var(--color-accent); background: rgba(196,162,101,0.05); }

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}
.checkbox-custom input { accent-color: var(--color-primary); width: 16px; height: 16px; }

/* ============================================
   QUANTITY SELECTOR
   ============================================ */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-selector button {
    width: 38px;
    height: 38px;
    background: var(--color-bg);
    border: none;
    font-size: 16px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.qty-selector button:hover { background: var(--color-border-light); }
.qty-selector input {
    width: 48px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 14px;
    background: var(--color-surface);
}
.qty-selector input:focus { outline: none; }

/* ============================================
   FEATURE CARDS (homepage)
   ============================================ */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-right: 1px solid var(--color-border-light);
}
.feature-item:last-child { border-right: none; }
.feature-item i {
    font-size: 24px;
    color: var(--color-accent);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,162,101,0.1);
    border-radius: 50%;
    flex-shrink: 0;
}
.feature-item h5 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.feature-item p { font-size: 13px; color: var(--color-text-muted); margin: 0; }

@media (max-width: 768px) {
    .feature-strip { grid-template-columns: 1fr; }
    .feature-item { border-right: none; border-bottom: 1px solid var(--color-border-light); }
    .feature-item:last-child { border-bottom: none; }
}

/* ============================================
   CATEGORY PILLS (catalog filter)
   ============================================ */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition);
    background: var(--color-surface);
    text-decoration: none;
}
.category-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.category-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d4edda;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.success-icon i { font-size: 36px; color: var(--color-success); }

/* ============================================
   INFO ROWS (order summary, etc)
   ============================================ */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.info-row + .info-row { border-top: 1px solid var(--color-border-light); }
.info-row .label { color: var(--color-text-secondary); font-size: 14px; }
.info-row .value { font-weight: 600; font-size: 14px; }

.info-row-total {
    border-top: 2px solid var(--color-border);
    padding-top: 16px;
    margin-top: 8px;
}
.info-row-total .label { font-size: 16px; font-weight: 700; }
.info-row-total .value { font-size: 18px; color: var(--color-primary); font-weight: 700; }

/* ============================================
   DASHBOARD SIDEBAR
   ============================================ */
.dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 768px) {
    .dash-layout { grid-template-columns: 1fr; }
}

.dash-sidebar .card { overflow: hidden; }
.dash-sidebar-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}
.dash-sidebar-header i { font-size: 48px; opacity: 0.5; margin-bottom: 12px; }
.dash-sidebar-header h4 { font-size: 18px; margin-bottom: 4px; }
.dash-sidebar-header p { font-size: 13px; opacity: 0.6; }

.dash-menu { list-style: none; padding: 8px 0; }
.dash-menu li a, .dash-menu li button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    transition: all var(--transition);
}
.dash-menu li a:hover, .dash-menu li button:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.dash-menu li a.active {
    background: rgba(196,162,101,0.1);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
}
.dash-menu li a i, .dash-menu li button i { width: 20px; text-align: center; }
.dash-menu li button.text-danger { color: var(--color-danger); }

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .section { padding: 56px 0; }

    .hero { height: 70vh; min-height: 450px; }
    .hero__subtitle { font-size: 15px; }

    .section-header h2 { font-size: 26px; }

    .page-header { padding: 36px 0; }
    .page-header h1 { font-size: 30px; }

    .feature-item { padding: 20px 24px; }
    .feature-item h5 { font-size: 13px; }

    .product-card__name { font-size: 14px; }
    .product-card__price-current { font-size: 14px; }
    .product-card__body { padding: 14px 14px 16px; }

    /* Sticky sidebar becomes normal flow on tablet */
    .sticky-sidebar { position: static; }

    /* Cart table horizontal scroll */
    .table-clean { min-width: 600px; }
    .card:has(.table-clean) { overflow-x: auto; }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    body { font-size: 14px; }
    .container { padding: 0 16px; }

    /* Typography scale */
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .section { padding: 40px 0; }

    /* ---- HEADER ---- */
    .site-topbar { font-size: 11px; padding: 6px 0; }
    .site-topbar .container { flex-wrap: wrap; gap: 4px; }

    .site-nav { padding: 12px 0; gap: 0; }
    .site-logo img { height: 34px; }

    .nav-actions { gap: 16px; }
    .nav-actions a, .nav-actions button { font-size: 16px; }

    /* mobile dropdown nav - add z-index and smooth transition */
    .nav-links {
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links a { font-size: 14px; padding: 6px 0; }
    .nav-links a::after { display: none; }

    /* ---- HERO ---- */
    .hero {
        height: auto;
        min-height: 420px;
        padding: 60px 0;
    }
    .hero__content { max-width: 100%; }
    .hero__eyebrow { font-size: 11px; letter-spacing: 2px; margin-bottom: 12px; }
    .hero__title { margin-bottom: 16px; }
    .hero__subtitle { font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
    .hero__content .flex { flex-direction: column; }
    .hero__content .btn { width: 100%; }

    /* ---- TRUST STRIP ---- */
    .feature-strip { margin-top: -24px !important; border-radius: var(--radius-md); }
    .feature-item { padding: 18px 20px; gap: 12px; }
    .feature-item i { width: 40px; height: 40px; font-size: 18px; }
    .feature-item h5 { font-size: 13px; }
    .feature-item p { font-size: 12px; }

    /* ---- SECTION HEADER ---- */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 28px;
    }
    .section-header h2 { font-size: 24px; }

    /* ---- PAGE HEADER ---- */
    .page-header { padding: 28px 0; }
    .page-header h1 { font-size: 24px; }
    .page-header p { font-size: 13px; }

    /* ---- BREADCRUMB ---- */
    .breadcrumb { font-size: 12px; flex-wrap: wrap; margin-bottom: 16px; }

    /* ---- PRODUCT CARDS ---- */
    .product-card__body { padding: 12px 12px 16px; }
    .product-card__category { font-size: 10px; margin-bottom: 4px; }
    .product-card__name { font-size: 13px; margin-bottom: 8px; }
    .product-card__price-current { font-size: 13px; }
    .product-card__price-original { font-size: 11px; }
    .product-card__badge .badge { font-size: 10px; padding: 3px 8px; }

    .grid { gap: 16px; }

    /* ---- CATEGORY PILLS ---- */
    .category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        gap: 8px;
    }
    .category-pills::-webkit-scrollbar { display: none; }
    .category-pill { padding: 8px 18px; font-size: 12px; flex-shrink: 0; }

    /* ---- PRODUCT DETAIL ---- */
    .layout-split[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* ---- CART ---- */
    .table-clean { min-width: 0; }
    .table-clean thead { display: none; }
    .table-clean tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 20px 16px;
        border-bottom: 1px solid var(--color-border-light);
        align-items: center;
    }
    .table-clean tbody td {
        padding: 0;
        border-bottom: none;
        text-align: left !important;
    }
    /* Product info spans full width */
    .table-clean tbody td:first-child {
        grid-column: 1 / -1;
    }
    /* Remove button at top right */
    .table-clean tbody td:last-child {
        position: absolute;
        right: 16px;
        top: 20px;
    }
    .table-clean tbody tr {
        position: relative;
    }

    /* ---- CHECKOUT ---- */
    .layout-split[style*="1fr 440px"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- BUTTONS (larger touch targets) ---- */
    .btn { padding: 14px 28px; font-size: 13px; }
    .btn-lg { padding: 16px 32px; font-size: 13px; }
    .btn-sm { padding: 10px 18px; }

    /* ---- FORMS ---- */
    .form-input { padding: 12px 14px; font-size: 14px; }
    .form-group { margin-bottom: 16px; }

    /* ---- CONTACT PAGE GRID ---- */
    .grid[style*="1fr 320px"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- FOOTER ---- */
    .site-footer { padding: 48px 0 24px; }
    .footer-grid { gap: 24px; margin-bottom: 32px; }
    .footer-brand h3 { font-size: 20px; }
    .footer-brand p { font-size: 13px; }
    .footer-bottom { font-size: 12px; padding-top: 16px; }

    /* ---- DASHBOARD ---- */
    .dash-sidebar-header { padding: 24px 20px; }
    .dash-sidebar-header i { font-size: 36px; }
    .dash-sidebar-header h4 { font-size: 16px; }

    /* ---- CARD BODY ---- */
    .card-body { padding: 20px; }

    /* ---- INFO ROWS ---- */
    .info-row .label { font-size: 13px; }
    .info-row .value { font-size: 13px; }
    .info-row-total .label { font-size: 15px; }
    .info-row-total .value { font-size: 16px; }

    /* ---- AUTH PAGES ---- */
    .card-body[style*="padding: 48px"] { padding: 28px !important; }

    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; }
}

/* --- Small Mobile (max-width: 400px) --- */
@media (max-width: 400px) {
    .container { padding: 0 12px; }

    .hero { min-height: 380px; padding: 48px 0; }
    .hero__title { font-size: 28px; }

    .product-card__body { padding: 10px 10px 14px; }
    .product-card__name { font-size: 12px; }
    .product-card__price-current { font-size: 12px; }
    .product-card__price-original { font-size: 10px; }

    .grid { gap: 12px; }

    .btn { padding: 12px 24px; font-size: 12px; }

    .section { padding: 32px 0; }
    .section-header h2 { font-size: 20px; }

    .page-header h1 { font-size: 20px; }

    .footer-grid { gap: 20px; }

    /* Qty selector compact */
    .qty-selector button { width: 34px; height: 34px; }
    .qty-selector input { width: 40px; height: 34px; font-size: 13px; }
}

/* ============================================
   OVERFLOW PREVENTION
   ============================================ */
.page-wrapper { overflow-x: hidden; }
img { max-width: 100%; }
