/* Abolition Jersey Font */
@font-face {
    font-family: 'Abolition';
    src: url('assets/AbolitionTest-Oblique.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg-color: #2d232e;
    /* Very dark background */
    --text-color: #f1f0ea;
    /* Lightest cream text */
    --primary-accent: #e0ddcf;
    /* Beige accent */
    --primary-accent-hover: #ffffff;
    /* Lighter hover */
    /* Using white or lighter cream for hover */
    --secondary-bg: #474448;
    /* Dark grey-purple overlay */
    --card-bg: #534b52;
    /* Lighter grey-purple for cards */
    --border-color: #534b52;
    /* Using card-bg tone for borders */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}



html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-color);
    background-image: url('assets/wall-texture.webp');
    background-repeat: repeat;
    background-size: 800px 800px;
    background-blend-mode: multiply;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.highlight {
    color: var(--primary-accent);
}

/* Typography & Utilities */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
}

.section-header p {
    color: rgba(241, 240, 234, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--bg-color);
    border: 2px solid var(--primary-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 0.5rem 1.5rem;
}

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

.btn-icon {
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bg-color);
    background: var(--primary-accent);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 0 12px rgba(224, 221, 207, 0.35), 0 0 30px rgba(224, 221, 207, 0.15);
    animation: orderGlow 2.5s ease-in-out infinite;
}

/* Shimmer sweep */
.btn-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -75%;
    }

    60% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

@keyframes orderGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(224, 221, 207, 0.3), 0 0 25px rgba(224, 221, 207, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(224, 221, 207, 0.6), 0 0 50px rgba(224, 221, 207, 0.25);
    }
}

.btn-icon:hover {
    background: #fff;
    color: var(--bg-color);
    transform: scale(1.05);
}

.btn-icon .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-icon:hover .arrow {
    transform: translateX(5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language toggle pill */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(241, 240, 234, 0.6);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-accent);
    color: var(--text-color);
}

.lang-option {
    padding: 0.1rem 0.3rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.lang-option.active {
    color: var(--bg-color);
    background: var(--primary-accent);
    padding: 0.1rem 0.5rem;
}

.lang-divider {
    opacity: 0.4;
    font-weight: 300;
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(45, 35, 46, 0.95);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding-top: 5rem;
}

.hero-title {
    font-size: 6rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(241, 240, 234, 0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Decorative Shapes */
.hero-graphic {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    opacity: 0.35;
    animation: float 10s ease-in-out infinite alternate;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--border-color) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    opacity: 0.45;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-50px) scale(1.1);
    }
}

/* Collection Section */
.collection {
    padding: 8rem 5%;
    background-color: rgba(71, 68, 72, 0.92);
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
}

.product-card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: visible;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.product-card:hover {
    box-shadow: 15px 15px 0px rgba(224, 221, 207, 0.1);
    border-color: var(--primary-accent);
}



/* Graffiti stripes on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 12px;
    background: repeating-linear-gradient(45deg,
            var(--card-bg),
            var(--card-bg) 10px,
            rgba(224, 221, 207, 0.05) 10px,
            rgba(224, 221, 207, 0.05) 20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Background Video */
.card-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Behind the jersey */
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.05);
    /* Slight zoom so scale down on hover is smooth */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-card:hover .card-bg-video {
    opacity: 0.9;
    transform: scale(1);
    /* Slight zoom out to give depth */
}

/* Graffiti Typography Background Effect */
.graffiti-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    font-family: 'UnifrakturCook', cursive;
    color: var(--primary-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .graffiti-pattern {
    opacity: 0.4;
}

.graffiti-pattern span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 5rem;
    color: rgba(224, 221, 207, 0.5);
    white-space: nowrap;
    letter-spacing: 4px;
}

.product-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: absolute;
    transition: filter 0.3s ease;
    z-index: 1;

    /* Prevent image dragging and downloading */
    user-select: none;
    -webkit-user-drag: none;
}

