/* Base Styles & Variables */
:root {
    --primary-color: #111111;
    --secondary-color: #4a4a4a;
    --accent-color: #3b82f6;
    --bg-color: #ffffff;
    --section-bg: #f8f9fa;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1100; /* Restored correct z-index */
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--secondary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.25rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--section-bg);
    transition: var(--transition);
}

.cart-icon:hover {
    background-color: #e5e7eb;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Promo Hero Section */
.promo-hero {
    background-color: var(--bg-color);
    padding: 100px 1rem 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-container {
    max-width: 900px;
    width: 100%;
    
    /* Premium Navy Blue background */
    background: linear-gradient(135deg, #6c0a1a 0%, #9b1122 45%, #42040d 100%); /* Premium Dark Red */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(179, 38, 36, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}



.promo-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #ffffff; /* White text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.early-bird-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.early-bird-price del {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.limit-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.2rem;
}

.promo-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 240px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

.hero-image.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.btn-shop-now {
    background: linear-gradient(to right, #ffffff, #f3f4f6); /* White button */
    color: #991b1b;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #7f1d1d;
}


.btn-white {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Collection Section */
.collection {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    padding: 1rem;
}

.product-card:hover {
    border-color: #ff8c00;
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.12), 0 0 0 1px #ff8c00;
    transform: translateY(-6px);
}

.product-image-container {
    position: relative;
    background-color: var(--section-bg);
    border-radius: 16px;
    padding: 2rem;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Product Overlay Styles */
.product-overlay {
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.size-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.size-selector label {
    font-weight: 500;
    font-size: 0.9rem;
}

.size-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.btn-add-cart, .btn-buy-now {
    flex: 1;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-add-cart {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-buy-now {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-cart:hover {
    background-color: #f3f4f6;
}

.btn-buy-now:hover {
    background-color: #000;
}

.product-info {
    text-align: left;
    padding: 0 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Cart Sidebar / Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    bottom: 0;
    background: white;
    z-index: 1100;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-light);
}

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

.cart-items {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: none;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--section-bg);
    border-radius: 8px;
    padding: 0.25rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    border: none;
    background: none;
    margin-left: auto;
}

.cart-footer {
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--section-bg);
    flex-shrink: 0;
}

.coupon-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-section input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.btn-apply {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.9rem;
}

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

.coupon-message {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.coupon-message.success {
    color: #10b981;
}

.coupon-message.error {
    color: #ef4444;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-form h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-group input:not([type="radio"]), .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-checkout {
    width: 100%;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
}

/* Size Guide Section */
.size-guide {
    padding: 6rem 0;
    background-color: var(--section-bg);
}

.size-table-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.size-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.size-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.size-table tr:last-child td {
    border-bottom: none;
}

.size-table tr:nth-child(even) {
    background-color: var(--section-bg);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-contact p {
    margin-bottom: 0.75rem;
}

.footer-contact a:hover {
    color: white !important;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
}

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

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-blob {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .promo-hero {
        padding: 80px 1rem 1rem 1rem;
    }
    .promo-container {
        padding: 2rem 1.5rem;
        flex-direction: column-reverse; /* Image on top, button on bottom */
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .promo-info {
        align-items: center;
    }
    .promo-title {
        font-size: 1.8rem;
        letter-spacing: 0;
    }
    .early-bird-price {
        font-size: 1.5rem;
    }
    .promo-pricing {
        padding: 0.5rem 1rem;
        margin-bottom: 1.2rem;
    }
    .btn-shop-now {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    .promo-image-wrapper {
        height: 260px; /* Strictly defined */
        min-height: 260px;
        flex: none; /* Do not allow flex layout to squash it */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Prevent jumping */
    }
    .container {
        padding: 0 1rem;
    }

    .header-content {
        height: 70px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        display: none;
        gap: 0;
        border-top: 1px solid var(--border-color);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .promo-hero {
        padding: 85px 1rem 1.5rem 1rem;
    }


    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-overlay {
        bottom: 0; /* Always show on mobile */
        padding: 1rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981; /* Success Green */
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
}

.toast.show {
    bottom: 40px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    width: 24px;
    height: 24px;
}

.toast-message {
    font-weight: 600;
    font-size: 1rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1100; /* Restored correct z-index */
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background-color: #ef4444; /* red-500 for error */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.toast-success {
    background-color: #10b981; /* emerald-500 */
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Footer Contact Form */
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}
.footer-contact-form input,
.footer-contact-form textarea {
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-main);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}
.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    border-color: #f97316;
}
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.footer-contact-form .btn-submit-contact {
    background: linear-gradient(to right, #ea580c, #f97316);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.footer-contact-form .btn-submit-contact:hover {
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}

/* Main Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--section-bg);
}
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.main-contact-form .form-row {
    display: flex;
    gap: 1.25rem;
}
.main-contact-form input,
.main-contact-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
}
.main-contact-form input:focus,
.main-contact-form textarea:focus {
    border-color: #f97316;
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}
.main-contact-form .btn-submit-contact {
    background: linear-gradient(to right, #ea580c, #f97316);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.main-contact-form .btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}
@media (max-width: 768px) {
    .main-contact-form .form-row {
        flex-direction: column;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Order History */
.history-item {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.history-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.history-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.history-total {
    font-weight: 700;
    color: #ea580c;
    margin-top: 0.5rem;
}

/* Checkout Form Structure */
.checkout-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.checkout-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.checkout-section-header .step-num {
    background: var(--text-color);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}
.checkout-section-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}
.form-row-2 {
    display: flex;
    gap: 1rem;
}
@media (max-width: 480px) {
    .form-row-2 {
        flex-direction: column;
        gap: 0;
    }
}

/* Floating Label Form Fields */
.floating-label-group {
    position: relative;
    display: block;
    margin-bottom: 0;
}
.floating-label-group input:not([type="radio"]):not([type="checkbox"]),
.floating-label-group select,
.floating-label-group textarea {
    width: 100%;
    padding: 1.5rem 0.75rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-color);
}
.floating-label-group select {
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
}
.floating-label-group input:focus,
.floating-label-group select:focus,
.floating-label-group textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.floating-label-group .label-text {
    position: absolute;
    top: 0.4rem;
    left: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: all 0.2s ease;
}
.floating-label-group input:focus + .label-text,
.floating-label-group select:focus + .label-text,
.floating-label-group textarea:focus + .label-text {
    color: var(--primary-color);
}

.cart-header {
    flex-shrink: 0;
}

.cart-scrollable-content {
    -webkit-overflow-scrolling: touch;
}

/* =========================================
   PREMIUM CHECKOUT UX UPGRADES 
   ========================================= */

/* 1. Breathing Room & Section Styling */
.checkout-section {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-section-header .step-num {
    background: linear-gradient(135deg, #111111, #333333);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.checkout-section-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}

/* 2. Premium Inputs */
.floating-label-group input:not([type="radio"]):not([type="checkbox"]),
.floating-label-group select,
.floating-label-group textarea {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
    transition: all 0.25s ease;
}

.floating-label-group input:focus,
.floating-label-group select:focus,
.floating-label-group textarea:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
    background: #fffaf5;
}

/* 3. Visual Radio Cards for Delivery */
.delivery-options-group {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-bottom: 1.5rem;
}
.delivery-options-group > p {
    color: #64748b;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem !important;
}

.delivery-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.delivery-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.delivery-card-label:has(input:checked) {
    border-color: #ff8c00;
    background: #fffaf5;
    box-shadow: 0 4px 12px rgba(255,140,0,0.08);
}

.delivery-card-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.delivery-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.delivery-card-subtitle {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}
.delivery-card-label:has(input[value="Outside Campus"]:checked) .delivery-card-subtitle {
    color: #ff8c00;
}
.delivery-card-label:not(:has(input:checked)) .delivery-card-subtitle {
    color: #64748b;
}

/* 4. Order Summary Upgrade */
.order-summary-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.cart-total {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #111;
}
#cart-total-price {
    color: #ff8c00;
}

/* 5. Sticky Footer & Button */
.cart-footer-sticky {
    padding: 1.25rem 1.5rem !important;
    border-top: 1px solid #f1f5f9;
}
.btn-checkout {
    height: 54px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #111 0%, #222 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =========================================
   EYE-SOOTHING PREMIUM CART OVERHAUL
   ========================================= */

/* 1. Glassmorphism Overlay */
.cart-overlay.open {
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* 2. Soft Sidebar Background */
.cart-sidebar {
    background: #f4f7f9 !important; /* Extremely soft, cool gray/blue */
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.06) !important;
}

@media (max-width: 768px) {
    .cart-sidebar {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

/* 3. Floating Card Sections */
.checkout-section {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0,0,0,0.01) !important;
    border-radius: 16px !important;
    padding: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.checkout-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0,0,0,0.02) !important;
}

/* 4. Elegant Step Indicators */
.checkout-section-header .step-num {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    box-shadow: none !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
}

/* 5. Soothing Input Fields */
.floating-label-group input:not([type="radio"]):not([type="checkbox"]),
.floating-label-group select,
.floating-label-group textarea {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.floating-label-group input:focus,
.floating-label-group select:focus,
.floating-label-group textarea:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

/* 6. Soft Visual Delivery Cards */
.delivery-card-label {
    background: #f8fafc !important;
    border: 2px solid transparent !important;
    border-radius: 14px !important;
    padding: 1.2rem 0.5rem !important;
}

.delivery-card-label:has(input:checked) {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12) !important;
}

.delivery-card-label:has(input[value="Outside Campus"]:checked) .delivery-card-subtitle {
    color: #3b82f6 !important;
}

/* 7. Beautiful Order Summary */
.order-summary-section {
    background: #ffffff !important;
}
.order-summary-section > div[style*="background: #f8fafc"] {
    background: #f8fafc !important;
    border: none !important;
}

#cart-total-price {
    color: #3b82f6 !important;
    font-size: 1.4rem !important;
}

/* 8. Premium Sticky Footer */
.cart-footer-sticky {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(0,0,0,0.03) !important;
}

.btn-checkout {
    background: #1e293b !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    height: 56px !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2) !important;
    border: none !important;
}

.btn-checkout:hover {
    background: #0f172a !important;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Smooth Out the Main Cart Items */
.cart-item {
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01) !important;
}
.cart-size-select, .cart-type-select {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* 9. Extra Breathing Room (Spacing Enhancements) */
.checkout-section {
    margin-bottom: 1rem !important; /* Reduced space between steps */
    padding: 1.5rem !important; /* Reduced inner space */
}

.cart-scrollable-content {
    padding: 2rem 1.5rem !important; /* More space at the very top and bottom of the scrolling area */
}

.form-group {
    margin-bottom: 1.25rem !important; /* Increased space between input fields */
}

.form-row-2 {
    gap: 1.25rem !important; /* Increased horizontal space between side-by-side inputs */
}

.checkout-section-header {
    margin-bottom: 2rem !important; /* More space below the step title */
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Space between multiple items in cart */
}

.cart-item {
    margin-bottom: 0 !important;
}

/* Fix for overlapping labels on small screens */
.floating-label-group .label-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 90% !important;
}

/* =========================================
   APPLE-STYLE PREMIUM LIQUID GLASS OVERHAUL
   ========================================= */

/* Liquid Glass Sidebar Background */
.cart-sidebar {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.6) !important;
}

/* Translucent Floating Cards */
.checkout-section {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* Gradient Text Effect for Headers */
.cart-header h3, .cart-header h2 {
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* Premium Button Glass Reflection */
.btn-checkout {
    background: linear-gradient(145deg, #1e293b, #0f172a) !important;
    position: relative;
    overflow: hidden;
}

.btn-checkout::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: premium-shimmer 3s infinite;
}

@keyframes premium-shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Glassy Sticky Footer */
.cart-footer-sticky {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(30px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* =========================================
   PREMIUM MICRO-INTERACTIONS & FEEDBACK
   ========================================= */

/* 1. Button Squish (Active state) */
.btn-checkout:active, 
.btn-add-cart:active, 
.btn-buy-now:active, 
button:active {
    transform: scale(0.96) translateY(0) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    transition: transform 0.05s ease !important; /* Instant squish */
}

/* 2. Fluid Input Focus */
.floating-label-group input:focus,
.floating-label-group select:focus,
.floating-label-group textarea:focus {
    transform: scale(1.01);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 3. Delivery Card Hover Lift */
.delivery-card-label {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer;
}

.delivery-card-label:hover:not(:has(input:disabled)) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important;
}

.delivery-card-label:active:not(:has(input:disabled)) {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: transform 0.05s ease !important;
}

/* 4. Section Card Floating */
.checkout-section {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.checkout-section:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* 5. Plus/Minus Button Snappiness */
.qty-btn {
    transition: all 0.2s ease !important;
}
.qty-btn:hover {
    background: #e2e8f0 !important;
    transform: scale(1.1);
}
.qty-btn:active {
    transform: scale(0.9) !important;
}

/* =========================================
   OVERRIDE: PREMIUM RED WINE PRODUCT CARDS
   ========================================= */

.product-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(155, 17, 34, 0.08) !important;
    box-shadow: 0 8px 24px rgba(108, 10, 26, 0.03) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    padding: 1rem !important;
}

.product-card:hover {
    border-color: rgba(155, 17, 34, 0.3) !important;
    box-shadow: 0 20px 40px rgba(108, 10, 26, 0.12), 0 0 0 1px rgba(155, 17, 34, 0.1) !important;
    transform: translateY(-6px) !important;
}

.product-image-container {
    background: #ffffff !important; /* Pure White as requested */
    border-radius: 16px !important;
    position: relative;
    padding: 1rem !important;
    aspect-ratio: 1 / 1 !important; /* Fixed height! */
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

.product-image-container img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.product-title {
    color: #42040d !important; /* Deep Burgundy */
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

.product-price {
    color: #9b1122 !important; /* Vibrant Ruby */
    font-weight: 800 !important;
}

.original-price {
    color: #a3b1c6 !important;
}

.btn-add-cart {
    background: linear-gradient(135deg, #fff5f6 0%, #fef1f2 100%) !important;
    color: #9b1122 !important;
    border: 1px solid rgba(155, 17, 34, 0.2) !important;
    transition: all 0.2s ease !important;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #9b1122 0%, #6c0a1a 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 16px rgba(155, 17, 34, 0.2) !important;
    transform: translateY(-2px) !important;
}

.btn-buy-now {
    background: linear-gradient(135deg, #6c0a1a 0%, #9b1122 45%, #42040d 100%) !important; /* Match Launch Offer */
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(108, 10, 26, 0.2) !important;
    border: none !important;
}

.btn-buy-now:hover {
    box-shadow: 0 12px 24px rgba(108, 10, 26, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* =========================================
   PREMIUM MINIMALIST ANIMATED BACKGROUND
   ========================================= */

body {
    position: relative;
    background-color: #fafafa !important; /* Soft, clean minimalist white */
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -9999;
    pointer-events: none;
    /* Create a subtle dot pattern */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
    /* Fade out the dots at the edges of the screen for a vignette effect */
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    /* Infinitely pan the dots slowly */
    animation: pan-grid 60s linear infinite;
    will-change: background-position;
}

@keyframes pan-grid {
    0% { background-position: 0px 0px; }
    100% { background-position: 64px 64px; } /* Move by exactly 2x the background size to loop seamlessly */
}

/* Cart Micromovement and Contrast Fixes */
.cart-sidebar {
    position: fixed;
    z-index: 1100; /* Restored correct z-index */
}

.cart-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: pan-grid-cart 40s linear infinite;
    will-change: background-position;
    mask-image: linear-gradient(to bottom, black 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 90%);
}

@keyframes pan-grid-cart {
    0% { background-position: 0px 0px; }
    100% { background-position: 40px 40px; }
}

/* Fix White on White contrast inside cart */
.checkout-section {
    border: 1px solid rgba(0, 0, 0, 0.05) !important; /* Subtle dark border to separate white from white */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0,0,0,0.02) !important; /* Stronger shadow */
}

.cart-item {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

/* FIX: Chrome Autofill covering floating labels */
.floating-label-group {
    position: relative;
}

.floating-label-group .label-text {
    z-index: 10 !important;
}

/* Force autofill background to match our design */
.floating-label-group input:-webkit-autofill,
.floating-label-group input:-webkit-autofill:hover, 
.floating-label-group input:-webkit-autofill:focus, 
.floating-label-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* FIX MOBILE PRODUCT CARD OVERLAY COVERING IMAGE */
@media (max-width: 768px) {
    .product-image-container {
        aspect-ratio: auto !important;
        padding: 1rem 1rem 0 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
    
    .product-image-container img {
        height: 220px !important; /* Fixed height for image so it doesn't explode */
        width: 100% !important;
        object-fit: contain !important;
        margin-bottom: 1rem;
    }

    .product-overlay {
        position: relative !important;
        bottom: auto !important;
        width: 100% !important;
        padding: 0 0 1rem 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }
}
