:root {
    --primary: #2C3E50;
    --secondary: #E67E22;
    --dark: #1A1A1D;
    --light: #F4F6F7;
    --white: #FFFFFF;
    --gray: #BDC3C7;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border: #ECF0F1;
    --red: #C0392B;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --font: 'Outfit', sans-serif;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    color: #4b5563;
}

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

.text-red {
    color: var(--red);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background-color: #1a252f;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 24px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 24px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(230, 126, 34, 0.1);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-title {
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.hero-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 20;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.shipping {
    color: #10b981;
    font-weight: 600;
    background: #d1fae5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Cards Carousel */
.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1200px;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 460px;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    width: 320px;
    height: 460px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    left: 50%;
    margin-left: -160px;
    top: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateX(100px);
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 10;
    pointer-events: auto;
}

.card.prev {
    opacity: 0.4;
    transform: scale(0.8) translateX(-180px);
    z-index: 5;
}

.card.next {
    opacity: 0.4;
    transform: scale(0.8) translateX(180px);
    z-index: 5;
}

/* Removed fanning and mockup styles */

/* Mobile and Tablet: Hide hero-pricing */
@media (max-width: 992px) {
    .hero-pricing {
        display: none !important;
    }
}

/* Details Section */
.section-dark {
    background: var(--primary);
    color: var(--white);
    padding: 6rem 0;
}

.section-dark h2 {
    color: var(--white);
}

.section-dark p {
    color: #cbd5e1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.info-block.glass {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Purpose Section */
.purpose-section {
    padding: 5rem 24px;
}

.disclaimer-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Checkout Section */
.checkout-section {
    padding: 5rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.order-summary {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--radius);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
}

.summary-item.total {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1.5rem;
}

/* Editable Order Summary Items */
.summary-item--editable {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.summary-item__info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.summary-item__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.summary-item__variant {
    font-size: 0.8rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.summary-item__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.summary-qty__btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.summary-qty__btn:hover {
    background: var(--primary);
    color: #fff;
}

.summary-qty__val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    user-select: none;
}

.summary-item__price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    margin-left: auto;
}

.summary-item__remove {
    border: none;
    background: none;
    color: #cbd5e1;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.summary-item__remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.secure-checkout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.payment-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    text-align: center;
}

.payment-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.payment-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* E-commerce Components */
.product-options {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #475569;
}

.variant-chips {
    display: flex;
    gap: 12px;
}

.chip {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    width: fit-content;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.qty-btn {
    padding: 12px 18px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Cart Drawer UI */
.cart-drawer {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(-450px);
}

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

.cart-header h3 {
    margin: 0;
}

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

.cart-footer {
    padding: 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* User Account & Cart Trigger */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    color: var(--dark);
}

.cart-trigger:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Cart Overlay Styling */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        padding: 4rem 24px;
        gap: 2rem;
    }

    .cta-actions {
        justify-content: center;
    }

    .product-options {
        align-items: center;
    }

    .option-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .variant-chips {
        justify-content: center;
    }

    .qty-selector {
        margin: 0 auto;
    }

    .stock-info {
        text-align: center;
    }

    .hero-visual {
        height: 500px;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }

    .card {
        right: auto;
        left: 50%;
        margin-left: -160px;
        /* Centered correctly for 320px width card */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .navbar {
        padding: 16px 0;
    }

    .grid-2,
    .grid-3,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .checkout-grid {
        gap: 2rem;
        padding: 1.5rem;
    }

    .info-block.glass {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-visual {
        height: 340px;
    }

    .card-stack {
        height: 280px;
    }

    .card {
        width: 190px;
        height: 270px;
        margin-left: -95px;
        /* Correctly centered for 190px width card */
        border-radius: 8px;
    }

    .card.prev {
        transform: scale(0.85) translateX(-95px);
    }

    .card.next {
        transform: scale(0.85) translateX(95px);
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 38px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .info-block.glass,
    .disclaimer-box {
        padding: 1.5rem 1rem;
    }

    .checkout-grid {
        padding: 1.25rem 1rem;
        border-radius: 8px;
    }

    .cart-drawer {
        width: 100vw;
        right: -100vw;
    }

    .cart-drawer.active {
        transform: translateX(-100vw);
    }

    .cart-header,
    .cart-items,
    .cart-footer {
        padding: 16px;
    }
}