/* ============================================================================
   Top9deals - Design System CSS (Matching Original Angular App)
   ========================================================================== */

/* 1. CSS Variables */
:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --color-ink: #111827;
  --color-body: #4b5563;
  --color-mute: #9ca3af;
  --color-hairline: #e5e7eb;
  --color-canvas: #ffffff;
  --color-canvas-soft: #f9fafb;
  --color-brand: #f97316;
  --color-brand-deep: #ea580c;
  --color-brand-soft: #fff7ed;
  --color-link: #2563eb;
  --color-savings: #16a34a;
  --color-price: #111827;
  --color-mrp: #9ca3af;
  --color-warning: #f59e0b;
  --color-myntra: #ff3f6c;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;
  --shadow-e1: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-e2: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-e3: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-e4: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
}

/* 2. Base Resets */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background-color: var(--color-canvas-soft); color: var(--color-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; line-height: 1.5; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background-color: var(--color-brand); color: white; }

/* 3. Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.text-center { text-align: center; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* 4. Layout - Full width, tight padding */
.page-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 640px) {
  .container { padding: 0 16px; }
}

/* 5. Header */
.header {
  position: sticky; top: 0; z-index: 50;
  padding: 7px 0px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
}

.header-inner {
  display: flex; align-items: center; gap: 12px;
  height: 52px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

.logo {
  display: flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 700; color: var(--color-ink);
  text-decoration: none; flex-shrink: 0;
}

.logo-icon {
  width: 30px; height: 30px;
  background: var(--color-brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}

.logo-img {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.logo-text { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.logo-highlight { color: var(--color-brand); }

.search-bar {
  flex: 1; position: relative;
}

.search-input {
  width: 100%; height: 36px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-pill);
  background: var(--color-canvas-soft);
  font-size: 13px; color: var(--color-ink);
  outline: none; transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--color-mute); }
.search-input:focus { border-color: var(--color-brand); }

.search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: var(--color-mute); pointer-events: none;
}

.header-nav {
  display: flex; align-items: center; gap: 2px;
}

.nav-link {
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; color: var(--color-body);
  transition: all 0.15s; white-space: nowrap;
}
.nav-link:hover { color: var(--color-brand); }
.nav-link.active { color: var(--color-brand); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.wishlist-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; position: relative;
  border-radius: 50%; color: var(--color-body);
  transition: all 0.15s;
}
.wishlist-link:hover { color: var(--color-brand); }
.wishlist-count-badge {
  position: absolute; top: -2px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-brand); color: white;
  font-size: 10px; font-weight: 700; text-align: center;
  line-height: 18px; padding: 0 4px;
}

.mobile-menu-btn { display: none; width: 36px; height: 36px; color: var(--color-ink); }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .search-bar { max-width: 100%; }
}

/* 6. Hero Section - Full width, no side padding */
.hero-section {
  width: 100%;
  display: grid;
  grid-template-columns: 900px 1fr;
  gap: 10px;
  padding: 10px 12px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-carousel {
  position: relative; width: 100%;
  border-radius: var(--radius-xl); overflow: hidden;
  height: 225px;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
  color: white;
  border-radius: var(--radius-xl);
  z-index: 2;
  background: linear-gradient(135deg, #f43f5e 0%, #d946ef 30%, #a855f7 60%, #6366f1 100%);
}

/* Vibrant gradient backgrounds matching original */
.bg-brand-mesh {
  background: linear-gradient(135deg, #f43f5e 0%, #d946ef 30%, #a855f7 60%, #6366f1 100%) !important;
}

.hero-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 24px; font-weight: 800;
  margin-bottom: 4px; line-height: 1.15;
}

.hero-subtitle {
  font-size: 13px; opacity: 0.95; margin-bottom: 12px;
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: white; color: var(--color-ink);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  width: fit-content;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: var(--color-ink); }

.hero-dots {
  position: absolute; bottom: 10px; left: 28px;
  display: flex; gap: 5px; z-index: 3;
}

.hero-dot {
  width: 22px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { background: white; width: 28px; }

/* Hero Sidebar */
.hero-sidebar {
  display: flex; flex-direction: column; gap: 12px;
  align-self: stretch;
}

.social-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  color: white; text-decoration: none;
  transition: transform 0.2s;
  flex: 1;
  min-height: 0;
}
.social-card:hover { transform: translateY(-2px); color: white; }

.social-telegram { background: #0088cc; }
.social-whatsapp { background: #25d366; }

.social-card-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.social-card-text {
  display: flex; flex-direction: column; gap: 1px;
}
.social-card-text strong { font-size: 13px; font-weight: 700; }
.social-card-text span { font-size: 11px; opacity: 0.9; line-height: 1.3; }

@media (max-width: 1100px) {
  .hero-section { grid-template-columns: 1fr 200px; }
}
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
}
@media (max-width: 640px) {
  .hero-carousel { aspect-ratio: 1.6; min-height: 200px; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 22px; }
}

/* 7. Category Strip - Full width, no container padding */
.category-strip-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.category-strip {
  display: flex;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
  padding: 0 12px;
}

.category-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; flex: 1; min-width: 0;
  text-decoration: none; color: var(--color-ink);
}
.category-item:hover { color: var(--color-brand); }

.category-icon-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.category-item:hover .category-icon-circle {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px var(--color-brand-soft);
}

.category-icon-emoji { font-size: 32px; }

.category-label {
  font-size: 13px; font-weight: 500;
  text-align: center; line-height: 1.2;
}

/* 8. Section Headers */
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.section-title {
  font-size: 20px; font-weight: 800;
  color: var(--color-ink); line-height: 1.2; margin-bottom: 20px;
}

.section-subtitle {
  font-size: 13px; color: var(--color-mute);
  margin-top: 1px;
}

.section-view-all {
  font-size: 13px; font-weight: 500;
  color: var(--color-link);
  white-space: nowrap; flex-shrink: 0;
}
.section-view-all:hover { text-decoration: underline; }

/* 9. Product Card */
.product-card {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e2);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-e4); transform: translateY(-2px); }

