@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;900&family=Orbitron:wght@700;900&display=swap');

:root {
    --bg-deep: #080b0f;
    --bg-mid: #111823;
    --neon: #8dff2f;
    --ice: #d7f7ff;
    --text: #f4f8ff;
    --muted: #9eb0c5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Barlow Condensed', 'Franklin Gothic Medium', sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #58e1e1 0%, #0dbcff 50%, #00182e 100%);
}

main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(9px);
    background: linear-gradient(135deg, #58e1e1 0%, #0dbcff 50%, #00182e 100%);
}

.header-inner {
    width: min(1120px, 92vw);
    margin: 0 auto;
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.2rem;
}

.brand {
    justify-self: start;
    color: var(--text);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.15rem, 1.85vw, 1.65rem);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 2.2vw, 1.7rem);
}

.main-nav a {
    color: var(--ice);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--neon);
}

.hero {
    width: min(1120px, 92vw);
    margin: 2.5rem auto 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 2rem;
    align-items: center;
}

.hero-copy h2 {
    margin: 0.6rem 0 0;
    color: var(--ice);
    font-size: clamp(1.2rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-image-card {
    margin: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(0, 110, 255, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
}

.kicker {
    margin: 0;
    color: var(--neon);
    letter-spacing: 0.25em;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0.6rem 0 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero p {
    max-width: 62ch;
    margin-top: 1rem;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.contact-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 76px - 2.5rem);
}

.contact-copy {
    max-width: 62ch;
}

.site-footer {
    margin-top: 3rem;
    background: #041f38;
}

.footer-inner {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 2rem 0 2.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-column {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.footer-column a,
.footer-copy {
    color: rgba(244, 248, 255, 0.95);
    text-decoration: none;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.35;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: var(--neon);
}

a:has(> .logo-btn) {
    text-decoration: none;
}

.footer-copy {
    margin: 0;
    color: rgba(244, 248, 255, 0.62);
    white-space: nowrap;
}

@media (max-width: 740px) {
    .header-inner {
        display: flex;
        min-height: 64px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.8rem 0;
    }

    .brand {
        width: 100%;
        text-align: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .contact-page {
        min-height: calc(100vh - 64px - 2.5rem);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }

    .footer-copy {
        white-space: normal;
    }

}

.shop-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
    align-items: start;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-card,
.cart-panel {
    background: rgba(12, 12, 28, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 1rem;
}

.product-card h2,
.cart-panel h2 {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.product-card p {
    margin: 0.7rem 0;
}

.price {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.add-to-cart,
.clear-cart,
.checkout-button,
.cart-adjust,
.cart-remove {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.add-to-cart {
    background: var(--neon);
    color: #131313;
}

.clear-cart {
    width: 100%;
    margin-top: 1rem;
    background: #201838;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.checkout-button {
    width: 100%;
    margin-top: 0.9rem;
    background: var(--neon);
    color: #131313;
}

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

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

.cart-items {
    list-style: none;
    margin: 0.8rem 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.cart-item-name,
.cart-item-meta {
    margin: 0;
}

.cart-item-meta {
    color: var(--ice);
    font-size: 0.92rem;
}

.cart-remove {
    background: #40245f;
    color: #fff;
}

.cart-adjust {
    min-width: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-empty {
    color: var(--ice);
}

.checkout-label {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.checkout-input {
    width: 100%;
    margin-top: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.checkout-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.checkout-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.checkout-select option {
    background: #1a2a3a;
    color: #ffffff;
}

.checkout-address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.6rem;
}

.square-payment-panel {
    margin-top: 0.9rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.square-payment-copy {
    margin: 0 0 0.75rem;
    color: var(--ice);
}

.square-card-container {
    min-height: 70px;
}

.checkout-status {
    min-height: 1.3rem;
    margin: 0.8rem 0 0;
    color: #d3ffd7;
}

.checkout-status[data-error='true'] {
    color: #ffe6f0;
}

.shop-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}

.cart-link {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    border-radius: 999px;
    background: var(--neon);
    color: #131313;
    padding: 0.6rem 1rem;
}

.checkout-link {
    margin-top: 1rem;
}

.cart-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cart-page-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.card-form {
    margin-top: 0.5rem;
}

.card-field-group {
    margin-top: 0.6rem;
}

.card-field {
    margin-top: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    min-height: 40px;
}

.card-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.paypal-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.2rem 0;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}

.paypal-divider::before,
.paypal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* ── Order confirmation ───────────────────────────────────────── */

.order-confirmation {
    text-align: center;
    padding: 2rem 1rem;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(141, 255, 47, 0.18);
    color: var(--neon);
    font-size: 2rem;
    line-height: 60px;
    font-weight: bold;
}

.order-confirmation h2 {
    font-family: 'Orbitron', monospace;
    color: var(--neon);
    margin: 0 0 0.5rem;
}

.order-confirmation p {
    color: var(--ice);
    margin: 0.25rem 0;
}

.confirmation-details {
    margin: 1.2rem 0;
    text-align: left;
}

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

.confirmation-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
}

.confirmation-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.confirmation-table tr.confirmation-subtotal td {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.7rem;
}

.confirmation-table tr.confirmation-total td {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--neon);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.7rem;
}

.confirmation-receipt {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.checkout-input:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 2px rgba(141, 255, 47, 0.15);
}

.confirmation-shipping {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-shipping h3 {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.confirmation-shipping p {
    margin: 0.15rem 0;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .shop-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-address-row {
        grid-template-columns: 1fr;
    }
}
