:root {
  --store-primary: #0f172a;
  --store-primary-soft: #17233a;
  --store-secondary: #ea580c;
  --store-secondary-dark: #c2410c;
  --store-cream: #fff7ed;
  --store-surface: #ffffff;
  --store-muted: #64748b;
  --store-border: #e5e7eb;
  --store-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --main-heading-size: clamp(1.25rem, 1.8vw, 1.55rem);
  --section-heading-size: clamp(1.15rem, 1.5vw, 1.4rem);
  --heading-line-height: 1.35;
}

html {
  font-size: 15px;
  min-height: 100%;
  scroll-behavior: smooth;
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

html,
body {
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body.store-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 0%, rgba(234, 88, 12, .12), transparent 28rem),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 22rem);
  color: #111827;
}

body.store-body > .container {
  flex: 1 0 auto;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: .2rem;
}

a:focus-visible,
button:focus-visible,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 .2rem rgba(234, 88, 12, .25);
  border-color: var(--store-secondary);
  outline: 0;
}

.store-navbar,
.footer {
  background-color: var(--store-primary);
}

.navbar-brand img {
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.store-nav-links {
  gap: .15rem;
}

.store-nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding-inline-start: .75rem;
}

.nav-customer-name {
  color: color-mix(in srgb, var(--navbar-text, var(--store-primary)) 72%, transparent);
  font-weight: 700;
  white-space: nowrap;
}

.nav-link {
  color: rgba(255, 255, 255, .86) !important;
  border-radius: 999px;
  padding-inline: .85rem !important;
}

.nav-link:hover,
.navbar-brand:hover {
  color: #fff !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .08);
}

.hero-card,
.product-card,
.admin-card,
.table-panel,
.form-panel {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 1.25rem;
  box-shadow: var(--store-shadow);
}

.hero-card {
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, .18), transparent 14rem),
    linear-gradient(135deg, var(--store-primary), var(--store-primary-soft));
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero-animated-border {
  isolation: isolate;
}

.hero-border-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--hero-shine-angle, 0deg),
      transparent 0deg,
      transparent 80deg,
      rgba(255, 255, 255, .78) 115deg,
      var(--hero-shine-color, var(--store-secondary)) 145deg,
      rgba(255, 255, 255, .45) 165deg,
      transparent 210deg,
      transparent 360deg
    );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  animation: heroBorderShine 5.5s linear infinite;
  opacity: .78;
}

@property --hero-shine-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes heroBorderShine {
  to {
    --hero-shine-angle: 360deg;
  }
}

.store-hero::after {
  content: "";
  position: absolute;
  width: 17rem;
  height: 17rem;
  inset-block-end: -7rem;
  inset-inline-end: -5rem;
  border-radius: 999px;
  background: rgba(234, 88, 12, .28);
  filter: blur(2px);
  z-index: 0;
}

.store-hero > .row {
  position: relative;
  z-index: 3;
}

.hero-animated-border .btn-primary,
.hero-animated-border .btn-outline-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-animated-border .btn-primary::after,
.hero-animated-border .btn-outline-primary::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -85%;
  width: 55%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start .65s ease;
  z-index: 0;
}

.hero-animated-border .btn-primary:hover::after,
.hero-animated-border .btn-outline-primary:hover::after {
  inset-inline-start: 130%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-border-shine {
    animation: none !important;
  }

  .hero-animated-border .btn-primary::after,
  .hero-animated-border .btn-outline-primary::after {
    transition: none !important;
  }

  .featured-product-card-frame,
  .featured-product-card-frame::before {
    animation: none !important;
    transition: none !important;
  }
}

.hero-kicker {
  background: rgba(255, 255, 255, .12);
  color: #fed7aa;
  border: 1px solid rgba(255, 255, 255, .22);
}

.hero-category-panel {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.home-hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  border: 1px solid color-mix(in srgb, var(--store-secondary) 28%, var(--store-border));
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--store-surface) 78%, transparent);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
}

.home-hero-slides {
  position: relative;
  min-height: 13rem;
  aspect-ratio: 2 / 1;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity .24s ease, transform .24s ease;
}

.home-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.home-hero-slide-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-hero-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-slide-caption {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  display: grid;
  gap: .2rem;
  padding: .7rem .85rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--store-surface) 88%, transparent);
  color: var(--text, #111827);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}

.home-hero-slide-title {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  font-weight: 800;
}

.home-hero-slide-subtitle {
  color: var(--store-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.home-hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-surface) 92%, transparent);
  color: var(--store-secondary);
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.home-hero-carousel-prev {
  inset-inline-start: .75rem;
}

.home-hero-carousel-next {
  inset-inline-end: .75rem;
}

.home-hero-carousel-dots {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: .55rem;
  display: flex;
  justify-content: center;
  gap: .35rem;
}

.home-hero-carousel-dot {
  width: .55rem;
  height: .55rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-surface) 72%, transparent);
  opacity: .76;
}

