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

:root {
    --primary-bg: #FFFFFF;
    --text-main: #1A1A1A;
    --cta-red: #E63946;
    --accent-red: #DC2626;
    --accent-green: #16A34A;
    --accent-orange: #F97316;
    --accent-yellow: #FCD34D;
    --bg-light: #F5F5F5;
    --bg-dark: #000000;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Marquee Banner */
.top-banner {
    background: var(--bg-dark);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Header */
header {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: white;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--cta-red);
}

/* Header-icons are now closer to logo if nav is gone */
.header-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 5%;
    font-size: 13px;
    color: #666;
}

.breadcrumbs span {
    color: var(--cta-red);
    font-weight: 700;
}

/* Social Proof Banners */
.social-proof-wrap {
    padding: 0 5%;
    margin-bottom: 20px;
}

.proof-banner {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Section Layout */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 5% 50px;
}

/* Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-img-wrap {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.main-img-wrap img {
    width: 100%;
    display: block;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumb {
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.thumb.active {
    border-color: var(--cta-red);
    outline: 2px solid var(--cta-red);
}

.thumb img {
    width: 100%;
    display: block;
}

/* Product Info */
.product-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.promo-end {
    display: none;
}

/* Price */
.price-row {
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    color: var(--text-main); /* Standard color now */
    font-weight: 900;
}

/* Checkmarks */
.checkmarks {
    list-style: none;
    margin-bottom: 20px;
}

.checkmarks li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.checkmarks svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

/* Selectors */
.selector-group {
    margin-bottom: 20px;
}

.selector-label {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

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

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
    background-size: cover;
}

.color-circle.active {
    border-color: var(--cta-red);
}

.size-btn, .side-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    background: white;
}

.size-btn.active, .side-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.size-chart-link {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

/* Quantity */
.quantity-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 20px;
    cursor: pointer;
}

/* FOMO Stock */
.stock-fomo {
    color: var(--cta-red);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Add to Cart */
.add-to-cart-btn {
    width: 100%;
    background: var(--cta-red);
    color: white;
    border: none;
    padding: 20px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-bottom: 20px;
}

.add-to-cart-btn:hover {
    background: #c52d38;
    transform: scale(1.02);
}

/* Gift Section */
.gift-section {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--cta-red);
    margin-bottom: 20px;
}

.gift-img {
    width: 100%;
    margin-top: 10px;
}

/* Info Sections */
section {
    padding: 50px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.accent-title {
    color: var(--accent-red);
    margin-bottom: 15px;
    font-size: 20px;
}

.img-full {
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.stars {
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.review-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.review-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* FAQ */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-q {
    padding: 20px 0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-a {
    padding-bottom: 20px;
    display: none;
    color: #555;
}

/* Checkout Form */
.checkout-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.cod-badge {
    background: #000;
    color: #fff;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.form-section-title {
    background: #eee;
    padding: 10px;
    margin: 20px 0 15px;
    font-weight: 700;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-total {
    font-size: 24px;
    font-weight: 900;
    border-bottom: none;
}

.confirm-btn {
    width: 100%;
    background: var(--cta-red);
    color: white;
    padding: 20px;
    border: none;
    font-size: 18px;
    font-weight: 900;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.size-table th {
    background: var(--bg-light);
    font-weight: 700;
}

.size-table tr:hover {
    background: #fdf2f2;
}

.tech-grid {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 50px 5% 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.legal-info {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-size: 11px;
    color: #777;
    text-align: center;
}

/* Mobile Sticky Bar */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
}

.sticky-price {
    font-weight: 900;
    color: var(--cta-red);
}

.sticky-btn {
    background: var(--cta-red);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 14px;
}

@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .sticky-mobile-cta {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}

/* Thank You Modal Aesthetics */
.thank-you-content {
    text-align: center;
    padding: 40px !important;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

.thank-you-content h2 {
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.order-details-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    font-size: 14px;
}

.order-details-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.order-details-box li {
    margin-bottom: 8px;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Validation Styles */
input:invalid:not(:placeholder-shown) {
    border-color: var(--cta-red);
}

.input-error {
    color: var(--cta-red);
    font-size: 11px;
    margin-top: 4px;
    display: none;
}

.form-group.error input {
    border-color: var(--cta-red);
}

.form-group.error .input-error {
    display: block;
}
