/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --primary-purple: #a855f7;
    --secondary-pink: #ec4899;
    --dark-bg: #0b0d17;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --gradient: linear-gradient(135deg, var(--primary-purple), var(--secondary-pink));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    overflow-x: hidden;
}

section { 
    padding: 80px 8%; 
}

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS
   ========================================================================== */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline-nav {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    transition: 0.3s;
    cursor: pointer;
}

.btn-outline-nav:hover {
    background: var(--primary-purple);
    color: white;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
    display: flex;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: padding 0.3s ease;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 45px;
    margin: 0 20px;
}

.nav-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

.header-search-container {
    position: absolute;
    width: 100%;
    max-width: 650px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.attractive-search {
    display: flex;
    width: 100%;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.attractive-search:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.attractive-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--text-main);
}

.attractive-search button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Scrolled state applied via JS */
header.scrolled { padding: 15px 8%; }
header.scrolled .nav-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;
}
header.scrolled .header-search-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================================================
   4. HOME PAGE HERO
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent);
    min-height: 70vh;
    position: relative;
}

.hero-content { flex: 1; }
.hero-content h1 { font-size: 60px; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { color: var(--text-muted); font-size: 18px; margin-bottom: 40px; max-width: 500px; }
.hero-image { flex: 1; position: relative; display: flex; justify-content: center; height: 400px; }

.float-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: absolute;
    padding: 15px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-1 { width: 300px; z-index: 2; top: 100px; }
.card-2 { width: 120px; right: 0; top: 50px; text-align: center; }
.card-2 .customer-count { font-size: 32px; font-weight: 700; color: var(--primary-purple); }
.card-3 { width: 150px; left: -20px; bottom: 20px; text-align: center; }
.card-3 .theme-count { font-weight: 700; }
.card-4 { width: 180px; top: 150px; left: 50px; background: rgba(255,255,255,0.9); font-size: 14px; text-align: center; animation-delay: 1.5s; }
.card-5 { width: 60px; height: 60px; bottom: 100px; right: 80px; background: var(--secondary-pink); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; animation-delay: 3s; }

/* ==========================================================================
   5. PAGE HEADERS (For Products/Contact/Static Pages)
   ========================================================================== */
.page-header { text-align: center; padding: 60px 8% 20px; }
.page-header h1 { font-size: 42px; margin-bottom: 10px; color: var(--text-main); }
.page-header p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   6. PRODUCT GRIDS & CARDS
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.section-title h2 { font-size: 36px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.product-img {
    height: 200px;
    background: #f1f5f9;
    position: relative;
    background-size: cover;
    background-position: center;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-pink);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.product-info { padding: 20px; }

.product-category {
    font-size: 13px;
    color: var(--secondary-pink);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info h3 { 
    font-size: 18px; 
    margin-bottom: 10px; 
    line-height: 1.4;
}

.product-rating {
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-rating span { color: var(--text-muted); margin-left: 5px; }

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.price-container { display: flex; align-items: center; gap: 8px; }
.old-price { text-decoration: line-through; color: var(--text-muted); font-size: 14px; }
.new-price { font-weight: 700; color: var(--primary-purple); font-size: 18px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.page-btn { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; color: var(--text-main); }
.page-btn:hover, .page-btn.active { background: var(--gradient); color: white; border-color: transparent; box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3); }

/* ==========================================================================
   7. CATEGORY & FILTER BARS
   ========================================================================== */
.product-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.sticky-category-bar {
    position: sticky;
    top: 75px; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 900;
    padding: 20px 8%;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sticky-category-bar::-webkit-scrollbar { display: none; }

.filter-btn {
    background: #f1f5f9;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.filter-btn.active, .filter-btn:hover { background: var(--gradient); color: white; }

/* ==========================================================================
   8. FEATURED / BLOG / EARN / SUPPORT (Home Page)
   ========================================================================== */
.featured-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-text h2 { font-size: 40px; margin-bottom: 20px; line-height: 1.2; }
.featured-text p { color: var(--text-muted); line-height: 1.6; font-size: 16px; margin-bottom: 30px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.blog-card { background: white; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); transition: 0.3s; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.blog-img { height: 220px; background: #e2e8f0; background-size: cover; background-position: center; }
.blog-content { padding: 25px; }
.blog-meta { color: var(--primary-purple); font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; display: block; }
.blog-title { font-size: 20px; margin-bottom: 15px; line-height: 1.4; }
.blog-excerpt { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.read-more { color: var(--text-main); font-weight: 700; display: flex; align-items: center; gap: 5px; transition: 0.3s; }
.blog-card:hover .read-more { color: var(--primary-purple); gap: 10px; }

.earn-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.earn-box { padding: 50px; border-radius: 30px; position: relative; overflow: hidden; }
.box-purple { background: #f5f3ff; }
.box-pink { background: #fdf2f8; }
.earn-box h2 { font-size: 32px; margin-bottom: 20px; }
.earn-box p { margin-bottom: 30px; color: var(--text-muted); line-height: 1.6; }

.support-banner {
    background: #fff1f2;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 50px;
    position: relative;
}

/* ==========================================================================
   9. SINGLE PRODUCT DETAILS
   ========================================================================== */
.product-hero { padding: 80px 8%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.hero-image-col { width: 100%; aspect-ratio: 16 / 9; background: #f1f5f9 center/cover; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.05); position: relative; }

.hero-info-col .category { color: var(--secondary-pink); font-weight: 700; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; letter-spacing: 1px; }
.hero-info-col h1 { font-size: 28px; line-height: 1.3; margin-bottom: 15px; color: var(--text-main); }

.product-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item.stars { color: #fbbf24; }
.meta-item.stars span { color: var(--text-muted); font-weight: 600; }

.product-features-list { list-style: none; margin-bottom: 25px; }
.product-features-list li { margin-bottom: 10px; font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.product-features-list li i { color: #10b981; font-size: 16px; }

.price-box { margin-bottom: 25px; display: flex; align-items: center; gap: 12px; }
.price-box .old-price { font-size: 20px; text-decoration: line-through; color: var(--text-muted); }
.price-box .new-price { font-size: 36px; font-weight: 700; color: var(--primary-purple); }
.price-box .discount-tag { background: rgba(236, 72, 153, 0.1); color: var(--secondary-pink); padding: 4px 10px; border-radius: 50px; font-weight: 700; font-size: 12px; }

.action-buttons { display: flex; gap: 12px; }
.action-buttons .btn-primary { padding: 15px 30px; font-size: 15px; flex: 1; }
.action-buttons .btn-outline { padding: 15px 18px; font-size: 15px; }

.media-section { padding: 60px 8%; background: var(--light-bg); }
.section-heading { font-size: 28px; margin-bottom: 30px; text-align: center;}
.video-center-container { max-width: 800px; margin: 0 auto 50px auto; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.gallery-wrapper { position: relative; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: white; border: 1px solid var(--border-color); border-radius: 50%; color: var(--primary-purple); font-size: 18px; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 10; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-btn:hover { background: var(--primary-purple); color: white; border-color: var(--primary-purple); }
.gallery-btn.prev { left: -22px; }
.gallery-btn.next { right: -22px; }

.scrolling-gallery { display: flex; overflow-x: auto; gap: 20px; padding: 20px 0; scroll-snap-type: x mandatory; scroll-behavior: smooth; width: 100%; -ms-overflow-style: none; scrollbar-width: none; }
.scrolling-gallery::-webkit-scrollbar { display: none; }
.gallery-item { min-width: 350px; height: 220px; border-radius: 15px; background-color: #cbd5e1; flex-shrink: 0; scroll-snap-align: start; background-size: cover; background-position: center; transition: 0.3s; cursor: pointer; border: 1px solid var(--border-color); }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.details-section { padding: 80px 8%; max-width: 1000px; margin: 0 auto; }
.details-content h3 { font-size: 24px; margin: 30px 0 15px; }
.details-content p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

.detail-features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-item i { color: #10b981; font-size: 18px; margin-top: 2px; }
.feature-item-content h4 { font-size: 16px; margin-bottom: 5px; color: var(--text-main); }
.feature-item-content p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   10. CUSTOMER REVIEWS
   ========================================================================== */
.reviews-section { padding: 80px 8%; background: var(--light-bg); }
.reviews-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.review-form-box { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); height: fit-content; }
.review-form-box h3 { font-size: 24px; margin-bottom: 20px; }

.star-rating-select { color: var(--border-color); font-size: 24px; margin-bottom: 20px; cursor: pointer; display: flex; gap: 5px; }
.star-rating-select i.active { color: #fbbf24; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 10px; font-size: 15px; outline: none; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-purple); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }

.existing-reviews h3 { font-size: 24px; margin-bottom: 30px; }
.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-card { background: white; padding: 30px; border-radius: 20px; border: 1px solid var(--border-color); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.reviewer-info { display: flex; align-items: center; gap: 15px; }
.reviewer-avatar { width: 50px; height: 50px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 18px; }
.reviewer-info h4 { font-size: 16px; margin-bottom: 2px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: #fbbf24; font-size: 14px; }
.review-text { color: var(--text-muted); line-height: 1.6; font-size: 15px; }

/* ==========================================================================
   11. FOOTER & SUBSCRIBE FORM
   ========================================================================== */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 8% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 { margin-bottom: 25px; font-size: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: white; padding-left: 5px; }

/* Missing Subscribe Form and Footer Details */
.subscribe-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe-input input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    color: white;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.subscribe-input input::placeholder {
    color: #94a3b8;
}

.subscribe-input input:focus {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.15);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   12. MEDIA QUERIES (Responsive Design)
   ========================================================================== */
@media (max-width: 1200px) {
    .featured-content { grid-template-columns: 1fr; flex-direction: column-reverse; }
    .featured-text { order: -1; text-align: center; }
}

@media (max-width: 992px) {
    /* Hero */
    .hero { flex-direction: column; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    
    /* Header */
    .nav-menu { display: none; }
    .header-search-container { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; position: relative; padding-top: 15px; }
    
    /* Grids */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .earn-container { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .product-hero { grid-template-columns: 1fr; }
    
    /* Inner Pages */
    .details-section { padding: 60px 5%; }
    .detail-features-list { grid-template-columns: 1fr; }
    .reviews-container { grid-template-columns: 1fr; }
    .sticky-category-bar { justify-content: flex-start; padding: 20px 5%; top: 70px; }
}

@media (max-width: 768px) {
    /* Fonts and padding */
    .hero-content h1 { font-size: 45px; }
    .hero-info-col h1 { font-size: 26px; }
    .price-box .new-price { font-size: 32px; }
    .action-buttons { flex-direction: column; }
    
    /* Support and Gallery */
    .support-banner { flex-direction: column; text-align: center; padding: 40px 20px; }
    .gallery-item { min-width: 280px; height: 180px; }
    .gallery-btn.prev { left: 0; }
    .gallery-btn.next { right: 0; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .social-links { justify-content: center; }
    .footer-col { text-align: center; }
}