@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #172554;
    --accent: #f97316;
    --accent-light: #ffedd5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Outfit', sans-serif;
    --container-width: 1280px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid.col-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
    .grid.col-2, .grid.col-3, .grid.col-4 {
        grid-template-columns: 1fr;
    }
}

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

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

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

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--border);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navigation */
.header-top {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.main-header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo span {
    color: var(--accent);
}

.search-bar-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    outline: none;
}

.search-btn {
    padding: 0 1.25rem;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-light);
}

/* Actions Menu */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.action-icon-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.action-icon-btn:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.badge-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Navigation Bar */
.category-nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.category-nav .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.category-link {
    font-weight: 500;
    color: var(--text-muted);
}

.category-link:hover, .category-link.active {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin: 1.5rem 0;
}

.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 400px;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: absolute;
    right: 5%;
    bottom: -10%;
    width: 45%;
    max-height: 120%;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image-container img {
    object-fit: contain;
    transform: rotate(-5deg);
    filter: drop-shadow(0 25px 25px rgba(0,0,0,0.35));
    transition: var(--transition);
}

.hero-image-container:hover img {
    transform: rotate(0deg) scale(1.03);
}

/* Categories Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Category Circle List */
.category-circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-circle-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-circle-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-circle-card:hover .category-circle-icon {
    background-color: var(--primary-light);
    color: white;
}

.category-circle-name {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Product Cards Grid */
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-dark);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 5;
}

.product-badge.condition-new { background-color: var(--success); }
.product-badge.condition-superb { background-color: var(--primary); }
.product-badge.condition-likenew { background-color: var(--warning); }

.product-save-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 5;
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: translate(-50%, -50%) scale(1.08);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    height: 2.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-line-through;
    text-decoration: line-through;
}

.product-card-footer {
    display: flex;
    gap: 0.5rem;
}

/* Quick price filter boxes */
.price-quick-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.price-filter-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.price-filter-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

/* Trust Banner */
.trust-banner {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    margin: 4rem 0;
}

.trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    font-size: 2.25rem;
    color: var(--primary-light);
}

.trust-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.trust-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Product Detail Page */
.product-detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-specs-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
    border: none;
}

.specs-table td {
    padding: 0.75rem 0;
}

.specs-label {
    font-weight: 600;
    color: var(--text-muted);
    width: 40%;
}

.specs-value {
    color: var(--text-main);
}

/* Category Filter Layout */
.filter-layout {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.filter-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    align-self: start;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
    margin: 0;
    padding: 0;
    border: none;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.925rem;
    cursor: pointer;
}

.filter-checkbox-label input {
    width: 16px;
    height: 16px;
}

/* Cart & Checkout CSS */
.cart-table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th, .cart-table td {
    padding: 1.25rem 1.5rem;
}

.cart-table th {
    background-color: var(--bg-main);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.cart-table tr {
    border-bottom: 1px solid var(--border);
}

.cart-table tr:last-child {
    border: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    background-color: #f8fafc;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    cursor: pointer;
    font-weight: 700;
}

.quantity-input {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.btn-remove {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-remove:hover {
    text-decoration: underline;
}

/* Order Summary */
.summary-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Checkout Form styling */
.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background-color: var(--bg-main);
}

.form-control:focus {
    border-color: var(--primary-light);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 201;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--bg-main);
}

.cart-item-drawer {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-drawer-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
    padding: 0.25rem;
}

.cart-item-drawer-info {
    flex-grow: 1;
}

.cart-item-drawer-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-drawer-price {
    font-weight: 700;
    color: var(--primary);
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

/* Admin Dashboard CSS Styling */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 3rem;
}

.admin-sidebar-logo span { color: var(--accent); }

.admin-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.admin-nav-item a:hover, .admin-nav-item.active a {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.admin-main {
    background-color: var(--bg-main);
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.admin-stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-stat-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    opacity: 0.7;
}

.admin-table-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.5rem;
}

.admin-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.admin-table tr {
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child {
    border: none;
}

.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-badge-pending { background-color: #fef3c7; color: #d97706; }
.admin-badge-pre-booked { background-color: #e0f2fe; color: #0369a1; }
.admin-badge-processing { background-color: #dbeafe; color: #2563eb; }
.admin-badge-shipped { background-color: #fae8ff; color: #c084fc; }
.admin-badge-delivered { background-color: #d1fae5; color: #059669; }
.admin-badge-cancelled { background-color: #fee2e2; color: #dc2626; }

/* Sticky bottom nav for mobile web */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    height: 60px;
    z-index: 150;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    gap: 0.25rem;
    cursor: pointer;
}

.mobile-bottom-nav-item.active, .mobile-bottom-nav-item:hover {
    color: var(--primary);
}

.mobile-bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

/* Sticky Buy Button for Mobile Details Page */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    z-index: 150;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.mobile-sticky-cta-price {
    flex-grow: 1;
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .filter-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        display: none; /* Can toggle with JS or render above */
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* space for mobile nav */
    }
    
    .hamburger {
        display: block;
    }
    
    .category-links, .header-top, .category-nav {
        display: none !important;
    }
    
    .main-header .container {
        height: 64px;
    }
    
    .search-bar-container {
        display: none; /* show search overlay instead, or hide */
    }
    
    .hero-banner {
        padding: 3rem 1.5rem;
        min-height: auto;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image-container {
        position: static;
        width: 80%;
        margin-top: 2rem;
        justify-content: center;
    }
    
    .hero-image-container img {
        transform: none;
    }
    
    .hero-image-container:hover img {
        transform: scale(1.03);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: var(--radius-sm);
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.95rem;
        height: 2.5rem;
        margin-bottom: 0.25rem;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
    
    .price-original {
        font-size: 0.875rem;
    }
    
    .product-card-footer {
        flex-direction: column;
    }
    
    .product-card-footer .btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none; /* can expand with absolute menu if needed */
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Compare Styles */
.compare-checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    user-select: none;
}
.compare-checkbox-container input {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}
.compare-bar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 768px) {
    .compare-bar {
        bottom: 75px; /* Stay clear of mobile bottom navbar */
    }
}
.compare-preview-item {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.2);
    background: white;
    flex-shrink: 0;
}
.compare-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.compare-preview-item .remove-preview {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid white;
    font-weight: bold;
    line-height: 1;
}
