/* SASTA Custom Styles & Theme Engine */

:root {
  --sasta-primary: #0d6efd;
  --sasta-secondary: #6c757d;
  --sasta-accent: #ffc107;
  --sasta-bg: #f8f9fa;
  --sasta-card-bg: #ffffff;
  --sasta-text: #212529;
  --sasta-text-muted: #6c757d;
  --sasta-border: #dee2e6;
  --sasta-header-bg: #ffffff;
  --sasta-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark Theme Overrides */
[data-bs-theme="dark"] {
  --sasta-bg: #121212;
  --sasta-card-bg: #1e1e1e;
  --sasta-text: #e0e0e0;
  --sasta-text-muted: #a0a0a0;
  --sasta-border: #333333;
  --sasta-header-bg: #1a1a1a;
  --sasta-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ===== Color Theme Variations (vibrant marketplace themes) ===== */

/* Daraz — orange + deep purple-blue + light blue */
[data-color-theme="daraz"] {
  --sasta-primary: #F85606;
  --sasta-secondary: #3F0686;
  --sasta-accent: #C2FFFA;
  --sasta-text: #1a1a1a;
  --sasta-bg: #fff6f1;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="daraz"][data-bs-theme="dark"] {
  --sasta-primary: #ff7a2d;
  --sasta-secondary: #a06bff;
  --sasta-accent: #c2fffa;
  --sasta-bg: #170d07;
  --sasta-card-bg: #22130a;
  --sasta-border: #40251a;
  --sasta-header-bg: #1c0f08;
}

/* eBay — blue + red + yellow */
[data-color-theme="ebay"] {
  --sasta-primary: #3665F3;
  --sasta-secondary: #E5323D;
  --sasta-accent: #FFD814;
  --sasta-text: #111820;
  --sasta-bg: #f6f7f9;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="ebay"][data-bs-theme="dark"] {
  --sasta-primary: #5a7ff5;
  --sasta-secondary: #f25c65;
  --sasta-accent: #ffe14d;
  --sasta-bg: #0e1116;
  --sasta-card-bg: #1a1f28;
  --sasta-border: #2f3a4a;
  --sasta-header-bg: #151a22;
}

/* Homazing — warm orange + black */
[data-color-theme="homazing"] {
  --sasta-primary: #EC8B23;
  --sasta-secondary: #111111;
  --sasta-accent: #FFB800;
  --sasta-text: #111111;
  --sasta-bg: #fffbf4;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="homazing"][data-bs-theme="dark"] {
  --sasta-primary: #ffa447;
  --sasta-secondary: #eeeeee;
  --sasta-accent: #ffc84d;
  --sasta-bg: #140e06;
  --sasta-card-bg: #201708;
  --sasta-border: #3d2c15;
  --sasta-header-bg: #191109;
}

/* Eveen — deep green + golden yellow */
[data-color-theme="eveen"] {
  --sasta-primary: #3A5A40;
  --sasta-secondary: #4F6F52;
  --sasta-accent: #F4C542;
  --sasta-text: #1c1c1c;
  --sasta-bg: #f7faf8;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="eveen"][data-bs-theme="dark"] {
  --sasta-primary: #5b8a63;
  --sasta-secondary: #7aa682;
  --sasta-accent: #ffd966;
  --sasta-bg: #0c110d;
  --sasta-card-bg: #16211a;
  --sasta-border: #2c3f32;
  --sasta-header-bg: #111a14;
}

/* Naheed — bold red + gold */
[data-color-theme="naheed"] {
  --sasta-primary: #E4002B;
  --sasta-secondary: #8A001B;
  --sasta-accent: #FFC400;
  --sasta-text: #1a1a1a;
  --sasta-bg: #fff5f6;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="naheed"][data-bs-theme="dark"] {
  --sasta-primary: #ff3357;
  --sasta-secondary: #c73652;
  --sasta-accent: #ffd34d;
  --sasta-bg: #160a0c;
  --sasta-card-bg: #221115;
  --sasta-border: #40222b;
  --sasta-header-bg: #1c0d10;
}

/* Amazon — Amazon orange + dark navy */
[data-color-theme="amazon"] {
  --sasta-primary: #FF9900;
  --sasta-secondary: #232F3E;
  --sasta-accent: #146EB4;
  --sasta-text: #0F1111;
  --sasta-bg: #f9fafb;
  --sasta-header-bg: #131921;
}
[data-color-theme="amazon"] .sasta-navbar { background-color: #131921; }
[data-color-theme="amazon"] .sasta-navbar a,
[data-color-theme="amazon"] .sasta-navbar .ebay-icon-btn { color: #fff; }
[data-color-theme="amazon"] .ebay-search-btn { background-color: #FF9900; color: #0F1111; border-color: #FF9900; }
[data-color-theme="amazon"][data-bs-theme="dark"] {
  --sasta-primary: #ffa42b;
  --sasta-secondary: #5a6b7e;
  --sasta-accent: #3a93d8;
  --sasta-bg: #0b0d10;
  --sasta-card-bg: #151a20;
  --sasta-border: #2a333d;
  --sasta-header-bg: #10141a;
}

/* Bright Yellow & Black */
[data-color-theme="yellow-black"] {
  --sasta-primary: #FFD900;
  --sasta-secondary: #000000;
  --sasta-accent: #FFD900;
  --sasta-text: #0a0a0a;
  --sasta-bg: #fffef0;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="yellow-black"] .btn-primary,
[data-color-theme="yellow-black"] .add-to-cart-btn,
[data-color-theme="yellow-black"] .ebay-search-btn,
[data-color-theme="yellow-black"] .ticker-label,
[data-color-theme="yellow-black"] .site-badge {
  background-color: var(--sasta-primary);
  color: #000 !important;
  border-color: var(--sasta-primary);
}
[data-color-theme="yellow-black"][data-bs-theme="dark"] {
  --sasta-primary: #ffe94a;
  --sasta-secondary: #000000;
  --sasta-accent: #ffe94a;
  --sasta-bg: #0a0a06;
  --sasta-card-bg: #17150a;
  --sasta-border: #3a3412;
  --sasta-header-bg: #100f07;
}

/* Red & White */
[data-color-theme="red-white"] {
  --sasta-primary: #E60000;
  --sasta-secondary: #B30000;
  --sasta-accent: #FF5252;
  --sasta-text: #1a1a1a;
  --sasta-bg: #fff5f5;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="red-white"][data-bs-theme="dark"] {
  --sasta-primary: #ff4040;
  --sasta-secondary: #ff7373;
  --sasta-accent: #ff8a8a;
  --sasta-bg: #120606;
  --sasta-card-bg: #1f0b0b;
  --sasta-border: #402020;
  --sasta-header-bg: #180909;
}

/* Black & White */
[data-color-theme="black-white"] {
  --sasta-primary: #000000;
  --sasta-secondary: #4d4d4d;
  --sasta-accent: #000000;
  --sasta-text: #111111;
  --sasta-bg: #fafafa;
  --sasta-header-bg: #ffffff;
}
[data-color-theme="black-white"] .sasta-navbar { background-color: #ffffff; }
[data-color-theme="black-white"][data-bs-theme="dark"] {
  --sasta-primary: #ffffff;
  --sasta-secondary: #cccccc;
  --sasta-accent: #ffffff;
  --sasta-text: #f0f0f0;
  --sasta-bg: #0a0a0a;
  --sasta-card-bg: #151515;
  --sasta-border: #2e2e2e;
  --sasta-header-bg: #0d0d0d;
}
[data-color-theme="black-white"][data-bs-theme="dark"] .btn-primary,
[data-color-theme="black-white"][data-bs-theme="dark"] .add-to-cart-btn,
[data-color-theme="black-white"][data-bs-theme="dark"] .ebay-search-btn {
  background-color: var(--sasta-primary);
  color: #000 !important;
  border-color: var(--sasta-primary);
}

body {
  background-color: var(--sasta-bg);
  color: var(--sasta-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  padding-bottom: 70px; /* Space for mobile bottom nav */
  overflow-x: hidden;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Utility Bar (eBay thin top bar) */
.ebay-utility {
  background-color: var(--sasta-nav-bg, #f7f7f7);
  border-bottom: 1px solid var(--sasta-border);
  color: var(--sasta-text);
  padding: 5px 0;
  font-size: 0.8rem;
}

.ebay-utility a.text-link {
  color: var(--sasta-text);
  text-decoration: none;
}

.ebay-utility a.text-link:hover {
  text-decoration: underline;
}

/* Header */
.sasta-navbar {
  background-color: var(--sasta-header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--sasta-border);
}

.brand-logo {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--sasta-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

/* eBay-style search bar */
.ebay-search {
  display: flex;
  border: 2px solid var(--sasta-primary);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.ebay-search-select-wrap {
  flex: 0 0 auto;
  max-width: 38%;
}

.ebay-search-select {
  border: none;
  border-radius: 0;
  background-color: #f1f2f3;
  color: #333;
  font-size: 0.85rem;
  height: 100%;
  border-right: 1px solid #ccc;
}

.ebay-search-select:focus {
  box-shadow: none;
}

.ebay-search-input {
  border: none;
  border-radius: 0;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
}

.ebay-search-input:focus {
  box-shadow: none;
}

.ebay-search-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--sasta-primary);
  padding: 0 16px;
  font-size: 1.1rem;
}

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

/* Live Search Dropdown */
.lebay-wrap {
  position: relative;
  z-index: 1050;
}

.lebay-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 1050;
}

.lebay-dropdown.show {
  display: block;
}

.lebay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #212529;
  border-bottom: 1px solid #f0f0f0;
}

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

.lebay-item:hover {
  background: #f7f8fa;
}

.lebay-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

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

.lebay-title {
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lebay-price {
  font-size: 0.85rem;
  color: var(--sasta-primary);
  font-weight: 600;
  margin-top: 2px;
}

.lebay-empty {
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
}

/* Mobile: dropdown full-width below the search */
@media (max-width: 991.98px) {
  .ebay-search { border-radius: 30px; }
}

.ebay-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sasta-border);
  background: transparent;
  color: var(--sasta-text);
  text-decoration: none;
}

.ebay-icon-btn:hover {
  background: var(--sasta-card-bg);
  color: var(--sasta-primary);
}

/* Category Bar (eBay blue strip) */
.sasta-catbar {
  background-color: var(--sasta-primary);
}

.sasta-catbar .category-nav-scroll {
  padding: 0;
}

.sasta-catbar .category-badge-item {
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.95;
  border-radius: 0;
  padding: 8px 14px;
  margin: 0;
}

.sasta-catbar .category-badge-item:hover,
.sasta-catbar .category-badge-item.active {
  background: rgba(0,0,0,0.18);
  opacity: 1;
  color: #fff;
  border: none;
}

/* Category Bar (generic scroll used elsewhere) */
.category-nav-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding: 8px 0;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  margin-right: 8px;
  border-radius: 20px;
  background-color: var(--sasta-card-bg);
  border: 1px solid var(--sasta-border);
  color: var(--sasta-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-badge-item:hover, .category-badge-item.active {
  background-color: var(--sasta-primary);
  color: #fff;
  border-color: var(--sasta-primary);
}

/* Product Cards */

/* Custom column for 5 items per row on large screens */
.col-lg-5th {
  width: 20%;
  flex: 0 0 auto;
}
@media (max-width: 991.98px) {
  .col-lg-5th {
    width: 100%;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-4th {
    width: 50%;
  }
}

.product-card {
  border: 1px solid var(--sasta-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f0f0f0;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc3545;
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* Fake "hurry sale" countdown timer on product cards */
.v-cat-menu {
  border: 1px solid var(--sasta-border, #e5e8ec);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sasta-card-bg, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 90px;
}
.v-cat-header {
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sasta-primary, #3665f3), #1e3a8a);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.v-cat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--sasta-text, #111820);
  text-decoration: none;
  border-bottom: 1px solid var(--sasta-border, #f1f2f4);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.v-cat-item i { color: var(--sasta-primary, #3665f3); font-size: 0.85rem; }
.v-cat-item:hover {
  background: var(--sasta-primary-soft, #f1f5ff);
  color: var(--sasta-primary, #3665f3);
  padding-left: 1.3rem;
}
.v-cat-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f2f4;
  color: #6c757d;
  border-radius: 99px;
  padding: 1px 8px;
}
.v-cat-deals {
  color: #dc3545;
  font-weight: 600;
}
.v-cat-deals i { color: #dc3545; }
.v-cat-deals:hover { color: #b02a37; }
.hurry-timer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0.45rem;
  margin: 0.45rem 0.45rem 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 55%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  box-shadow: 0 1px 3px rgba(190, 24, 93, 0.08);
  position: relative;
  overflow: hidden;
}
.hurry-timer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: hurry-shimmer 2.8s linear infinite;
  transform: translateX(-100%);
}
@keyframes hurry-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.hurry-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.hurry-icon {
  font-size: 0.7rem;
  animation: hurry-pulse 1s ease-in-out infinite;
}
@keyframes hurry-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.hurry-text {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9f1239;
}
.hurry-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.hurry-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.8rem;
  padding: 0.15rem 0.2rem;
  border-radius: 5px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.35), 0 2px 5px rgba(15, 23, 42, 0.25);
}
.hurry-num {
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.hurry-lbl {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-top: 1px;
}
.hurry-sep {
  font-size: 0.85rem;
  font-weight: 800;
  color: #e11d48;
  animation: hurry-blink 1s step-end infinite;
  margin-bottom: 0.4rem;
}
@keyframes hurry-blink {
  50% { opacity: 0.15; }
}
.hurry-bar {
  height: 3px;
  border-radius: 99px;
  background: #fecdd3;
  overflow: hidden;
}
.hurry-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f43f5e, #fb7185);
  transition: width 1s linear;
}

.btn-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
  cursor: pointer;
}

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

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--sasta-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sasta-primary);
}

.product-old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--sasta-text-muted);
  margin-left: 6px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--sasta-header-bg);
  border-top: 1px solid var(--sasta-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sasta-text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  position: relative;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--sasta-primary);
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* Sticky Complete Your Order Bar */
.sasta-complete-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: var(--sasta-header-bg);
  border-top: 1px solid var(--sasta-border);
  box-shadow: 0 -2px 15px rgba(0,0,0,0.10);
  padding: 0.6rem 0;
}

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

.sasta-complete-bar.show {
  display: block !important;
  animation: sastaCompleteSlideUp 0.3s ease;
}

.sasta-complete-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sasta-complete-btn {
  background: var(--sasta-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 24px;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}
.sasta-complete-btn:hover {
  color: #fff;
  filter: brightness(1.08);
}

/* On desktop the bar sits above content; hide mobile nav overlap */
@media (min-width: 992px) {
  .sasta-complete-bar { padding: 0.5rem 0; }
}
@media (max-width: 991.98px) {
  /* Raise the bar above the 60px mobile bottom nav */
  .sasta-complete-bar.show + main, .sasta-complete-bar.show body { }
  .mobile-nav-hidden { display: none; }
}

/* Quick Toast & Floating Cart Counter */
.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
}

/* Shopify-style Admin Layout */
.admin-body {
    background-color: #f5f6f8;
    color: #111820;
    padding-bottom: 0;
}

/* Admin eBay vibrant theme accent */
:root {
    --admin-primary: #3665f3;
    --admin-primary-dark: #2a4ec9;
    --admin-navy: #111820;
    --admin-vibrant: #ff7b00;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #f1f6fc;
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    min-height: 100vh;
    background-color: #111820;
    color: #e0e6ee;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 0.875rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #1e2735;
}

.admin-sidebar .sidebar-brand {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #2a3646;
}

.admin-sidebar .sidebar-brand span {
    color: #a9b4c2;
    font-weight: 600;
}

.admin-sidebar .nav-link {
    color: #b8c2cf;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link i {
    color: var(--admin-primary);
}

.admin-sidebar .nav-link.active i,
.admin-sidebar .nav-link:hover i {
    color: #fff;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: #24334a;
}

.admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--admin-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(54,101,243,0.4);
}

.admin-sidebar hr {
    margin: 0.75rem 0.5rem;
    border-color: #2a3646;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem;
    background-color: #ffffff;
}

.admin-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: #111820;
}

/* Mobile Admin Topbar */
.admin-mobile-topbar {
    display: none;
}

@media (max-width: 991.98px) {
    .admin-body {
        padding-top: 56px;
    }
    .admin-mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        z-index: 1040;
        background-color: #111820;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        border-bottom: 1px solid #2a3646;
    }
    .admin-mobile-topbar .navbar-brand {
        color: #ffffff !important;
    }
    .admin-sidebar {
        display: none !important;
    }
    .admin-main {
        padding: 1rem;
        background-color: #ffffff;
    }
}

.admin-card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e8ec;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* eBay vibrant accents on admin components */
.admin-card .fw-bold {
    color: #111820;
}
.admin-sidebar .sidebar-brand::after,
.admin-main-header::after {
    content: "";
}
.admin-mobile-topbar .btn-outline-light:hover {
    background-color: var(--admin-primary);
    border-color: var(--admin-primary);
}
.admin-ebay-badge {
    color: #3665f3;
}

/* Admin dashboard stat cards */
.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-value {
    white-space: nowrap;
}
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.bg-primary-soft { background-color: rgba(13,110,253,0.12); }
.bg-success-soft { background-color: rgba(25,135,84,0.12); }
.bg-warning-soft { background-color: rgba(255,193,7,0.18); }
.bg-info-soft    { background-color: rgba(13,202,240,0.14); }
.bg-danger-soft  { background-color: rgba(220,53,69,0.12); }

/* ===== News Ticker (Frontend & Admin) ===== */
.ticker-bar {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    background: var(--sasta-primary);
    color: #fff;
    height: 42px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    padding: 0 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1;
    white-space: nowrap;
}

.ticker-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-bar:hover .ticker-track,
.ticker-bar:focus-within .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    margin-right: 3.5rem;
}

.ticker-item i {
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Admin variant (dark/neutral) */
.ticker-bar-admin {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 10px;
    height: 48px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

.ticker-bar-admin .ticker-label {
    background: var(--sasta-primary);
    color: #fff;
    border-radius: 10px 0 0 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 0 12px rgba(13,110,253,0.5);
}

.ticker-bar-admin .ticker-item {
    color: #e2e8f0;
    font-weight: 500;
}

.ticker-bar-admin .ticker-item strong {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
    padding: 1px 6px;
    border-radius: 4px;
    margin: 0 2px;
}

.ticker-bar-admin .ticker-item i {
    color: var(--sasta-primary);
}

.ticker-bar-admin:hover .ticker-track,
.ticker-bar-admin:focus-within .ticker-track {
    animation-play-state: paused;
}

@media (max-width: 575.98px) {
    .ticker-label span {
        display: none;
    }
    .ticker-item {
        margin-right: 2.5rem;
        font-size: 0.85rem;
    }
}

/* Flashing WhatsApp button */
@keyframes whatsapp-flash {
    0%   { background-color: #25d366; color: #fff; border-color: #25d366; }
    50%  { background-color: #fff; color: #25d366; border-color: #25d366; }
    100% { background-color: #25d366; color: #fff; border-color: #25d366; }
}

.btn-whatsapp-flash {
    animation: whatsapp-flash 1.2s ease-in-out infinite;
}

/* Affiliate category menu */
.category-nav-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}
.category-nav-scroll::-webkit-scrollbar { height: 6px; }
.category-nav-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 6px; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cat-pill:hover {
    background: var(--sasta-primary, #0d6efd);
    border-color: var(--sasta-primary, #0d6efd);
    color: #fff;
    text-decoration: none;
}
.cat-pill.active {
    background: var(--sasta-primary, #0d6efd);
    border-color: var(--sasta-primary, #0d6efd);
    color: #fff;
}
.cat-pill.active .text-muted { color: rgba(255,255,255,0.85) !important; }

img, video {
  max-width: 100%;
  height: auto;
}

.min-w-0 { min-width: 0; }
.content-inner-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Product image zoom ===== */
.product-zoom-wrap {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 6px;
    background-color: #f5f6f8;
}
.product-zoom-wrap .product-zoom-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    -webkit-user-drag: none;
    user-select: none;
}
.product-zoom-wrap.zoomed { cursor: grab; }
.product-zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.product-zoom-wrap:hover .product-zoom-controls { opacity: 1; }
.product-zoom-controls .btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    pointer-events: auto;
}
.product-zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.product-zoom-wrap:hover .product-zoom-hint { opacity: 1; }

/* ===== Thumbnail slider (no scrollbar) ===== */
.thumb-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.thumb-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 2px 0;
}
.thumb-track::-webkit-scrollbar { display: none; }
.thumb-track .thumb-img {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    opacity: 0.8;
    -webkit-user-drag: none;
    user-select: none;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.thumb-track .thumb-img.thumb-active,
.thumb-track .thumb-img:hover {
    border-color: var(--sasta-primary, #0d6efd);
    opacity: 1;
}
.thumb-nav {
    flex: 0 0 auto;
    width: 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sasta-border, #dee2e6);
    background: var(--sasta-card-bg, #fff);
    color: var(--sasta-text);
    border-radius: 6px;
    line-height: 1;
}
.thumb-nav:hover { background: var(--sasta-primary, #0d6efd); color: #fff; }

/* ===== Product Slider (transform-based carousel) ===== */
.sasta-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -0.5rem;
}
.sasta-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
.product-carousel-item {
    flex: 0 0 auto;
    width: 20%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}
/* Visible slides per view */
.sasta-carousel .product-carousel-item { width: 20%; }      /* 5 per view */
@media (max-width: 991.98px) { .sasta-carousel .product-carousel-item { width: 25%; } }  /* 4 */
@media (max-width: 767.98px) { .sasta-carousel .product-carousel-item { width: 33.3333%; } } /* 3 */
@media (max-width: 575.98px) { .sasta-carousel .product-carousel-item { width: 50%; } }  /* 2 */
.product-carousel .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-carousel .product-card .product-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-carousel .product-card .add-to-cart-btn {
    margin-top: auto;
}

/* Buy Now button - flat modern yellow, cart icon + black heavy text, pill */
.btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    background: #FFD900;
    color: #000 !important;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 0.5rem 1.4rem;
    border: none;
    border-radius: 999px;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-buy-now i {
    font-size: 1em;
    line-height: 1;
    font-weight: 700;
}
.btn-buy-now:hover {
    background: #F2CC00;
}
.btn-buy-now:active {
    transform: translateY(1px);
}
.btn-buy-now.btn-lg {
    font-size: 1rem;
    padding: 0.7rem 1.9rem;
    letter-spacing: 0.8px;
}
.btn-buy-now.btn-lg i {
    font-size: 1.1em;
}
/* Small card buttons: keep on one line */
.btn-buy-now.btn-sm {
    font-size: 0.72rem;
    padding: 0.4rem 0.9rem;
    letter-spacing: 0.4px;
    gap: 0.3rem;
}
.btn-buy-now.btn-sm i {
    font-size: 0.95em;
}



/* Payment method grid: guaranteed wrap (2-per-row, never one line) */
.pay-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pay-grid .pay-opt {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 10rem;
}
@media (max-width: 575.98px) {
    .pay-grid .pay-opt { flex: 1 1 100%; min-width: 0; }
}