/* Simplified shadow on hover — much lighter on GPU */
.product-card:hover .product-img.front {
    filter: drop-shadow(10px 15px 15px rgba(0, 0, 0, 0.5));
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
}

.badge.premium {
    background: var(--primary-accent);
}

/* ─── Anti-Copycat Warning Banner ─── */
.copycat-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border-bottom: 2px solid #ff2d2d;
    border-top: 2px solid #ff2d2d;
    padding: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    border-radius: 12px 12px 0 0;
    box-shadow:
        0 4px 20px rgba(255, 45, 45, 0.15),
        inset 0 0 30px rgba(255, 45, 45, 0.05);
    animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(255, 45, 45, 0.15),
            inset 0 0 30px rgba(255, 45, 45, 0.05);
    }
    50% {
        box-shadow:
            0 4px 30px rgba(255, 45, 45, 0.3),
            inset 0 0 40px rgba(255, 45, 45, 0.1);
    }
}

.copycat-banner-inner {
    background: #ff2d2d;
    padding: 0.45rem 0;
    overflow: hidden;
    position: relative;
}

/* Diagonal stripes overlay */
.copycat-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.12) 8px,
        rgba(0, 0, 0, 0.12) 16px
    );
    pointer-events: none;
    z-index: 1;
}

.copycat-marquee {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 12s linear infinite;
    position: relative;
    z-index: 2;
}

.copycat-marquee span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 0;
    /* Override graffiti-pattern span styles */
    position: static;
    top: auto;
    left: auto;
    transform: none;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.copycat-subtitle {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 0.6rem 1rem 0.65rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin: 0;
}

.copycat-subtitle strong {
    color: #ff6b6b;
    font-weight: 700;
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    color: rgba(241, 240, 234, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Sleeve Toggle Pills */
.sleeve-toggle {
    display: flex;
    gap: 0.5rem;
}

.sleeve-btn {
    flex: 1;
    padding: 0.45rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(241, 240, 234, 0.6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sleeve-btn:hover {
    border-color: var(--primary-accent);
    color: var(--text-color);
}

.sleeve-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    border-color: var(--primary-accent);
}

/* Product Select Cards (Checkout) */
.product-select-group {
    display: flex;
    gap: 1.2rem;
}

.product-select-card {
    flex: 1;
    cursor: pointer;
}

.product-select-card input {
    display: none;
}

.product-select-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
}

.product-select-card:hover .product-select-inner {
    border-color: rgba(224, 221, 207, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.product-select-card input:checked ~ .product-select-inner {
    border-color: var(--primary-accent);
    background: rgba(224, 221, 207, 0.1);
}

.product-select-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.product-select-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-color);
}

/* Order Section */
/* --- LOOKBOOK CAROUSEL --- */
.lookbook {
    padding: 6rem 5%;
    background-color: rgba(71, 68, 72, 0.95);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lookbook.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-container {
    position: relative;
    margin-top: 4rem;
    width: 100vw;
    margin-left: -5vw;
    /* Break out of section exact padding */
}

/* Background Sweeping Graffiti for Carousel */
.lookbook-graffiti {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.lookbook-graffiti span {
    position: absolute;
    font-family: 'Sedgwick Ave Display', cursive;
    color: rgba(224, 221, 207, 0.04);
    white-space: nowrap;
    text-transform: uppercase;
    animation: drift 20s linear infinite alternate;
}

.graf-1 {
    top: 5%;
    left: -10%;
    transform: rotate(-5deg);
    font-size: 5rem;
}

.graf-2 {
    top: 40%;
    right: -5%;
    transform: rotate(15deg);
    font-size: 6rem;
    opacity: 0.6;
}

.graf-3 {
    top: 70%;
    left: 30%;
    transform: rotate(-10deg);
    font-size: 4rem;
    filter: blur(3px);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 2rem 5%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    cursor: grab;
    z-index: 1;
    position: relative;
    direction: ltr;
    /* Force LTR so JS drag and image order doesn't break in Arabic */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    /* Disable snapping while dragging */
}

.carousel-track.dragging .carousel-img {
    pointer-events: none;
    /* Prevent accidental ghost dragging natively */
}

.carousel-slide {
    flex-shrink: 0;
    width: 350px;
    height: 500px;
    scroll-snap-align: center;
    position: relative;
}

/* Faux tape effect holding the pictures */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 45%;
    width: 70px;
    height: 22px;
    background: rgba(220, 220, 220, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    z-index: 15;
    pointer-events: none;
    mix-blend-mode: overlay;
    border-radius: 1px;
}

.carousel-slide:nth-child(even)::after {
    top: auto;
    bottom: 5px;
    left: auto;
    right: 20%;
    transform: rotate(4deg);
    background: rgba(240, 240, 240, 0.3);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.8);
    filter: grayscale(90%) contrast(130%) brightness(85%);
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 6px solid #1a1a1a;
    border-bottom-width: 50px;
    /* Distressed dark border */
    background: #1a1a1a;
}

.carousel-slide:hover .carousel-img {
    filter: grayscale(10%) contrast(110%) brightness(100%);
    transform: scale(1.04) rotateZ(2deg);
    box-shadow: 15px 15px 0px var(--primary-accent);
    border-color: #111;
    background: #111;
    z-index: 10;
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    pointer-events: none;
    z-index: 2;
}

.carousel-nav .carousel-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(45, 35, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    color: var(--text-color);
    font-size: 1.5rem;
}

.carousel-nav .carousel-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

.order-section {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
}

.order-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.order-text h2 {
    font-size: 4rem;
    text-align: center;
}

.order-text p {
    color: rgba(241, 240, 234, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.perks {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perks li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: var(--primary-accent);
}

.form-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.form-wrapper,
.form-wrapper * {
    cursor: auto !important;
    /* Restore default cursor so user can interact with the form properly */
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

/* Jersey Items Container */
.jersey-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jersey-item-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-accent);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.jersey-item-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jersey-item-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.jersey-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-accent);
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.jersey-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-color);
}

/* Jersey Preview Card */
.jersey-previews-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.jersey-preview-card {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.jersey-preview-card:hover {
    border-color: rgba(224, 221, 207, 0.3);
}

.jersey-preview-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.jersey-preview-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.jersey-preview-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-color);
}

.jersey-preview-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.5rem 1rem;
}

