/*
Theme Name: Bad Monk PRODUCTION
Theme URI: https://badmonk.com
Author: Bad Monk Team
Description: Premium Streetwear Production Build - Best Performance
Version: 1.0 (PROD)
*/

/* ==========================================================================
   1. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #ffffff;
    --border-color: #222222;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 80px;
    --announcement-height: 40px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ==========================================================================
   2. RESET & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--text-muted);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ==========================================================================
   3. UTILITIES
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.masked-hero-text {
    font-size: 10vw;
    font-weight: 900;
    color: transparent;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -2px;
    background-image: url('assets/header-mask.jpg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0 auto 2rem;
    text-align: center;
    width: 100%;
}

.divider {
    width: 100px;
    height: 2px;
    background: var(--text-color);
    margin: 2rem auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1.2rem 3.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border: 2px solid var(--text-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 1.2rem 3.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* ==========================================================================
   4. LAYOUT COMPONENTS
   ========================================================================== */

/* Announcement Bar with Marquee */
.announcement-bar {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.8rem 0;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-bar p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}


/* Navbar */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    /* Transparent overlapping */
    z-index: 1010;
    display: flex;
    align-items: center;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    height: 70px;
}

.nav-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    height: 42px;
    width: auto;
    transition: transform 0.4s ease;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.1);
}

.logo-text {
    height: 22px;
    width: auto;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links li a {
    font-family: 'Anton', sans-serif;
    /* Bolder Font */
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
    letter-spacing: 3px;
    /* Dynamic feel */
}

.nav-icons {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
}

.icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    /* Above mobile menu */
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* New SVG Icons styling */
.nav-icon-svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d1d1d1;
    /* Light Gray as per image */
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    /* Slightly larger */
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
}

/* Premium Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-menu a {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
}

.mobile-menu a:hover {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

.mobile-socials {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-socials a {
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mobile-socials a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.mobile-socials svg {
    width: 24px;
    height: 24px;
}


/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}




/* ==========================================================================
   5. HOME PAGE SECTIONS
   ========================================================================== */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-slider,
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
}

