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

html {
    background-color: #000;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure main content pushes footer down */
header,
.hero,
.products-section,
.product-detail,
.legal-page {
    flex-shrink: 0;
}

footer {
    margin-top: auto;
}

/* ===========================
   Header & Navigation
   =========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #000;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.125rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.7;
}

.cart-icon {
    position: relative;
}

.cart-icon a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.cart-icon a:hover {
    opacity: 0.7;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.brand-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #aaa;
    margin-bottom: 4rem;
}

.scroll-indicator {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s;
    display: inline-block;
}

.scroll-indicator:hover {
    color: #aaa;
}

/* ===========================
   Products Section
   =========================== */
.products-section {
    padding: 40rem 2rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.products-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50rem;
    max-width: 500px;
    margin: 0 auto;
}

.product-card {
    cursor: pointer;
    transition: transform 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-media {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #000;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    text-align: center;
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-price {
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.05em;
}

/* ===========================
   Product Detail Pages
   =========================== */
.product-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.close-btn:hover {
    opacity: 0.7;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.product-image-section {
    position: relative;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 aspect ratio */
}

.product-image,
.product-video-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image {
    background-color: #000;
}

/* New Product Main Image Styling */
.product-image-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 0.5rem;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    left: -110px;
    top: 0;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.product-thumbnail:hover {
    opacity: 1;
    border-color: #444;
}

.product-thumbnail.active {
    opacity: 1;
    border-color: #fff;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.5rem;
}

.price-below-image {
    font-family: Futura, "Trebuchet MS", Arial, sans-serif;
    font-size: 0.875rem;
    color: #fff;
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0rem;
    position: relative;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ccc;
}

.product-features {
    margin-top: 0rem;
}

.features-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #ccc;
    padding-left: 1.25rem;
    position: relative;
}

.features-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #888;
}

/* Size Selector */
.size-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.size-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.size-guide-link {
    font-size: 0.875rem;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.size-guide-link:hover {
    color: #fff;
}

.product-detail-header {
    margin-bottom: 1rem;
}

.product-detail-label {
    font-size: 0.875rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.size-option {
    padding: 0.875rem;
    background-color: transparent;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.size-option:hover {
    border-color: #666;
}

.size-option.selected {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1.125rem;
    background-color: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* ===========================
   Size Guide Modal
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #111;
    padding: 2rem;
    border-radius: 4px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-close {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.size-table th,
.size-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #222;
}

.size-table th {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: #aaa;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #000;
    padding: 8rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links .footer-link:not(:last-child)::after {
    content: "|";
    margin-left: 1rem;
    color: #888;
}

.social-link {
    color: #fff;
    transition: opacity 0.3s;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.social-link:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.copyright:hover {
    color: #fff;
}

.footer-link {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.footer-link:hover {
    color: #fff;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    nav {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 0 1.25rem;
    }

    .products-section {
        padding: 4rem 1.25rem;
    }

    .products-container {
        gap: 6rem;
    }

    .product-detail {
        padding: 6rem 1.25rem 3rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .size-table th,
    .size-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .products-container {
        max-width: 600px;
    }

    .product-grid {
        max-width: 1000px;
    }
}

/* ===========================
   Cart Drawer
   =========================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background-color: #111;
    z-index: 3000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.cart-drawer.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.cart-drawer-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cart-close {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.cart-close:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.empty-cart-message {
    text-align: center;
    color: #666;
    padding: 3rem 0;
    font-size: 0.95rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-item-color {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.cart-item-size {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #444;
    background-color: transparent;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.qty-value {
    font-size: 0.9rem;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-size: 0.95rem;
    color: #fff;
}

.cart-item-remove {
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.5rem;
    display: inline-block;
}

.cart-item-remove:hover {
    color: #fff;
}

.cart-footer {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background-color: #e0e0e0;
}

.continue-shopping-btn {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    color: #fff;
    border: 1px solid #333;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.continue-shopping-btn:hover {
    border-color: #fff;
}

.cart-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
    background-color: #fff;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0 1.25rem;
    }

    .logo {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Products Section */
    .products-section {
        padding: 4rem 1.25rem;
    }

    .products-container {
        gap: 12rem;
    }

    /* Product Detail Page - Mobile Fixes */
    .product-detail {
        padding: 6rem 1.25rem 3rem;
    }

    /* Clean mobile layout - no overlapping */
    body .product-detail .product-grid {
        margin: 0 auto !important;
    }

    /* Price overlaying bottom right corner of product image on mobile */
    body .product-detail .price-below-image {
        margin-top: 0rem !important;
        margin-bottom: 1rem !important;
        text-align: right !important;
        font-size: 1rem !important;
        position: relative !important;
        padding-right: 1rem !important;
    }

    /* Product description positioned below overlaying price */
    body .product-detail .product-info-section {
        margin-top: 0rem !important;
        gap: 1.5rem !important;
    }

    /* Hide product thumbnails on mobile */
    .product-thumbnails {
        display: none;
    }

    /* Product video sizing on mobile */
    .product-video-detail {
        max-width: 100%;
        height: auto;
    }

    /* Size selector - bigger touch targets for mobile */
    .size-selector {
        gap: 0.75rem;
    }

    .size-option {
        min-width: 60px;
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Add to cart button - bigger on mobile */
    .add-to-cart-btn {
        padding: 1.25rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    /* Product description */
    .product-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Size guide link */
    .size-guide-link {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    /* Modal adjustments */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .size-table th,
    .size-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Cart drawer - full width on mobile */
    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .cart-drawer-content {
        padding: 1.5rem;
    }

    .cart-drawer-header h2 {
        font-size: 1.25rem;
    }

    .cart-item {
        padding: 1rem 0;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-color,
    .cart-item-size {
        font-size: 0.8rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    /* Footer - keep horizontal layout with pipes on mobile */
    .footer-link {
        font-size: 0.7rem;
    }

    .copyright {
        font-size: 0.7rem;
    }

    /* Video containers */
    .product-video-container {
        width: 100%;
    }

    /* Ensure proper spacing on mobile */
    .product-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Adjust product info margin for mobile - remove negative margin so text shows fully */
    .product-info {
        margin-top: 0.5rem !important;
    }
}

/* ===========================
   Legal Pages Styling
   =========================== */
.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-page a {
    color: #fff;
    text-decoration: underline;
}

.legal-page a:hover {
    opacity: 0.7;
}

.legal-page strong {
    font-weight: 500;
    color: #fff;
}

.legal-page ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.legal-page li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===========================
   Image Lightbox
   =========================== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    z-index: 10001;
    color: #fff;
    transition: opacity 0.3s;
    padding: 0.5rem;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10001;
    color: #fff;
    transition: opacity 0.3s;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-arrow:hover {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-arrow-left {
    left: 2rem;
}

.lightbox-arrow-right {
    right: 2rem;
}

#lightboxImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: zoom-out;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    #lightboxImage {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .lightbox-arrow {
        padding: 0.75rem;
    }
    
    .lightbox-arrow-left {
        left: 1rem;
    }
    
    .lightbox-arrow-right {
        right: 1rem;
    }
}

