/* ==========================================================================
   1. GLOBAL DESIGN SYSTEM (VARIABLES)
   BlinkIt-inspired: Functional, high-contrast, clean.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors */
    --clr-brand: #094a86;
    --clr-brand-hover: #073866;
    --clr-brand-light: #e6f0fa; /* For soft backgrounds behind text */
    
    /* UI Colors */
    --clr-background: #f4f6f9; /* Soft gray for the page background */
    --clr-surface: #ffffff;    /* Pure white for cards and layout blocks */
    --clr-text-main: #1f2937;
    --clr-text-muted: #6b7280;
    --clr-border: #e5e7eb;
    
    /* Status Colors */
    --clr-success: #16a34a;
    --clr-danger: #dc2626;

    /* 8-Point Spacing System (1rem = 16px) */
    --sp-1: 0.5rem;   /* 8px */
    --sp-2: 1rem;     /* 16px */
    --sp-3: 1.5rem;   /* 24px */
    --sp-4: 2rem;     /* 32px */
    --sp-5: 2.5rem;   /* 40px */
    --sp-6: 3rem;     /* 48px */

    /* Radii & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-main: 'Roboto', sans-serif;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

button {
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   3. GLOBAL UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-2);
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.text-brand { color: var(--clr-brand); }
.text-muted { color: var(--clr-text-muted); }
.text-main { color: var(--clr-text-main); }
.text-danger { color: var(--clr-danger); }
.text-success { color: var(--clr-success); }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.capitalize { text-transform: capitalize; }
.uppercase { text-transform: uppercase; }
.hover-brand:hover { color: var(--clr-brand); }
.hover-underline:hover { text-decoration: underline; }
.leading-relaxed { line-height: 1.625; }

/* Spacing & Layout */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-32 { width: 8rem; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

/* Margins */
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.ml-1 { margin-left: var(--sp-1); }
.ml-2 { margin-left: var(--sp-2); }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

/* Paddings */
.p-2 { padding: var(--sp-1); }
.p-3 { padding: var(--sp-2); }
.p-4 { padding: var(--sp-3); }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.py-3 { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.py-4 { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.py-5 { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.px-2 { padding-left: var(--sp-1); padding-right: var(--sp-1); }
.px-3 { padding-left: var(--sp-2); padding-right: var(--sp-2); }
.px-4 { padding-left: var(--sp-3); padding-right: var(--sp-3); }
.pb-1 { padding-bottom: var(--sp-1); }
.pb-2 { padding-bottom: var(--sp-1); }
.pb-3 { padding-bottom: var(--sp-2); }
.pt-3 { padding-top: var(--sp-2); }
.pt-4 { padding-top: var(--sp-3); }
.pt-5 { padding-top: var(--sp-5); }
.pt-6 { padding-top: var(--sp-6); }

/* Borders & Backgrounds */
.bg-surface { background-color: var(--clr-surface); }
.bg-background { background-color: var(--clr-background); }
.bg-brand-light { background-color: var(--clr-brand-light); }
.border { border: 1px solid var(--clr-border); }
.border-b { border-bottom: 1px solid var(--clr-border); }
.border-t { border-top: 1px solid var(--clr-border); }
.border-none { border: none !important; }
.rounded { border-radius: var(--radius-md); }
.rounded-md { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-card); }
.opacity-50 { opacity: 0.5; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.max-h-60 { max-height: 15rem; }
.min-h-20 { min-height: 5rem; }

/* Position & Z-index */
.relative { position: relative; }
.absolute { position: absolute; }
.z-50 { z-index: 50; }
.sticky-top { position: sticky; top: 0; }

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-1) var(--sp-2);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--clr-brand);
    color: var(--clr-surface);
    border: 1px solid var(--clr-brand);
}
.btn-primary:hover {
    background-color: var(--clr-brand-hover);
    color: var(--clr-surface);
}
.btn-outline {
    background-color: var(--clr-brand-light);
    color: var(--clr-brand);
    border: 1px solid var(--clr-brand);
}
.btn-outline:hover {
    background-color: var(--clr-brand);
    color: var(--clr-surface);
}

/* Form Inputs */
.input-control {
    width: 100%;
    padding: var(--sp-1) var(--sp-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
    background-color: var(--clr-surface);
}
.input-control:focus {
    border-color: var(--clr-brand);
}
textarea.input-control {
    resize: vertical;
}
input[type=file]::file-selector-button {
    border: none;
    background: var(--clr-brand-light);
    color: var(--clr-brand);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    margin-right: 16px;
    transition: background-color 0.2s;
}
input[type=file]::file-selector-button:hover {
    background: var(--clr-brand);
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.badge-sale {
    background-color: var(--clr-danger);
    color: #fff;
}
.badge-outline {
    background-color: var(--clr-brand-light);
    color: var(--clr-brand);
    border: 1px solid var(--clr-brand);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}
.status-pending { background-color: #fef08a; color: #854d0e; }    
.status-processing { background-color: #bfdbfe; color: #1e40af; } 
.status-shipped { background-color: #ddd6fe; color: #5b21b6; }    
.status-completed, .status-delivered { background-color: #bbf7d0; color: #166534; } 
.status-failed, .status-cancelled { background-color: #fecaca; color: #991b1b; }    
.status-refunded { background-color: #e5e7eb; color: #374151; }   

/* Animations & Effects */
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.pop-animation {
    animation: pop 0.3s ease-in-out;
}

/* ==========================================================================
   5. PRODUCT CARD (BLINKIT STYLE)
   ========================================================================== */
.product-card {
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-2);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
}
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    margin-bottom: var(--sp-1);
    background-color: var(--clr-background);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-main);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-author {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-1);
}
.product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-block {
    display: flex;
    flex-direction: column;
}
.price-sale {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-main);
}
.price-original {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-decoration: line-through;
}
.btn-add {
    background-color: var(--clr-brand-light);
    color: var(--clr-brand);
    border: 1px solid var(--clr-brand);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}
.btn-add:hover {
    background-color: var(--clr-brand);
    color: var(--clr-surface);
}

/* ==========================================================================
   6. FRONTEND LAYOUTS & GRIDS
   ========================================================================== */

/* Header Mega Menu & Search */
.has-mega-menu { position: static; }
.mega-menu {
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.has-mega-menu:hover .mega-menu, .mega-menu:hover {
    display: grid !important; 
}
.search-dropdown { border-color: var(--clr-border); }
.search-dropdown a:hover { background-color: var(--clr-background); }

/* Standard Multi-Column Grids */
.grid { display: grid; gap: var(--sp-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.col-span-full { grid-column: 1 / -1; }

/* Shop Layout (Sidebar + Content) */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--sp-3);
    margin-top: var(--sp-3);
}
.sidebar-filters {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-2);
    align-self: start;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.filter-group {
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-2);
}
.filter-group.border-none { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-text-main);
    margin-bottom: var(--sp-1);
}

/* Category Accordion */
.category-details summary {
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 0;
    font-weight: 500;
    list-style: none; 
    display: flex;
    justify-content: space-between;
}
.category-details summary::-webkit-details-marker { display: none; }
.category-details summary::after { content: '+'; color: var(--clr-brand); }
.category-details[open] summary::after { content: '-'; }
.nested-categories {
    list-style: none;
    padding-left: var(--sp-2);
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar-filters { position: static; max-height: none; }
}

/* Single Product Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: var(--sp-5);
    align-items: start;
}
.product-gallery { position: sticky; top: 80px; }
.main-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-image-wrapper img { max-height: 100%; object-fit: contain; }
.product-title-large { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--clr-text-main); }
.price-sale-large { font-size: 1.5rem; font-weight: 700; color: var(--clr-text-main); }
.price-original-large { font-size: 1.125rem; color: var(--clr-text-muted); text-decoration: line-through; }
.variation-box {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    min-width: 100px; padding: var(--sp-1) var(--sp-2); border: 2px solid var(--clr-border);
    border-radius: var(--radius-md); background-color: var(--clr-surface);
    cursor: pointer; transition: all 0.2s ease; color: var(--clr-text-main);
}
.variation-box:hover { border-color: var(--clr-brand-light); background-color: var(--clr-brand-light); }
.variation-box.active { border-color: var(--clr-brand); background-color: var(--clr-brand-light); }
.divider { border: none; border-top: 1px solid var(--clr-border); margin: var(--sp-3) 0; }

@media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: 1fr; gap: var(--sp-3); }
    .product-gallery { position: static; }
}

/* Cart & Checkout Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sp-4);
    align-items: start;
}
.cart-item { transition: opacity 0.3s ease; }
.cart-item-image {
    width: 80px; height: 110px; background-color: var(--clr-background);
    border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
    overflow: hidden; display: flex; justify-content: center; align-items: center;
}
.cart-item-image img { max-height: 100%; object-fit: contain; }
.hover-brand-light:hover { background-color: var(--clr-brand-light); color: var(--clr-brand); }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-4);
    align-items: start;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }

@media (max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; gap: var(--sp-3); }
    .checkout-layout { display: flex; flex-direction: column-reverse; gap: var(--sp-3); }
    .checkout-summary-section { width: 100%; position: static; }
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* Customer Dashboard Layout */
.dashboard-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-4); align-items: start; }
.avatar-circle {
    width: 64px; height: 64px; background-color: var(--clr-brand); color: #fff;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: 700;
}
.dashboard-nav-link {
    display: block; padding: var(--sp-2) var(--sp-3); font-size: 0.875rem; color: var(--clr-text-main); transition: all 0.2s;
}
.dashboard-nav-link:hover { background-color: var(--clr-background); }
.dashboard-nav-link.active {
    background-color: var(--clr-brand-light); color: var(--clr-brand);
    border-left: 3px solid var(--clr-brand); font-weight: 700;
}
.hover-bg-danger-light:hover { background-color: #fef2f2; }
.bg-success-light { background-color: #dcfce7; }
.border-success { border-color: var(--clr-success); }

@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. ADMIN DASHBOARD SPECIFIC STYLES
   ========================================================================== */

.admin-body {
    background-color: #f8fafc; /* Cooler gray for backend */
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background-color: #1e293b; 
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: var(--sp-4);
    min-width: 0; 
}
.admin-brand { padding: var(--sp-3); border-bottom: 1px solid #334155; background-color: #0f172a; }
.admin-brand a { color: #fff; }
.admin-nav { flex: 1; padding: var(--sp-2) 0; overflow-y: auto; }
.admin-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px var(--sp-3); color: #cbd5e1; font-size: 0.875rem;
    font-weight: 500; transition: all 0.2s;
}
.admin-nav-link:hover { background-color: #334155; color: #fff; }
.admin-nav-link.active { background-color: var(--clr-brand); color: #fff; border-left: 4px solid #60a5fa; }
.admin-sidebar-footer { padding: var(--sp-3); border-top: 1px solid #334155; background-color: #0f172a; }
.admin-sidebar-footer .btn-outline { border-color: #475569; color: #f1f5f9; }
.admin-sidebar-footer .btn-outline:hover { background-color: #ef4444; border-color: #ef4444; }

.admin-badge { padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; }
.bg-danger { background-color: var(--clr-danger); }

/* Admin Dashboard Cards & Grids */
.admin-stat-card {
    background-color: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-md); padding: var(--sp-3); box-shadow: var(--shadow-card);
}
.stat-title { font-size: 0.875rem; color: var(--clr-text-muted); text-transform: uppercase; font-weight: 700; margin-bottom: var(--sp-1); }
.stat-value { font-size: 2rem; font-weight: 700; }
.admin-split-layout { grid-template-columns: 2fr 1fr; }

/* Admin Books/Orders Forms & Layouts */
.admin-form-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-4); align-items: start; }
.admin-table-thumb {
    width: 40px; height: 56px; background-color: var(--clr-background);
    border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
    overflow: hidden; display: flex; justify-content: center; align-items: center;
}
.admin-table-thumb img { max-height: 100%; object-fit: contain; }

@media (max-width: 1024px) {
    .admin-split-layout { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .admin-body { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; height: auto; }
    .admin-main { margin-left: 0; padding: var(--sp-2); }
    .admin-form-layout { display: flex; flex-direction: column-reverse; }
    .form-sidebar { width: 100%; }
}

/* Shared Tables */
.table-responsive { overflow-x: auto; }
.dashboard-table { border-collapse: collapse; width: 100%; }
.dashboard-table th { font-size: 0.75rem; text-transform: uppercase; color: var(--clr-text-muted); padding: var(--sp-1) var(--sp-2); border-bottom: 2px solid var(--clr-border); }
.dashboard-table td { padding: var(--sp-2); vertical-align: middle; }
.dashboard-table tr:hover td { background-color: var(--clr-background); }

/* ==========================================================================
   8. PRINT MEDIA QUERIES (FOR PACKING SLIPS)
   ========================================================================== */
@media print {
    /* Hide admin navigation and buttons */
    .no-print, .admin-sidebar, .btn, .global-header, .global-footer {
        display: none !important;
    }

    /* Show print-only elements */
    .print-only { display: block !important; }

    /* Expand the main content to take up the whole A4 page */
    .admin-main { margin-left: 0 !important; padding: 0 !important; }

    /* Remove background colors and shadows to save printer ink */
    .bg-surface {
        box-shadow: none !important;
        border: none !important;
        border-bottom: 1px solid #ccc !important;
    }

    /* Force the asymmetric grid to stack */
    .admin-split-layout { display: block !important; }
    .customer-info-col { margin-top: 2rem; }

    body {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
}

/* ==========================================================================
   11. HOMEPAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero Carousel */
.hero-carousel-section {
    min-height: 300px;
}

.carousel-container {
    width: 100%;
    /* Transition is handled via inline styles in JS, but we define the class here */
}

.carousel-slide {
    width: 100%;
}

.transform { transform: translateY(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.top-1\/2 { top: 50%; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.duration-500 { transition-duration: 500ms; }

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    .hero-carousel-section .md\:block { display: none; }
    .hero-carousel-section .md\:text-4xl { font-size: 1.75rem; }
}

/* Category Icon Grid */
.category-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--sp-2);
}

.category-icon-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Publisher Logos */
.partner-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Tracking utility for small caps */
.tracking-wider {
    letter-spacing: 0.05em;
}