.slider-controls {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.4rem;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

/* Products Section */
.products-section {
    padding: var(--space-xl) 0;
}

.section-header h2 {
    font-size: 4rem;
    margin-top: 1rem;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.product-card {
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--card-bg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.price-container {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.price-sale {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Typography Banner */
.typography-section {
    padding: var(--space-xl) 0;
    background: #000;
}

.typography-content {
    display: flex;
    justify-content: center;
}

.typography-content img {
    max-width: 1000px;
    width: 90%;
}

/* About Section */
.about-section {
    padding: var(--space-xl) 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    height: 700px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

/* Gallery Section */
.gallery-section {
    padding: var(--space-xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* ==========================================================================
   6. PRODUCT PAGE STYLES (SINGLE PRODUCT)
   ========================================================================== */
.product-details-section {
    padding: 160px 0 8rem;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balanced 50/50 split - images not too big */
    gap: 4rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.product-gallery {
    position: sticky;
    top: 140px;
}

.main-image {
    aspect-ratio: 4/5;
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
}

.p-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.p-slide.active {
    opacity: 1;
}

/* Main Image Container */
.main-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    /* Taller format - not too wide */
    border-radius: 4px;
    overflow: hidden;
    /* Essential for zoom */
    position: relative;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure whole image is visible */
    /* Smooth zoom movement */
}

/* Slider Track Logic */
.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth Slide */
}

.slide-item {
    width: 100%;
    flex: 0 0 100%;
    /* Strictly enforce full width */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Contains the zoomed image */
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    /* Zoom is separate from slide */
    transform-origin: center center;
}

/* Gallery Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Zoom Toggle Button */
.zoom-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* IMAGE MAGNIFIER FIX */
.main-image-container {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    background: #111 !important;
}

.slider-track {
    display: flex !important;
    height: 100% !important;
    width: auto !important;
    /* Allow children to define width */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.slide-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    /* CRITICAL for magnifier containment */
    position: relative !important;
}

.slide-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.1s ease-out !important;
    transform-origin: center center !important;
}

.zoom-toggle-btn:hover,
.zoom-toggle-btn.active {
    background: #fff;
    color: #000;
}


/* Thumbnail Grid - Horizontal Scroll */
.thumbnail-grid {
    display: flex !important;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #333 #000;
    margin-top: 1rem;
}

/* Hide scrollbar for Chrome/Safari */
.thumbnail-grid::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-grid::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.thumb-item {
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    min-width: 100px;
    /* Fixed thumbnail width */
    height: 100px;
    flex-shrink: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #fff;
}

/* Product Info Section (Right - Sticky) */
.product-info-vlack {
    position: sticky;
    top: 50px;
    padding-right: 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Typography */
.product-title-vlack {
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.price-container-vlack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sale-price {
    font-weight: 700;
    color: #fff;
    font-size: 1.5rem;
}

.regular-price {
    text-decoration: line-through;
    color: #888;
}

.sale-badge {
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
}

.tax-note {
    width: 100%;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Trust Banner */
.trust-banner {
    background: #111;
    border: 1px dashed #444;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Add to Cart Actions */
.product-actions-vlack {
    margin-bottom: 2rem;
}

/* FLEX LAYOUT FOR FORM: Fixes cramping */
.product-actions-vlack form.cart {
    display: flex !important;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-actions-vlack .quantity {
    display: inline-flex;
    border: 1px solid #fff;
    height: 50px;
    align-items: center;
    margin: 0;
    justify-content: space-between;
}

.product-actions-vlack .qty {
    background: transparent;
    color: #fff;
    border: none;
    height: 100%;
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-actions-vlack .qty::-webkit-inner-spin-button,
.product-actions-vlack .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom Quantity Buttons (+/-) */
.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 30px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #333;
}


/* VLACK BUTTON STYLE: Grey BG, Black Text */
.product-actions-vlack .single_add_to_cart_button {
    background: #B6B6B6;
    /* Light Grey */
    color: #17181A;
    /* Dark Text */
    border: none;
    padding: 0 2rem;
    height: 50px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
    /* Expand to fill space */
    min-width: 200px;
}

.product-actions-vlack .single_add_to_cart_button:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Variations (Pills) */
.product-actions-vlack .variations {
    margin-bottom: 1.5rem;
}

.product-actions-vlack .variations label {
    font-family: var(--font-body);
    /* More readable body font */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: inline-block;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Hide the default WooCommerce "Choose an option" and native selects */
.product-actions-vlack .variations select {
    display: none !important;
}

.product-actions-vlack .variations .value {
    padding-bottom: 1rem;
}

/* Size Guide Link Styling */
.injected-size-guide {
    font-family: var(--font-body) !important;
    font-weight: 400 !important;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 0.75rem !important;
}

.injected-size-guide:hover {
    opacity: 1;
}

/* Color Circles / Size Rectangles Styling */
/* Assuming standard Swatches plugin or list */
.tawcvs-swatches .swatch {
    border: 1px solid #444;
    /* Outline for circles */
    transition: all 0.2s;
}

.tawcvs-swatches .swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px #111, 0 0 0 4px #fff;
}

.tawcvs-swatches .swatch-color {
    border-radius: 50%;
    /* Ensure circles */
}


/* Trust Badges Block (Moved below) */
/* Trust Badges Block (Modern V2) */
.trust-badges-block {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    padding: 2rem 0 !important;
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
    border-top: 1px solid #222 !important;
    border-bottom: 1px solid #222 !important;
    background: transparent !important;
    flex-direction: row !important;
    /* Force horizontal on desktop */
}

.trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 1 !important;
    gap: 0.8rem !important;
    min-height: 80px !important;
}

.trust-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    color: #fff !important;
    stroke-width: 1.5px !important;
    opacity: 0.9 !important;
    display: block !important;
}

.trust-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #fff !important;
    /* Brighter for readability */
    font-weight: 600 !important;
}

.trust-divider {
    width: 1px !important;
    height: 40px !important;
    background: #333 !important;
}

/* Mobile tweak for trust badges */
@media (max-width: 600px) {
    .trust-badges-block {
        gap: 0.5rem !important;
    }

    .trust-text {
        font-size: 0.6rem !important;
    }
}

/* Update Accordions Top Border since Trust Badges moved */
.product-accordions {
    border-top: 1px solid #333;
    margin-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #333;
}

.accordion-item summary {
    padding: 1.5rem 0;
    cursor: pointer;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-content {
    padding-bottom: 1.5rem;
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .vlack-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-details-section {
        padding-top: 2rem;
        /* Reduce padding on mobile */
    }

    .main-image-container {
        /* aspect-ratio handles height now */
        width: 100%;
    }

    .thumbnail-grid {
        /* Keep horizontal scroll on mobile */
        justify-content: flex-start;
    }

    .product-info-vlack {
        padding-right: 0;
        position: static;
        /* No sticky on mobile */
    }

    .product-title-vlack {
        font-size: 2.5rem;
    }

    .custom-woo-form form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-woo-form .single_add_to_cart_button {
        width: 100%;
        margin-top: 1rem;
    }

    .product-actions-vlack .single_add_to_cart_button {
        width: 100%;
    }

    .product-actions-vlack .quantity {
        width: 100%;
        justify-content: space-between;
    }

    .qty-btn {
        width: 50px;
    }
}

/* ==========================================================================
   RELATED PRODUCTS / YOU MAY ALSO LIKE SECTION
   ========================================================================== */

.related.products,
.upsells.products,
.related-products-section,
.upsells-products-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Visual Container */
.related.products>*,
.upsells.products>*,
.related-products-section>*,
.upsells-products-section>* {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 3rem;
}

.related.products h2,
.upsells.products h2,
.related-products-section h2,
.upsells-products-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.related.products ul.products,
.upsells.products ul.products,
.related-products-section ul.products,
.upsells-products-section ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related.products .product,
.upsells.products .product,
.related-products-section .product,
.upsells-products-section .product {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.related.products .product:hover,
.upsells.products .product:hover,
.related-products-section .product:hover,
.upsells-products-section .product:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Product Image */
.related.products .product .woocommerce-loop-product__link,
.upsells.products .product .woocommerce-loop-product__link,
.related-products-section .product .woocommerce-loop-product__link,
.upsells-products-section .product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

.related.products .product img,
.upsells.products .product img,
.related-products-section .product img,
.upsells-products-section .product img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related.products .product:hover img,
.upsells.products .product:hover img,
.related-products-section .product:hover img,
.upsells-products-section .product:hover img {
    transform: scale(1.05);
}

/* Product Title */
.related.products .product .woocommerce-loop-product__title,
.upsells.products .product .woocommerce-loop-product__title,
.related-products-section .product .woocommerce-loop-product__title,
.upsells-products-section .product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 1rem 0.5rem;
    color: #fff;
    line-height: 1.3;
    min-height: 2.6em;
    /* Consistent height for 2 lines */
}

/* Price */
.related.products .product .price,
.upsells.products .product .price,
.related-products-section .product .price,
.upsells-products-section .product .price {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 1rem 1.5rem;
    color: #fff;
}

.related.products .product .price del,
.upsells.products .product .price del,
.related-products-section .product .price del,
.upsells-products-section .product .price del {
    color: #666;
    margin-right: 0.5rem;
}

.related.products .product .price ins,
.upsells.products .product .price ins,
.related-products-section .product .price ins,
.upsells-products-section .product .price ins {
    text-decoration: none;
    color: #fff;
}

/* Add to Cart Button */
.related.products .product .button,
.upsells.products .product .button,
.related-products-section .product .button,
.upsells-products-section .product .button {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 12px;
    background: #B6B6B6;
    color: #17181A;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related.products .product .button:hover,
.upsells.products .product .button:hover,
.related-products-section .product .button:hover,
.upsells-products-section .product .button:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Sale Badge */
.related.products .product .onsale,
.upsells.products .product .onsale,
.related-products-section .product .onsale,
.upsells-products-section .product .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .related.products ul.products,
    .upsells.products ul.products,
    .related-products-section ul.products,
    .upsells-products-section ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .related.products .product img,
    .upsells.products .product img,
    .related-products-section .product img,
    .upsells-products-section .product img {
        height: 200px;
    }

    .related.products h2,
    .upsells.products h2,
    .related-products-section h2,
    .upsells-products-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}



/* ==========================================================================
   5. SUBPAGES (Contact, Tracking, Policies)
   ========================================================================== */

/* Contact Section */
.contact-section {
    padding: 8rem 2rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-details span {
    color: var(--text-muted);
    margin-right: 1rem;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

/* Tracking Section */
.tracking-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 60vh;
}

.tracking-container {
    background: #111;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 4px;
}

.tracking-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.tracking-form input {
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-body);
}

.order-details {
    display: none;
    margin-top: 30px;
}

.order-header {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.order-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #050505;
    align-items: center;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #333;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Policy Pages (Privacy, Terms, Shipping, Refund) */
.policy-section {
    padding: 120px 2rem 6rem;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
}

.policy-container {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.policy-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.policy-container h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.policy-container h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.policy-container p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.policy-container ul,
.policy-container ol {
    color: #ccc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.policy-container li {
    margin-bottom: 0.8rem;
}

.policy-container strong {
    color: var(--text-color);
}

.policy-container a {
    color: var(--text-color);
    text-decoration: underline;
}

.policy-container a:hover {
    color: var(--text-muted);
}

/* Mobile Responsiveness for Subpages */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .tracking-container {
        padding: 20px;
    }

    .tracking-header h2 {
        font-size: 2rem;
    }

    .policy-container {
        padding: 2rem 1.5rem;
    }

    .policy-container h1 {
        font-size: 2rem;
    }

    .policy-container h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   6. GALLERY SECTION
   ========================================================================== */
.gallery-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1rem;
}

.gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
    background: #000;
    color: #fff;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 40px;
    height: auto;
}

.footer-logo-text {
    width: auto;
    height: 30px;
    filter: invert(1);
}

.brand-desc {
    color: #888;
    margin-bottom: 2rem;
    max-width: 300px;
    font-family: var(--font-body);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.8rem;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    flex: 1;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: #fff;
    color: #000;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-column a {
    display: block;
    color: #888;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 2rem;
    }
}

/* Image Zoom Overlay */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-zoom-overlay.active {
    display: flex;
}

.image-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-zoom {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
}

/* Modal Overlay (Size Guide) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #111;
    padding: 2rem;
    border: 1px solid #333;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: #fff;
}

.size-table th,
.size-table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: center;
}


/* ==========================================================================
   9. VARIATION SWATCHES & WOOCOMMERCE UI
   ========================================================================== */
/* Stack Labels and Inputs for Perfect Alignment */
.single-product .variations tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.single-product .variations td.label,
.single-product .variations td.value {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
}

.single-product .variations td.label {
    margin-bottom: 0.5rem;
}

.single-product .variations label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin: 0;
    /* Reset margin */
}

/* Reset any top margin on selectors to align perfectly with label gap */
.custom-woo-form .variations .size-selector,
.custom-woo-form .variations .color-selector {
    margin-top: 0;
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.size-btn {
    min-width: 60px;
    height: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.size-btn:hover,
.size-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 0;
}

.color-btn.active {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--text-color);
}

.color-btn:hover {
    transform: scale(1.1);
}

/* Hide native WooCommerce selects but keep them accessible for scripts */
.custom-woo-form .variations select {
    display: none !important;
}

/* Sticky Mobile Action Bar */
@media (max-width: 768px) {
    .product-actions-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem var(--space-md) calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--border-color);
        z-index: 999;
        display: flex;
        gap: 15px;
    }
}

/* ==========================================================================
   10. ADDITIONAL RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .masked-hero-text {
        font-size: 18vw;
    }
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-text h2 {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .navbar {
        top: 32px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .masked-hero-text {
        font-size: 18vw;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        height: 450px;
        order: -1;
    }

    .about-text h2 {
        font-size: 3rem;
    }

    .about-text p {
        margin: 0 auto 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 2.8rem;
    }

    .product-price-container {
        font-size: 2rem;
    }
}

/* ==========================================================================
   CART SIDEBAR
   ========================================================================== */

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    max-width: 90%;
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.close-cart-sidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: normal;
    transition: transform 0.3s ease;
}

.close-cart-sidebar:hover {
    transform: rotate(90deg);
}

.cart-sidebar-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* WooCommerce Mini Cart Overrides */
.cart-sidebar .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-sidebar .woocommerce-mini-cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    align-items: flex-start;
}

.cart-sidebar .woocommerce-mini-cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: #111;
}

.cart-sidebar .woocommerce-mini-cart-item a:not(.remove) {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cart-sidebar .woocommerce-mini-cart-item .quantity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: block;
}

.cart-sidebar .woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 0;
    right: 0;
    color: #ff4444;
    font-size: 1.5rem;
    line-height: 1;
}

.cart-sidebar .woocommerce-mini-cart__total {
    border-top: 2px solid #fff;
    padding-top: 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.2rem;
    color: #fff;
}

.cart-sidebar .woocommerce-mini-cart__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.cart-sidebar .woocommerce-mini-cart__buttons a {
    display: block !important;
    text-align: center;
    padding: 1.2rem 1rem !important;
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    height: auto !important;
}

.cart-sidebar .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    width: 100% !important;
}

