/* =========================
   BASE
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #000;
}

body {
    min-width: 320px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================
   HEADER
========================= */

.site-header {
    width: 100%;

    border-bottom: 1px solid #222;
}

.brand {
    padding: 16px;
    text-align: center;
}

.site-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.site-logo-666 {
    display: block;
    width: 30%;
    max-width: 78px;
    height: auto;
    margin: 8px auto 0;
    object-fit: contain;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    padding: 10px 16px calc(14px + env(safe-area-inset-bottom));

    background: #000;
    border-top: 1px solid #222;

    z-index:1000;
}

.nav-button {
    width: 100%;

    border: 1px solid #2a2a2a;
    background: #111;
    color: #fff;

    padding: 12px 8px;

    font-size: 0.85rem;
    cursor: pointer;
}

.nav-button.active {
    border-color: #8b5cf6;
   color: #c4b5fd;
}
/* =========================
   PRODUCTS
========================= */

.products {
    padding: 16px;
}

.products-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.products-closed {
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    min-width: 0;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    background: #111;
}

.product-name {
    margin: 10px 0 4px;
    font-size: 0.9rem;
}

.product-price {
    margin: 0;
    font-size: 0.85rem;
    color: #bdbdbd;
}

.product-card__preorder,
.product-detail__preorder,
.cart-preorder {
    color: #c4b5fd;
    font-weight: 700;
}

.product-card__preorder,
.product-card__status {
    margin: 6px 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.product-detail__estimate,
.cart-preorder {
    line-height: 1.5;
}

.cart-preorder-closed {
    color: #fff;
    font-weight: 700;
}


/* =========================
   PRODUCT DETAIL
========================= */

.product-detail {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.product-detail__back {
    margin-bottom: 16px;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: #c4b5fd;
    cursor: pointer;
}

/* Main image */

.product-detail__gallery {
    width: 100%;
    min-width: 0;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #111;
}

/* Image thumbnails */

.product-detail__thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 8px;
    overflow-x: auto;
}

.product-detail__thumbnail {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid #333;
    background: #111;
    cursor: pointer;
}

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

.product-detail__thumbnail[aria-pressed="true"] {
    border-color: #7b2cff;
}

.product-detail__thumbnail:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

/* Product information */

.product-detail h1 {
    margin: 24px 0 8px;
    font-size: 1.5rem;
}

.product-detail__price {
    margin: 0 0 24px;
    color: #bdbdbd;
    font-size: 1.1rem;
}

/* Size selection */

.product-detail__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.product-detail__sizes button {
    min-width: 48px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.product-detail__sizes button.selected {
    background: #7b2cff;
    color: #fff;
    border-color: #7b2cff;
}

.product-detail__sizes button:disabled,
.product-detail__add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-detail__stock-message {
    margin: -12px 0 20px;
    color: #ddd;
}

/* Add to cart */

.product-detail__add {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid #7b2cff;
    background: #7b2cff;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* Keyboard accessibility */

.product-detail__back:focus-visible,
.product-detail__sizes button:focus-visible,
.product-detail__add:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

/* Tablet and desktop */

@media (min-width: 768px) {
    .product-detail {
        padding: 32px;
    }

    .product-detail__thumbnail {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
    }
}



/* =========================
   CART
========================= */

.cart {
    padding: 16px;
}

.cart-title {
    margin: 0 0 24px;
    font-size: 1.3rem;
}

.cart-empty {
    color: #bdbdbd;
    font-size: 0.9rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 16px;
    background: #111;
    border: 1px solid #2a2a2a;
}

.cart-item__image {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #000;
}

.cart-item__name {
    margin: 0;
    font-size: 1rem;
}

.cart-item__size {
    margin: 0;
    color: #bdbdbd;
    font-size: 0.85rem;
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item__quantity button {
    width: 44px;
    height: 44px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
}

.cart-item__quantity span {
    font-size: 0.9rem;
}

.cart-item__subtotal {
    margin: 0;
    font-size: 0.9rem;
}

.cart-item__remove {
    align-self: flex-start;
    padding: 10px 16px;
    border: 1px solid #7b2cff;
    background: transparent;
    color: #c4b5fd;
    cursor: pointer;
}

.cart-total {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid #444;
    font-size: 1.2rem;
    font-weight: bold;
}


/* Cart totals */

.cart-total__amount {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-total__shipping {
    margin: 0 0 20px;
    color: #bdbdbd;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Checkout */

.cart-checkout {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;

    border: 1px solid #7b2cff;
    background: #7b2cff;
    color: #fff;

    font-weight: 700;
    cursor: pointer;
}

.cart-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-checkout:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

/* Checkout feedback */

.cart-checkout__message,
.cart-checkout-return {
    color: #bdbdbd;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
}

.cart-checkout__message:empty {
    display: none;
}

.cart-checkout-return {
    margin: 0 0 20px;
}


/* =========================
   CONTACT
========================= */

.contact {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

/* Brand identity */

.contact-title {
    margin: 0;
    padding-bottom: 20px;

    font-size: clamp(2.8rem, 12vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    overflow-wrap: anywhere;

    color: #fff;
}

.contact-statement {
    margin: 0 0 48px;
    padding: 20px 0;

    border-top: 2px solid #7b2cff;
    border-bottom: 1px solid #333;

    color: #c4b5fd;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* Contact sections */

.contact-section {
    margin-bottom: 40px;
}

.contact-section h3 {
    margin: 0 0 16px;

    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Email and social links */

.contact-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    min-width: 0;
    padding: 16px;

    border: 1px solid #333;
    background: #111;

    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: border-color 0.2s, background-color 0.2s;
}

.contact-link:hover {
    border-color: #7b2cff;
    background: #1a1028;
}

.contact-link:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

.contact-socials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Larger screens */

@media (min-width: 768px) {
    .contact {
        padding: 64px 32px 80px;
    }

    .contact-statement {
        font-size: 1.15rem;
    }

    .contact-socials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-link {
        transition: none;
    }
}
