.shop-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
  padding-bottom: 12px;
}

.shop-hero,
.shop-toolbar,
.shop-modal-content,
.shop-offcanvas .offcanvas-header,
.shop-offcanvas .offcanvas-body {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-bs-theme="dark"] .shop-hero,
[data-bs-theme="dark"] .shop-toolbar,
[data-bs-theme="dark"] .shop-modal-content,
[data-bs-theme="dark"] .shop-offcanvas .offcanvas-header,
[data-bs-theme="dark"] .shop-offcanvas .offcanvas-body {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.shop-hero {
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99,102,241,0.20), transparent 65%);
  pointer-events: none;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.10);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.12);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
}

.shop-hero-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: #0f172a;
}

.shop-hero-text {
  font-size: 1.02rem;
  color: #64748b;
  max-width: 720px;
  margin-bottom: 22px;
}

[data-bs-theme="dark"] .shop-hero-title {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-hero-text {
  color: #94a3b8;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-primary-btn,
.shop-secondary-btn,
.shop-outline-btn,
.shop-icon-btn {
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  padding: 12px 18px;
  transition: all 0.22s ease;
}

.shop-primary-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
}

.shop-primary-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.shop-secondary-btn,
.shop-outline-btn,
.shop-icon-btn {
  background: rgba(255,255,255,0.75);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.shop-secondary-btn:hover,
.shop-outline-btn:hover,
.shop-icon-btn:hover {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
}

[data-bs-theme="dark"] .shop-secondary-btn,
[data-bs-theme="dark"] .shop-outline-btn,
[data-bs-theme="dark"] .shop-icon-btn {
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.14);
}

.shop-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.shop-stat-card {
  border-radius: 22px;
  padding: 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.52));
  border: 1px solid rgba(15,23,42,0.06);
}

[data-bs-theme="dark"] .shop-stat-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.12);
}

.shop-stat-label {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.shop-stat-value {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

[data-bs-theme="dark"] .shop-stat-label {
  color: #94a3b8;
}

[data-bs-theme="dark"] .shop-stat-value {
  color: #f8fafc;
}

.shop-toolbar {
  border-radius: 24px;
  padding: 20px;
}

.shop-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.shop-section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.shop-section-subtitle {
  color: #64748b;
}

[data-bs-theme="dark"] .shop-section-title {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-section-subtitle {
  color: #94a3b8;
}

.shop-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-search-wrap {
  min-width: min(100%, 320px);
  width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,0.72);
}

.shop-search-wrap i {
  color: #64748b;
}

.shop-search-input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  min-height: 46px;
  color: #0f172a;
}

.shop-search-input::placeholder {
  color: #94a3b8;
}

[data-bs-theme="dark"] .shop-search-wrap {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.14);
}

[data-bs-theme="dark"] .shop-search-input {
  color: #f8fafc;
}

.shop-category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,0.75);
  color: #334155;
  font-weight: 700;
  transition: all 0.22s ease;
}

.shop-category-pill:hover,
.shop-category-pill.active {
  background: rgba(79,70,229,0.10);
  border-color: rgba(79,70,229,0.15);
  color: #4f46e5;
}

[data-bs-theme="dark"] .shop-category-pill {
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border-color: rgba(148,163,184,0.14);
}

[data-bs-theme="dark"] .shop-category-pill:hover,
[data-bs-theme="dark"] .shop-category-pill.active {
  background: rgba(99,102,241,0.14);
  color: #c7d2fe;
}

/* Horizontal Scroll Layout */
.shop-horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shop-horizontal-scroll::-webkit-scrollbar { height: 8px; }
.shop-horizontal-scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.15); border-radius: 999px; }
[data-bs-theme="dark"] .shop-horizontal-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.horizontal-item {
  flex: 0 0 calc(25% - 14px);
  scroll-snap-align: start;
}
[data-bs-theme="dark"] .category-row-title { color: #f8fafc !important; }

.shop-product-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 14px 34px rgba(15,23,42,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.11);
  border-color: rgba(79,70,229,0.15);
}

[data-bs-theme="dark"] .shop-product-card {
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(148,163,184,0.12);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.shop-product-media {
  position: relative;
  aspect-ratio: 1 / 0.78;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(59,130,246,0.08));
  overflow: hidden;
}

.shop-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 2.4rem;
}

.shop-product-placeholder.large {
  min-height: 360px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(59,130,246,0.08));
}

.shop-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.shop-badge-featured {
  background: rgba(79, 70, 229, 0.92);
  color: #fff;
}