.home-hero-carousel-dot.is-active {
  width: 1.35rem;
  background: var(--store-secondary);
  opacity: 1;
}

.category-pill {
  background: #fff;
}

.hero-category-chips,
.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.category-chip,
.category-filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--store-surface);
}

.category-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  height: 100%;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 1.25rem;
  box-shadow: var(--store-shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 88, 12, .28);
  box-shadow: 0 24px 55px rgba(15, 23, 42, .12);
}

.category-card-image {
  width: 100%;
  height: 100%;
  min-height: 7rem;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--store-cream);
}

.category-card-fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
}

.category-card-body h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: .35rem;
}

.category-card-body p {
  min-height: 2.6rem;
  margin-bottom: .65rem;
  color: var(--store-muted);
}

.category-card-body span {
  font-weight: 900;
  color: var(--store-secondary);
}

.home-categories-section {
  margin-top: -.75rem;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem 1.2rem;
  align-items: start;
}

.home-category-item {
  display: grid;
  justify-items: center;
  gap: .55rem;
  color: var(--store-primary);
  text-align: center;
  text-decoration: none;
  padding: .35rem;
  border-radius: 1rem;
  transition: color .18s ease, transform .18s ease, background-color .18s ease;
}

.home-category-item:hover {
  color: var(--store-secondary);
  transform: translateY(-2px);
}

.home-category-item:focus-visible {
  outline: 0;
  background: color-mix(in srgb, var(--store-secondary) 9%, transparent);
  box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--store-secondary) 24%, transparent);
}

.home-category-image-wrap {
  display: grid;
  place-items: center;
  width: 6.7rem;
  height: 6.7rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-category-image {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  border: 1px solid color-mix(in srgb, var(--store-secondary) 22%, transparent);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
  object-fit: contain;
  overflow: hidden;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.home-category-item:hover .home-category-image {
  transform: translateY(-2px) scale(1.025);
  border-color: var(--store-secondary);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.home-category-item:focus-visible .home-category-image {
  outline: 2px solid var(--store-secondary);
  outline-offset: 3px;
}

.home-category-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--store-secondary);
  font-size: 2rem;
  font-weight: 900;
}

.home-category-title {
  color: inherit;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  max-width: 9.5rem;
}

.section-title {
  font-size: var(--section-heading-size) !important;
  font-weight: 800;
  line-height: var(--heading-line-height);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.store-hero .display-5,
.storefront-page h1.fw-bold,
.page-heading h1,
.form-panel > h1.section-title,
.table-panel > h1.section-title,
.admin-shell h1.section-title {
  font-size: var(--main-heading-size) !important;
  line-height: var(--heading-line-height);
  font-weight: 800;
}

.storefront-page h2.section-title,
.admin-shell h2.section-title,
.table-panel h2.section-title,
.form-panel h2.section-title {
  font-size: var(--section-heading-size) !important;
  line-height: var(--heading-line-height);
}

.page-heading {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(229, 231, 235, .8);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.listing-toolbar {
  display: flex;
  align-items: end;
  gap: .75rem;
  flex-wrap: wrap;
}

.toolbar-field {
  min-width: 12rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, .12);
  border-color: rgba(234, 88, 12, .28);
}

.product-card img,
.product-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--store-cream);
}

.product-card-image {
  aspect-ratio: 4 / 3;
}

.product-image-wrap {
  position: relative;
  margin-bottom: 1rem;
  aspect-ratio: 4 / 3;
  background: var(--store-cream);
  border-radius: 1rem;
  overflow: hidden;
}

.product-image-wrap .product-card-image {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  object-fit: contain;
  border-radius: 0;
}

.product-badges {
  position: absolute;
  top: .75rem;
  inset-inline-start: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  z-index: 2;
}

