:root {
    --color-black: #0a0a0a;
    --color-offblack: #1a1a1a;
    --color-white: #e0e0e0;
    --color-orange: #ff6600; /* THUG Signature Orange */
    --color-dark-orange: #cc5200;
    
    --font-impact: 'Anton', sans-serif;
    --font-marker: 'Permanent Marker', cursive;
    --font-typewriter: 'Special Elite', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-typewriter);
    overflow-x: hidden;
}

/* Grunge Background Overlay */
.grunge-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
}

/* Add some random scratch lines via linear-gradients */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 11px);
    pointer-events: none;
    z-index: -1;
}

.street-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOP NAV */
.top-nav {
    border-bottom: 3px solid var(--color-white);
    border-top: 1px solid var(--color-white);
    padding: 10px 0;
    margin-bottom: 30px;
    position: relative;
}

/* Torn paper edge effect on nav */
.top-nav::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0; right: 0; height: 5px;
    background: repeating-linear-gradient(135deg, var(--color-white) 0px, var(--color-white) 2px, transparent 2px, transparent 4px);
    opacity: 0.5;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.nav-item {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-impact);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s, transform 0.2s;
    /* Angled skew for that street look */
    transform: skewX(-10deg);
}

.nav-item:hover, .nav-item.active {
    color: var(--color-orange);
    text-shadow: 2px 2px 0px rgba(255,102,0,0.4);
}

.nav-item.highlight {
    color: var(--color-orange);
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    gap: 40px;
    flex: 1;
}

/* HERO SECTION */
.hero-section {
    flex: 2;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-text-overlay {
    position: absolute;
    top: 20px;
    left: -20px;
    z-index: 10;
    pointer-events: none;
}

.hero-text-overlay h1 {
    font-family: var(--font-impact);
    font-size: 6rem;
    line-height: 0.85;
    color: var(--color-white);
    text-shadow: 4px 4px 0px var(--color-black), -2px -2px 0px var(--color-orange);
    transform: rotate(-5deg);
}

.product-poster {
    position: relative;
    background-color: var(--color-orange);
    padding: 15px;
    border: 5px solid var(--color-offblack);
    box-shadow: 15px 15px 0px rgba(255,102,0,0.2);
    /* Jagged clip path */
    clip-path: polygon(2% 0, 98% 2%, 100% 98%, 1% 100%);
    margin-top: 20px;
    margin-left: 0;
}

/* Masking Tape */
.tape {
    position: absolute;
    background-color: rgba(245, 245, 240, 0.7); /* Off-white masking tape */
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    width: 150px;
    height: 40px;
    z-index: 25; /* High z-index to break out */
    clip-path: polygon(
        0 0, 100% 0, 
        95% 10%, 100% 25%, 95% 40%, 100% 55%, 95% 70%, 100% 85%, 95% 100%,
        0 100%,
        5% 85%, 0 70%, 5% 55%, 0 40%, 5% 25%, 0 10%
    );
}

.tape-top-left {
    top: -15px; left: -40px;
    transform: rotate(-35deg);
}

.tape-bottom-right {
    bottom: -15px; right: -40px;
    transform: rotate(-25deg);
}
.tape-top-center {
    top: -10px; left: 50%;
    transform: translateX(-50%) rotate(2deg);
}

.grunge-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: contrast(1.2) grayscale(0.2) drop-shadow(0 0 10px rgba(0,0,0,0.8));
    border: 2px solid var(--color-black);
}

.stamp-og-art {
    position: absolute;
    bottom: -40px; left: -40px; /* Pushed out */
    background-color: var(--color-orange); /* Site theme orange */
    color: var(--color-black);
    font-family: var(--font-impact);
    font-size: 2.2rem;
    width: 140px; height: 140px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    clip-path: polygon(50% 0%, 61% 25%, 98% 20%, 75% 45%, 95% 80%, 60% 75%, 50% 100%, 40% 75%, 5% 80%, 25% 45%, 2% 20%, 39% 25%);
    transform: rotate(-15deg);
    z-index: 25;
    line-height: 1;
    border: 3px solid var(--color-black);
}

.quick-buy-box {
    position: absolute;
    bottom: -20px; right: -30px; /* Pushed out */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index: 25;
}

.quick-add-bag {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    font-family: var(--font-impact);
    font-size: 1.2rem;
    padding: 5px 15px;
    cursor: pointer;
    transform: rotate(2deg);
    transition: transform 0.1s;
}
.quick-add-bag:hover { transform: scale(1.1) rotate(0deg); background-color: var(--color-white); color: var(--color-black); }

.quick-buy-btn {
    background-color: var(--color-orange);
    color: var(--color-black);
    border: 4px solid var(--color-black);
    padding: 10px 20px;
    font-family: var(--font-impact);
    font-size: 2.5rem;
    cursor: pointer;
    transform: rotate(-3deg);
    box-shadow: 6px 6px 0px var(--color-white);
    transition: all 0.1s;
    line-height: 1;
}
.quick-buy-btn span { display: block; font-size: 1.5rem; color: var(--color-black); }
.quick-buy-btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0px var(--color-white); }

