:root {
    /* Color Palette */
    --primary: #ff4d94;
    --primary-soft: #ff80b3;
    --primary-deep: #e6005c;
    --secondary: #2d3436;
    --accent: #6c5ce7;
    --bg-light: #fdfbfb;
    --bg-dark: #121212;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    animation: pageFadeIn 1s ease-out;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 5%;
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    margin-top: 60px;
    background: radial-gradient(circle at top right, rgba(255, 77, 148, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(108, 92, 231, 0.05), transparent 40%);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 77, 148, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    animation: pulseGlow 3s infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
    animation: shimmer 4s infinite;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 77, 148, 0.5);
    background: var(--primary-deep);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 148, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 77, 148, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 148, 0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #eee;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

/* Product Section */
.products {
    padding: 5rem 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    perspective: 1000px; /* For 3D effects */
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.03);
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Footer */
footer {
    padding: 5rem 10% 2rem;
    background: white;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Functional UI Styles */
#hero-image {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-image-fade {
    opacity: 0;
    transform: scale(0.95);
}

/* Search Overlay */
.overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 2000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

#search-input {
    width: 100%;
    font-size: 2.5rem;
    border: none;
    background: transparent;
    border-bottom: 2px solid var(--primary);
    padding: 1rem;
    outline: none;
    font-family: inherit;
    font-weight: 700;
}

/* Cart Drawer */
.drawer {
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 2000;
}

.drawer.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.drawer-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.cart-item-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.remove-item {
    margin-left: auto;
    color: #ff4757;
    cursor: pointer;
    background: none;
    border: none;
}

/* Modal */
.modal {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal, .close-overlay, .close-drawer {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover, .close-overlay:hover, .close-drawer:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 3rem;
}

/* Filtering UI */
.filter-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 77, 148, 0.2);
}

/* Payment Gateway UI */
.payment-option {
    cursor: pointer;
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 16px;
    transition: var(--transition);
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary);
    background: rgba(255, 77, 148, 0.02);
    box-shadow: 0 4px 15px rgba(255, 77, 148, 0.1);
}

.payment-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* WhatsApp AI Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(255, 77, 148, 0.4);
    cursor: pointer;
    transition: var(--transition);
    animation: pulseWA 2s infinite;
}

.wa-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes pulseWA {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 148, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(255, 77, 148, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 148, 0); }
}

.wa-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.wa-chat.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.wa-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-body {
    padding: 1.5rem;
    background: #f0f2f5;
    max-height: 300px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.wa-msg {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.wa-msg::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.wa-footer {
    padding: 1rem;
    background: white;
    text-align: center;
}

@media (max-width: 768px) {
    .wa-widget {
        bottom: 20px;
        right: 20px;
    }
}