.product-badges.static {
  position: static;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 900;
  color: #fff;
  background: var(--store-secondary);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.product-badge.sale {
  background: #f97316;
}

.product-badge.success {
  background: #10b981;
}

.product-badge.muted {
  background: #64748b;
}

.product-card-title {
  font-weight: 800;
  min-height: 2.8rem;
  margin-bottom: .4rem;
}

.product-card-description {
  min-height: 2.5rem;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.product-actions,
.product-detail-actions,
.checkout-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.product-actions form,
.product-detail-actions form {
  margin: 0;
}

.variant-picker {
  flex-basis: 100%;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.variant-option {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  background: var(--store-surface);
  cursor: pointer;
}

.variant-option.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.variant-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid var(--store-border);
  flex: 0 0 auto;
}

.variant-admin-thumb {
  width: 56px;
  height: 42px;
  border-radius: .65rem;
  object-fit: cover;
  border: 1px solid var(--store-border);
  background: var(--store-card);
}

.variant-image-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  max-width: 100%;
}

.variant-image-option {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 48px;
  padding: .45rem .6rem;
  border: 1px solid var(--store-border);
  border-radius: .85rem;
  background: var(--store-card);
  color: var(--store-text);
  cursor: pointer;
}

.variant-image-option img {
  width: 70px;
  height: 52px;
  border-radius: .65rem;
  object-fit: cover;
}

.variant-image-option-warning {
  border-color: var(--warning, #f59e0b);
}

.price {
  color: var(--store-secondary);
  font-weight: 800;
  white-space: nowrap;
}

.product-price-stack {
  display: grid;
  gap: .15rem;
}

.old-price {
  color: var(--store-muted);
  font-size: .85rem;
  text-decoration: line-through;
}

.home-product-grid {
  align-items: stretch;
}

.home-product-card {
  padding: .72rem;
}

.home-product-image-wrap {
  margin-bottom: .65rem;
}

.home-product-title {
  font-size: .98rem;
  line-height: 1.3;
  min-height: 2.55rem;
  margin-bottom: .2rem;
}

.home-product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .84rem;
  line-height: 1.35;
  min-height: 2.25rem;
  margin-bottom: .45rem;
}

.home-product-footer {
  gap: .45rem;
}

.home-product-card .product-price-stack {
  gap: .05rem;
}

.home-product-card .price {
  font-size: .95rem;
}

.home-product-card .old-price {
  font-size: .78rem;
}

.home-product-card .product-actions {
  gap: .35rem;
}

.home-product-card .product-actions .btn {
  padding: .28rem .52rem;
  font-size: .78rem;
}

.featured-product-card-frame {
  --featured-card-shine: var(--store-secondary);
  position: relative;
  display: block;
  padding: 2px;
  border-radius: 1.25rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--store-border);
}

.featured-product-card-frame::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 75deg,
      rgba(255, 255, 255, .5) 105deg,
      var(--featured-card-shine) 135deg,
      rgba(255, 255, 255, .28) 165deg,
      transparent 215deg,
      transparent 360deg
    );
  opacity: var(--featured-card-shine-opacity, .58);
  transform-origin: center;
  animation: featuredCardFrameSpin 7.2s linear infinite;
}

.featured-product-card-frame > .product-card {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: calc(1.25rem - 2px);
}

.featured-product-card-frame:hover > .product-card {
  transform: translateY(-2px);
}

@keyframes featuredCardFrameSpin {
  to {
    transform: rotate(360deg);
  }
}

.product-gallery .product-cover {
  height: 420px;
}

.gallery-thumbs img {
  height: 7rem;
  object-fit: cover;
  width: 100%;
}

.product-gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid var(--store-border);
  border-radius: .85rem;
  background: var(--store-card);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-gallery-thumb img {
  display: block;
  border: 0 !important;
  border-radius: .7rem;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible,
.product-gallery-thumb.active {
  border-color: var(--primary, var(--store-secondary));
  box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--primary, var(--store-secondary)) 22%, transparent);
}

.product-gallery-thumb:focus-visible {
  outline: none;
}

.product-category-label {
  display: inline-flex;
  width: fit-content;
  color: var(--store-secondary);
  background: var(--store-cream);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-weight: 700;
}

.product-description {
  color: #334155;
  line-height: 1.9;
}

.detail-metric {
  border: 1px solid var(--store-border);
  border-radius: 1rem;
  padding: 1rem;
  background: #fffaf5;
}

[data-product-stock-value] {
  transition: color .2s ease, transform .2s ease;
}

[data-product-stock-value].stock-value-updated {
  color: var(--primary, var(--store-secondary));
  transform: scale(1.04);
}

.add-to-cart-inline {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.quantity-input {
  max-width: 6.5rem;
}

.cart-items {
  display: grid;
  gap: .85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 7rem 11rem 7rem 6rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--store-border);
  border-radius: 1rem;
  background: #fff;
}

.cart-item-image {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: .9rem;
  background: var(--store-cream);
}