.shop-badge-stock {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.shop-badge-out {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}

.shop-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.shop-fav-btn:hover { color: #ef4444; background: #fff; transform: scale(1.05); }
.shop-fav-btn.active { color: #ef4444; }
[data-bs-theme="dark"] .shop-fav-btn { background: rgba(15,23,42,0.6); color: #94a3b8; }
[data-bs-theme="dark"] .shop-fav-btn:hover, [data-bs-theme="dark"] .shop-fav-btn.active { color: #f87171; background: rgba(15,23,42,0.9); }

.shop-product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-product-meta {
  margin-bottom: 8px;
}

.shop-category-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6366f1;
}

.shop-product-title {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 10px;
}

[data-bs-theme="dark"] .shop-product-title {
  color: #f8fafc;
}

.shop-product-desc {
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

[data-bs-theme="dark"] .shop-product-desc {
  color: #94a3b8;
}

.shop-price-block {
  margin-bottom: 18px;
}

.shop-price-main {
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 6px;
}

.shop-price-alt {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.9rem;
}

[data-bs-theme="dark"] .shop-price-main {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-price-alt {
  color: #94a3b8;
}

.shop-product-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shop-empty-state {
  min-height: 320px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  border: 1px dashed rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.55);
  padding: 26px;
}

.shop-empty-state.compact {
  min-height: auto;
  padding: 18px;
}

[data-bs-theme="dark"] .shop-empty-state {
  background: rgba(255,255,255,0.03);
  border-color: rgba(148,163,184,0.16);
}

.shop-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.10);
  color: #4f46e5;
  font-size: 1.8rem;
}

.shop-empty-state h4 {
  font-weight: 800;
  color: #0f172a;
}

.shop-empty-state p {
  color: #64748b;
  max-width: 520px;
}

[data-bs-theme="dark"] .shop-empty-state h4 {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-empty-state p {
  color: #94a3b8;
}

/* Product detail */
.shop-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.shop-detail-category {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79,70,229,0.10);
  color: #4f46e5;
  font-weight: 700;
  margin-bottom: 14px;
}

.shop-detail-title {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin-bottom: 12px;
}

.shop-detail-description {
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
}

.shop-detail-price-wrap {
  margin-bottom: 18px;
}

.shop-detail-price-main {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

.shop-detail-price-alt {
  color: #64748b;
  margin-top: 4px;
}

.shop-detail-stock {
  font-weight: 700;
  margin-bottom: 18px;
}

.shop-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  overflow: hidden;
}

.shop-qty-box button,
.shop-qty-box input {
  height: 48px;
  border: 0;
  background: transparent;
  text-align: center;
}

.shop-qty-box button {
  width: 48px;
  font-weight: 800;
  color: #475569;
}

.shop-qty-box input {
  width: 70px;
  outline: none;
  color: #0f172a;
}

[data-bs-theme="dark"] .shop-detail-title,
[data-bs-theme="dark"] .shop-detail-price-main {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-detail-description,
[data-bs-theme="dark"] .shop-detail-price-alt {
  color: #94a3b8;
}

[data-bs-theme="dark"] .shop-qty-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.14);
}

[data-bs-theme="dark"] .shop-qty-box input,
[data-bs-theme="dark"] .shop-qty-box button {
  color: #f8fafc;
}

/* Cart */
.shop-offcanvas {
  width: min(92vw, 460px) !important;
  border-left: 1px solid rgba(148,163,184,0.16);
}

.shop-cart-header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(148,163,184,0.16) !important;
}

.shop-cart-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.shop-cart-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.96), rgba(59,130,246,0.9));
  color: #fff;
  box-shadow: 0 12px 26px rgba(79,70,229,0.22);
  font-size: 1.1rem;
  flex: 0 0 48px;
}

.shop-cart-header-subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 4px;
}

.shop-cart-body {
  gap: 16px;
  padding: 18px 18px 20px;
  min-height: 0;
}

.shop-cart-top-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(79,70,229,0.10);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(59,130,246,0.05));
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.shop-cart-top-note i {
  color: #4f46e5;
  font-size: 1rem;
  margin-top: 2px;
}

.shop-cart-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-cart-mini-card {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.68));
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

.shop-cart-mini-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.shop-cart-mini-image {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(15,23,42,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-cart-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart-fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 1.8rem;
}

.shop-cart-mini-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.shop-cart-mini-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shop-cart-mini-title {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
  font-size: 1.02rem;
}

.shop-cart-mini-title:hover {
  color: #4f46e5;
}

.shop-cart-mini-remove {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,0.18);
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.shop-cart-mini-remove:hover {
  background: rgba(239,68,68,0.14);
}

.shop-cart-mini-unit-price {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.shop-cart-mini-unit-price span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: 6px;
}

.shop-cart-mini-qty-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.shop-cart-mini-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.86);
}

.shop-cart-mini-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(15,23,42,0.06);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-cart-mini-qty button:hover {
  background: rgba(79,70,229,0.12);
  color: #4f46e5;
}

.shop-cart-mini-qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.shop-cart-mini-total-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-cart-mini-total-price {
  color: #111827;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1;
}

.shop-cart-summary {
  margin-top: auto;
}

