/* Shared styles for the public online shop (fitness portal).
   Built on top of Bootstrap 5.3, Outfit & Inter fonts. */

:root {
  --shop-accent: #f97316;
  --shop-accent-hover: #ea580c;
  --shop-accent-dark: #c2410c;
  --shop-ink: #0f172a;
  --shop-slate: #1e293b;
  --shop-border: #e2e8f0;
  --shop-text: #1e293b;
  --shop-muted: #64748b;
  --shop-surface: #ffffff;
  --shop-bg: #f8fafc;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--shop-bg);
  color: var(--shop-text);
  -webkit-font-smoothing: antialiased;
}

.shop-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--shop-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--shop-ink);
  letter-spacing: -0.3px;
}

.shop-nav-link {
  color: var(--shop-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.shop-nav-link:hover {
  color: var(--shop-accent);
}

.shop-cart-badge {
  background: var(--shop-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 2px;
}

/* ==============================================================
   HERO BANNER (PREMIUM ATHLETIC SLATE GRADIENT)
   ============================================================== */
.shop-hero-new {
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.10) 0%, transparent 40%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 48px 0 42px;
  border-bottom: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.35rem;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #94a3b8;
  max-width: 600px;
  line-height: 1.5;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-box-wrap {
  max-width: 380px;
  margin-left: auto;
}

.shop-search-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 12px 0 0 12px !important;
  padding: 12px 18px !important;
  font-size: 0.92rem !important;
}

.shop-search-input::placeholder {
  color: #94a3b8;
}

.shop-search-input:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--shop-accent) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25) !important;
}

.btn-shop-search {
  background: var(--shop-accent);
  border: 1px solid var(--shop-accent);
  color: #fff;
  border-radius: 0 12px 12px 0 !important;
  padding: 0 20px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-shop-search:hover {
  background: var(--shop-accent-hover);
  color: #fff;
}

/* ==============================================================
   CATEGORY FILTER CHIPS
   ============================================================== */
.category-chips-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--shop-border);
  color: var(--shop-slate);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease;
}

.category-chip:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: var(--shop-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.12);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--shop-accent) 0%, var(--shop-accent-hover) 100%);
  border-color: var(--shop-accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
  transform: translateY(-2px);
}

