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

:root {
    --purple: #9333ea;
    --purple-600: #9333ea;
    --pink: #ec4899;
    --pink-500: #ec4899;
    --orange: #f97316;
    --yellow: #fbbf24;
    --yellow-300: #fde047;
    --yellow-400: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --red: #ef4444;
    --green: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

.text-purple { color: var(--purple); }
.text-yellow { color: var(--yellow-300); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.gradient-text {
    background: linear-gradient(to right, var(--purple-600), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden { display: none !important; }

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

/* Hero Section with Animated Background */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--purple-600), var(--pink-500), var(--orange));
    padding: 120px 20px 80px;
}

.hero-animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-animated-bg::before,
.hero-animated-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: float 4s infinite ease-in-out;
}

.hero-animated-bg::before {
    width: 200px;
    height: 200px;
    background: var(--white);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-animated-bg::after {
    width: 150px;
    height: 150px;
    background: var(--yellow-400);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.1); }
}

.hero-floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
    animation: rotate 20s infinite linear;
}

.hero-icon-1 {
    top: 5rem;
    left: 2.5rem;
}

.hero-icon-2 {
    bottom: 8rem;
    right: 4rem;
    color: var(--yellow-300);
    opacity: 0.4;
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.2), 8px 8px 0 rgba(0,0,0,0.1);
    line-height: 1.1;
}

.hero-title .text-yellow {
    display: block;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-button {
    background: var(--white);
    color: var(--purple-600);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-button:hover {
    background: var(--yellow-300);
    color: var(--purple-700);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-mouse {
    width: 2rem;
    height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--white);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Section */
.products-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--gray-50), var(--white));
    min-height: 100vh;
}

.products-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.products-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.products-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 28rem;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Tile */
.product-tile {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-tile:nth-child(1) { animation-delay: 0.1s; }
.product-tile:nth-child(2) { animation-delay: 0.2s; }
.product-tile:nth-child(3) { animation-delay: 0.3s; }
.product-tile:nth-child(4) { animation-delay: 0.4s; }
.product-tile:nth-child(5) { animation-delay: 0.5s; }
.product-tile:nth-child(6) { animation-delay: 0.6s; }

.product-card-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
    padding: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card-wrapper:hover {
    transform: scale(1.02) perspective(1000px) rotateY(5deg) rotateX(-5deg);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.product-card {
    background: var(--white);
    border-radius: 1.375rem;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    height: 14rem;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--gray-100), var(--gray-200));
}

.product-image-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.product-image-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
    z-index: 10;
}

.product-image-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.product-image-dot.active {
    background: var(--white);
    width: 1rem;
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-badge.sale {
    background: var(--red);
}

.product-badge.options {
    background: var(--purple-600);
}

.product-badge.personalise {
    background: #2563eb;
}

.product-badge.free-delivery {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
    }
}

.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.product-card-wrapper:hover .quick-view-overlay {
    opacity: 1;
    pointer-events: all;
}

.quick-view-btn {
    background: var(--white);
    color: var(--gray-900);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-view-btn:hover {
    background: var(--yellow-300);
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-900);
}

.product-price-original {
    font-size: 1.125rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-add-btn {
    width: 100%;
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    color: var(--white);
    border: none;
    padding: 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.product-add-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.02);
}

.product-add-btn.out-of-stock,
.product-add-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.product-add-btn.out-of-stock:hover,
.product-add-btn:disabled:hover {
    transform: none;
    opacity: 0.6;
}

