
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --black: #111111;
    --white: #ffffff;
    --gray: #777777;
    --accent: #e53935;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background: var(--white);
}

/* NAVIGATION */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 6%;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--black);
}

.navbar {
    display: flex;
    gap: 35px;
}

.navbar a {
    color: var(--black);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
}

/* HERO */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background: #f5f5f5;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(70px, 12vw, 160px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -7px;
}

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

.hero-description {
    margin: 35px 0;
    font-size: 16px;
    color: var(--gray);
}

.btn-primary {
    display: inline-block;
    padding: 18px 30px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* COLLECTION */

.collection {
    padding: 110px 10%;
    text-align: center;
}

.collection h2,
.collection h1 {
    font-size: clamp(32px, 5vw, 60px);
    margin-bottom: 25px;
    font-weight: 900;
}

.collection p {
    color: var(--gray);
}

.collection .eyebrow {
    color: var(--black);
}

/* FOOTER */

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 35px 6%;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 1px;
}

/* MOBILE */

@media (max-width: 768px) {

    .site-header {
        padding: 24px 5%;
    }

    .logo {
        font-size: 16px;
    }

    .navbar {
        gap: 15px;
    }

    .hero {
        padding: 60px 6%;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .site-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* SHOP */

.shop-page {
    padding: 70px 6%;
}

.shop-heading {
    text-align: center;
    margin-bottom: 55px;
}

.shop-heading h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
}

.shop-heading p:last-child {
    color: #777;
    margin-top: 14px;
}

.shop-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.shop-filters a {
    text-decoration: none;
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

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

.product-card {
    color: inherit;
    text-decoration: none;
}

.product-card img,
.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #f4f4f4;
}

.image-placeholder {
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #777;
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.02);
}

.product-info {
    padding-top: 15px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: #777;
}

/* PRODUCT DETAIL */

.product-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 65px;
    padding: 60px 6%;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.gallery-item img {
    width: 100%;
    display: block;
    background: #f4f4f4;
}

.gallery-item[hidden],
.variant-chip[hidden] {
    display: none;
}

.product-details {
    padding-top: 25px;
}

.product-details h1 {
    font-size: clamp(28px, 4vw, 52px);
    margin-bottom: 20px;
}

.product-price {
    font-size: 22px;
    margin-bottom: 30px;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

.product-options h3 {
    font-size: 12px;
    letter-spacing: 1px;
    margin: 25px 0 15px;
}

.color-options,
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-button,
.variant-chip {
    border: 1px solid #ddd;
    padding: 12px 18px;
    background: white;
    color: #111;
    font-size: 12px;
}

.color-button {
    cursor: pointer;
}

.color-button.active {
    border-color: #111;
    background: #111;
    color: white;
}

.product-note {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 12px;
    }
}

/* PRODUCT FORM */

.product-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-form label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-form select,
.product-form input {
    padding: 14px;
    border: 1px solid #ddd;
    background: white;
    font: inherit;
}

.add-to-cart-btn,
.checkout-btn {
    background: #111;
    color: white;
    border: none;
    padding: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.add-to-cart-btn:disabled,
.checkout-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* SHOPPING CART */

.cart-page {
    padding: 70px 6%;
    min-height: 70vh;
}

.cart-page h1 {
    margin-bottom: 45px;
    font-size: clamp(36px, 5vw, 60px);
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.cart-image {
    width: 130px;
    height: 160px;
    object-fit: cover;
    background: #f4f4f4;
    flex-shrink: 0;
}

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

.cart-item-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.cart-item-info p {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.quantity-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.quantity-form input {
    width: 65px;
    padding: 8px;
}

.quantity-form button {
    padding: 10px;
    border: 1px solid #111;
    background: white;
    cursor: pointer;
}

.remove-btn {
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 20px;
    font-size: 12px;
}

.cart-summary {
    padding: 30px;
    background: #f5f5f5;
    align-self: start;
}

.cart-summary h2 {
    margin-bottom: 30px;
    font-size: 22px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 14px;
}

.shipping-note {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    margin: 30px 0;
}

.checkout-btn {
    width: 100%;
}

.continue-link {
    display: block;
    margin-top: 25px;
    text-align: center;
    color: #111;
    font-size: 12px;
}

.empty-cart {
    text-align: center;
    padding: 80px 0;
}

.empty-cart h2 {
    margin-bottom: 30px;
}

.site-messages {
    padding: 12px 6%;
    background: #f5f5f5;
}

.site-messages .error {
    color: #ad2020;
}

.site-messages .success {
    color: #236637;
}

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

    .cart-item {
        gap: 12px;
    }

    .cart-image {
        width: 95px;
        height: 125px;
    }
}

a.checkout-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}


/* CHECKOUT */

.checkout-page {
    padding: 70px 6%;
    min-height: 75vh;
}

.checkout-heading {
    margin-bottom: 50px;
}

.checkout-heading h1 {
    font-size: clamp(36px, 6vw, 70px);
    font-weight: 900;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
}

.checkout-form-section h2,
.checkout-summary h2 {
    font-size: 20px;
    margin-bottom: 25px;
}

.checkout-note {
    color: #777;
    font-size: 13px;
    margin-bottom: 25px;
}

.checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font: inherit;
}

.form-group input:focus {
    outline: 1px solid #111;
}

.form-error {
    color: #b42318;
    font-size: 12px;
}

.place-order-btn {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding: 20px;
    background: #111;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
}

.checkout-summary {
    background: #f5f5f5;
    padding: 30px;
    align-self: start;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.checkout-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
}

.checkout-item div {
    flex: 1;
}

.checkout-item h3 {
    font-size: 13px;
    margin-bottom: 8px;
}

.checkout-item p {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.checkout-item strong {
    font-size: 13px;
}

/* ORDER SUCCESS */

.order-success {
    min-height: 70vh;
    text-align: center;
    padding: 100px 20px;
}

.success-symbol {
    font-size: 45px;
    margin-bottom: 25px;
}

.order-success h1 {
    font-size: clamp(36px, 5vw, 65px);
    margin-bottom: 25px;
}

.success-description {
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
    color: #777;
}

.order-reference {
    padding: 25px;
    background: #f5f5f5;
    max-width: 550px;
    margin: 30px auto;
    overflow-wrap: anywhere;
}

.order-reference p {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.order-status {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

/* STRIPE CHECKOUT BUTTON */

.stripe-pay-btn {
    display: inline-block;
    background-color: #111;
    color: #fff;
    padding: 20px 45px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 20px 0;
}

.stripe-pay-btn:hover {
    background-color: #333;
}

.payment-note {
    color: #777;
    font-size: 12px;
    margin-bottom: 30px;
}
