/* --- PROJECT24 DESIGN SYSTEM V3 (Motion Edition) --- */
:root {
    --bg: #F4F4F0;
    --panel: #FFFFFF;
    --text: #050505;
    --subtext: #666;
    --lines: #D6D6D6;
    --accent: #FF3B00;
}

/* --- RESET & SCROLLBAR HIDING --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
.modal-info,
.cart-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 80px;
}

body.modal-open {
    overflow: hidden;
}

/* Disable text selection globally */
* {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* --- TYPOGRAPHY --- */
.mono {
    font-family: 'Space Mono', monospace;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.text-huge {
    font-size: clamp(3rem, 10vw, 9rem);
    line-height: 0.9;
}

.text-xl {
    font-size: clamp(2rem, 5vw, 4rem);
}

/* --- GRID BACKGROUND --- */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--lines) 1px, transparent 1px),
        linear-gradient(90deg, var(--lines) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* --- BACKGROUND CAR BREAKAPART EFFECT --- */
.bg-car-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.bg-car-piece {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.bg-car-main {
    clip-path: polygon(35% 35%, 65% 35%, 65% 65%, 35% 65%);
}

.bg-car-left {
    clip-path: polygon(0% 0%, 35% 35%, 35% 65%, 0% 100%);
}

.bg-car-right {
    clip-path: polygon(65% 35%, 100% 0%, 100% 100%, 65% 65%);
}

.bg-car-top {
    clip-path: polygon(0% 0%, 100% 0%, 65% 35%, 35% 35%);
}

.bg-car-bottom {
    clip-path: polygon(35% 65%, 65% 65%, 100% 100%, 0% 100%);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 244, 240, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lines);
    z-index: 1000;
}

.nav-links a {
    margin: 0 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

#cart-count {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: none;
}

.nav-logo svg {
    height: 32px;
    width: auto;
    display: block;
    animation: logoFloat 6s ease-in-out infinite, logoFade 12s ease-in-out infinite;
}

.nav-logo svg rect:first-of-type {
    transform-origin: center;
    animation: strokeGlow 4s ease-in-out infinite;
}

/* --- UI ELEMENTS --- */
.btn {
    display: block;
    padding: 1.2rem 0;
    width: 100%;
    background: var(--text);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    transition: background 0.25s ease, color 0.25s ease, border 0.25s ease, transform 0.2s ease;
}

.btn:hover {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
}

.btn:active {
    transform: translateY(1px);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--lines);
    overflow: hidden;
    background: url('src/hero-photo.webp') center bottom/cover no-repeat;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 244, 240, 0.5) 0%, rgba(244, 244, 240, 0.15) 50%, rgba(244, 244, 240, 0.6) 100%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-line,
.hero-btn-wrap {
    opacity: 1;
    transform: translateY(0);
}

.hero-img-wrap {
    display: none;
}

.hero-img {
    width: 100%;
    transform: rotateX(10deg) rotateY(-10deg) rotateZ(-5deg);
}

/* --- SECTIONS --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.philosophy {
    padding: 8rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid var(--lines);
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

/* --- COLLECTION GRID --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    background: transparent;
    border-top: 1px solid var(--lines);
    border-left: 1px solid var(--lines);
}

/* --- CART DRAWER --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: min(500px, 90vw);
    height: 100vh;
    background: #FAFAFA;
    z-index: 2200;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--lines);
}

.cart-header {
    padding: 2rem;
    background: var(--text);
    color: white;
    display: flex;
    justify-content: space-between;
}

.cart-body {
    flex: 1;
    padding: 2rem;
    overflow-y: scroll;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 1rem;
}

.cart-footer {
    padding: 2rem;
    background: white;
    border-top: 1px solid var(--lines);
}

#cart-count.active {
    box-shadow: 0 0 0 6px rgba(255, 59, 0, 0.12);
    transform: translateY(-1px);
}

.toast {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    padding: 0.85rem 1.2rem;
    background: #050505;
    color: #fff;
    border: 1px solid var(--accent);
    z-index: 3200;
    letter-spacing: -0.04em;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    transform: translateY(50px) scale(0.95);
}

/* --- PRODUCT MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal-container {
    position: relative;
    width: min(1200px, 94vw);
    height: 80vh;
    background: white;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.modal-gallery {
    background: #F0F0F0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-stage {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3rem;
    opacity: 0;
    transform: scale(0.95);
    transition: none;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.gallery-controls {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 30;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gallery-counter {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.gallery-bar {
    width: 100px;
    height: 2px;
    background: #ccc;
    position: relative;
}

.gallery-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s;
}

.click-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 20;
}

.click-left {
    left: 0;
    cursor: w-resize;
}

.click-right {
    right: 0;
    cursor: e-resize;
}

.modal-info {
    padding: 4rem;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--text);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: white;
    padding: 6rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col a {
    display: block;
    margin-bottom: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

/* --- ARCHIVE TABLE --- */
.archive-table {
    border-top: 2px solid var(--text);
}