.cart-sidebar .woocommerce-mini-cart__buttons a.checkout {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
    width: 100% !important;
}

.cart-sidebar .woocommerce-mini-cart__buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.cart-sidebar .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 4rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-family: var(--font-body);
}

/* Scrollbar for Sidebar */
.cart-sidebar-content-wrapper::-webkit-scrollbar {
    width: 4px;
}

.cart-sidebar-content-wrapper::-webkit-scrollbar-thumb {
    background: #333;
}

/* Remove any inner constraints */
/* ==========================================================================
   11. BAD MONK VERTICAL CHECKOUT (Summary First)
   ========================================================================== */

/* 1. GLOBAL LAYOUT RESET */
.woocommerce-checkout,
.wp-block-woocommerce-checkout,
.page-template-default .entry-content,
.policy-section {
    padding-top: 110px !important;
    /* Optimal to clear Logo but minimize gap */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    background: #000;
    color: #fff;
    box-sizing: border-box !important;
}

/* Remove header margins just in case */
.wc-block-checkout__header {
    margin-top: 0 !important;
    margin-bottom: 0px !important;
    /* CRUSHED */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* CRUSHED */
}

.wc-block-checkout__header .wc-block-checkout__title {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
    /* Minimal spacing */
    line-height: 1 !important;
}