/* Color Schemes for Product Cards */
.product-card-wrapper.color-0 { background: linear-gradient(135deg, var(--purple-600), var(--pink-500)); }
.product-card-wrapper.color-1 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.product-card-wrapper.color-2 { background: linear-gradient(135deg, var(--orange), var(--red)); }
.product-card-wrapper.color-3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.product-card-wrapper.color-4 { background: linear-gradient(135deg, var(--pink-500), #f43f5e); }
.product-card-wrapper.color-5 { background: linear-gradient(135deg, #6366f1, var(--purple-600)); }

/* Floating Cart */
.floating-cart {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--white);
    color: var(--purple-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(147, 51, 234, 0.2);
    transition: all 0.3s ease;
}

.floating-whatsapp {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.5rem;
    visibility: visible;
    opacity: 1;
}

.floating-whatsapp:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .floating-cart {
        top: 0.75rem;
        right: 0.75rem;
    }
}
    transition: all 0.3s;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart:hover {
    background: var(--yellow-300);
    color: var(--purple-700);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: linear-gradient(to right, var(--pink-500), var(--red));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s;
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 28rem;
    height: 100vh;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.cart-drawer.open {
    transform: translateX(0);
    pointer-events: auto;
}

.cart-drawer.hidden {
    display: none;
}

.cart-drawer:not(.hidden) {
    display: block;
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.cart-drawer-content {
    position: relative;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 2001;
}

.cart-header {
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header-badge {
    background: var(--yellow-400);
    color: var(--purple-900);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.cart-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-content {
    display: flex;
    gap: 1rem;
}

.cart-item-image {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, var(--purple-600), var(--pink-500));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--purple-600);
    margin-bottom: 0.25rem;
}

.cart-item-custom {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--purple-600);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.quantity-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: var(--gray-200);
}

.quantity-value {
    font-weight: 700;
    color: var(--gray-900);
    width: 2rem;
    text-align: center;
}

.remove-item-btn {
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fee2e2;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-item-btn:hover {
    background: #fecaca;
}

.cart-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    background: var(--gray-50);
}

.cart-coupon-section {
    margin-bottom: 1rem;
}

.coupon-applied {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.coupon-applied-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-applied-content i {
    color: var(--green);
    font-size: 1.25rem;
}

.coupon-code {
    font-weight: 700;
    color: #065f46;
    margin-right: 0.5rem;
}

.coupon-discount {
    font-size: 0.875rem;
    color: #047857;
}

.coupon-input-section {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.coupon-input-section i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.coupon-input-section input {
    flex: 1;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    text-transform: uppercase;
}

.coupon-input-section button {
    padding: 0.75rem 1rem;
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.coupon-input-section button:hover {
    background: var(--gray-300);
}

.cart-totals {
    margin-bottom: 1rem;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-300);
}

.free-shipping-note,
.shipping-threshold-note {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.free-shipping-note {
    color: var(--green);
}

.shipping-threshold-note {
    color: var(--gray-500);
}

.checkout-button {
    width: 100%;
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    color: var(--white);
    border: none;
    padding: 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
}

.checkout-button:hover {
    background: linear-gradient(to right, #7c3aed, #db2777);
    transform: scale(1.02);
}

/* Empty Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.cart-empty-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cart-empty-icon i {
    font-size: 3rem;
    color: var(--gray-400);
}

.cart-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: var(--gray-500);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 1.5rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn svg,
.social-btn i {
    width: 1.5rem;
    height: 1.5rem;
}

.social-btn.tiktok:hover {
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    transform: scale(1.1);
}

.social-btn.facebook:hover {
    background: #1877f2;
    transform: scale(1.1);
}

.social-btn.instagram:hover {
    background: linear-gradient(to right, var(--purple-600), var(--pink-500), var(--orange));
    transform: scale(1.1);
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contact {
        text-align: left;
    }
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
    }
}

.contact-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item i.fa-envelope {
    color: var(--purple-400);
}

.contact-item i.fa-map-marker-alt {
    color: var(--pink-400);
}

.contact-item h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--purple-400);
}

.contact-item p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Promo Video Popup */
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.promo-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.promo-popup-content {
    position: relative;
    background: var(--black);
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    z-index: 4001;
    overflow: hidden;
}

@media (min-width: 640px) {
    .promo-popup-content {
        max-width: 42rem;
        height: auto;
        max-height: 90vh;
        border-radius: 1.5rem;
        aspect-ratio: 16/9;
    }
}

.promo-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.promo-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

.promo-popup-content h2 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 4rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.promo-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.promo-video-wrapper video::-webkit-media-controls {
    display: flex !important;
}

.promo-video-wrapper video::-webkit-media-controls-play-button {
    display: flex;
}

@media (min-width: 640px) {
    .promo-video-wrapper video {
        object-fit: cover;
    }
}

.promo-play-pause-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
    z-index: 10;
}

.promo-play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.promo-mute-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.promo-mute-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.promo-shop-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    color: var(--white);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.promo-shop-btn:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 1.5rem;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow: visible;
    z-index: 3001;
    display: flex;
    flex-direction: column;
}

.product-modal-content {
    max-width: 90vw;
    width: 100%;
    max-width: 28rem;
    padding: 0;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: visible;
    position: relative;
}

@media (min-width: 768px) {
    .product-modal-content {
        max-width: 32rem;
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 1.25rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--purple-600);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Product Modal Styles */
.product-modal-image-section {
    position: relative;
    height: 12rem;
    max-height: 40vh;
    background: linear-gradient(to bottom right, var(--purple-600), var(--pink-500));
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-modal-image-section {
        height: 16rem;
        max-height: 50vh;
    }
}

.product-modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.product-modal-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.product-modal-placeholder i {
    font-size: 3rem;
    color: var(--white);
}

@media (min-width: 768px) {
    .product-modal-placeholder i {
        font-size: 4rem;
    }
}

.modal-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .modal-image-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

.modal-image-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}

.modal-image-prev {
    left: 0.5rem;
}

.modal-image-next {
    right: 0.5rem;
}

.modal-image-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.modal-image-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.modal-image-dot.active {
    background: var(--white);
    width: 1.5rem;
}

.modal-sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    z-index: 10;
}

.modal-free-delivery-badge {
    position: absolute;
    top: 1rem;
    left: 5rem;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 10;
}

.modal-video-btn {
    position: absolute;
    bottom: 1rem;
    right: 5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--purple-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.modal-video-btn:hover {
    background: var(--white);
}

.modal-fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.modal-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.product-modal-content-section {
    padding: 1.5rem;
    padding-bottom: 2rem; /* Extra padding at bottom for button visibility */
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0; /* Important for flex scrolling */
    max-height: calc(90vh - 12rem); /* Subtract image section height, more space for content */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Ensure button is always visible when scrolling */
.product-modal-content-section .product-modal-add-btn {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    z-index: 10;
    margin-top: 1rem;
}

/* Only show scrollbar when needed */
.product-modal-content-section::-webkit-scrollbar {
    width: 6px;
}

.product-modal-content-section::-webkit-scrollbar-track {
    background: transparent;
}

.product-modal-content-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.product-modal-content-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.product-modal-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-modal-description {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.product-modal-features {
    margin-bottom: 1.5rem;
}

.product-modal-features h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.product-modal-features ul {
    list-style: none;
    padding: 0;
}

.product-modal-features li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.modal-variations {
    margin-bottom: 1.5rem;
}

.modal-label {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: block;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.variation-btn {
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.variation-btn:hover {
    border-color: var(--gray-300);
}

.variation-btn.active {
    border-color: var(--purple-600);
    background: #faf5ff;
}

.variation-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.variation-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.variation-price {
    color: var(--purple-600);
    font-weight: 700;
}

.variation-price-original {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.variation-sub-options {
    font-size: 0.75rem;
    color: var(--purple-600);
    margin-top: 0.25rem;
}

.variation-out-of-stock {
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 0.25rem;
}

.modal-sub-options {
    margin-bottom: 1.5rem;
}

.sub-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sub-option-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-option-btn:hover {
    border-color: var(--gray-300);
}

.sub-option-btn.active {
    border-color: var(--purple-600);
    background: #faf5ff;
    color: var(--purple-700);
}

.sub-option-price {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--purple-600);
}

.modal-custom-fields {
    margin-bottom: 1.5rem;
}

.custom-field {
    margin-bottom: 1rem;
}

.custom-field label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.custom-input,
.custom-textarea,
.custom-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.custom-textarea {
    resize: vertical;
    min-height: 4rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.custom-image-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--gray-50);
}

.custom-image-upload-area:hover {
    border-color: var(--purple);
    background: rgba(147, 51, 234, 0.05);
}

.custom-image-upload-area i {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.custom-image-upload-area p {
    font-weight: 600;
    color: var(--gray-700);
    margin: 0.25rem 0;
}

.custom-image-upload-area .text-small {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.custom-image-preview {
    margin-top: 1rem;
}

.custom-field-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.custom-field-image-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gray-300);
    background: var(--gray-50);
}

.custom-field-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.custom-field-image-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    z-index: 10;
}

.custom-field-image-delete-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.custom-field-image-delete-btn i {
    margin: 0;
}

.error-message {
    color: var(--red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-modal-price-section {
    margin-bottom: 1.5rem;
}

.product-modal-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-modal-price {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--gray-900);
}

.product-modal-price-original {
    font-size: 1.25rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-modal-free-delivery-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-modal-add-btn {
    width: 100%;
    background: linear-gradient(to right, var(--purple-600), var(--pink-500));
    color: var(--white);
    border: none;
    padding: 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0; /* Prevent button from shrinking */
    margin-top: auto; /* Push to bottom if needed */
}

.product-modal-add-btn:hover:not(:disabled) {
    background: linear-gradient(to right, #7c3aed, #db2777);
    transform: scale(1.02);
}

.product-modal-add-btn.out-of-stock,
.product-modal-add-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.product-modal-add-btn.out-of-stock:hover,
.product-modal-add-btn:disabled:hover {
    transform: none;
    opacity: 0.6;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .cart-drawer {
        max-width: 100%;
    }
    
    .variations-grid {
        grid-template-columns: 1fr;
    }
    
    .product-modal-image-section {
        height: 10rem;
        max-height: 35vh;
    }
    
    .product-modal-content {
        max-width: 95vw;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .product-modal-content-section {
        max-height: calc(95vh - 10rem); /* More space on mobile for scrolling */
    }
    
    .modal-close {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .modal-image-nav {
        width: 2rem;
        height: 2rem;
    }
    
    .cart-drawer {
        max-width: 100%;
        width: 100%;
    }
}