.cart-mobile-meta {
  display: none;
  color: var(--store-muted);
  font-size: .85rem;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.quantity-form {
  display: flex;
  gap: .5rem;
}

.cart-summary,
.checkout-summary {
  top: 1rem;
}

.checkout-section {
  border: 1px solid var(--store-border);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.checkout-section h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.admin-stat {
  font-size: 2rem;
  font-weight: 700;
  color: var(--store-primary);
}

.admin-shell .dashboard-chart-card {
  min-height: auto;
  overflow: hidden;
}

.admin-shell .admin-chart-container {
  position: relative;
  width: 100%;
  height: 260px;
  max-height: 260px;
  overflow: hidden;
}

.admin-shell .admin-chart-container.chart-wide {
  height: 280px;
  max-height: 280px;
}

.admin-shell .admin-chart-container canvas,
.admin-shell .dashboard-chart-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 280px !important;
}

.admin-shell .admin-chart-container.chart-doughnut canvas {
  max-height: 260px !important;
}

.admin-shell .admin-analytics-page .admin-chart-card {
  min-height: 22rem;
}

.admin-shell .admin-analytics-page .admin-chart-container.chart-wide {
  height: 300px;
  max-height: 300px;
}

.admin-shell .admin-analytics-page .admin-chart-container.chart-wide canvas {
  max-height: 300px !important;
}

.admin-shell .analytics-kpi-card .admin-stat {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.2;
  margin: .35rem 0;
}

@media (max-width: 575.98px) {
  .admin-shell .admin-chart-container,
  .admin-shell .admin-chart-container.chart-wide {
    height: 220px;
    max-height: 220px;
  }

  .admin-shell .admin-chart-container canvas,
  .admin-shell .dashboard-chart-canvas {
    max-height: 220px !important;
  }
}

.btn-primary {
  background-color: var(--store-secondary);
  border-color: var(--store-secondary);
}

.btn-outline-primary {
  color: var(--store-secondary);
  border-color: var(--store-secondary);
}

.btn-outline-primary:hover,
.btn-primary:hover {
  background-color: var(--store-secondary-dark);
  border-color: var(--store-secondary-dark);
}

.btn {
  border-radius: .85rem;
  font-weight: 700;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.empty-state {
  padding: 2rem;
  background: var(--store-cream);
  border: 1px dashed #fdba74;
  border-radius: 1rem;
}

.footer {
  margin-top: auto;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.footer-links {
  display: grid;
  gap: .45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .06);
  }

  .store-nav-actions {
    padding-inline-start: 0;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .store-nav-actions,
  .store-nav-actions .btn-group,
  .store-nav-actions .btn,
  .store-nav-actions form {
    width: 100%;
  }

  .nav-customer-name {
    width: 100%;
  }

  .product-gallery .product-cover {
    height: 330px;
  }

  .cart-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .cart-item-price,
  .cart-item-total {
    display: none !important;
  }

  .cart-mobile-meta {
    display: flex;
  }

  .cart-item-quantity,
  .cart-item-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  body.store-body > .container {
    padding-inline: .85rem;
  }

  .store-hero {
    border-radius: 1rem;
  }

  .store-hero .display-5 {
    font-size: var(--main-heading-size) !important;
  }

  .storefront-product-grid {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }

  .listing-toolbar,
  .toolbar-field,
  .listing-toolbar .btn,
  .product-actions,
  .product-actions .btn,
  .product-actions form,
  .product-detail-actions,
  .product-detail-actions .btn,
  .add-to-cart-inline,
  .checkout-actions,
  .checkout-actions .btn {
    width: 100%;
  }

  .product-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .storefront-product-grid .product-card {
    padding: .6rem !important;
    border-radius: 1rem;
  }

  .storefront-product-grid .product-image-wrap {
    margin-bottom: .5rem;
  }

  .storefront-product-grid .product-badges {
    top: .45rem;
    inset-inline-start: .45rem;
    gap: .25rem;
  }

  .storefront-product-grid .product-badge {
    font-size: .64rem;
    padding: .18rem .36rem;
  }

  .storefront-product-grid .small.text-muted.mb-1 {
    display: none;
  }

  .storefront-product-grid .product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .88rem;
    line-height: 1.25;
    min-height: 2.2rem;
    margin-bottom: .2rem;
  }

  .storefront-product-grid .product-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .76rem;
    line-height: 1.25;
    min-height: 1rem;
    margin-bottom: .35rem;
  }

  .storefront-product-grid .product-price-stack {
    gap: 0;
  }

  .storefront-product-grid .price {
    font-size: .88rem;
  }

  .storefront-product-grid .old-price {
    font-size: .72rem;
  }

  .storefront-product-grid .product-actions {
    gap: .3rem;
  }

  .storefront-product-grid .product-actions .btn {
    padding: .24rem .42rem;
    font-size: .72rem;
    line-height: 1.25;
  }

  .home-product-footer {
    gap: .5rem;
  }

  .home-product-card .product-actions {
    align-items: stretch;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-card-image {
    height: 9rem;
  }

  .home-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem .65rem;
  }

  .home-category-image-wrap {
    width: 5.4rem;
    height: 5.4rem;
  }

  .home-category-title {
    font-size: .82rem;
    max-width: 7rem;
  }

  .product-card img,
  .product-cover {
    height: 190px;
  }

  .home-product-image-wrap .home-product-image {
    height: 100%;
  }

  .product-gallery .product-cover {
    height: 280px;
  }

  .gallery-thumbs img {
    height: 5.5rem;
  }

  .add-to-cart-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity-input {
    max-width: none;
  }

  .cart-item {
    padding: .85rem;
  }

  .quantity-form {
    flex-direction: column;
  }
}

