:root {
    --bg: #ffffff;
    --surface: #f4f4f4;
    --text: #1a1a1a;
    --text-muted: #666666;
    --accent: #ff4d00; /* Signal Orange */
    --border: #e0e0e0;
    --black: #000000;
    --radius: 0px; /* Sharp minimalist look */
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('Images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.minimal-header {
    background-color: var(--bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.minimal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-minimal {
    display: flex;
    gap: 2rem;
}

.nav-minimal a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-minimal a.active {
    color: var(--text);
    border-bottom: 2px solid var(--text);
}

.btn-black {
    background: var(--black);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-black:hover {
    background: var(--accent);
}

/* --- Intro --- */
.intro {
    margin-bottom: 4rem;
}

.intro h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    white-space: nowrap;
}

.intro h1 span {
    color: var(--accent);
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid var(--black);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
}

/* --- Filters --- */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.filter-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none; 
}

.filter-strip::-webkit-scrollbar {
    display: none;
}

/* Show scrollbar when expanded */
.filter-strip.is-expanded {
    scrollbar-width: thin;
    scrollbar-color: var(--black) transparent;
}

.filter-strip.is-expanded::-webkit-scrollbar {
    display: block;
    height: 4px;
}

.filter-strip.is-expanded::-webkit-scrollbar-thumb {
    background: var(--black);
}

.filter-strip.is-expanded::-webkit-scrollbar-track {
    background: var(--surface);
}

.chip {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.chip.active {
    background: var(--black);
    color: white;
    border-color: var(--black);
}

.chip:hover:not(.active) {
    border-color: var(--black);
}

/* --- Grid --- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    border: 1px solid var(--border);
    padding: 1rem;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    background-color: var(--bg);
}

.card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    letter-spacing: 1px;
    z-index: 10;
}

.card:hover {
    border-color: var(--black);
    box-shadow: 10px 10px 0px var(--surface);
}

.card.featured:hover {
    border-color: var(--accent);
    box-shadow: 10px 10px 0px rgba(255, 77, 0, 0.2);
}

.card-img {
    aspect-ratio: 1;
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-scale {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg);
    margin: 2% auto;
    padding: 0; /* Remove padding to let image reach edges if needed */
    width: 90%;
    max-width: 1100px;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 2rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.buy-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--black);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    cursor: pointer;
}

.buy-btn:hover {
    background: var(--accent);
}

/* --- Seller & Profile --- */
.seller-line {
    margin: 0.5rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.seller-line span {
    color: var(--text);
    font-weight: 700;
    text-decoration: underline;
}

.profile-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.profile-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.profile-meta span {
    color: var(--accent);
    font-weight: 700;
}

.reviews-list h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--surface);
    margin-bottom: 1rem;
    border-left: 4px solid var(--border);
}

.review-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-user {
    font-weight: 700;
    font-size: 0.9rem;
}

.review-score {
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    color: white;
}

.score-3 { background: #2a9d8f; } /* Green */
.score-2 { background: #e9c46a; } /* Yellow */
.score-1 { background: #e63946; } /* Red */

.review-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}

/* --- Footer --- */
.minimal-footer {
    margin-top: 5rem;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-section p {
    color: var(--text-muted);
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.credits span {
    color: var(--accent);
    font-weight: 700;
}

/* --- Modal Grid Original --- */
.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 600px;
}

.modal-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    height: 100%;
    width: 100%;
    align-items: center;
}

.carousel-img {
    min-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: var(--black);
    border: none;
    padding: 1.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 5;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.9);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--black);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 6;
    transition: 0.2s;
}

.fullscreen-btn:hover {
    background: var(--accent);
}

/* --- Fullscreen Modal --- */
.fullscreen-modal {
    background-color: rgba(0, 0, 0, 0.95) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.fullscreen-modal .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
}

.fullscreen-modal img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
}

/* --- Forms & Modals --- */
.small-modal {
    max-width: 400px;
    margin: 10% auto;
}

.modal-padding {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: inherit;
    outline: none;
    background: #fdfdfd;
}

.form-group input:focus {
    border-color: var(--black);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    margin: 1.5rem 0;
    line-height: 20px; /* Match checkmark height for perfect baseline */
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--black);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.offer-section input {
    border: 2px solid var(--accent) !important;
    font-weight: 700;
}

.condition-badge {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .minimal-header .container {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    .nav-minimal {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0.5rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .btn-black {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .intro h1 {
        font-size: 8.5vw;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .modal-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .carousel-container {
        height: 45vh;
    }
    .modal-info {
        padding: 2.5rem 1.5rem;
    }
    .carousel-btn {
        opacity: 1;
        background: rgba(255,255,255,0.7);
        color: var(--black);
        padding: 0.8rem 0.4rem;
        font-size: 1.2rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .close {
        top: 1rem;
        right: 1rem;
        background: white;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 2100;
    }
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2100;
    transition: 0.2s;
    line-height: 1;
}

.close:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background-color: #fcfcfc;
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--black);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.socials a {
    margin-left: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
