/* ERRORFIT Official Brand Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Cinzel:wght@600;700;800&display=swap');

:root {
    --color-charcoal: #171717;
    --color-warm-beige: #F1E8DB;
    --color-burgundy: #8B2635;
    --color-muted-gold: #B69A70;
    --color-cream: #FAF6EF;
    --color-border: #D9CCBA;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-brand: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (min-width: 1024px) {
    html {
        font-size: 16.5px;
    }
}

body {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Comprehensive Box & Media Scaling across all screen sizes */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Responsive Table Container (Smooth Touch Scrolling, Zero Body Overflow) */
.table-responsive,
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* ==========================================================================
   Cross-Device Sticky Navigation
   Ensures sticky header stays firmly locked at top across mobile, iPhone, iPad,
   tablets, laptops, and desktop screens without breaking.
   ========================================================================== */
header.sticky,
header[class*="sticky"] {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
}

/* Mobile Drawer Smooth Containment */
#mobileDrawer,
#quickBagDrawer {
    overscroll-behavior: contain;
}

.drawer-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ==========================================================================
   Full-Width Luxury Container System
   Eliminates large empty side gaps on wide screens, keeping content clean & aligned
   ========================================================================== */
.max-w-7xl {
    max-width: 1780px !important;
    width: 100%;
}

@media (min-width: 1024px) {
    .max-w-7xl {
        max-width: min(1780px, calc(100vw - 48px)) !important;
    }
}

@media (min-width: 1440px) {
    .max-w-7xl {
        max-width: min(1780px, calc(100vw - 64px)) !important;
    }
}

@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 1780px !important;
    }
}

.font-serif-heading {
    font-family: var(--font-heading);
}

.font-brand {
    font-family: var(--font-brand);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1E8DB;
}
::-webkit-scrollbar-thumb {
    background: #B69A70;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B2635;
}

/* Dark Sidebar Scrollbar */
aside::-webkit-scrollbar {
    width: 5px;
}
aside::-webkit-scrollbar-track {
    background: #171717;
}
aside::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 3px;
}
aside::-webkit-scrollbar-thumb:hover {
    background: #8B2635;
}

/* Button & Accent Styles */
.btn-burgundy {
    background-color: var(--color-burgundy);
    color: #ffffff;
    transition: all 0.25s ease-in-out;
}
.btn-burgundy:hover {
    background-color: #721e2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.25);
}

.btn-charcoal {
    background-color: var(--color-charcoal);
    color: #ffffff;
    transition: all 0.25s ease-in-out;
}
.btn-charcoal:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.btn-outline-burgundy {
    border: 1px solid var(--color-burgundy);
    color: var(--color-burgundy);
    transition: all 0.25s ease-in-out;
}
.btn-outline-burgundy:hover {
    background-color: var(--color-burgundy);
    color: #ffffff;
}

/* Product Card Styling (No hover zoom, no hover blur/opacity) */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(23, 23, 23, 0.08);
}
.product-image-container {
    overflow: hidden;
    position: relative;
}
.product-image-container img {
    opacity: 1;
    filter: none;
    backface-visibility: hidden;
}
.product-card:hover .product-image-container img {
    opacity: 1;
    filter: none;
    transform: none;
}

/* Customizer Garment Canvas */
.garment-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #F1E8DB;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.garment-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.2s ease-in-out;
}

.artwork-printable-area {
    position: absolute;
    top: 24%;
    left: 28%;
    width: 44%;
    height: 44%;
    border: 1.5px dashed rgba(139, 38, 53, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.artwork-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    image-rendering: -webkit-optimize-contrast;
}

/* Admin Theme */
.admin-sidebar {
    background-color: #171717;
    color: #FAF6EF;
}
.admin-sidebar a {
    color: #A3A3A3;
    transition: all 0.2s ease;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: #FFFFFF;
    background-color: #262626;
    border-left: 3px solid var(--color-burgundy);
}

/* Badge Styles */
.badge-mafia {
    background-color: #171717;
    color: #F1E8DB;
    border: 1px solid #333333;
}
.badge-basic {
    background-color: #FAF6EF;
    color: #8B2635;
    border: 1px solid #D9CCBA;
}
.badge-new {
    background-color: var(--color-burgundy);
    color: #FFFFFF;
}

/* Smooth Tabs */
.tab-btn.active {
    border-bottom: 2px solid var(--color-burgundy);
    color: var(--color-burgundy);
    font-weight: 600;
}

/* ==========================================================================
   Method B: Dual-Banner Architecture (21:9 Widescreen Desktop / 16:9 Mobile)
   ========================================================================== */

/* Universal Banner Image Properties */
.hero-banner-img {
    object-fit: cover !important;
}

/* Mobile Devices (< 768px): Strict 16:9 Aspect Ratio (Completely Unaltered) */
@media (max-width: 767px) {
    .hero-banner-slide {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
    .hero-banner-img {
        object-position: center center !important;
    }
}

/* Laptop and Desktop Screens (>= 768px): Full Edge-to-Edge Widescreen starting right after navbar */
@media (min-width: 768px) {
    .hero-banner-slide {
        aspect-ratio: 21 / 9 !important;
        max-height: calc(100vh - 112px) !important;
        height: auto !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .hero-banner-img {
        object-position: center top !important;
    }
}