.shop-cart-summary-card {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244,247,255,0.78));
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.shop-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shop-summary-label {
  color: #111827;
  font-size: 1.02rem;
  font-weight: 800;
}

.shop-summary-sub {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 4px;
}

.shop-summary-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, rgba(148,163,184,0.08), rgba(148,163,184,0.28), rgba(148,163,184,0.08));
}

.shop-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
  font-size: 0.98rem;
  gap: 12px;
}

.shop-summary-row.total {
  margin-top: 10px;
  font-size: 1.06rem;
}

.shop-summary-row.total strong {
  font-size: 1.35rem;
}

.shop-cart-checkout-btn {
  min-height: 56px;
  border-radius: 18px;
  font-size: 1rem;
}

.shop-cart-empty-state {
  min-height: 280px;
  border-radius: 24px;
  border: 1px dashed rgba(148,163,184,0.24);
  background: rgba(255,255,255,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 24px;
}

.shop-cart-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.10);
  color: #4f46e5;
  font-size: 1.8rem;
}

[data-bs-theme="dark"] .shop-summary-row {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-cart-header-subtitle,
[data-bs-theme="dark"] .shop-summary-sub,
[data-bs-theme="dark"] .shop-cart-mini-total-label,
[data-bs-theme="dark"] .shop-cart-mini-unit-price span {
  color: #94a3b8;
}

[data-bs-theme="dark"] .shop-cart-top-note {
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(59,130,246,0.08));
  border-color: rgba(99,102,241,0.18);
  color: #cbd5e1;
}

[data-bs-theme="dark"] .shop-cart-mini-card,
[data-bs-theme="dark"] .shop-cart-summary-card,
[data-bs-theme="dark"] .shop-cart-empty-state {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.14);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

[data-bs-theme="dark"] .shop-cart-mini-title,
[data-bs-theme="dark"] .shop-summary-label,
[data-bs-theme="dark"] .shop-cart-mini-unit-price,
[data-bs-theme="dark"] .shop-cart-mini-total-price,
[data-bs-theme="dark"] .shop-cart-mini-qty-value {
  color: #f8fafc;
}

[data-bs-theme="dark"] .shop-cart-mini-remove {
  border-color: rgba(248,113,113,0.22);
  background: rgba(239,68,68,0.14);
  color: #fca5a5;
}

[data-bs-theme="dark"] .shop-cart-mini-qty {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.14);
}

[data-bs-theme="dark"] .shop-cart-mini-qty button {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .shop-cart-mini-qty button:hover {
  background: rgba(99,102,241,0.18);
  color: #c7d2fe;
}

.shop-cart-count-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Alert Pill */
.shop-alert-pill {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
  animation: shopPillIn 0.3s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.shop-alert-pill.success {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.shop-alert-pill.danger {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}

.shop-alert-pill.warning {
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
}

.shop-alert-pill .shop-alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-alert-pill.closing {
  animation: shopPillOut 0.4s ease forwards;
}

@keyframes shopPillIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shopPillOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 1399.98px) {
  .horizontal-item { flex: 0 0 calc(33.333% - 12px); }
}

@media (max-width: 991.98px) {
  .shop-hero {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 22px;
  }

  .horizontal-item { flex: 0 0 calc(50% - 9px); }

  .shop-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .shop-toolbar {
    padding: 16px;
    border-radius: 20px;
  }

  .shop-toolbar-top {
    align-items: stretch;
  }

  .shop-toolbar-actions {
    width: 100%;
  }

  .shop-search-wrap {
    width: 100%;
    min-width: 100%;
  }

  .horizontal-item { flex: 0 0 calc(80%); }

  .shop-product-footer {
    grid-template-columns: 1fr;
  }

  .shop-wallet-grid {
    grid-template-columns: 1fr;
  }

  .shop-deposit-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .shop-page {
    gap: 16px;
  }

  .shop-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .shop-hero-title {
    font-size: 1.8rem;
  }

  .shop-hero-text {
    font-size: 0.96rem;
  }

  .shop-toolbar {
    padding: 14px;
    border-radius: 18px;
  }

  .shop-category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .shop-category-pills::-webkit-scrollbar {
    height: 6px;
  }

  .shop-category-pills::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.25);
    border-radius: 999px;
  }

  .shop-category-pill {
    flex: 0 0 auto;
  }

  .shop-offcanvas {
    width: 100% !important;
  }

  .shop-cart-header {
    padding: 18px 16px 12px;
  }

  .shop-cart-body {
    padding: 14px 14px 18px;
  }

  .shop-cart-mini-top {
    grid-template-columns: 1fr;
  }

  .shop-cart-mini-image {
    width: 100%;
    height: 160px;
  }

  .shop-cart-mini-header {
    align-items: center;
  }

  .shop-cart-mini-qty-row {
    justify-content: flex-start;
  }

  .shop-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-qty-box {
    width: 100%;
    justify-content: space-between;
  }

  .shop-qty-box input {
    width: 100%;
  }
}
