/* ==========================================================================
   CSS VARIABLES - MINIMAL PREMIUM THEME
   ========================================================================== */
   :root {
    /* Light Theme (Default) */
    --bg-main: #FAFAFA;
    --bg-surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --primary: #111827;
    --primary-hover: #374151;
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition: all 0.3s ease;
}

body.dark-theme {
    /* Dark Theme */
    --bg-main: #09090B;
    --bg-surface: #18181B;
    --text-main: #FAFAFA;
    --text-muted: #A1A1AA;
    --primary: #FAFAFA;
    --primary-hover: #E4E4E7;
    --border-light: rgba(255,255,255,0.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
    --glass-bg: rgba(9, 9, 11, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color var(--transition), color var(--transition); }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ==========================================================================
   MINIMAL HEADER
   ========================================================================== */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--bg-main); border-bottom: 1px solid transparent; transition: var(--transition); }
.navbar.scrolled { background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-light); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 16px 5%; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--primary); display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 28px; height: 28px; }
.logo-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-main); }

.nav-center { flex: 1; display: flex; justify-content: center; }
.header-search { display: flex; align-items: center; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-pill); padding: 10px 20px; width: 100%; max-width: 480px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.header-search:focus-within { border-color: var(--text-muted); box-shadow: 0 0 0 4px rgba(0,0,0,0.03); max-width: 520px; }
body.dark-theme .header-search:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,0.05); }
.header-search svg { color: var(--text-muted); width: 18px; height: 18px; margin-right: 12px; }
.header-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.95rem; color: var(--text-main); }

.nav-right { display: flex; align-items: center; }
.icon-action-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.icon-action-btn:hover { background: var(--bg-surface); color: var(--text-main); transform: scale(1.05); }
.icon-action-btn svg { width: 22px; height: 22px; }

/* ==========================================================================
   MINIMAL HERO SECTION
   ========================================================================== */
.hero-section { position: relative; padding: 100px 5% 80px; text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden; }

/* Subtle Background Shapes */
.hero-bg-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.shape-1 { width: 600px; height: 600px; background: rgba(59, 130, 246, 0.15); top: -200px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: rgba(16, 185, 129, 0.1); bottom: -100px; right: -100px; }
body.dark-theme .shape { opacity: 0.15; }

.hero-content { max-width: 700px; position: relative; z-index: 2; margin-bottom: 60px; }
.hero-content h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em; color: var(--text-main); }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }

.hero-buttons { display: flex; justify-content: center; gap: 16px; }
.btn-primary-large { background: var(--primary); color: var(--bg-main); font-size: 1.05rem; font-weight: 600; padding: 14px 32px; border-radius: var(--radius-pill); transition: var(--transition); box-shadow: var(--shadow-sm); }
.btn-primary-large:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--bg-main); }
.btn-ghost-large { background: var(--bg-surface); border: 1px solid var(--border-light); color: var(--text-main); font-size: 1.05rem; font-weight: 600; padding: 14px 32px; border-radius: var(--radius-pill); transition: var(--transition); box-shadow: var(--shadow-sm); }
.btn-ghost-large:hover { background: var(--bg-main); border-color: var(--text-muted); transform: translateY(-2px); }

/* Decorative Floating Composition */
.hero-visual { position: relative; width: 100%; max-width: 800px; height: 280px; margin: 0 auto; z-index: 1; perspective: 1000px; }
.floating-cards-container { position: relative; width: 100%; height: 100%; }
.float-card { position: absolute; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); transition: transform 0.5s ease; animation: float 6s ease-in-out infinite; }
.float-card .card-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 120px; height: 140px; }
.card-icon { width: 40px; height: 40px; }
.float-card span { font-weight: 600; font-size: 0.95rem; color: var(--text-main); }

