/* ==========================================================================
   Aariv Technologies - Components Store Stylesheet (Clean Modern Edition)
   ========================================================================== */

:root {
  --store-primary: #1e40af;
  --store-primary-hover: #1d4ed8;
  --store-accent: #0284c7;
  --store-accent-light: #f0f9ff;
  --store-bg: #f8fafc;
  --store-surface: #ffffff;
  --store-border: #e2e8f0;
  --store-border-subtle: #f1f5f9;
  --store-text: #0f172a;
  --store-text-muted: #64748b;
  --store-text-light: #94a3b8;
  --store-success: #16a34a;
  --store-success-bg: #f0fdf4;
  --store-warning: #d97706;
  --store-warning-bg: #fffbeb;
  --store-danger: #dc2626;
  --store-danger-bg: #fef2f2;
  --store-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --store-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --store-shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --store-radius: 14px;
  --store-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-page {
  background-color: var(--store-bg);
  min-height: 100vh;
  padding-bottom: 6rem;
  color: var(--store-text);
}

/* Navbar Global Navigation Layout Guarantee */
.navbar .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  list-style: none !important;
  margin-left: auto !important;
  flex-wrap: nowrap !important;
}

.navbar .nav-links li {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.navbar .nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.65rem !important;
  line-height: 1.2 !important;
}

.navbar .nav-links li:last-child a {
  padding: 0.5rem 1.35rem !important;
  border-radius: 50px !important;
}

@media (max-width: 1320px) and (min-width: 1025px) {
  .navbar .nav-links {
    gap: 0.15rem !important;
  }
  .navbar .nav-links a {
    font-size: 0.81rem !important;
    padding: 0.45rem 0.45rem !important;
  }
}

/* Announcement Banner */
.store-announcement {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-bottom: 1px solid #1e293b;
}

.store-announcement .badge-pill {
  background: #2563eb;
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Store Hero (High-Tech Engineering Theme) */
.store-hero {
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 60%, #030712 100%);
  color: #ffffff;
  padding: 3.75rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}

.store-hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.store-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.store-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.store-hero h1 span {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-hero p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.store-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.store-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: var(--store-transition);
}

.store-perk-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.store-perk-item i {
  color: #38bdf8;
  font-size: 0.85rem;
}

/* Store Sticky Toolbar */
.store-toolbar {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--store-border);
  padding: 0.9rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.store-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Search Box with Inside Clear 'X' Button */
.store-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.store-search-box input {
  width: 100%;
  padding: 0.72rem 2.8rem 0.72rem 2.75rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.92rem;
  color: var(--store-text);
  outline: none;
  transition: var(--store-transition);
  box-sizing: border-box;
}

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

.store-search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.92rem;
  pointer-events: none;
}

.btn-clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all 0.15s ease;
}

.btn-clear-search:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: translateY(-50%) scale(1.1);
}

/* Live Search Autocomplete & Quick Suggestions Dropdown */
.store-search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 320px;
  max-width: 580px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--store-border);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 100;
  overflow: hidden;
  animation: slideDownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ac-header span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
}

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

.ac-item:hover, .ac-item.selected {
  background: #f0f9ff;
}

.ac-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.ac-info {
  flex: 1;
  min-width: 0;
}

.ac-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.ac-highlight {
  color: #2563eb;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
  padding: 0 2px;
  border-radius: 2px;
}

.ac-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.ac-cat-badge {
  background: #f1f5f9;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  color: #475569;
}

.ac-right {
  text-align: right;
  flex-shrink: 0;
}

.ac-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.ac-stock-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

.ac-stock-pill.in {
  background: #dcfce7;
  color: #15803d;
}

.ac-stock-pill.low {
  background: #fef3c7;
  color: #b45309;
}

.ac-stock-pill.out {
  background: #fee2e2;
  color: #b91c1c;
}

.ac-footer {
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.ac-footer-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.ac-footer-btn:hover {
  text-decoration: underline;
}

/* Quick Search Suggestions Container (When Input is Focused & Empty) */
.ac-popular-box {
  padding: 1rem;
}

.ac-popular-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ac-chip {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.ac-chip:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.ac-chip i {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Sort Selector */
.store-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-sort-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.store-sort-wrapper .sort-icon {
  position: absolute;
  left: 0.9rem;
  color: #64748b;
  font-size: 0.8rem;
  pointer-events: none;
}

.store-sort-wrapper select {
  padding: 0.68rem 1rem 0.68rem 2.1rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  outline: none;
  background: #ffffff;
  cursor: pointer;
  transition: var(--store-transition);
}

.store-sort-wrapper select:focus {
  border-color: #2563eb;
}

.store-cart-trigger {
  background: #2563eb;
  color: #ffffff;
  padding: 0.68rem 1.35rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--store-transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.store-cart-trigger:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.store-cart-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Category Filter Tabs */
.store-categories {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.85rem 0 0.25rem;
  scrollbar-width: thin;
}

.store-categories::-webkit-scrollbar {
  height: 4px;
}
.store-categories::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.category-pill {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--store-border);
  background: #ffffff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--store-transition);
}

.category-pill i {
  color: #64748b;
  font-size: 0.82rem;
}

.category-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}

.category-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.category-pill.active i {
  color: #38bdf8;
}

.pill-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Products Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Component Card - Clean, Protected Badges */
.component-card {
  background: #ffffff;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  overflow: hidden;
  box-shadow: var(--store-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--store-transition);
  position: relative;
}

.component-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--store-shadow-hover);
  border-color: #cbd5e1;
}