/* 2. VERTICAL STACK CONTAINER */
.wp-block-woocommerce-checkout {
    display: flex !important;
    flex-direction: column !important;
    /* Stack vertically */
    width: 100% !important;
    align-items: center !important;
    /* Center the content columns */
    gap: 0 !important;
    /* Remove flex gap */
}

/* 3. ORDER SUMMARY (TOP) */
.wc-block-components-sidebar {
    order: -1 !important;
    /* MOVE TO TOP */
    width: 100% !important;
    background-color: #111 !important;
    /* Distinct header bg */
    border-bottom: 1px solid #222;
    padding: 0px 20px 40px !important;
    /* ZERO TOP PADDING */
    display: flex !important;
    justify-content: center !important;
    position: static !important;
    /* NO STICKY - Let it scroll */
    height: auto !important;
    /* Allow natural height */
    overflow: visible !important;
}

/* Inner wrapper to constrain width of summary content */
.wc-block-components-sidebar .wc-block-components-order-summary {
    width: 100%;
    max-width: 800px;
    /* Readable max-width */
}

/* 4. MAIN FORM (BOTTOM) */
.wc-block-components-main {
    order: 2 !important;
    /* BELOW SUMMARY */
    width: 100% !important;
    background-color: #000 !important;
    padding: 60px 20px 100px !important;
    display: flex !important;
    justify-content: center !important;
}