/* Assign colors and positions */
.card-1 { top: 20px; left: 10%; animation-delay: 0s; transform: rotate(-5deg); }
.card-1 .card-icon { color: #3B82F6; }
.card-2 { top: 60px; left: 35%; animation-delay: 1.5s; transform: rotate(2deg); z-index: 3; }
.card-2 .card-icon { color: #10B981; }
.card-3 { top: 10px; right: 35%; animation-delay: 3s; transform: rotate(-3deg); z-index: 2; }
.card-3 .card-icon { color: #F59E0B; }
.card-4 { top: 50px; right: 10%; animation-delay: 4.5s; transform: rotate(6deg); }
.card-4 .card-icon { color: #8B5CF6; }

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

/* ==========================================================================
   CATEGORY CHIPS & PRODUCTS
   ========================================================================== */
.category-chips-section { padding: 0 5% 40px; }
.chips-container { display: flex; justify-content: center; gap: 12px; overflow-x: auto; padding: 10px 0; max-width: 1000px; margin: 0 auto; scrollbar-width: none; }
.chip { padding: 10px 24px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-pill); color: var(--text-muted); font-size: 0.95rem; font-weight: 500; white-space: nowrap; transition: var(--transition); box-shadow: var(--shadow-sm); }
.chip:hover { border-color: var(--text-main); color: var(--text-main); }
.chip.active { background: var(--primary); color: var(--bg-main); border-color: var(--primary); }

.products-section { padding-bottom: 100px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; max-width: 1200px; margin: 0 auto; }

.product-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--text-muted); }
.card-image-wrap { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .card-img { transform: scale(1.03); }

.card-content { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; line-height: 1.4; color: var(--text-main); }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.btn-primary { background: var(--primary); color: var(--bg-main); padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 600; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* ==========================================================================
   MINIMAL FOOTER
   ========================================================================== */
.minimal-footer { background: var(--bg-surface); border-top: 1px solid var(--border-light); padding: 60px 5% 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand-area .logo-area { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo-icon { color: var(--primary); width: 24px; height: 24px; }
.footer-brand-area .brand-name { font-weight: 800; font-size: 1.2rem; color: var(--text-main); }
.footer-brand-area p { color: var(--text-muted); font-size: 0.95rem; }

.footer-links-area { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: var(--transition); }
.footer-col a:hover { color: var(--text-main); }

.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; gap: 16px; }
.secure-payments { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-main); }
.secure-payments svg { width: 16px; height: 16px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-center { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-visual { display: none; }
    .hero-section { padding-top: 60px; }
    .chips-container { justify-content: flex-start; padding: 10px 5%; }
    .footer-container { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cookie-banner { flex-direction: column; text-align: center; bottom: 16px; left: 16px; right: 16px; width: auto; max-width: none; }
    .cookie-actions { width: 100%; justify-content: center; }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(150%); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg-surface); border: 1px solid var(--border-light); padding: 20px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); z-index: 9999; max-width: 800px; width: calc(100% - 48px); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; visibility: hidden; }
.cookie-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cookie-content { display: flex; align-items: flex-start; gap: 16px; }
.cookie-icon { color: var(--primary); width: 28px; height: 28px; flex-shrink: 0; }
.cookie-text h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.cookie-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-text a { color: var(--primary); text-decoration: underline; font-weight: 500; }
.cookie-actions { flex-shrink: 0; display: flex; }
.cookie-actions button { white-space: nowrap; }

/* ==========================================================================
   PRODUCT DETAILS MODAL
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--bg-surface); width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateY(20px) scale(0.98); transition: 0.3s ease; position: relative; border: 1px solid var(--border-light); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.close-modal { position: absolute; top: 20px; right: 20px; background: var(--bg-main); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.5rem; transition: var(--transition); z-index: 10; border: 1px solid var(--border-light); }
.close-modal:hover { color: var(--text-main); transform: scale(1.05); }

.modal-body { display: flex; flex-direction: column; }
.modal-image-wrap { width: 100%; max-height: 400px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.modal-image-wrap img { width: 100%; height: 100%; max-height: 400px; object-fit: contain; }
.modal-info { padding: 40px; display: flex; flex-direction: column; }
.modal-category { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.modal-title { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text-main); }
.modal-sales-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(239, 68, 68, 0.1); color: #EF4444; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; width: fit-content; }
.modal-description { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }
.modal-price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.modal-price { font-size: 2.2rem; font-weight: 800; color: var(--text-main); }
.modal-buy-btn { background: var(--primary); color: var(--bg-main); padding: 12px 28px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; transition: var(--transition); display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 180px; }
.modal-buy-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--bg-main); }

/* Reviews Section */
.reviews-section { margin-top: 16px; padding-top: 32px; border-top: 1px solid var(--border-light); }
.reviews-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.reviews-header h3 { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.write-review-btn { font-size: 0.9rem; color: var(--primary); font-weight: 600; text-decoration: underline; }
.review-item { padding: 16px; background: var(--bg-main); border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid var(--border-light); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-name { font-weight: 700; font-size: 0.95rem; }
.review-stars { color: #F59E0B; font-size: 0.9rem; letter-spacing: 2px; }
.review-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 768px) {
    .modal-content { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: auto; max-height: 85vh; transform: translateY(100%); }
    .modal-overlay.active .modal-content { transform: translateY(0); }
    .modal-image-wrap { height: 220px; }
    .modal-info { padding: 24px; }
    .modal-title { font-size: 1.5rem; }
    .close-modal { top: 12px; right: 12px; width: 36px; height: 36px; }
}