/* Image Header with Fixed Badges Outside Zoom Influence */
.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.85rem 0.25rem;
  background: #ffffff;
  z-index: 10;
  position: relative;
}

.stock-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  max-width: none;
}

.stock-tag.in-stock {
  background: var(--store-success-bg);
  color: var(--store-success);
  border: 1px solid #bbf7d0;
}

.stock-tag.low-stock {
  background: var(--store-warning-bg);
  color: var(--store-warning);
  border: 1px solid #fde68a;
}

.stock-tag.out-stock {
  background: var(--store-danger-bg);
  color: var(--store-danger);
  border: 1px solid #fecaca;
}

.sku-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-family: monospace;
  white-space: nowrap;
}

.card-image-wrap {
  position: relative;
  background: #ffffff;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.card-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.component-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.quick-view-hover-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.component-card:hover .quick-view-hover-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--store-border-subtle);
}

.card-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 0.6rem;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.15s ease;
}

.card-title:hover {
  color: #2563eb;
}

.card-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  background: #f8fafc;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  border-left: 3px solid #0284c7;
  cursor: pointer;
  min-height: 52px;
  justify-content: center;
}

.card-spec-point {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-spec-point i {
  color: #0284c7;
  font-size: 0.7rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.card-spec-point span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.mrp-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.discount-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.action-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-add-cart {
  flex: 1;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--store-transition);
}

.btn-add-cart:hover {
  background: #1d4ed8;
}

.btn-add-cart:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-datasheet {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid var(--store-border);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--store-transition);
}

.btn-datasheet:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   PRODUCT DETAILS POP-UP MODAL (QUICK VIEW)
   ========================================================================== */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--store-transition);
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: var(--store-transition);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0;
}

.product-modal-overlay.active .product-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 20;
  transition: var(--store-transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

.modal-image-pane {
  background: #ffffff;
  border-right: 1px solid var(--store-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow-y: auto;
  max-height: 88vh;
}

.modal-main-img-wrap {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.modal-main-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* Multi-Image Thumbnails Gallery Strip */
.modal-thumbnails-gallery {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.25rem 0.15rem;
  scrollbar-width: thin;
}

.modal-thumbnails-gallery::-webkit-scrollbar {
  height: 4px;
}

.modal-thumbnails-gallery::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-thumb-item {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modal-thumb-item:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.modal-thumb-item.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Left Specs Section Below Images */
.modal-left-specs {
  width: 100%;
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

/* Structured Specifications Points List - Simple Clean Bullet List */
.modal-specs-container {
  margin-top: 0.4rem;
}

.modal-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.modal-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.38;
  padding: 0.15rem 0;
  background: transparent;
  border: none;
}

.modal-spec-item i {
  color: #16a34a;
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.spec-subheading {
  font-weight: 700;
  color: #0f172a;
  margin-right: 3px;
}

.modal-content-pane {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 88vh;
}

.modal-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.modal-current-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-mrp-price {
  font-size: 0.92rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.modal-meta-item {
  background: #f8fafc;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--store-border);
}

.modal-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.modal-meta-val {
  font-weight: 600;
  color: #1e293b;
}

.modal-desc-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.modal-description {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
  max-height: 270px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.5rem;
  white-space: pre-line;
}

.modal-action-bar {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Cart Quantity Controls */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--store-border);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  color: var(--store-text);
  transition: var(--store-transition);
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-value {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--store-transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -4px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--store-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--store-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-cart {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--store-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--store-transition);
}

.btn-close-cart:hover {
  color: var(--store-text);
  transform: scale(1.1);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--store-text-muted);
}

.cart-empty i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--store-border);
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--store-text);
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.8rem;
  transition: var(--store-transition);
}

.btn-remove-item:hover {
  color: var(--store-danger);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--store-border);
  background: #f8fafc;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--store-text-muted);
  margin-bottom: 0.45rem;
}

.cart-summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--store-text);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--store-border);
}

.pickup-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e40af;
  margin: 0.85rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.btn-checkout {
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--store-transition);
}

.btn-checkout:hover {
  background: #15803d;
}

/* Checkout Modal */
.store-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--store-transition);
}

.store-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.store-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: var(--store-transition);
}

.store-modal-overlay.active .store-modal-card {
  transform: scale(1);
}

.store-modal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--store-text);
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.modal-subtext {
  font-size: 0.88rem;
  color: var(--store-text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--store-text);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--store-border);
  font-size: 0.9rem;
  color: var(--store-text);
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Success Order State */
.order-success-screen {
  text-align: center;
  padding: 1rem 0;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.token-badge {
  display: inline-block;
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.85rem 0;
}

.btn-whatsapp-order {
  background: #25d366;
  color: #ffffff;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  margin-top: 1rem;
}

.btn-whatsapp-order:hover {
  background: #1eb956;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-modal-card {
    grid-template-columns: 1fr;
  }
  .modal-image-pane {
    border-right: none;
    border-bottom: 1px solid var(--store-border);
    padding: 1.5rem;
  }
  .store-hero h1 {
    font-size: 1.85rem;
  }
  .store-toolbar {
    top: 60px;
  }
  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}
