@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8B6F5E;
    --primary-dark: #6B5548;
    --primary-light: #A89080;
    --accent: #C9A96E;
    --accent-light: #DFC494;
    --bg: #FAFAF7;
    --bg-warm: #F5F0EB;
    --bg-card: #FFFFFF;
    --text: #2C2420;
    --text-light: #7A6E66;
    --text-muted: #A09890;
    --border: #E8E2DC;
    --border-light: #F0EBE6;
    --success: #5B8C5A;
    --warning: #D4A843;
    --danger: #C75050;
    --info: #5B7F9C;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(44,36,32,0.06);
    --shadow: 0 2px 8px rgba(44,36,32,0.08);
    --shadow-lg: 0 8px 30px rgba(44,36,32,0.12);
    --radius: 6px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
body.homepage {
    background: url('/assets/images/marble-bg.jpg') center top / cover no-repeat fixed;
    background-color: #F5EDE8;
}
body.homepage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/marble-bg.jpg') center top / cover no-repeat;
    z-index: -2;
}
body.homepage::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 247, 0.15);
    z-index: -1;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}
body.homepage .site-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-top {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 2px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions a {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.header-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px;
    transition: var(--transition);
}
.header-icon-link:hover { opacity: 0.6; }
.header-icon-link svg { display: block; }
.cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F0EB 0%, #E8DDD4 30%, #D4C4B5 60%, #BFA99A 100%);
    overflow: hidden;
}
body.homepage .hero {
    background: transparent;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(139,111,94,0.1) 0%, transparent 50%);
}
body.homepage .hero::before {
    background: rgba(255,255,255,0.25);
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px;
}
.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    border: 1px solid var(--accent-light);
    padding: 8px 24px;
}
.hero h1 {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}
.hero h1 em {
    font-style: italic;
    color: var(--primary);
}
.hero p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
    font-weight: 300;
}
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--text);
}
.btn-outline:hover {
    background: var(--text);
    color: #fff;
}
.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-light);
    color: var(--text);
}
.btn-sm { padding: 8px 20px; font-size: 11px; }
.btn-lg { padding: 16px 48px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b04040; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #4a7a4a; color: #fff; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-warm { background: var(--bg-warm); }
body.homepage .section { background: rgba(250, 250, 247, 0.55); }
body.homepage .section-warm { background: rgba(245, 240, 235, 0.65); }
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}
.section-header .divider {
    width: 40px;
    height: 1.5px;
    background: var(--accent);
    margin: 16px auto;
}

/* ========== CATEGORIES GRID ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.category-card {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-warm);
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(44,36,32,0.6) 0%, transparent 60%);
    z-index: 1;
}
.category-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
}
.category-card-content h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 4px;
}
.category-card-content span {
    font-size: 12px;
    opacity: 0.8;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
}
body.homepage .product-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.product-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.03); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
}
.product-badge.sale { background: var(--danger); }
.product-card-info { padding: 20px; text-align: center; }
.product-card-info .cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.product-card-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.product-card-info h3 a { color: var(--text); }
.product-card-info h3 a:hover { color: var(--primary); }
.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.product-price .current {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}
.product-price .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    gap: 8px;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #E8DDD4 100%);
}
.no-image-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-muted);
    stroke-width: 1;
    fill: none;
}

/* ========== VALUES / FEATURES ========== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}
.value-item { padding: 20px; }
.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
}
.value-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.value-item h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}
.value-item p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

/* ========== NEWSLETTER ========== */
.newsletter {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
}
.newsletter h2 {
    font-size: 32px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 8px;
}
.newsletter p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
    font-weight: 300;
}
.newsletter-form {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
    gap: 0;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}
.newsletter-form button {
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--accent-light); color: var(--text); }

