@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0b2154;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-gray: #f3f4f6;
    --white: #ffffff;
    --accent-gold: #f59e0b;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 80px;
    /* Space for sticky footer */
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, #000, #1f1f1f, #000);
    background-size: 200% auto;
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    animation: shineBg 4s linear infinite;
    position: relative;
    overflow: hidden;
}

@keyframes shineBg {
    to {
        background-position: 200% center;
    }
}

.top-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: sweep 3s infinite ease-in-out;
}

@keyframes sweep {
    0% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.top-banner .lightning {
    color: var(--accent-gold);
    animation: pulseLightning 0.8s infinite alternate ease-in-out;
}

@keyframes pulseLightning {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.6));
    }

    to {
        transform: scale(1.25);
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 1));
    }
}

.top-banner .highlight {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 800;
}

/* Header */
.header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 50;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    padding: 0 1rem;
}

.logo-icon {
    font-size: 1.5rem;
    font-weight: 800;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 1.5rem;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 48%;
    padding-right: 1rem;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 1.25rem;
    font-weight: 600;
}

.new-price {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
}

.delivery-info {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #081840;
}

.hero-features {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

/* Icons Grid */
.icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 0;
    background-color: #fbfdff;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.icon-item i {
    font-size: 2.3rem;
    color: var(--text-dark);
}

@media (max-width: 1000px) {
    .icon-item i {
        font-size: 1.8rem;
    }
}

@media (min-width: 640px) {
    .icons-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
    }

    .icon-item {
        border-right: 1px solid var(--border-color);
        padding: 0 1rem;
    }

    .icon-item:last-child {
        border-right: none;
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.gallery-item span {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Selectors */
.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.color-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.color-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
    position: relative;
}

.color-item.selected .color-circle::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}

.color-item span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.size-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn.selected {
    background: #000;
    color: var(--white);
    border-color: #000;
}

.size-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Pricing Box */
.pricing-box {
    display: flex;
    flex-direction: column;
    background-color: #f0f4f8;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .pricing-box {
        flex-direction: row;
        align-items: stretch;
    }
}

.pricing-details {
    flex: 1;
    display: flex;
    padding: 1rem;
}

.price-col {
    flex: 1;
    text-align: center;
    border-right: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
}

.price-col:last-child {
    border-right: none;
}

.price-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.price-col-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.price-col-value.strike {
    color: #9ca3af;
    text-decoration: line-through;
}

.limited-stock {
    position: relative;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: auto;
}

.limited-stock::before,
.limited-stock::after {
    content: '';
    position: absolute;
    left: -12px;
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border-radius: 50%;
}

.limited-stock::before {
    top: -12px;
}

.limited-stock::after {
    bottom: -12px;
}

.stock-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.limited-stock i {
    color: var(--accent-gold);
    font-size: 1.75rem;
}

/* Order Form */
.order-form-container {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.75rem;
}

.input-group i {
    color: var(--text-light);
    margin-right: 0.5rem;
}

.input-group input,
.input-group select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.875rem;
    background: transparent;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.25rem;
    font-weight: bold;
    cursor: pointer;
}

.qty-input {
    width: 3rem;
    text-align: center;
    border: none;
    font-weight: bold;
}

.order-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.summary-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--border-color);
}

.summary-total .amount {
    color: var(--primary-blue);
}

.form-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: auto;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    padding: 1rem;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.form-footer i {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

/* Footer Features */
.footer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-features {
        display: flex;
        justify-content: space-between;
    }

    .footer-feature {
        flex: 1;
    }
}

.footer-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    cursor: pointer;
}

.footer-feature:hover {
    transform: translateY(-5px);
    background-color: #f8fafc;
}

.footer-feature i {
    font-size: 2rem;
    color: var(--text-dark);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.footer-feature svg {
    width: 2rem !important;
    height: 2rem !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.footer-feature:hover i,
.footer-feature:hover svg {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary-blue);
}

.footer-feature h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.footer-feature p {
    color: var(--text-light);
}

/* Sticky Bottom Bar */
.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    color: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.sticky-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sticky-new {
    font-size: 1.5rem;
    font-weight: 800;
}

.sticky-old {
    font-size: 1rem;
    color: #6b7280;
    text-decoration: line-through;
}

.sticky-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-decoration: none;
}

/* Copyright Footer */
.copyright-footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Utilities for hiding on mobile/desktop */
@media (max-width: 640px) {
    .hero-image {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .hero-content {
        width: 100%;
    }

    .hero {
        background: var(--white);
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-title {
        font-size: 2rem;
    }

    .new-price {
        font-size: 2rem;
    }

    .old-price {
        font-size: 1rem;
    }

    .hero-feature-item i {
        font-size: 1.5rem;
    }

    .hero-features {
        font-size: 0.75rem;
    }

    .price-col-value {
        font-size: 1.25rem;
    }

    .price-col-title {
        font-size: 0.7rem;
    }

    .limited-stock {
        width: 100%;
        padding: 0.75rem;
    }

    .limited-stock::before,
    .limited-stock::after {
        top: -12px;
        bottom: auto;
    }

    .limited-stock::before {
        left: -12px;
    }

    .limited-stock::after {
        left: auto;
        right: -12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- New Cart & Product Grid Styles --- */

/* Cart Header Icon */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    margin-left: auto;
    padding-right: 1rem;
    display: flex;
    align-items: center;
}

.cart-icon-container i {
    font-size: 1.75rem;
    color: var(--primary-blue);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: 10px;
    background-color: var(--accent-gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Products Grid */
.products-section {
    padding: 2rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-new-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.product-old-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-cart {
    margin-top: auto;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background-color: #081840;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 101;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
    font-weight: 500;
}

.cart-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-checkout {
    width: 100%;
    background-color: var(--accent-gold);
    color: #000;
    padding: 1rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}

.btn-checkout:hover {
    opacity: 0.9;
}

/* Cart Items in Checkout Form */
.checkout-cart-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.checkout-cart-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}