.chip-count {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.category-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==============================================================
   REDESIGNED PRODUCT CARDS
   ============================================================== */
.product-card-modern {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card-modern:hover {
  transform: translateY(-7px);
  border-color: #fed7aa;
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(249, 115, 22, 0.08);
}

.product-card-modern.is-soldout {
  opacity: 0.92;
}

.product-thumb-box {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-modern:hover .product-thumb-img {
  transform: scale(1.08);
}

.product-thumb-fallback {
  width: 100%;
  height: 100%;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #f8fafc;
}

/* Top-Left Category Badge */
.badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 2;
}

/* Top-Right Discount Ribbon */
.badge-discount-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Stock status pills on photo */
.stock-pill {
  position: absolute;
  bottom: 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.stock-pill-sold {
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.stock-pill-low {
  left: 14px;
  background: rgba(245, 158, 11, 0.95);
  backdrop-filter: blur(6px);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.stock-pill-in {
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
  font-size: 0.66rem;
  padding: 3px 10px;
}

/* Card Body */
.product-info-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.rating-stars {
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.product-title-modern {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.35;
  color: var(--shop-ink);
  margin-bottom: 14px;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.15s;
}

.product-card-modern:hover .product-title-modern {
  color: var(--shop-accent);
}

/* ==============================================================
   PRICING CONTAINER WITH ANIMATED PEN SLASH
   ============================================================== */
.product-pricing-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: auto;
  margin-bottom: 16px;
  transition: background 0.2s;
}

.product-card-modern:hover .product-pricing-box {
  background: #fffaf5;
  border-color: #ffedd5;
}

.mrp-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  line-height: 1;
}

.mrp-slash-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mrp-prefix {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.mrp-slash-price {
  position: relative;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 2px;
}

/* The Animated Diagonal Cutting Strike Line */
.mrp-slash-price::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  border-radius: 2px;
  transform: translateY(-50%) rotate(-5deg);
  transform-origin: left center;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
  animation: slashPrice 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

.product-card-modern:hover .mrp-slash-price::after {
  animation: slashPriceHover 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slashPrice {
  0% {
    width: 0%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    width: 108%;
    opacity: 1;
  }
}

@keyframes slashPriceHover {
  0% {
    width: 108%;
  }
  40% {
    width: 0%;
    opacity: 0.3;
  }
  100% {
    width: 108%;
    opacity: 1;
  }
}

.savings-pill-green {
  background: #dcfce7;
  color: #15803d;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.main-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.modern-selling-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--shop-ink);
  letter-spacing: -0.5px;
  line-height: 1;
  animation: priceAppear 0.5s ease-out forwards;
  animation-delay: 0.35s;
}

.modern-selling-price .curr-symbol {
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 1px;
}

.unit-subtext {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

@keyframes priceAppear {
  0% {
    transform: scale(0.96);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* ==============================================================
   ACTION BUTTONS & STEPPER
   ============================================================== */
.product-actions-modern {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modern-stepper {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}

.modern-stepper button {
  background: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--shop-ink);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.15s;
}

.modern-stepper button:hover {
  background: #fff7ed;
  color: var(--shop-accent-dark);
}

.modern-stepper input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--shop-ink);
}

.btn-add-cart-modern {
  background: linear-gradient(135deg, var(--shop-accent) 0%, var(--shop-accent-hover) 100%);
  border: none;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-grow: 1;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.22s;
  cursor: pointer;
  text-decoration: none;
  height: 38px;
}

.btn-add-cart-modern:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
  color: #ffffff;
}

.btn-sold-out-modern {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  cursor: not-allowed;
  height: 38px;
}
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 0 6px 14px -6px rgba(194, 65, 12, 0.55);
  transition: all 0.2s;
}

.btn-shop:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(194, 65, 12, 0.6);
}

.btn-shop:disabled {
  background: #e5e0d6;
  color: #a89f8f;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-shop-outline {
  background: #fff;
  border: 1.5px solid var(--shop-accent);
  color: var(--shop-accent-dark);
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 18px;
}

.btn-shop-outline:hover {
  background: #fff7ed;
  color: var(--shop-accent-dark);
}

.btn-icon-shop {
  width: 40px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--shop-accent) 0%, var(--shop-accent-dark) 100%);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(194, 65, 12, 0.55);
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-icon-shop:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
}

.btn-icon-shop:disabled {
  background: #e5e0d6;
  color: #a89f8f;
  box-shadow: none;
}

.line-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--shop-border);
  background: #f7f1e6;
  flex-shrink: 0;
}

.line-item-thumb-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f7f1e6;
  color: #d6cdbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-ready { background: #dbeafe; color: #1e40af; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.shop-footer {
  padding: 30px 0;
  text-align: center;
  color: var(--shop-muted);
  font-size: 0.85rem;
}

/* ---------- responsive tables (cart, checkout, orders) ---------- */
@media (max-width: 640px) {
  .shop-table thead { display: none; }
  .shop-table, .shop-table tbody, .shop-table tr, .shop-table td {
    display: block;
    width: 100%;
  }
  .shop-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--shop-border);
  }
  .shop-table tr:last-child { border-bottom: none; }
  .shop-table td {
    text-align: left !important;
    padding: 3px 0 !important;
    border: none !important;
  }
  .shop-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--shop-muted);
    font-weight: 700;
    margin-bottom: 3px;
  }
  .shop-table td.shop-td-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px !important;
  }
}

/* ---------- responsive navbar ---------- */
@media (max-width: 576px) {
  .shop-navbar .container { justify-content: center; text-align: center; }
  .shop-navbar .d-flex.gap-4 { justify-content: center; gap: 14px !important; }
  .shop-nav-link { font-size: 0.85rem; }
}