/* BUTTONS */
.grunge-btn {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 10px 20px;
    font-family: var(--font-impact);
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    transform: skewX(-10deg);
    transition: all 0.2s;
}

.grunge-btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.grunge-btn-primary {
    background-color: var(--color-orange);
    color: var(--color-black);
    border: 3px solid var(--color-black);
    padding: 15px 30px;
    font-family: var(--font-impact);
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 5px 5px 0px var(--color-white);
    transition: all 0.1s;
}
.grunge-btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--color-white);
}

/* SIDEBAR / POLAROID BOXES */
.sidebar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

.polaroid-box {
    background-color: var(--color-offblack);
    border: 1px solid #333;
    padding: 20px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.polaroid-box::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px dashed rgba(255,255,255,0.2);
    pointer-events: none;
}

.rotate-right { transform: rotate(2deg); }
.rotate-left { transform: rotate(-2deg); }
.rotate-right-slight { transform: rotate(1deg); }

.polaroid-box h3 {
    font-family: var(--font-impact);
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.polaroid-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #bbb;
    margin-bottom: 15px;
}

.highlight-text {
    color: var(--color-orange) !important;
    font-family: var(--font-marker);
    font-size: 1.5rem !important;
}

.logo-stencil {
    font-family: var(--font-impact);
    font-size: 1.2rem;
    color: #444;
    text-align: right;
    margin-top: 20px;
}

.stamp-overlay {
    position: absolute;
    top: 10px; right: 10px;
    font-family: var(--font-marker);
    color: rgba(255, 102, 0, 0.4);
    font-size: 3rem;
    transform: rotate(15deg);
    pointer-events: none;
    border: 4px solid rgba(255, 102, 0, 0.4);
    padding: 5px;
    border-radius: 5px;
}

.sc-wrapper {
    border: 2px solid var(--color-orange);
    padding: 5px;
    background: #000;
}

/* --- NEW E-COMMERCE STYLES --- */

/* Shop Grid */
.shop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.poster-card {
    background-color: var(--color-orange);
    padding: 10px;
    border: 3px solid var(--color-offblack);
    width: 260px; /* OPTIMIZED WIDTH */
    position: relative;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.8);
    transition: transform 0.2s;
}
.poster-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.small-img {
    height: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.poster-info {
    background-color: var(--color-black);
    padding: 10px;
    margin-top: 10px;
    border: 2px solid var(--color-white);
    text-align: center;
}
.poster-info h3 {
    font-family: var(--font-marker);
    font-size: 1.3rem;
    color: var(--color-orange);
}
.poster-info p {
    font-family: var(--font-impact);
    font-size: 1.1rem;
}

.rotate-left-slight { transform: rotate(-1deg); }

.grunge-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-family: var(--font-impact);
    padding: 5px 15px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}
.grunge-btn-secondary:hover:not(.disabled) {
    background-color: var(--color-white);
    color: var(--color-black);
}
.grunge-btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.stamp-sold {
    color: #ff0000;
    border-color: #ff0000;
    font-size: 4rem;
    top: 30%;
    left: 10%;
    z-index: 20;
    transform: rotate(-25deg);
    background: rgba(0,0,0,0.6);
}

/* Manifest Board (Cart Page) */
.manifest-board {
    background-color: #e0dcd3; /* Dirty paper color */
    color: var(--color-black);
    width: 800px;
    padding: 40px;
    position: relative;
    box-shadow: 15px 15px 0px rgba(255,102,0,0.4);
    transform: rotate(1deg);
    margin-top: 30px;
}

.manifest-title {
    font-family: var(--font-impact);
    font-size: 3rem;
    border-bottom: 5px solid var(--color-black);
    margin-bottom: 30px;
    text-align: center;
}

.manifest-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.manifest-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px dashed #999;
    padding-bottom: 10px;
    font-size: 1.5rem;
    font-family: var(--font-typewriter);
    font-weight: bold;
}
.manifest-row .name { flex: 2; }
.manifest-row .qty { flex: 1; text-align: center; }
.manifest-row .price { flex: 1; text-align: right; }

.manifest-total {
    text-align: right;
    font-family: var(--font-impact);
    font-size: 2.5rem;
    border-top: 5px solid var(--color-black);
    padding-top: 20px;
    margin-bottom: 30px;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
}

/* --- SCROLLING LANDING PAGE STYLES --- */

.scrolling-body {
    overflow-y: auto;
    overflow-x: hidden;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.9);
    margin-bottom: 0;
    padding: 20px 40px;
    border-bottom: 5px solid var(--color-white);
}

.landing-scroll-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* HERO */
.section-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.hero-left {
    flex: 1;
}