.archive-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid var(--lines);
    font-size: 0.8rem;
    color: var(--subtext);
}

.archive-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--lines);
    align-items: center;
    transition: background 0.2s;
}

.archive-row:hover {
    background: white;
    padding-left: 1rem;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes logoFade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes strokeGlow {

    0%,
    100% {
        stroke: #111111;
        filter: drop-shadow(0 0 0 rgba(255, 59, 0, 0));
    }

    50% {
        stroke: #FF3B00;
        filter: drop-shadow(0 0 6px rgba(255, 59, 0, 0.35));
    }
}

.btn-text {
    font-family: 'Space Mono';
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    width: fit-content;
}

.btn-text:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- TRACKING INPUT --- */
.tracking-input-wrap {
    position: relative;
    border-bottom: 2px solid var(--text);
}

.tracking-input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    outline: none;
    color: var(--text);
}

.tracking-input::placeholder {
    color: #ccc;
}

.tracking-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

@media (max-width: 640px) {
    .modal-container {
        grid-template-columns: 1fr;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .text-huge {
        font-size: 4rem;
    }

    .hero-img-wrap {
        margin-top: 2rem;
    }

    .gallery-slide {
        padding: 1rem;
    }
}

/* --- CUSTOM CURSOR --- */
body {
    cursor: none;
}

body * {
    cursor: none !important;
}

input,
textarea,
select {
    cursor: text !important;
}

.cursor-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid #111;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-radius 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.hover-active .cursor-follower {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 59, 0, 0.1);
    border-color: var(--accent);
}

body.scan-active .cursor-main {
    background-color: transparent;
}

body.scan-active .cursor-follower {
    width: 80px;
    height: 80px;
    border-radius: 0;
    border: 1px dashed var(--text);
    background-color: transparent;
}

body.scan-active .cursor-follower::after {
    content: 'SCAN';
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 900px) {
    body {
        cursor: auto;
    }

    body * {
        cursor: auto !important;
    }

    .cursor-main,
    .cursor-follower {
        display: none;
    }
}


/* --- TRUST BAR --- */
.trust-bar {
    background: linear-gradient(to bottom, rgba(244, 244, 240, 0.85), rgba(244, 244, 240, 0.9));
    border-bottom: 1px solid var(--lines);
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid var(--lines);
}

.trust-item:last-child {
    border-right: none;
}

.trust-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.7rem;
    color: var(--subtext);
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--panel);
    border: 1px solid var(--lines);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    flex: 1;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--lines);
}

/* --- STAR RATINGS --- */
.star {
    font-size: 1rem;
    color: #D6D6D6;
}

.star.filled {
    color: var(--accent);
}

.product-rating .star {
    font-size: 0.9rem;
}

.testimonial-rating .star {
    font-size: 1.2rem;
}

/* --- NEWSLETTER FORM --- */
.newsletter-form {
    width: 100%;
}

.newsletter-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid var(--text);
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text);
    text-align: center;
}

.newsletter-input::placeholder {
    color: #ccc;
}

.newsletter-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* --- URGENCY BADGES --- */
.urgency-badge {
    animation: badgePop 0.6s ease-out 0.3s both, pulse 2s ease-in-out infinite;
}

.urgency-badge.low-stock {
    animation: badgePop 0.6s ease-out 0.2s both, urgentPulse 1.5s ease-in-out infinite;
}

@keyframes badgePop {
    0% {
        transform: translateY(10px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

@keyframes urgentPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--lines);
        padding: 1rem;
    }

    .trust-item:nth-child(2n) {
        border-right: none;
    }

    .trust-item:last-child,
    .trust-item:nth-last-child(2) {
        border-bottom: none;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESTORED STYLES --- */
.product-card {
    border-right: 1px solid var(--lines);
    border-bottom: 1px solid var(--lines);
    padding: 4rem 2rem;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
    /* filter: grayscale(100%); Removed */
    transition: filter 0.5s;
    transform-origin: center center;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-logo svg {
        height: 28px;
    }

    .nav-links,
    .desktop-only {
        display: none !important;
    }

    .hero {
        min-height: 70vh;
        padding: 3rem 1rem;
    }

    .text-huge {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .text-xl {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .container {
        padding: 0 1rem;
    }

    .philosophy {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 0;
    }

    .trust-bar {
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
    }

    .trust-value {
        font-size: 1.2rem;
    }

    .trust-label {
        font-size: 0.6rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 2rem 1rem;
    }

    .product-card img {
        max-width: 280px;
    }

    .modal-container {
        width: 100%;
        height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 50% 50%;
    }

    .modal-info {
        padding: 2rem 1.5rem;
    }

    .gallery-controls {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .cart-drawer {
        width: 100%;
    }

    .cart-header,
    .cart-body,
    .cart-footer {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 3rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .text-huge {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 60vh;
    }

    .trust-bar {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--lines);
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    .btn {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .modal-container {
        grid-template-rows: 45% 55%;
    }

    .gallery-slide {
        padding: 0.5rem;
    }
}