:root {
    --primary: #6c63ff;
    --primary-dark: #5b52e8;
    --primary-light: #8b83ff;
    --secondary: #1e1b4b;
    --accent: #f59e0b;
    --sale: #ef4444;
    --success: #22c55e;
    --bg: #f8f7ff;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(108, 99, 255, 0.08);
    --shadow-hover: 0 8px 32px rgba(108, 99, 255, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg: #0f0e1a;
    --card-bg: #1a1929;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border: #2d2b4e;
    --secondary: #6c63ff;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== HEADER ===== */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(108,99,255,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.search-box {
    flex: 1;
    position: relative;
    max-width: 360px;
}

.search-box input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
}

.btn-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #6c63ff 0%, #8b5cf6 50%, #4f46e5 100%);
    padding: 60px 16px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 12px;
    position: relative;
}

.hero h1 span { color: #fbbf24; }

.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat { text-align: center; }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CATEGORIES ===== */
.categories-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar { display: none; }

.categories-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px 0;
    white-space: nowrap;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.product-thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #6c63ff22, #8b5cf622);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-thumbnail img {
    transform: scale(1.05);
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sale);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-share {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-share:hover { background: var(--primary); color: #fff; }

.product-info {
    padding: 14px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star { color: #d1d5db; font-size: 14px; }
.star.filled { color: var(--accent); }
.star.half { color: var(--accent); opacity: 0.6; }

.rating-count { font-size: 12px; color: var(--text-muted); }

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-sale {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.price-regular {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.btn-buy {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-buy:hover { background: var(--primary-dark); transform: scale(1.05); }

.btn-wishlist {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-wishlist:hover,
.btn-wishlist.liked { color: var(--sale); border-color: var(--sale); background: #fee2e2; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-full { width: 100%; justify-content: center; }

.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: 10px; }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

.product-detail-header {
    margin-bottom: 24px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(108,99,255,0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-detail h1 {
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sale);
    color: #fff;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.price-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.price-display .original { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.price-display .current { font-size: 36px; font-weight: 800; color: var(--text); }


  /* ===== PRODUCT HERO BANNER ===== */
  .product-hero-banner {
      width: 100%;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 20px;
      background: linear-gradient(135deg, #6c63ff 0%, #3b3ba8 100%);
      min-height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
  }

  .product-hero-banner .hero-banner-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      border-radius: var(--radius);
  }

  .product-hero-placeholder {
      background: linear-gradient(135deg, #6c63ff 0%, #3b3ba8 60%, #1e1b4b 100%);
  }

  .product-short-desc {
      font-size: 15px;
      color: var(--text-muted);
      margin-bottom: 16px;
      line-height: 1.6;
  }

  /* ===== PURCHASE BOX ===== */
.purchase-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.purchase-box h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-row input { flex: 1; }

.btn-apply {
    padding: 12px 18px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}

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

.secure-badge {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.secure-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== SCREENSHOTS ===== */
.screenshots-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.screenshots-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    justify-content: space-between;
}

.screenshots-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.screenshot-img {
    width: 150px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.screenshot-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s;
}

.screenshot-img:hover img { transform: scale(1.03); }

/* ===== DEMO APK ===== */
.demo-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.demo-info { display: flex; align-items: center; gap: 12px; }
.demo-icon { font-size: 32px; }
.demo-text h4 { font-size: 16px; margin-bottom: 4px; }
.demo-text p { font-size: 13px; color: var(--text-muted); }

.btn-download {
    background: var(--success);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-download:hover { background: #16a34a; transform: scale(1.05); }

/* ===== REVIEWS ===== */
.reviews-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ratings-overview {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.rating-big {
    text-align: center;
    min-width: 80px;
}

.rating-big .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.rating-bars { flex: 1; }

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
}

.bar-row span:first-child { width: 10px; text-align: right; color: var(--text-muted); }
.star-mini { font-size: 10px; color: var(--accent); }

.bar-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s;
}

.bar-count { width: 20px; color: var(--text-muted); }

/* Write Review */
.write-review {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.write-review h4 { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.write-review > p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.star-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.star-input {
    font-size: 28px;
    cursor: pointer;
    color: var(--border);
    transition: color 0.15s;
}

.star-input:hover,
.star-input.selected { color: var(--accent); }

.review-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-body { flex: 1; }

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.reviewer-name { font-weight: 600; font-size: 15px; }

.verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(34,197,94,0.1);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
}

.review-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.review-text { font-size: 14px; color: var(--text); margin-top: 4px; }

/* ===== SIDEBAR MENU ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.open { display: block; opacity: 1; }

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    z-index: 201;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar.open { left: 0; }

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo { font-size: 20px; font-weight: 800; color: var(--primary); }
.btn-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

.sidebar-nav { padding: 16px 0; }
.sidebar-section { padding: 16px 20px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    transition: all 0.2s;
    font-size: 15px;
}

.sidebar-link:hover { background: rgba(108,99,255,0.08); color: var(--primary); }

.sidebar-socials {
    display: flex;
    gap: 12px;
    padding: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
    font-size: 18px;
}

.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: bounce-wa 2s ease-in-out infinite;
    transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.1); animation: none; }

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

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: var(--card-bg);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal h3 { margin-bottom: 20px; font-size: 18px; }

/* ===== PAGES ===== */
.page {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 16px 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.card h1, .card h2 { margin-bottom: 16px; }
.card p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(108,99,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info { flex: 1; }
.contact-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-info span { font-size: 14px; color: var(--text-muted); }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alert-success { background: rgba(34,197,94,0.1); color: #166534; border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(108,99,255,0.1); color: #4338ca; border: 1px solid rgba(108,99,255,0.2); }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 16px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    box-shadow: var(--shadow-hover);
    max-width: 300px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--sale); }

/* ===== UPI PAYMENT ===== */
.upi-box {
    text-align: center;
    padding: 20px;
}

.upi-qr {
    max-width: 200px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.upi-id {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: monospace;
    font-size: 16px;
    margin: 8px 0 16px;
    cursor: pointer;
    user-select: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-results.show { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ===== FOOTER ===== */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 32px 16px;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ===== IMAGE LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius-sm); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-stats { gap: 20px; }
    .stat-value { font-size: 22px; }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hamburger { display: flex; }
    .search-box { display: none; }
    .demo-box { flex-direction: column; text-align: center; }
    .ratings-overview { flex-direction: column; }
    .header-actions .btn-icon:not(:last-child) { display: none; }
    .price-display .current { font-size: 28px; }
}

@media (min-width: 769px) {
    .search-box { display: block; }
}

/* ===== NOTIFICATION PROMPT ===== */
.notification-prompt {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-hover);
    z-index: 150;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification-prompt p { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.notification-prompt-actions { display: flex; gap: 8px; }
.btn-notify { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.btn-notify.yes { background: var(--primary); color: #fff; }
.btn-notify.no { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.close-prompt { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 18px; flex-shrink: 0; }

/* ===== ADMIN PREVIEW NOTICE ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 16px;
}

.back-link:hover { text-decoration: underline; }

/* No results */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
