:root {
    --bg: #000000;
    --fg: #ffffff;
    --grey-light: #111111;
    --grey: #8c8c8c;
    --grey-dark: #e5e5e5;
    --border: #333333;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    /* Sharp streetwear look */
}

body {
    font-family: 'Inter', Helvetica, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--fg);
    color: var(--bg);
    text-align: center;
    padding: 0.6rem;
    font-size: 0.75rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav {
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
    transition: var(--transition);
}

.menu-btn:hover {
    color: var(--grey);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    text-decoration: none;
}

.logo-video {
    height: 80px;
    width: auto;
    object-fit: contain;
    /* Scale the video up significantly to reduce the padding in the raw file */
    transform: scale(1.7);
    transform-origin: center;
    mix-blend-mode: screen;
    /* Hides the black background of the video, making only the text visible */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--fg);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--grey);
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    align-items: center;
}

.nav-actions button {
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.nav-actions button:hover {
    color: var(--grey);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--fg);
    color: var(--bg);
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50% !important;
    font-weight: bold;
}

/* Page Content & Collection */
.page-content {
    padding: 2rem 0 6rem;
}

.collection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.collection-title {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-align: left;
}

.collection-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.product-count {
    font-size: 0.9rem;
    color: var(--fg);
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
}

.sort-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
    text-transform: uppercase;
    color: var(--fg);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem 1rem;
}

/* Shopify-Style Product Grid Elements */
.product-grid-container {
    width: 100%;
}

.product-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 20px;
}

@media screen and (min-width: 750px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 12px;
        row-gap: 40px;
    }
}

.grid__item {
    position: relative;
    max-width: 100%;
    width: 100%;
}

/* Card Wrapper & Inner */
.card-wrapper {
    color: inherit;
    height: 100%;
    position: relative;
    text-decoration: none;
    display: block;
}

.card {
    text-align: left;
    text-decoration: none;
    position: relative;
}

.card__inner {
    position: relative;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1/1;
    /* Square ratio perfectly captures the tracksuit PNGs */
}

/* Media/Image Handling */
.card__media {
    bottom: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

.media {
    display: block;
    background-color: rgba(var(--color-foreground), 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.media img {
    object-position: center center;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease;
}

/* Hover Effect */
.card-wrapper:hover .media img {
    transform: scale(1.03);
}

/* Information & Typography */
.card__content {
    display: grid;
    grid-template-rows: minmax(0, 1fr) max-content minmax(0, 1fr);
    width: 100%;
    position: relative;
}

/* Hide the duplicate content block inside inner, use the one outside */
.card__inner .card__content {
    display: none;
}

.card__information {
    padding-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.card__heading {
    font-size: 1rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.card__heading a {
    color: var(--fg);
    text-decoration: none;
}

.card__heading a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

/* Price */
.price {
    font-size: 1rem;
    font-weight: 900;
    font-style: italic;
    color: var(--grey-dark);
}

.price__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Sold Out Badge */
.badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    border: 2px solid var(--fg);
    background: var(--bg);
    color: var(--fg);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    z-index: 5;
}

/* Quick Add Button logic */
.quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.card__inner:hover .quick-add,
.card-wrapper:hover .quick-add {
    transform: translateY(0);
}

.quick-add:hover {
    background: var(--fg);
}

/* Footer */
.footer {
    background: var(--grey-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-block h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.newsletter {
    display: flex;
    border-bottom: 2px solid var(--fg);
    max-width: 400px;
}

.newsletter input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 0;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter input:focus {
    outline: none;
}

.newsletter button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.country-select {
    padding: 0.8rem;
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--border);
    font-family: inherit;
    background: var(--bg);
}

.footer-bottom {
    text-align: left;
    font-size: 0.8rem;
    color: var(--grey);
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--grey);
    font-size: 1.2rem;
}

.manual-play-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    background: var(--fg);
    color: var(--bg);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease-out;
    transition: var(--transition);
    font-family: inherit;
}

.manual-play-btn:hover {
    transform: translateY(-5px);
    background: var(--grey-dark);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
    z-index: 10;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--grey-light);
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--grey);
    margin-bottom: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section label {
    display: block;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.size-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 0.8rem 1.5rem;
    font-family: inherit;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.selected {
    background: var(--fg);
    color: var(--bg);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    width: max-content;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--fg);
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    cursor: pointer;
}

#modal-qty {
    background: transparent;
    border: none;
    color: var(--fg);
    width: 50px;
    text-align: center;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.1rem;
}

.modal-action-btn {
    background: var(--border);
    color: var(--grey);
    border: none;
    padding: 1.2rem;
    width: 100%;
    font-family: inherit;
    font-weight: 900;
    font-style: italic;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: not-allowed;
    margin-top: auto;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
}