/* Inner wrapper to constrain width of form content */
.wc-block-components-main .wc-block-checkout__main-content {
    width: 100%;
    max-width: 800px;
    /* Matches summary width */
}

/* 5. TYPOGRAPHY & ELEMENTS */
h2 {
    font-family: var(--font-heading) !important;
    text-transform: uppercase;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    color: #fff;
}

/* Inputs */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-country-input input,
.wc-block-components-textarea textarea {
    background: #000 !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 15px !important;
    font-size: 1rem !important;
    font-family: var(--font-body);
}

.wc-block-components-text-input input::placeholder {
    color: #555 !important;
}

.wc-block-components-text-input label {
    display: block !important;
    position: static !important;
    margin-bottom: 8px !important;
    color: #aaa !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Items in Summary */
.wc-block-components-order-summary-item {
    display: grid !important;
    grid-template-columns: 70px 1fr auto !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wc-block-components-product-image {
    width: 70px !important;
    height: 70px !important;
    background: #fff;
    border-radius: 4px;
}

.wc-block-components-product-name {
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    color: #fff !important;
}

.wc-block-components-product-price {
    font-weight: bold !important;
    color: #fff !important;
}

/* Place Order Button */
.wc-block-components-checkout-place-order-button {
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
    padding: 20px !important;
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
    border: none !important;
    margin-top: 30px !important;
    cursor: pointer;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & GLOBAL DEVICE OPTIMIZATIONS
   ========================================================================== */

/* ==========================================================================
   MOBILE FIRST - BASE STYLES (All devices under 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Prevent Horizontal Overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        padding: 0 !important;
    }

    .container {
        padding: 0 15px;
    }

    /* Typography Scaling */
    html {
        font-size: 14px;
        /* Slightly smaller base for mobile */
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Hero Section - Reduce overwhelming size */
    .hero-section {
        min-height: 70vh !important;
        padding: 60px 20px !important;
    }

    .masked-hero-text {
        font-size: 15vw !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Navigation */
    .nav-container {
        padding: 0 15px !important;
    }

    .logo-text {
        height: 18px !important;
    }

    .logo-icon {
        height: 35px !important;
    }

    /* Product Grid */
    .products-grid,
    .woocommerce-loop-product__link {
        padding: 0 !important;
    }

    .product-card {
        margin-bottom: 2rem;
    }

    .product-info h3 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }

    .price-container {
        padding: 0 10px;
        font-size: 1rem !important;
    }

    /* Product Page - Single Product */
    .product-details-section {
        padding: 100px 15px 4rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .product-details-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .product-gallery,
    .product-gallery-vlack {
        position: static !important;
        padding: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .main-image-container {
        margin: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .main-image-container img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* Product Info - Both Templates */
    .product-info-vlack,
    .product-info-col {
        padding: 0 !important;
        position: static !important;
        margin: 0 !important;
    }

    .product-title-vlack,
    .product-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        padding: 0 15px !important;
    }

    .price-container-vlack,
    .product-price-container {
        font-size: 1.1rem !important;
        padding: 0 15px !important;
    }

    /* Reduce Main Image Size on Mobile - Both Templates */
    .main-image-container,
    .main-image,
    .product-gallery .main-image {
        margin: 0 !important;
        max-width: 100%;
        width: 100%;
        max-height: 400px !important;
        overflow: hidden;
    }

    .main-image-container img,
    .main-image img,
    .product-gallery img {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 400px !important;
        object-fit: cover;
    }

    /* Variation Selectors - Remove Left Padding - Both Templates */
    .product-actions-vlack,
    .product-options-wrapper {
        padding: 0 15px !important;
    }

    .product-actions-vlack .variations,
    .product-options-wrapper .variations {
        padding: 0 !important;
        margin: 0 0 1.5rem 0 !important;
    }

    .product-actions-vlack .variations label,
    .product-options-wrapper .variations label,
    .variations label,
    label[for*="pa_"] {
        padding: 0 !important;
        margin: 0 0 0.8rem 0 !important;
        text-align: left !important;
        display: block !important;
    }

    .product-actions-vlack .variations .value,
    .product-options-wrapper .variations .value {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Size/Color Swatches - No Left Gap */
    .tawcvs-swatches,
    .vi-wpvs-variation-wrap {
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Add to Cart Section - No Left Gap - Both Templates */
    .product-actions-vlack form.cart,
    .product-options-wrapper form.cart {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-actions-vlack .quantity,
    .product-options-wrapper .quantity {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        max-height: 50px !important;
    }

    .product-actions-vlack .quantity input,
    .product-options-wrapper .quantity input {
        height: 50px !important;
        padding: 10px !important;
        font-size: 1rem !important;
    }

    .product-actions-vlack .quantity button,
    .product-options-wrapper .quantity button {
        height: 50px !important;
        padding: 0 15px !important;
        font-size: 1.2rem !important;
    }

    .product-actions-vlack .single_add_to_cart_button,
    .product-options-wrapper .single_add_to_cart_button {
        width: 100% !important;
        font-size: 1.2rem !important;
        padding: 18px 1.5rem !important;
        margin: 0 !important;
    }

    /* Accordions */
    .accordion-item summary {
        font-size: 1rem !important;
        padding: 1.2rem 0 !important;
    }

    .accordion-content {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }

    /* Trust Badges */
    .trust-badges-block {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1.5rem 0 !important;
    }

    .trust-item {
        width: 100% !important;
    }

    /* Related Products - Better Typography */
    .related-products-section h2,
    .upsells-products-section h2 {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        padding: 0 15px !important;
    }

    .related-products-section .product .woocommerce-loop-product__title,
    .upsells-products-section .product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        letter-spacing: 0.3px !important;
    }

    /* Footer */
    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 3rem 20px !important;
    }

    .footer-section {
        width: 100% !important;
        text-align: center !important;
    }

    /* Hide Gallery Section on Mobile */
    .gallery-section,
    #gallery {
        display: none !important;
    }

    /* Checkout Page */
    .woocommerce-checkout {
        padding-top: 90px !important;
    }

    .wc-block-checkout__header {
        padding: 0 15px !important;
    }

    .wc-block-components-sidebar {
        padding: 20px 15px 40px !important;
    }

    .wc-block-components-main {
        padding: 0 15px !important;
    }

    /* Contact Page */
    .contact-container {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 0 20px !important;
    }

    .contact-info h2 {
        font-size: 2.5rem !important;
    }

    /* Shop Page */
    .shop-header {
        padding: 100px 20px 40px !important;
    }

    .shop-header h1 {
        font-size: 2.5rem !important;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cart-sidebar-header h2 {
        font-size: 1.5rem !important;
    }

    /* Mobile Menu Improvements */
    .mobile-menu {
        padding: 80px 20px 40px !important;
    }

    .mobile-nav-links a {
        font-size: 1.5rem !important;
        padding: 15px 0 !important;
        display: block !important;
    }

    .mobile-socials {
        margin-top: 40px !important;
        gap: 20px !important;
    }

    .mobile-socials svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ==========================================================================
   SMALL MOBILE (iPhone SE, Small Androids - under 400px)
   ========================================================================== */
@media (max-width: 400px) {

    body {
        padding: 0 !important;
    }

    .container {
        padding: 0 10px;
    }

    html {
        font-size: 13px;
    }

    .product-title-vlack {
        font-size: 1.6rem !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .related-products-section ul.products,
    .upsells-products-section ul.products {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .announcement-bar {
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
    }

    .mobile-nav-links a {
        font-size: 1.3rem !important;
    }
}

/* ==========================================================================
   TABLET (768px - 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    .container {
        padding: 0 30px;
    }

    .product-details-container {
        gap: 3rem !important;
    }

    .product-title-vlack {
        font-size: 2.8rem !important;
    }

    .hero-content h1 {
        font-size: 3.5rem !important;
    }

    .related-products-section ul.products,
    .upsells-products-section ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
}

/* ==========================================================================
   LARGE DESKTOP (1440px+)
   ========================================================================== */
@media (min-width: 1440px) {

    .container {
        max-width: 1600px;
    }

    .product-details-container {
        max-width: 1600px;
    }

    .related-products-section,
    .upsells-products-section {
        max-width: 1600px;
    }
}

/* ==========================================================================
   LANDSCAPE MOBILE (Mobile in landscape orientation)
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {

    .hero-section {
        min-height: 100vh !important;
    }

    .product-details-section {
        padding-top: 80px !important;
    }

    .nav-container {
        padding: 10px 20px !important;
    }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    button,
    .button,
    a.button,
    input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Prevent hover states on touch */
    .product-card:hover {
        transform: none !important;
    }

    /* Better tap feedback */
    button:active,
    .button:active {
        transform: scale(0.98) !important;
    }
}

/* ==========================================================================
   HIGH DPI DISPLAYS (Retina, 4K, etc.)
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper borders */
    .product-card,
    .related-products-section .product {
        border-width: 0.5px !important;
    }

    /* Better image rendering */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}