:root {
    --color-bg: #F9F7F2;
    /* Off-white paper background */
    --color-text: #1a1a1a;
    /* Almost black */
    --color-accent: #E53935;
    /* Hot sauce red */
    --color-border: #1a1a1a;
    /* Thick outlines */
    --color-tape: #F4D03F;
    /* Caution tape yellow */

    --font-heading: 'Bebas Neue', sans-serif;
    --font-serif: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container utility */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

/* Header - Minimal Style */
.site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.warning-tape {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
}

.warning-tape .separator {
    padding: 0 0.8rem;
    opacity: 0.5;
}

/* Main Layout */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}



/* Carousel */
.carousel-section {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Constrain width */
    margin: 0 auto;
    border: 3px solid var(--color-border);
    padding: 1rem;
    background: white;
    /* Sketchy shadow effect */
    box-shadow: 8px 8px 0px var(--color-border);
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Landscape box */
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    list-style: none;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Helps integrate image with bg */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid black;
    width: 40px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: black;
    color: white;
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.carousel-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    padding: 0;
}

.carousel-indicator {
    border: 1px solid black;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: white;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: black;
}

/* Product Details */
.product-details {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
    /* Aligned left as per wireframe */
}

.product-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-attribution {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-accent);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.corebox-seal {
    display: inline-block;
    font-size: 0.75rem;
    color: #444;
    border: 1px solid #aaa;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.75rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
    background-color: transparent;
}

.product-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: #555;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.purchase-action {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: stretch;
}

.price-box {
    border: 2px solid black;
    padding: 1rem 1.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 200px;
    box-shadow: 4px 4px 0px black;
}

.price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.price-shipping {
    font-size: 0.7rem;
    color: #555;
    font-style: italic;
    margin-top: -5px;
    /* Pull it up slightly closer to the price */
}

.subscribe-btn {
    background-color: var(--color-accent);
    /* Red */
    color: white;
    border: 2px solid black;
    font-family: var(--font-heading);
    font-size: 2rem;
    padding: 0 3rem;
    cursor: pointer;
    text-transform: uppercase;
    flex-grow: 1;
    /* Fill remaining space */
    transition: transform 0.1s, box-shadow 0.1s;
    /* Hard shadow */
    box-shadow: 4px 4px 0px black;
}

.subscribe-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px black;
}

.subscribe-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px black;
}

.product-description {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    max-width: 65ch;
    border-top: 1px solid #ccc;
    /* Separator */
    padding-top: 1rem;
}

.product-description p {
    margin-bottom: 1.5rem;
}

.product-description blockquote {
    border-left: 4px solid var(--color-text);
    margin: 1.5rem 0;
    font-style: italic;
    color: inherit;
    background: transparent;
    padding: 0 0 0 1rem;
}

.product-description h3 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

/* FogoBox Contact Section */
.fogobox-contact {
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid #ccc;
    margin-top: var(--spacing-lg);
}

.fogobox-contact p {
    margin: 0;
}

.fogobox-contact a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.fogobox-contact a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Contact Section - End of Main */
.contact-section {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-top: 1px solid #ddd;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.contact-section a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-section a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* Footer - Product Page Style */
.site-footer {
    background-color: var(--color-bg);
    border-top: 3px solid var(--color-border);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.corebox-promo {
    text-align: center;
}

.corebox-promo p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.corebox-promo p:last-of-type {
    margin-bottom: 1.5rem;
}

.corebox-promo strong {
    font-weight: 700;
    color: var(--color-text);
}

.corebox-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.corebox-link:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
    transform: translateX(4px);
}



@media (min-width: 768px) {
    .site-footer {
        padding: var(--spacing-lg) var(--spacing-lg);
    }

    .corebox-promo {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Responsive Tweaks */
@media (max-width: 600px) {
    .product-title {
        font-size: 2.5rem;
    }

    .purchase-action {
        flex-direction: column;
    }

    .carousel-btn {
        width: 30px;
        height: 50px;
    }

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }
}

/* Auth & Modal Styles */
.sign-out-btn {
    background: transparent;
    border: 2px solid #555;
    font-family: var(--font-heading);
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-left: 0.5rem;
    opacity: 0.5;
}

.sign-out-btn:hover {
    background: black;
    color: white;
}

.user-status-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: var(--color-bg);
    border: 3px solid black;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 10px 10px 0 black;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-subtitle {
    font-family: var(--font-body);
    margin-bottom: 2rem;
    color: #555;
    font-size: 0.9rem;
}

.modal-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid black;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
}

.modal-submit-btn {
    width: 100%;
    padding: 1rem;
    background: black;
    color: white;
    font-family: var(--font-heading);
    border: 2px solid black;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.modal-submit-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.auth-message {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

/* @media (max-width: 600px) {
    .sign-out-btn {
        position: static;
        margin-left: 1rem;
    }
} */

.subscription-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
}

.user-info-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 5px;
}

@media (min-width: 1024px) {
    .product-container {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--spacing-lg);
        align-items: stretch;
    }

    .carousel-section {
        margin: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .carousel-track-container {
        flex-grow: 1;
        width: 100%;
        position: relative;
        aspect-ratio: auto;
    }

    .carousel-track {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .product-details {
        margin: 0;
        padding-top: 1rem;
        /* Visual alignment with carousel top */
    }

    .product-description {
        grid-column: 1 / -1;
        max-width: 800px;
        margin: var(--spacing-md) auto 0;
        /* Reduced top margin */
        width: 100%;
    }

    .contact-section {
        grid-column: 1 / -1;
        max-width: 100%;
        width: 100%;
    }

    .purchase-action {
        flex-wrap: nowrap;
        /* Force side-by-side */
    }
}