.jersey-preview-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.jersey-preview-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.jersey-preview-side:hover .jersey-img-wrapper {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

/* Jersey Image Wrapper & Overlays */
.jersey-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 200px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.jersey-img-wrapper .jersey-preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.jersey-overlay {
    position: absolute;
    font-family: 'Abolition', 'Outfit', sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 2;
    -webkit-text-stroke: 0.5px #1a1a1a;
}

/* Front — number right under the crest pattern */
.jersey-overlay-front-num {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(0.75rem, 2.8vw, 1.2rem);
    letter-spacing: -0.5px;
}

/* Back — name centered */
.jersey-overlay-back-name {
    top: 25%;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    font-size: clamp(0.4rem, 1.4vw, 0.6rem);
    letter-spacing: 2px;
    padding-left: 2.5%;
}

/* Back — number lower on the back */
.jersey-overlay-back-num {
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2rem, 8vw, 3.5rem);
    letter-spacing: -1px;
}

@media (max-width: 480px) {
    .jersey-overlay-front-num {
        font-size: 0.7rem;
    }

    .jersey-overlay-back-name {
        font-size: 0.42rem;
    }

    .jersey-overlay-back-num {
        font-size: 1rem;
    }
}

/* MAP jersey preview — white text on back */
.map-preview .jersey-overlay {
    color: #ffffff;
    -webkit-text-stroke: 0.5px #ffffff;
}

.jersey-preview-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(241, 240, 234, 0.5);
}

.jersey-preview-divider {
    width: 1px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .jersey-preview-images {
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .jersey-preview-img {
        max-width: 140px;
    }

    .jersey-preview-divider {
        height: 120px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    text-transform: uppercase;
}

.form-text {
    font-size: 0.8rem;
    color: rgba(241, 240, 234, 0.6);
    margin-top: -0.3rem;
}

.product-badge-input {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    color: var(--primary-accent);
}

.form-control {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 10px rgba(224, 221, 207, 0.1);
}

textarea.form-control {
    resize: vertical;
}

/* Form Validation Errors */
.field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3) !important;
    animation: shake 0.4s ease;
}