.product-card-image {
  position: relative; width: 100%;
  height: 200px;
  background: var(--color-canvas);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.product-card-image img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-card-image img {
  transform: scale(1.03);
}
.product-card-link-img { display: none; }

.product-card-badge {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: 4px; flex-wrap: wrap;
}

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 7px; border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-goat { background: var(--color-savings); color: white; }
.badge-rare { background: var(--color-warning); color: white; }
.badge-discount { background: var(--color-brand); color: white; }
.marketplace-pill {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #fff;
}
.pill-amazon { background: #ff9900; }
.pill-flipkart { background: #2874f0; }
.pill-myntra { background: #ff3f6c; }
.pill-ajio { background: #2f4858; }
.pill-meesho { background: #9f2089; }
.pill-croma { background: #12a89d; }
.pill-default { background: var(--color-mute); }

/* 3 hover action buttons - hidden by default, appear on image hover */
.product-card-actions {
  position: absolute; bottom: 10px; right: 10px;
  display: flex; gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: all 0.15s;
}

/* Info button - white circle */
.action-info {
  background: white;
  color: var(--color-body);
}
.action-info:hover { color: var(--color-brand); transform: scale(1.1); }

/* Wishlist button - brand/orange circle */
.action-wishlist {
  background: var(--color-brand);
  color: white;
}
.action-wishlist:hover { background: var(--color-brand-deep); transform: scale(1.1); }
.action-wishlist.active {
  background: var(--color-brand-deep);
  color: white;
}

/* Share button - white circle */
.action-share {
  background: white;
  color: var(--color-body);
}
.action-share:hover { color: var(--color-brand); transform: scale(1.1); }

.product-card-body {
  padding: 12px;
  flex: 1; display: flex; flex-direction: column;
}

.product-card-title {
  font-size: 14px; font-weight: 500;
  color: var(--color-ink); line-height: 1.4;
  margin-bottom: 8px;
}

.product-card-views {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #6b7280;
  margin-bottom: 8px;
  padding: 5px 10px;
  background: #fff7ed;
  border-radius: var(--radius-md);
}
.product-card-views svg { color: #ea580c; flex-shrink: 0; }
.view-count { font-weight: 600; color: #ea580c; }

.product-card-price {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; margin-bottom: 4px;
}

.price-current {
  font-size: 16px; font-weight: 700;
  color: var(--color-price);
}

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

.price-discount {
  font-size: 13px; font-weight: 700;
  color: var(--color-savings);
  display: inline-flex; align-items: center; gap: 1px;
}

.discount-arrow { font-size: 10px; }

.product-card-footer {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-hairline);
}

.product-card-time {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--color-mute);
}

.marketplace-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
}

.badge-amazon { background: #ff9900; color: white; }
.badge-flipkart { background: #2874f0; color: white; }
.badge-myntra { background: #ff3f6c; color: white; }
.badge-ajio { background: #2f4858; color: white; }
.badge-meesho { background: #9f2089; color: white; }
.badge-croma { background: #12a89d; color: white; }

/* 10. Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 11. (reserved) */

/* 12. Footer */
.footer {
  background: var(--color-canvas);
  border-top: 1px solid var(--color-hairline);
  padding: 40px 0 0; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 30px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { grid-column: 1; }
.footer-desc { font-size: 13px; color: var(--color-body); margin-top: 10px; line-height: 1.6; max-width: 380px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-body);
  transition: all 0.15s;
}
.footer-social-icon:hover { border-color: var(--color-brand); color: var(--color-brand); }
.footer-col { }
.footer-title {
  font-size: 12px; font-weight: 600; color: var(--color-mute);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-link { display: block; font-size: 13px; color: var(--color-body); margin-bottom: 8px; }
.footer-link:hover { color: var(--color-brand); }

.footer-disclosure {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.footer-disclosure p { font-size: 12px; color: var(--color-body); line-height: 1.6; margin: 0; }
.footer-disclosure strong { color: var(--color-ink); }

.footer-bottom {
  border-top: 1px solid var(--color-hairline);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--color-mute);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--color-mute); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--color-brand); }

/* 13. FAQ - inside footer on home page */
.faq-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--color-hairline); }
.faq-title { font-size: 20px; font-weight: 700; color: var(--color-ink); margin-bottom: 16px; text-align: center; }
.faq-item { border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; padding: 14px 18px;
  background: var(--color-canvas); border: none;
  text-align: left; font-size: 14px; font-weight: 500;
  color: var(--color-ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 18px; color: var(--color-mute); }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 18px 14px; }
.faq-answer p { font-size: 13px; color: var(--color-body); line-height: 1.6; }

/* 14. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  border: none; cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-primary { background: var(--color-brand); color: white; }
.btn-primary:hover { background: var(--color-brand-deep); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--color-hairline); color: var(--color-ink); }
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn-lg { padding: 10px 24px; font-size: 14px; font-weight: 600; }

/* 15. Back to Top */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--color-brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(249,115,22,0.4);
  cursor: pointer; z-index: 40;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }

/* 16. Search Suggestions */
.search-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e4);
  max-height: 320px; overflow-y: auto; z-index: 100;
  display: none;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer;
  text-decoration: none; color: var(--color-ink);
  transition: background 0.15s;
}
.suggestion-item:hover { background: var(--color-canvas-soft); }
.suggestion-image { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-price { font-size: 12px; color: var(--color-savings); font-weight: 600; }

/* 17. Product Detail */
.product-detail { max-width: 1400px; margin: 0 auto; padding: 20px 16px; }
@media (min-width: 768px) {
  .product-detail { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; padding: 24px; }
}
.product-image { width: 100%; border-radius: var(--radius-xl); overflow: hidden; background: var(--color-canvas); box-shadow: var(--shadow-e2); }
.product-image img { width: 100%; height: auto; max-height: 400px; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-title { font-size: 22px; font-weight: 700; color: var(--color-ink); line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 6px; }
.stars { display: flex; gap: 2px; color: var(--color-warning); font-size: 14px; }
.star-empty { color: var(--color-hairline); }
.rating-count { font-size: 12px; color: var(--color-mute); }
.product-price-section { display: flex; align-items: baseline; gap: 10px; }
.product-price { font-size: 28px; font-weight: 700; color: var(--color-price); }
.product-original-price { font-size: 16px; color: var(--color-mrp); text-decoration: line-through; }
.product-discount { font-size: 15px; font-weight: 600; color: var(--color-savings); }
.discount-arrow { color: var(--color-success); font-size: 12px; }
.product-info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--color-hairline);
  font-size: 11px; color: var(--color-mute); cursor: help; flex-shrink: 0;
}
.product-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; width: 100%;
  background: var(--color-brand); color: white;
  border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.product-cta:hover { filter: brightness(0.9); color: white; }
.cta-amazon { background: #ff9900; }
.cta-amazon:hover { background: #e68a00; }
.cta-flipkart { background: #2874f0; }
.cta-flipkart:hover { background: #1e5fcc; }
.cta-myntra { background: #ff3f6c; }
.cta-myntra:hover { background: #e6355f; }
.cta-ajio { background: #2f4858; }
.cta-croma { background: #12a89d; }
.cta-meesho { background: #9f2089; }

/* 18. Accordion */
.accordion { border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 10px; }
.accordion-header {
  width: 100%; padding: 14px 18px;
  background: var(--color-canvas); border: none;
  text-align: left; font-size: 14px; font-weight: 500;
  color: var(--color-ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion-header::after { content: '+'; font-size: 18px; color: var(--color-mute); }
.accordion-item.active .accordion-header::after { content: '\2212'; }
.accordion-content { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.accordion-item.active .accordion-content { max-height: 500px; padding: 0 18px 14px; }
.accordion-content p { font-size: 13px; color: var(--color-body); line-height: 1.6; }

/* 18b. Product accordions (full-width below product) */
.product-accordions { margin-top: 32px; margin-bottom: 16px; }
.product-accordions .accordion + .accordion { margin-top: 12px; }

/* 28b. Section spacing for similar/recent */
.similar-section { margin-top: 40px; margin-bottom: 40px; }
.recent-section { margin-top: 40px; margin-bottom: 40px; }

/* 19. Filter Bar */
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 10px 0 20px; flex-wrap: wrap; }
.filter-select {
  height: 34px; padding: 0 28px 0 10px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas); font-size: 12px; color: var(--color-ink);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}

/* 19b. Deals Page Header */
.deals-page-header { padding: 24px 0 4px; }
.deals-page-title { font-size: 24px; font-weight: 800; color: var(--color-ink); margin-bottom: 4px; }
.deals-page-subtitle { font-size: 13px; color: var(--color-mute); margin-bottom: 8px; }

/* 20. Static Pages */
.static-page { max-width: 800px; margin: 0 auto; padding: 32px 16px; }
.static-page h1 { font-size: 28px; font-weight: 700; color: var(--color-ink); margin-bottom: 20px; }
.static-page h2 { font-size: 18px; font-weight: 600; color: var(--color-ink); margin: 24px 0 10px; }
.static-page p { font-size: 14px; color: var(--color-body); line-height: 1.7; margin-bottom: 12px; }
.static-page ul { margin: 10px 0; padding-left: 20px; }
.static-page li { font-size: 14px; color: var(--color-body); line-height: 1.7; margin-bottom: 6px; }

/* 21. 404 Page */
.not-found { text-align: center; padding: 80px 16px; }
.not-found-code { font-size: 64px; font-weight: 800; color: var(--color-brand); margin-bottom: 12px; }
.not-found-title { font-size: 22px; font-weight: 600; color: var(--color-ink); margin-bottom: 6px; }
.not-found-text { font-size: 14px; color: var(--color-mute); margin-bottom: 24px; }

/* 22. Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 12px 0; font-size: 12px; color: var(--color-mute); }
.breadcrumb a { color: var(--color-mute); }
.breadcrumb a:hover { color: var(--color-brand); }
.breadcrumb-current { color: var(--color-ink); font-weight: 500; }

/* 23. Spinner */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--color-hairline);
  border-top-color: var(--color-brand);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes oh-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* 24. Skeleton */
.skeleton-card { background: var(--color-canvas); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-image { width: 100%; aspect-ratio: 1; background: #e5e7eb; animation: oh-shimmer 1.4s ease-in-out infinite; background-size: 200% 100%; background-image: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 20%, #e5e7eb 40%, #e5e7eb 100%); }
.skeleton-body { padding: 10px; }
.skeleton-line { height: 12px; border-radius: var(--radius-sm); background: #e5e7eb; margin-bottom: 6px; }

/* 25. Empty State */
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--color-ink); margin-bottom: 6px; }
.empty-state-text { font-size: 13px; color: var(--color-mute); margin-bottom: 20px; }

/* 26. Wishlist */
.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 0 0;
}
.wishlist-header h1 { font-size: 22px; margin: 0; }
.wishlist-count { font-size: 13px; color: var(--color-mute); background: var(--color-canvas); padding: 4px 12px; border-radius: 20px; font-weight: 500; }

/* 27. Contact */
.contact-card { background: var(--color-canvas); border-radius: var(--radius-lg); box-shadow: var(--shadow-e2); padding: 20px; margin-bottom: 16px; }
.contact-card-title { font-size: 15px; font-weight: 600; color: var(--color-ink); margin-bottom: 6px; }
.contact-card-text { font-size: 13px; color: var(--color-body); line-height: 1.6; }

/* 28. Similar Products */
.similar-section { margin-top: 40px; }
.similar-list { display: flex; flex-direction: column; gap: 12px; }
.similar-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--color-canvas); border: 1px solid var(--color-hairline); border-radius: var(--radius-md);
  padding: 12px 16px; cursor: pointer; transition: border-color 0.2s;
}
.similar-row:hover { border-color: var(--color-brand); }
.similar-row-image { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: #fff; }
.similar-row-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.similar-row-info { flex: 1; min-width: 0; }
.similar-row-title { font-size: 14px; font-weight: 500; color: var(--color-ink); line-height: 1.4; margin: 0; }
.similar-row-price { text-align: right; flex-shrink: 0; }
.similar-row-original { font-size: 12px; color: var(--color-mute); text-decoration: line-through; display: block; }
.similar-row-current { font-size: 16px; font-weight: 700; color: var(--color-ink); }
.similar-row-discount { text-align: right; flex-shrink: 0; min-width: 60px; }
.similar-row-pct { font-size: 13px; font-weight: 600; color: var(--color-success); }
.similar-row-info-icon { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--color-hairline); font-size: 10px; color: var(--color-mute); text-align: center; line-height: 16px; margin-left: 6px; cursor: help; }
.similar-row-buy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap;
  transition: background-color 0.2s; border: none; cursor: pointer; flex-shrink: 0;
}
.similar-row-buy:hover { filter: brightness(0.9); }
.similar-row-buy svg { width: 14px; height: 14px; }

/* 29. Product Stats & Share */
.product-stats { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.product-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--color-mute); }
.product-stat svg { width: 14px; height: 14px; color: var(--color-mute); }
.product-stars { display: inline-flex; gap: 1px; }
.star-filled { color: #f59e0b; font-size: 14px; }
.star-empty { color: #d1d5db; font-size: 14px; }

.product-image { position: relative; }
.product-image-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: all 0.2s;
  color: var(--color-mute);
}
.product-image-wishlist:hover { background: #fff; transform: scale(1.1); }
.product-image-wishlist.active { color: var(--color-brand); background: #fff7ed; }

.product-savings {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius-sm);
  padding: 10px 16px; margin-bottom: 16px; width: 100%;
  font-size: 13px; font-weight: 500; color: #166534;
}
.product-savings svg { width: 16px; height: 16px; color: #16a34a; flex-shrink: 0; }

.product-share-section { margin-top: 24px; }
.product-share-label { display: block; font-size: 11px; font-weight: 700; color: var(--color-mute); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.product-share-icons { display: flex; gap: 16px; }
.product-share-icon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 60px; text-decoration: none;
}
.product-share-icon svg {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f3f4f6; padding: 10px;
  transition: background-color 0.2s, transform 0.2s;
}
.product-share-icon span { font-size: 10px; color: var(--color-body); text-align: center; }
.product-share-icon:hover svg { background: #e5e7eb; transform: scale(1.1); }

/* 29. Deal Finder Page */
.finder-categories {
  display: flex; gap: 12px; padding: 20px 0 12px;
  overflow-x: auto; scrollbar-width: none;
}
.finder-categories::-webkit-scrollbar { display: none; }
.finder-cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 103px; text-decoration: none; color: var(--color-ink);
  flex-shrink: 0; cursor: pointer;
}
.finder-cat-item:hover { color: var(--color-brand); }
.finder-cat-item.active .finder-cat-icon {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}
.finder-cat-icon {
  width: 75px; height: 75px; border-radius: 50%;
  background: #f9fafb; border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; transition: all 0.2s;
}
.finder-cat-item:hover .finder-cat-icon {
  border-color: var(--color-brand);
}
.finder-cat-label {
  font-size: 13px; font-weight: 500; text-align: center;
  line-height: 1.3; max-width: 76px;
}

.finder-filter-wrapper {
  background: white; border-radius: 12px; padding: 7px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 16px;
}
.finder-filter-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.finder-section-title {
  font-size: 22px; font-weight: 800; color: var(--color-ink); margin: 0;
}
.finder-view-all {
  font-size: 13px; font-weight: 500; color: var(--color-brand);
  text-decoration: none;
}
.finder-view-all:hover { text-decoration: underline; }

.finder-filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0;
}
.finder-filter-left { display: flex; align-items: baseline; gap: 5px; }
.finder-total-num { font-size: 15px; font-weight: 700; color: var(--color-ink); }
.finder-total-label { font-size: 14px; color: var(--color-mute); }
.finder-filter-right { display: flex; align-items: center; gap: 8px; }
.finder-filter-label { font-size: 13px; color: var(--color-mute); }
.finder-select {
  height: 32px; padding: 0 28px 0 10px;
  border: 1px solid var(--color-hairline); border-radius: var(--radius-md);
  background: white; font-size: 13px; color: var(--color-ink);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}

/* 30. Mobile Menu - Hamburger / Close toggle */
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.active .icon-hamburger { display: none; }
.mobile-menu-btn.active .icon-close { display: block; }

/* 31. Mobile Menu Dropdown Panel */
.mobile-menu-panel {
  display: none;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
  padding: 8px 0 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: sticky; top: 52px; z-index: 49;
}
.mobile-menu-panel.active { display: block; }

.mobile-menu-nav {
  display: flex; flex-direction: column;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--color-hairline);
  margin-bottom: 12px;
}
.mobile-menu-nav a {
  display: block; padding: 10px 0;
  font-size: 15px; font-weight: 500; color: var(--color-ink);
  text-decoration: none; border-bottom: 1px solid var(--color-canvas-soft);
}
.mobile-menu-nav a:last-child { border-bottom: none; }
.mobile-menu-nav a:hover { color: var(--color-brand); }

.mobile-category-strip {
  display: flex; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 16px;
}
.mobile-category-strip::-webkit-scrollbar { display: none; }
.mobile-category-strip .category-item {
  flex: 0 0 auto; min-width: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--color-ink);
}
.mobile-category-strip .category-icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%; background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  display: flex; align-items: center; justify-content: center;
}
.mobile-category-strip .category-icon-emoji { font-size: 26px; }
.mobile-category-strip .category-label {
  font-size: 11px; font-weight: 500; text-align: center;
  max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 32. Mobile Responsive */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

  .search-bar { max-width: 100%; }

  .hero-section { grid-template-columns: 1fr; padding: 8px 8px 0; gap: 8px; }
  .hero-sidebar { display: none; }
  .hero-carousel { height: 200px; }
  .hero-content { padding: 16px; }
  .hero-title { font-size: 20px; }
  .hero-subtitle { font-size: 12px; }
  .hero-cta { padding: 6px 16px; font-size: 12px; }
  .hero-dots { left: 16px; bottom: 8px; }

  .category-strip-wrapper { padding: 12px 0; }
  .category-strip {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 0 8px;
    scroll-snap-type: x mandatory;
  }
  .category-item {
    flex: 0 0 auto;
    min-width: 72px;
    scroll-snap-align: start;
  }
  .category-icon-circle { width: 56px; height: 56px; }
  .category-icon-emoji { font-size: 26px; }
  .category-label { font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .container { padding: 0 8px; }

  .product-card-image { height: 150px; padding: 8px; }
  .product-card-body { padding: 8px; }
  .product-card-title { font-size: 12px; margin-bottom: 4px; }
  .price-current { font-size: 14px; }
  .price-original { font-size: 11px; }
  .price-discount { font-size: 11px; }
  .product-card-views { font-size: 11px; padding: 4px 8px; margin-bottom: 4px; }
  .product-card-actions { opacity: 1; transform: translateY(0); }
  .product-action-btn { width: 32px; height: 32px; }
  .product-action-btn svg { width: 14px; height: 14px; }

  .section-title { font-size: 17px; margin-bottom: 12px; }

  .footer { padding: 24px 0 0; margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px; }

  .product-detail { padding: 12px 8px; }
  .filter-bar { gap: 6px; }
  .filter-select { height: 30px; font-size: 11px; }

  /* Wishlist - mobile */
  .wishlist-header { padding: 12px 0 0; margin-bottom: 12px; }
  .wishlist-header h1 { font-size: 18px; }
  .wishlist-count { font-size: 12px; padding: 3px 10px; }
  .empty-state { padding: 32px 16px; }
  .empty-state-icon { font-size: 36px; }
  .empty-state-title { font-size: 15px; }
  .empty-state-text { font-size: 12px; }

  /* Similar Products - mobile */
  .similar-row {
    flex-wrap: wrap; gap: 10px; padding: 10px 12px;
  }
  .similar-row-image { width: 60px; height: 60px; }
  .similar-row-info { flex: 1; min-width: 0; order: 1; }
  .similar-row-price { order: 2; text-align: left; flex-shrink: 0; }
  .similar-row-discount { display: none; }
  .similar-row-buy {
    order: 3; width: 100%; justify-content: center;
    padding: 10px 16px; margin-top: 4px;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