.hero-massive {
    font-family: var(--font-impact);
    font-size: 7rem;
    line-height: 0.85;
    color: var(--color-white);
    text-shadow: 6px 6px 0px var(--color-black), -3px -3px 0px var(--color-orange);
    transform: rotate(-3deg);
    margin-bottom: 20px;
}

.hero-massive span {
    color: var(--color-orange);
    font-family: var(--font-marker);
    font-size: 5rem;
    display: block;
    transform: rotate(5deg) translateY(-10px);
}

.hero-subtext {
    font-family: var(--font-typewriter);
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 40px;
    font-weight: bold;
    max-width: 500px;
}

.hero-btn {
    font-size: 2rem;
    padding: 15px 40px;
}

.hero-right {
    flex: 1;
    position: relative;
    padding: 15px;
    background-color: var(--color-orange);
    border: 5px solid var(--color-offblack);
    box-shadow: 15px 15px 0px rgba(255,102,0,0.2);
    clip-path: polygon(1% 1%, 99% 0, 100% 99%, 0% 100%);
}

.hero-img {
    height: 600px;
    width: 100%;
    object-fit: cover;
}

/* DIVIDER */
.section-divider {
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon fill='%23ff6600' points='0,100 100,0 100,100'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    opacity: 0.8;
}

.section-divider.reverse {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon fill='%23e0e0e0' points='0,0 100,100 0,100'/%3E%3C/svg%3E");
}

/* HOT DROPS */
.section-hot-drops {
    text-align: center;
}

.section-title {
    font-family: var(--font-impact);
    font-size: 5rem;
    text-shadow: 4px 4px 0px var(--color-orange);
    transform: rotate(-2deg);
    margin-bottom: 10px;
}

.section-desc {
    font-family: var(--font-typewriter);
    font-size: 1.5rem;
    color: #bbb;
    margin-bottom: 40px;
}

/* FOUNDER & VIBES */
.section-footer-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.founder-note {
    flex: 2;
    padding: 40px;
}

.founder-note p {
    font-size: 1.2rem;
    font-family: var(--font-typewriter);
    line-height: 1.8;
}

.vibe-check {
    flex: 1;
}

/* FOOTER */
.street-footer {
    text-align: center;
    padding: 40px;
    border-top: 2px dashed var(--color-white);
    margin-top: 40px;
}
.street-footer h2 {
    font-family: var(--font-marker);
    color: var(--color-orange);
    letter-spacing: 5px;
}

/* BETA MARQUEE */
.beta-marquee {
    background-color: var(--color-orange);
    color: var(--color-black);
    font-family: var(--font-impact);
    font-size: 1.5rem;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 3px solid var(--color-black);
    z-index: 999;
}

.marquee-content {
    display: inline-block;
    animation: marquee 45s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* HORIZONTAL SCROLLER (Hot Drops & Insta Feed) */
.horizontal-scroller {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 40px;
    
    /* Full Bleed Breakout (Whole Screen Width) */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    
    /* Dynamic padding: Aligns items with the 1400px container on large screens, defaults to 20px on small screens */
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: max(20px, calc((100vw - 1400px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1400px) / 2 + 20px));

    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* Improve touch scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.horizontal-scroller::-webkit-scrollbar {
    display: none;
}
/* Prevent last item cut-off by adding an invisible spacer that honors the right padding */
.horizontal-scroller::after {
    content: '';
    flex: 0 0 1px;
}
.horizontal-scroller > .poster-card,
.horizontal-scroller > a.poster-card {
    flex: 0 0 260px;
    scroll-snap-align: center;
}

@keyframes swipe-hint {
    0%, 10% { transform: translateX(-50%); }
    40% { transform: translateX(calc(-50% - 60px)); }
    70%, 100% { transform: translateX(-50%); }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .section-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hero-massive {
        font-size: 4rem;
        transform: rotate(0deg);
    }
    .hero-massive span {
        font-size: 3rem;
        transform: rotate(0deg) translateY(0);
    }
    .hero-subtext {
        margin: 10px auto 30px auto;
    }
    .hero-right {
        width: 100%;
    }
    .hero-img {
        height: 350px;
        min-height: 350px !important;
    }
    
    .section-footer-content {
        flex-direction: column;
    }
    
    .section-latest-drop {
        flex-direction: column !important;
        text-align: center;
    }
    .section-latest-drop h2 {
        font-size: 2.5rem !important;
        transform: rotate(0deg) !important;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .nav-item {
        font-size: 1.2rem;
    }
    
    .manifest-board {
        width: 100%;
        padding: 20px;
        transform: rotate(0deg);
    }
    
    .poster-card {
        width: 100%;
        max-width: 100%; /* Override the previous 350px max width */
    }

    .horizontal-scroller {
        gap: 20px;
        animation: swipe-hint 2.5s cubic-bezier(0.25, 1, 0.5, 1) 1;
        animation-delay: 1.5s;
    }

    .horizontal-scroller > .poster-card,
    .horizontal-scroller > a.poster-card {
        flex: 0 0 82vw;
        scroll-snap-align: center;
    }
}
