/* ==============================================================================
   NPTOR STORE — DEDICATED E-COMMERCE SHOPPING STYLES
   ============================================================================== */

/* Reset & Container */
body.store-dedicated-layout {
  background-color: var(--nptor-bg, #f8fafc);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.store-dedicated-layout .site-sidebar,
body.store-route .site-sidebar {
  display: none !important;
}

body.store-route .main-area {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

body.store-route .site-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.store-app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.store-main-container {
  flex-grow: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem 1.5rem;
  box-sizing: border-box;
}

.store-viewport {
  width: 100%;
  min-width: 0;
}

/* ==============================================================================
   DEDICATED STORE HEADER (AMAZON / FLIPKART INSPIRED)
   ============================================================================== */

.store-dedicated-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Primary Top Navigation Bar */
.store-header-primary {
  background: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.5rem;
}

.store-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Header Left: Brand & Back to Learning */
.store-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
}

.store-brand:hover {
  opacity: 0.95;
}

.store-brand-logo {
  height: 34px;
  width: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.store-brand-titles {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.store-brand-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.store-brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.store-back-learning {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.store-back-learning:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

/* Header Center: Wide Prominent Search */
.store-header-center {
  flex-grow: 1;
  max-width: 680px;
  margin: 0 0.5rem;
}

.store-global-search {
  width: 100%;
}

.store-global-search .field.has-addons {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.store-search-cat-control .select select {
  height: 40px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 160px;
}

.store-global-search .input {
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  font-size: 0.88rem;
  padding-left: 0.9rem;
}

.store-global-search .input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.store-search-btn {
  height: 40px;
  width: 48px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #2563eb;
  transition: background 0.15s ease;
}

.store-search-btn:hover {
  background: #1d4ed8 !important;
}

/* Header Right: Account, Theme, Cart */
.store-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.store-theme-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-theme-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.store-user-nav {
  display: flex;
  align-items: center;
}

.store-user-link {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.store-user-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.store-login-btn {
  font-weight: 600;
  border-radius: 6px;
}

/* Cart Shortcut */
.store-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
}

.store-cart-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.store-cart-icon-box {
  position: relative;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.store-cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 9999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.store-cart-text {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Secondary Sub-Navigation Strip (Category Strip) */
.store-header-subnav {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1.5rem;
}

.store-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.store-subnav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.store-subnav-item {
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.store-subnav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.store-subnav-item.is-active {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.store-subnav-promo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.promo-sep {
  opacity: 0.4;
}

/* ==============================================================================
   STORE HERO BANNER (PROMOTIONAL SECTION)
   ============================================================================== */

.store-hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
  border-radius: 14px;
  color: #ffffff;
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.2);
  overflow: hidden;
  position: relative;
}

.store-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.store-hero-text {
  max-width: 640px;
}

.store-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.store-hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.store-hero-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: #e0e7ff;
  margin-bottom: 1.5rem;
}

.store-hero-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.store-hero-visual {
  flex-shrink: 0;
}

.store-hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1.4rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.stack-card:hover {
  transform: translateX(-4px);
}

.stack-card i {
  font-size: 1.25rem;
  color: #93c5fd;
}

/* ==============================================================================
   SHOP BY CATEGORY TILES
   ============================================================================== */

.store-categories-section {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.store-categories-section .title {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem !important;
  font-weight: 700;
}

.store-categories-section .title + .subtitle,
.store-categories-section .subtitle {
  margin-top: 0.25rem !important;
  font-size: 0.95rem;
  color: var(--store-text-muted, #64748b);
}

.store-category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.store-cat-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #3b82f6;
}

.cat-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-tile-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-tile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.cat-tile-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==============================================================================
   PRODUCT CATALOG CONTROLS & GRID
   ============================================================================== */

.store-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--nptor-border, #e2e8f0);
}

.store-catalog-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.store-catalog-title-group .title,
.store-catalog-title-group h2.store-catalog-title {
  margin: 0 !important;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nptor-text, #1e293b);
  display: flex;
  align-items: center;
}

.store-catalog-title-group .subtitle,
.store-catalog-title-group p.store-catalog-count {
  margin: 0 !important;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--nptor-text-muted, #64748b);
}

.store-toolbar-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.store-search-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.store-search-form .field.has-addons {
  display: flex;
  align-items: stretch;
  margin-bottom: 0 !important;
}

.store-cat-select select {
  font-weight: 500;
  max-width: 170px;
  height: 36px;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.store-search-form .input {
  min-width: 180px;
  height: 36px;
  border-radius: 0 !important;
}

.store-search-form .button {
  height: 36px;
}

.store-search-form .button.is-primary {
  border-radius: 0 !important;
}

.store-search-form .control:last-child .button {
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}

.store-search-form .control:first-child .select select {
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
}

/* Category Filter Pills (Dedicated Row) */
.store-filter-pills-row {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.15rem 0;
  clear: both;
}

.store-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.25rem 0.1rem 0.5rem 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.store-filter-pills::-webkit-scrollbar {
  height: 4px;
}

.store-filter-pills::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.store-pill:hover {
  color: #1e40af;
  background: #e0e7ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.store-pill.is-active {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.store-pill.is-subpill {
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
}

/* Active Filter Badges */
.store-active-filter-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(241, 245, 249, 0.7);
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Product Grid & Cards */
.store-product-grid {
  margin-top: 0.25rem;
}

.store-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  background: #ffffff;
}

.store-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.store-card-thumb {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border-bottom: 1px solid #f1f5f9;
}

.store-product-card .card-content {
  flex-grow: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.store-product-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.store-product-title a:hover {
  color: #2563eb;
}

.store-price-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.store-product-card .card-footer {
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.store-product-card .card-footer-item {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.store-product-card .card-footer-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ==============================================================================
   DARK MODE OVERRIDES
   ============================================================================== */

html[data-theme="dark"] body.store-dedicated-layout,
:root[data-theme="dark"] body.store-dedicated-layout {
  background-color: #0b1120;
}

html[data-theme="dark"] .store-header-primary,
:root[data-theme="dark"] .store-header-primary {
  background: #090e1a;
  border-bottom: 1px solid #1e293b;
}

html[data-theme="dark"] .store-header-subnav,
:root[data-theme="dark"] .store-header-subnav {
  background: #111827;
  border-bottom: 1px solid #1e293b;
}

html[data-theme="dark"] .store-hero-banner,
:root[data-theme="dark"] .store-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
  border: 1px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .store-cat-tile,
:root[data-theme="dark"] .store-cat-tile {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .store-cat-tile:hover,
:root[data-theme="dark"] .store-cat-tile:hover {
  border-color: #3b82f6;
  background: #243046;
}

html[data-theme="dark"] .cat-tile-name,
:root[data-theme="dark"] .cat-tile-name {
  color: #f8fafc;
}

html[data-theme="dark"] .cat-tile-icon,
:root[data-theme="dark"] .cat-tile-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .store-catalog-header,
:root[data-theme="dark"] .store-catalog-header {
  border-bottom-color: #334155;
}

html[data-theme="dark"] .store-catalog-title-group .title,
html[data-theme="dark"] .store-catalog-title-group h2.store-catalog-title,
:root[data-theme="dark"] .store-catalog-title-group .title,
:root[data-theme="dark"] .store-catalog-title-group h2.store-catalog-title {
  color: #f8fafc;
}

html[data-theme="dark"] .store-catalog-title-group .subtitle,
html[data-theme="dark"] .store-catalog-title-group p.store-catalog-count,
:root[data-theme="dark"] .store-catalog-title-group .subtitle,
:root[data-theme="dark"] .store-catalog-title-group p.store-catalog-count {
  color: #94a3b8;
}

html[data-theme="dark"] .store-pill,
:root[data-theme="dark"] .store-pill {
  color: #cbd5e1;
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .store-pill:hover,
:root[data-theme="dark"] .store-pill:hover {
  color: #93c5fd;
  background: #334155;
  border-color: #475569;
}

html[data-theme="dark"] .store-pill.is-active,
:root[data-theme="dark"] .store-pill.is-active {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #3b82f6 !important;
}

html[data-theme="dark"] .store-active-filter-tags,
:root[data-theme="dark"] .store-active-filter-tags {
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
}

html[data-theme="dark"] .store-cat-select select,
:root[data-theme="dark"] .store-cat-select select {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

html[data-theme="dark"] .store-product-card,
:root[data-theme="dark"] .store-product-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .store-product-card:hover,
:root[data-theme="dark"] .store-product-card:hover {
  border-color: #475569;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .store-product-title a,
:root[data-theme="dark"] .store-product-title a {
  color: #f8fafc;
}

html[data-theme="dark"] .store-product-title a:hover,
:root[data-theme="dark"] .store-product-title a:hover {
  color: #60a5fa;
}

html[data-theme="dark"] .store-card-thumb,
:root[data-theme="dark"] .store-card-thumb {
  background: #0f172a !important;
  border-bottom-color: #334155;
}

html[data-theme="dark"] .store-product-card .card-footer,
:root[data-theme="dark"] .store-product-card .card-footer {
  background: #1e293b;
  border-top-color: #334155;
}

html[data-theme="dark"] .store-product-card .card-footer-item,
:root[data-theme="dark"] .store-product-card .card-footer-item {
  color: #93c5fd;
}

html[data-theme="dark"] .store-product-card .card-footer-item:hover,
:root[data-theme="dark"] .store-product-card .card-footer-item:hover {
  background: #334155;
  color: #ffffff;
}

html[data-theme="dark"] .store-empty-box,
:root[data-theme="dark"] .store-empty-box {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
}

/* ==============================================================================
   RESPONSIVE BEHAVIOR
   ============================================================================== */

@media (max-width: 900px) {
  .store-header-inner {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .store-header-center {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .store-catalog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .store-toolbar-controls,
  .store-search-form,
  .store-search-form .field.has-addons {
    width: 100%;
  }

  .store-search-form .input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .store-main-container {
    padding: 1rem 0.75rem 2.5rem 0.75rem;
  }

  .store-hero-banner {
    padding: 1.5rem 1.25rem;
  }

  .store-hero-perks {
    gap: 0.4rem;
  }

  .perk-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }

  .store-header-primary {
    padding: 0.65rem 0.85rem;
  }

  .store-header-subnav {
    padding: 0 0.85rem;
  }
}


/* ==========================================================================
   Store Product Detail Page & Media Styles
   ========================================================================== */

.store-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.store-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.25rem;
}

.store-breadcrumb a {
  color: #64748b;
  font-weight: 500;
}

.store-breadcrumb a:hover {
  color: #1e3a8a;
}

/* Gallery & Media */
.store-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: sticky;
  top: 90px;
}

.store-main-image-wrap {
  width: 100%;
  min-height: 280px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}

.store-main-image {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.store-main-image:hover {
  transform: scale(1.02);
}

.store-image-fallback {
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border: 2px dashed #cbd5e1;
  padding: 3rem 1.5rem;
  text-align: center;
}

.store-fallback-icon-wrap {
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.store-fallback-badge {
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
  font-size: 0.82rem;
}

.store-thumbnails-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  overflow-x: auto;
  padding: 0.5rem 0 0.25rem 0;
}

.store-thumbnail-btn {
  width: 58px;
  height: 58px;
  padding: 2px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.store-thumbnail-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.store-thumbnail-btn.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.store-thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Card Catalog Thumb */
.store-card-img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

/* Title & Seller Group (Resolves Overlap Defect) */
.store-title-seller-group {
  margin-bottom: 1.25rem;
}

.store-title-seller-group .title {
  margin-bottom: 0.5rem !important;
}

.store-product-detail-title {
  color: #0f172a;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.store-product-seller-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.store-verified-pill {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.store-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Buy Box Card */
.store-buy-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.store-buy-box .card-content {
  padding: 1.5rem;
}

.store-price-tag {
  color: #1e3a8a !important;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
}

.store-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.store-trust-item {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* Description Card & Rendered Markdown */
.store-description-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.store-description-card .card-content {
  padding: 1.75rem;
}

.store-section-heading {
  color: #0f172a;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.store-rendered-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.store-rendered-description h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.store-rendered-description h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.15rem;
  margin-bottom: 0.4rem;
}

.store-rendered-description h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.store-rendered-description p {
  margin-bottom: 0.85rem;
}

.store-rendered-description strong {
  color: #0f172a;
  font-weight: 600;
}

.store-desc-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.store-desc-list li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

/* Dark Mode Overrides for Detail Page */
[data-theme="dark"] .store-gallery-card,
[data-theme="dark"] .store-buy-box,
[data-theme="dark"] .store-description-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .store-main-image-wrap {
  background: #0f172a;
}

[data-theme="dark"] .store-image-fallback {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
}

[data-theme="dark"] .store-fallback-icon-wrap {
  color: #64748b;
}

[data-theme="dark"] .store-fallback-badge {
  background: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .store-thumbnail-btn {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .store-thumbnail-btn.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa;
}

[data-theme="dark"] .store-product-detail-title {
  color: #f8fafc;
}

[data-theme="dark"] .store-product-seller-line {
  color: #94a3b8;
}

[data-theme="dark"] .store-product-seller-line strong {
  color: #f1f5f9;
}

[data-theme="dark"] .store-verified-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .store-price-tag {
  color: #60a5fa !important;
}

[data-theme="dark"] .store-trust-grid,
[data-theme="dark"] .store-section-heading {
  border-color: #334155;
}

[data-theme="dark"] .store-trust-item {
  color: #94a3b8;
}

[data-theme="dark"] .store-section-heading {
  color: #f8fafc;
}

[data-theme="dark"] .store-rendered-description {
  color: #cbd5e1;
}

[data-theme="dark"] .store-rendered-description h2,
[data-theme="dark"] .store-rendered-description h3,
[data-theme="dark"] .store-rendered-description strong {
  color: #f8fafc;
}

[data-theme="dark"] .store-rendered-description h4 {
  color: #93c5fd;
}

@media (max-width: 768px) {
  .store-gallery-card {
    position: static;
    margin-bottom: 1.5rem;
  }

  .store-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}


/* ==============================================================================
   STORE MARKETPLACE ADVANCED FEATURES (VARIANTS, GALLERY, REVIEWS, TRACKING)
   ============================================================================== */

/* 1. Header Action Links (Orders, Wishlist) */
.store-header-action-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.store-header-action-link:hover {
  color: #ffffff;
}

/* 2. Gallery Video & Zoom */
.store-main-media-wrap {
  position: relative;
  width: 100%;
}

.store-video-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 0.75rem;
}

.store-video-player {
  width: 100%;
  max-height: 420px;
  display: block;
}

.store-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.85;
}

.store-main-image-wrap {
  cursor: zoom-in;
  position: relative;
}

.store-video-thumb-btn {
  position: relative;
  background: #0f172a;
}

.store-video-thumb-btn .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.9rem;
  background: rgba(37, 99, 235, 0.85);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-lightbox-image-wrap img {
  max-height: 85vh;
  max-width: 90vw;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 3. Configurable Variant Selectors */
.store-variant-selectors {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.store-attribute-group:last-child {
  margin-bottom: 0 !important;
}

.store-attr-pill {
  min-width: 44px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.store-attr-pill.is-active {
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  font-weight: 600;
}

/* 4. Wishlist Buttons */
.store-card-thumb.pos-relative {
  position: relative;
}

.store-card-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  z-index: 2;
}

.store-card-wishlist-btn:hover {
  transform: scale(1.1);
}

.store-wishlist-btn {
  font-weight: 500;
}

/* 5. Rating Stars & Distribution */
.store-stars {
  letter-spacing: 1px;
}

.store-dist-row .progress {
  height: 0.55rem;
}

.store-star-picker {
  display: inline-flex;
  gap: 0.25rem;
}

.star-picker-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.35rem;
  transition: transform 0.1s ease;
}

.star-picker-btn:hover {
  transform: scale(1.2);
}

/* 6. Review Images & Lightbox Click */
.store-review-thumb-btn {
  background: none;
  border: 1px solid #e2e8f0;
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5rem;
  display: inline-block;
}

.store-review-thumb-btn img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.store-mini-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.store-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.store-mini-thumb {
  height: 110px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-mini-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.store-mini-title {
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

/* 7. Order Tracking Status Timeline */
.store-order-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
}

.timeline-step.is-done .timeline-circle {
  background: #10b981;
  color: #ffffff;
}

.timeline-step.is-active .timeline-circle {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.timeline-step.is-done .timeline-label,
.timeline-step.is-active .timeline-label {
  color: #0f172a;
  font-weight: 600;
}

.timeline-line {
  flex-grow: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 0.5rem;
  margin-bottom: 1.25rem;
}

.timeline-line.is-done {
  background: #10b981;
}

.border-top-light {
  border-top: 1px solid #f1f5f9;
}

.border-bottom-light {
  border-bottom: 1px solid #f1f5f9;
}

/* ==============================================================================
   DARK MODE ADAPTATIONS
   ============================================================================== */
[data-theme="dark"] .store-variant-selectors,
[data-theme="dark"] .store-order-timeline,
[data-theme="dark"] .store-mini-thumb {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .store-card-wishlist-btn {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .store-mini-card {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .store-mini-title {
  color: #f8fafc;
}

[data-theme="dark"] .timeline-circle {
  background: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .timeline-step.is-done .timeline-circle {
  background: #059669;
  color: #ffffff;
}

[data-theme="dark"] .timeline-step.is-active .timeline-circle {
  background: #3b82f6;
  color: #ffffff;
}

[data-theme="dark"] .timeline-label {
  color: #94a3b8;
}

[data-theme="dark"] .timeline-step.is-done .timeline-label,
[data-theme="dark"] .timeline-step.is-active .timeline-label {
  color: #f8fafc;
}

[data-theme="dark"] .timeline-line {
  background: #334155;
}

[data-theme="dark"] .timeline-line.is-done {
  background: #059669;
}

[data-theme="dark"] .border-top-light {
  border-top-color: #334155;
}

[data-theme="dark"] .border-bottom-light {
  border-bottom-color: #334155;
}

[data-theme="dark"] .store-review-thumb-btn {
  border-color: #334155;
}
