/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

:root {
    --primary-black: #1a1a1a;
    --secondary-grey: #6b7280;
    --light-grey: #f3f4f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-green: #10b981;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-black);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.cart-button {
    position: relative;
    background: none;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.cart-button:hover {
    background-color: var(--light-grey);
    transform: translateY(-1px);
}

.cart-count {
    background-color: var(--primary-black);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Pre-Order Banner */
.preorder-banner {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-grey) 100%);
    color: var(--white);
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Product Image Section */
.product-image-section {
    position: relative;
    position: sticky;
    top: 120px;
    max-width: 500px;
    margin: 0 auto;
}

.preorder-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-black);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-image-container {
    background-color: var(--light-grey);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 20px;
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.product-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--primary-black);
}

.product-subtitle {
    font-size: 18px;
    color: var(--secondary-grey);
    margin-top: -12px;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-black);
}

.shipping-note {
    font-size: 14px;
    color: var(--secondary-grey);
}

.preorder-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background-color: var(--light-grey);
    border-radius: 12px;
    font-size: 14px;
    color: var(--secondary-grey);
}

.preorder-info svg {
    flex-shrink: 0;
}

.product-description p {
    font-size: 16px;
    color: var(--secondary-grey);
    line-height: 1.8;
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.features-list li {
    font-size: 14px;
    color: var(--secondary-grey);
    padding-left: 24px;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-black);
    font-weight: 600;
}

/* Color Selection */
.selection-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    border-color: var(--secondary-grey);
    transform: translateY(-2px);
}

.color-option.active {
    border-color: var(--primary-black);
    background-color: var(--light-grey);
}

.color-option.disabled,
.color-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.color-option.disabled:hover,
.color-option:disabled:hover {
    border-color: var(--border-color);
    transform: none;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.color-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-black);
}

/* Quantity Selection */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--light-grey);
    padding: 8px;
    border-radius: 12px;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--white);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.quantity-btn:hover {
    background-color: var(--primary-black);
    color: var(--white);
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

#quantity {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
}

/* Pre-Order Button */
.preorder-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    background-color: var(--primary-black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.preorder-button:hover {
    background-color: var(--secondary-grey);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.preorder-button:active {
    transform: translateY(0);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--secondary-grey);
}

.trust-item svg {
    flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

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

.faq-item {
    background-color: var(--white);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-black);
}

.faq-item p {
    font-size: 15px;
    color: var(--secondary-grey);
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--primary-black);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 15px;
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: var(--white);
}

.newsletter-form button {
    padding: 16px 32px;
    background-color: var(--white);
    color: var(--primary-black);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background-color: var(--light-grey);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    color: var(--secondary-grey);
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links a {
    font-size: 14px;
    color: var(--secondary-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--secondary-grey);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

.cart-modal.active {
    display: block;
}

.cart-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--light-grey);
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--white);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
}

.cart-item-color {
    font-size: 14px;
    color: var(--secondary-grey);
    text-transform: capitalize;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-item-quantity {
    font-size: 14px;
    color: var(--secondary-grey);
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
}

.remove-item {
    background: none;
    border: none;
    color: var(--secondary-grey);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: #ef4444;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--secondary-grey);
}

.cart-empty svg {
    opacity: 0.3;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.total-price {
    font-size: 28px;
    color: var(--primary-black);
}

.checkout-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    background-color: var(--primary-black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    background-color: var(--secondary-grey);
    transform: translateY(-2px);
}

.checkout-note {
    text-align: center;
    font-size: 13px;
    color: var(--secondary-grey);
    margin-top: 12px;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-modal.active {
    display: flex;
}

.success-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.success-content {
    position: relative;
    background-color: var(--white);
    padding: 48px;
    border-radius: 24px;
    max-width: 480px;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.success-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-black);
}

.success-content p {
    font-size: 16px;
    color: var(--secondary-grey);
    line-height: 1.7;
    margin-bottom: 32px;
}

.success-close {
    padding: 16px 32px;
    background-color: var(--primary-black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-close:hover {
    background-color: var(--secondary-grey);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-image-section {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 32px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .hero-content {
        gap: 32px;
        width: 100%;
    }

    .product-details {
        gap: 20px;
        width: 100%;
    }

    .product-title {
        font-size: 28px;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .product-subtitle {
        font-size: 16px;
    }

    .price {
        font-size: 28px;
    }

    .product-image-section {
        max-width: 100%;
        position: relative;
        top: auto;
    }

    .product-image-container {
        width: 100%;
        margin: 0;
    }

    .product-image {
        padding: 10px;
        width: 100%;
        height: auto;
    }

    .product-description p {
        font-size: 15px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .features-list li {
        font-size: 13px;
    }

    .color-options {
        flex-direction: column;
    }

    .color-option {
        padding: 12px;
    }

    .selection-label {
        font-size: 13px;
    }

    .preorder-button {
        padding: 18px 24px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .quantity-controls {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .price-section,
    .preorder-info,
    .product-description {
        width: 100%;
        box-sizing: border-box;
    }

    .cart-content {
        max-width: 100%;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }

    .trust-item {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .faq-item {
        padding: 24px;
    }

    .faq-item h3 {
        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .preorder-banner {
        font-size: 13px;
        padding: 10px 0;
    }

    .header {
        padding: 16px 0;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo-img {
        height: 28px;
    }

    .footer-logo-img {
        height: 32px;
    }

    .preorder-info {
        font-size: 13px;
        padding: 12px;
    }

    .shipping-note {
        font-size: 13px;
    }
}