.confirmation-group.field-error {
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 0.8rem;
    animation: shake 0.4s ease;
}

.error-msg {
    display: block;
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
    letter-spacing: 0.5px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.radio-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radio-pill {
    cursor: pointer;
    position: relative;
}

.radio-pill input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-pill span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.radio-pill input:checked~span {
    background: var(--primary-accent);
    color: var(--bg-color);
    border-color: var(--primary-accent);
}

.radio-pill:hover span {
    border-color: var(--primary-accent);
}

/* Quantity Stepper */
.quantity-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    transition: border-color 0.3s ease;
}

.quantity-stepper:hover {
    border-color: var(--primary-accent);
}

.qty-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.qty-btn:hover {
    background: var(--primary-accent);
    color: var(--bg-color);
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-input {
    width: 60px;
    height: 48px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-accent);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 0.9rem;
    color: rgba(241, 240, 234, 0.8);
    line-height: 1.4;
}

.confirm-price {
    display: inline;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--primary-accent);
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(224, 221, 207, 0.3);
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.success-message {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-accent);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 30px rgba(224, 221, 207, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--secondary-bg);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

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

.footer-content p {
    color: rgba(241, 240, 234, 0.7);
    max-width: 400px;
    margin: 0 auto 3rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-bg);
    color: rgba(241, 240, 234, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .order-section {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 4rem;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .form-wrapper iframe {
        height: 2900px;
        /* Increase height for tablets to avoid scrollbars */
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 4%;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
        gap: 0.3rem;
    }

    .logo-img {
        height: 24px;
    }

    .lang-toggle {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        gap: 0.1rem;
    }

    .btn.nav-cta {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .carousel-slide {
        width: 75vw;
        height: 60vh;
    }

    .carousel-nav {
        display: none;
        /* Native touch swipe is preferred on phones */
    }

    .form-wrapper iframe {
        height: 2950px;
        /* Safely accommodates new shortened mobile form */
    }
}

/* =====================
   RTL / Arabic Overrides
   ===================== */
[lang="ar"] {
    font-family: 'Noto Kufi Arabic', 'Outfit', sans-serif;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    letter-spacing: 0;
    /* Arabic doesn't use letter-spacing */
}

[lang="ar"] .hero-content {
    text-align: right;
}

[lang="ar"] .hero-title {
    font-size: 5rem;
}

[lang="ar"] .hero-actions {
    justify-content: flex-start;
}

[lang="ar"] .section-header {
    text-align: center;
}

[lang="ar"] .product-info {
    text-align: right;
}

[lang="ar"] .btn-icon {
    flex-direction: row-reverse;
}

[lang="ar"] .order-text p {
    text-align: center;
}

[lang="ar"] .perks li {
    flex-direction: row-reverse;
}

[lang="ar"] .footer-content {
    text-align: center;
}

[lang="ar"] .footer-bottom {
    text-align: center;
}

[lang="ar"] .nav-links a::after {
    left: auto;
    right: 0;
}

@media (max-width: 600px) {
    [lang="ar"] .hero-title {
        font-size: 2.8rem;
    }
}

/* =====================
   Custom Cursor
   ===================== */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background-color: white;
        pointer-events: none;
        z-index: 9999;
        transform: translate3d(-50%, -50%, 0);
        mix-blend-mode: difference;
        transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
        will-change: transform;
    }

    .custom-cursor.hovered {
        width: 60px;
        height: 60px;
    }
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

/* =====================
   Reduced Motion / Low-End Fallback
   ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .shape-1 {
        animation: none;
    }

    .lookbook-graffiti span {
        animation: none;
    }

    .btn-icon::after {
        animation: none;
    }

    .btn-icon {
        animation: none;
    }
}