@media (min-width: 341px) and (max-width: 575.98px) {
  .storefront-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-inline: 0;
  }

  .storefront-product-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
  }
}

@media (max-width: 340px) {
  .storefront-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-inline: 0;
  }

  .storefront-product-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
  }
}

.review-stars {
  color: #f59e0b;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.review-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 1.25rem;
  color: var(--text, #111827);
  padding: 1rem;
  box-shadow: var(--card-shadow, 0 12px 30px rgba(15, 23, 42, .08));
}

.verified-purchase-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  color: #059669;
  font-size: .8rem;
  font-weight: 700;
  margin-top: .35rem;
  padding: .2rem .55rem;
}

.review-image {
  width: min(100%, 18rem);
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  border: 1px solid var(--border, #e5e7eb);
  object-fit: cover;
}

.review-product-thumb {
  width: 5.5rem;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  border: 1px solid var(--border, #e5e7eb);
  object-fit: cover;
}

.admin-review-thumb {
  width: 7rem;
  aspect-ratio: 4 / 3;
  border-radius: .8rem;
  border: 1px solid var(--border, #e5e7eb);
  object-fit: cover;
}

.admin-review-comment {
  max-width: 28rem;
}

.coupon-code-row {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto;
  gap: .6rem;
  align-items: center;
}

.coupon-code-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
}

.coupon-code-actions .btn {
  line-height: 1.2;
  padding-block: .3rem;
}

@media (max-width: 575.98px) {
  .coupon-code-row {
    grid-template-columns: 1fr;
  }

  .coupon-code-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.print-only {
  display: none !important;
}

.report-toolbar {
  align-items: end;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .06);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.report-date-filter {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.report-date-filter .form-control {
  min-width: 10.5rem;
}

.report-export-actions {
  display: flex;
  gap: .5rem;
}

.report-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.report-jump-nav a {
  background: color-mix(in srgb, var(--primary, #2563eb) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary, #2563eb) 35%, var(--border, #e5e7eb));
  border-radius: 999px;
  color: var(--primary, #2563eb);
  font-weight: 700;
  padding: .45rem .85rem;
  text-decoration: none;
}

.report-section {
  scroll-margin-top: 6rem;
}

.report-section-heading {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.report-icon-button {
  align-items: center;
  background: transparent !important;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: .85rem;
  display: inline-flex;
  height: 2.7rem;
  justify-content: center;
  padding: .45rem;
  width: 2.7rem;
}

.report-icon-button:hover,
.report-icon-button:focus {
  background: color-mix(in srgb, var(--primary, #2563eb) 8%, transparent) !important;
  border-color: var(--primary, #2563eb);
}

.report-icon-button img {
  display: block;
  height: 1.55rem;
  width: 1.55rem;
}

@media print {
  .no-print,
  .admin-navbar,
  .store-navbar,
  .theme-switcher,
  .navbar,
  footer,
  .btn,
  button {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .printable-invoice,
  .printable-report,
  .table-panel,
  .form-panel,
  .panel {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border-color: #222 !important;
  }

  .printable-invoice table,
  .printable-report table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .printable-invoice th,
  .printable-invoice td,
  .printable-report th,
  .printable-report td {
    border: 1px solid #222 !important;
    color: #000 !important;
    padding: 6px !important;
  }

  .printable-invoice th,
  .printable-report th {
    background: #f3f4f6 !important;
  }
}

@media (max-width: 767.98px) {
  .home-hero-carousel,
  .home-hero-slides {
    min-height: 11rem;
  }

  .home-hero-slide-caption {
    inset-inline: .75rem;
    bottom: .85rem;
    padding: .55rem .7rem;
  }

  .home-hero-slide-subtitle {
    display: none;
  }

  .home-hero-carousel-arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
  }
}