/* ========== FOOTER ========== */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; font-weight: 300; }
.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 300;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding: 20px 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
    border-radius: var(--radius);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,111,94,0.1);
}
select.form-control { appearance: auto; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ========== ALERTS ========== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert-success { background: #f0f7f0; border-color: #c3e0c3; color: var(--success); }
.alert-danger { background: #fdf0f0; border-color: #f0c0c0; color: var(--danger); }
.alert-warning { background: #fdf8f0; border-color: #f0dfc0; color: var(--warning); }
.alert-info { background: #f0f5f8; border-color: #c0d5e0; color: var(--info); }

/* ========== TABLE ========== */
.table-wrapper { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table th {
    background: var(--bg-warm);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
table tr:hover { background: rgba(139,111,94,0.03); }
.table-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-warm);
}

/* ========== STATUS BADGES ========== */
.status {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
}
.status-pending { background: #FFF3CD; color: #856404; }
.status-processing { background: #D1ECF1; color: #0C5460; }
.status-shipped { background: #D4EDDA; color: #155724; }
.status-completed { background: #D4EDDA; color: #155724; }
.status-cancelled { background: #F8D7DA; color: #721C24; }
.status-paid { background: #D4EDDA; color: #155724; }
.status-active { background: #D4EDDA; color: #155724; }
.status-inactive { background: #F8D7DA; color: #721C24; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 32px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}
.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination a:hover { background: var(--bg-warm); }

/* ========== ADMIN LAYOUT ========== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--text);
    color: rgba(255,255,255,0.7);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-header .logo {
    font-size: 20px;
    color: #fff;
}
.admin-sidebar-header .logo span { color: var(--accent); }
.admin-sidebar-header small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}
.admin-nav { padding: 16px 0; }
.admin-nav-group { margin-bottom: 8px; }
.admin-nav-label {
    padding: 8px 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 400;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.admin-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}
.admin-nav a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.admin-content {
    flex: 1;
    margin-left: 260px;
    background: var(--bg);
    min-height: 100vh;
}
.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar h1 {
    font-size: 22px;
    font-weight: 500;
}
.admin-topbar-actions { display: flex; gap: 12px; align-items: center; }
.admin-body { padding: 32px; }

/* ========== ADMIN CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
}
.stat-card .stat-change {
    font-size: 12px;
    margin-top: 4px;
}
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
}
.admin-card-body { padding: 24px; }

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
}
.tab-link {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
}
.tab-link:hover { color: var(--text); }
.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== LOGIN ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #E8DDD4 100%);
}
.login-box {
    background: var(--white);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
}
.login-box .logo {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
}
.login-box .subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ========== SHOP PAGE ========== */
.shop-header {
    background: var(--bg-warm);
    padding: 48px 0;
    text-align: center;
}
.shop-header h1 { font-size: 40px; font-weight: 400; margin-bottom: 8px; }
.shop-header p { color: var(--text-light); font-size: 14px; font-weight: 300; }
.shop-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.shop-filters .filter-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail { padding: 48px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-detail-image {
    background: var(--bg-warm);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-info h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
}
.product-detail-info .price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.product-detail-info .price-block .current {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
}
.product-detail-info .price-block .original {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-detail-info .description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}
.product-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.product-meta div { margin-bottom: 6px; }
.product-meta strong { color: var(--text); }
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}
.qty-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-selector button:hover { background: var(--bg-warm); }
.qty-selector input {
    width: 50px;
    height: 40px;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
}

/* ========== CART ========== */
.cart-table { margin-bottom: 32px; }
.cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: var(--bg-warm);
    padding: 32px;
}
.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.cart-summary .summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 12px;
    padding-top: 12px;
    font-weight: 600;
    font-size: 18px;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 18px; font-family: var(--font-body); font-weight: 600; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ========== MOBILE MENU TOGGLE ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}
.menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.menu-open .mobile-menu-overlay { display: block; }

/* ========== ADMIN MOBILE TOGGLE ========== */
.admin-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}
.admin-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.admin-sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* ========== RESPONSIVE UTILITY CLASSES ========== */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}
.cart-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.shop-filter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}
.shop-filter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */

/* ---- TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .hero-content { max-width: 600px; padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .container { padding: 0 20px; }
    .admin-body { padding: 24px; }
    .admin-topbar { padding: 16px 24px; }
}

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

    /* HEADER MOBILE */
    .mobile-menu-toggle { display: flex; }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 80px 24px 24px;
        gap: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    .menu-open .nav-links { transform: translateX(0); }
    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 14px;
    }
    .nav-links a::after { display: none; }
    .header-main { padding: 12px 16px; }
    .header-top { font-size: 11px; padding: 6px 0; letter-spacing: 1px; }
    .logo { font-size: 22px; }
    /* HERO */
    .hero { height: 65vh; min-height: 420px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 14px; margin-bottom: 28px; line-height: 1.7; }
    .hero-badge { font-size: 10px; letter-spacing: 3px; padding: 6px 18px; margin-bottom: 16px; }
    .hero-content { padding: 24px 20px; }
    .btn-lg { padding: 14px 36px; font-size: 12px; }

    /* SECTIONS */
    .section { padding: 40px 0; }
    .section-sm { padding: 32px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 26px; }
    .section-header p { font-size: 13px; }

    /* GRIDS */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { height: 200px; }
    .category-card-content { padding: 16px; }
    .category-card-content h3 { font-size: 18px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-image { height: 220px; }
    .product-card-info { padding: 14px; }
    .product-card-info h3 { font-size: 15px; }
    .product-card-info .cat { font-size: 10px; }
    .product-price .current { font-size: 14px; }
    .product-price .original { font-size: 12px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .value-item { padding: 12px; }
    .value-item h4 { font-size: 17px; }
    .value-item p { font-size: 12px; }
    .value-icon { width: 50px; height: 50px; }

    /* NEWSLETTER */
    .newsletter { padding: 40px 16px; }
    .newsletter h2 { font-size: 26px; }
    .newsletter p { font-size: 13px; }
    .newsletter-form { flex-direction: column; max-width: 100%; }
    .newsletter-form input { padding: 12px 16px; }
    .newsletter-form button { padding: 12px 20px; }

    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 16px; text-align: center; }
    .site-footer { padding: 40px 0 0; }
    .footer-brand { text-align: center; }
    .footer-col { text-align: center; }
    .footer-bottom { margin-top: 28px; padding: 16px; text-align: center; }

    /* SHOP */
    .shop-header { padding: 24px 0; }
    .shop-header h1 { font-size: 28px; }
    .shop-filters { flex-direction: column; gap: 12px; align-items: stretch; }
    .shop-filter-controls { flex-direction: column; width: 100%; }
    .shop-filter-form { flex-direction: column; width: 100%; }
    .shop-filter-form select.form-control { width: 100% !important; }

    /* PRODUCT DETAIL */
    .product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-detail-image { max-height: 400px; }
    .product-detail-info h1 { font-size: 26px; }
    .price-block .current { font-size: 22px; }
    .qty-selector { justify-content: flex-start; }
    .breadcrumb { font-size: 12px; padding: 12px 0; flex-wrap: wrap; }

    /* CART */
    .cart-table table thead { display: none; }
    .cart-table table, .cart-table table tbody, .cart-table table tr, .cart-table table td {
        display: block;
        width: 100%;
    }
    .cart-table table tr {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-light);
        position: relative;
    }
    .cart-table table td {
        padding: 4px 0;
        border-bottom: none;
        text-align: left;
    }
    .cart-table table td:last-child {
        position: absolute;
        top: 16px;
        right: 0;
        width: auto;
    }
    .cart-summary { max-width: 100%; }

    /* CHECKOUT */
    .checkout-grid { grid-template-columns: 1fr; gap: 24px; }

    /* FORMS */
    .form-row { grid-template-columns: 1fr; }

    /* LOGIN */
    .login-box { padding: 32px 24px; margin: 0 16px; }

    /* ADMIN */
    .admin-menu-toggle { display: flex; }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        width: 260px;
    }
    .admin-sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-sidebar-open .admin-sidebar-overlay { display: block; }
    .admin-sidebar-close { display: block; }
    .admin-content { margin-left: 0; }
    .admin-topbar {
        padding: 12px 16px;
        gap: 8px;
    }
    .admin-topbar h1 { font-size: 18px; }
    .admin-topbar-actions { gap: 8px; }
    .admin-body { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 24px; }
    .stat-card .stat-label { font-size: 10px; }
    .admin-grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .admin-card-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 16px;
    }
    .admin-card-body { padding: 16px; }
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 0;
        scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-link { padding: 10px 16px; font-size: 12px; flex-shrink: 0; }
    table th, table td { padding: 10px 12px; font-size: 12px; }
    .table-wrapper { margin: 0 -16px; }
    .btn-sm { padding: 6px 14px; font-size: 10px; }
    .pagination { flex-wrap: wrap; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 12px; }

    /* ADMIN ORDERS FILTERS */
    .admin-card-header > div {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ---- MOBILE SMALL (max 480px) ---- */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { height: 55vh; min-height: 360px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 13px; margin-bottom: 24px; }
    .hero-badge { font-size: 9px; letter-spacing: 2px; padding: 5px 14px; }
    .hero-content { padding: 20px 16px; }
    .btn-lg { padding: 12px 28px; font-size: 11px; }
    .btn { padding: 10px 24px; font-size: 11px; }

    .section { padding: 32px 0; }
    .section-header h2 { font-size: 22px; }
    .section-header { margin-bottom: 24px; }

    .categories-grid { grid-template-columns: 1fr; gap: 12px; }
    .category-card { height: 180px; }
    .products-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-card-image { height: 280px; }
    .product-card-info { padding: 16px; }
    .product-card-info h3 { font-size: 16px; }
    .values-grid { grid-template-columns: 1fr; gap: 20px; }

    .newsletter h2 { font-size: 22px; }
    .newsletter p { font-size: 12px; }

    .footer-brand p { font-size: 12px; }
    .footer-col a { font-size: 12px; }
    .footer-col h4 { font-size: 11px; margin-bottom: 12px; }

    .shop-header h1 { font-size: 24px; }
    .product-detail-info h1 { font-size: 22px; }
    .product-detail-image { max-height: 320px; }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-card .stat-value { font-size: 22px; }

    .header-top { font-size: 10px; padding: 5px 0; letter-spacing: 0.5px; }
    .logo { font-size: 20px; letter-spacing: 1px; }
    .header-main { padding: 10px 12px; }

    .login-page { padding: 20px 0; }
    .login-box { padding: 28px 20px; margin: 0 12px; }
    .login-box .logo { font-size: 24px; }

    .admin-topbar h1 { font-size: 16px; }
    .admin-body { padding: 12px; }
    .admin-card-header { padding: 12px; }
    .admin-card-body { padding: 12px; }
    .table-wrapper { margin: 0 -12px; }

    .modal { width: 95%; }
    .modal-header { padding: 16px; }
    .modal-body { padding: 16px; }
    .modal-footer { padding: 12px 16px; }
}
