html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  background: #f7f7f4;
  color: #222;
  margin-bottom: 60px;
}

.store-body { display: flex; flex-direction: column; min-height: 100vh; margin-bottom: 0; }
.store-content { flex: 1; }

.floating-basket {
  align-items: center;
  background: #1e5750;
  border: 1px solid #fff;
  border-radius: 8px;
  bottom: 6rem;
  box-shadow: 0 3px 16px #0003;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
  min-height: 78px;
  padding: .85rem .65rem;
  position: fixed;
  right: 1rem;
  text-decoration: none;
  width: 82px;
  z-index: 1030;
}
.floating-basket:hover { background: #17443e; color: #fff; }
.floating-basket:focus-visible { outline: 3px solid #e0b35b; outline-offset: 3px; }
.floating-basket > span { font-size: .75rem; }
.floating-basket .floating-basket-count { background: #f3cc83; border-radius: 50%; color: #193d36; font-weight: 700; min-width: 26px; padding: .2rem .35rem; position: absolute; right: -5px; text-align: center; top: -9px; }
.cart-feedback { background: #242a2e; border-radius: 6px; bottom: 12rem; color: #fff; max-width: min(320px, calc(100vw - 2rem)); padding: 1rem; position: fixed; right: 1rem; z-index: 1031; }
.checkout-account-form { border-top: 1px solid #dce5e0; padding-top: 1.5rem; }
.checkout-account-columns { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-account-modes { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.checkout-account-modes label { align-items: center; display: flex; gap: .5rem; }
@media (max-width: 767px) {
  .checkout-account-columns { grid-template-columns: minmax(0, 1fr); }
  .floating-basket { bottom: 5rem; min-height: 64px; right: .75rem; width: 72px; }
}
@media print { .floating-basket, .cart-feedback { display: none !important; } }
.store-navbar { background: #1e5750; padding: .8rem 0; border-bottom: 3px solid #e0b35b; }
.store-navbar .navbar-brand { color: #fff; font-size: 1.4rem; margin-right: 1.6rem; white-space: nowrap; word-break: normal; }
.store-navbar .navbar-brand-logo { display: block; height: 42px; max-width: min(190px, 45vw); object-fit: contain; width: auto; }
.store-navbar .nav-link { color: #e6f0ed; font-weight: 500; padding: .6rem .65rem; }
.store-navbar .nav-link:hover, .store-navbar .nav-link:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .35rem; }
.navbar-call { align-items: center; color: #fff; display: flex; gap: .65rem; margin: 0 1rem; padding: 0 1rem; border-left: 1px solid #ffffff40; text-decoration: none; }
.navbar-call:hover { color: #ffe0a0; }
.contact-symbol { font-size: 1.5rem; }
.navbar-call small { color: #d0e4df; display: block; font-size: .75rem; }
.navbar-call strong { display: block; font-size: .9rem; white-space: nowrap; }
.store-navbar .nav-cart-count { background: #f3cc83; color: #1d3531; }
.store-navbar .navbar-toggler { border-color: #ffffff80; }
.store-navbar .account-navigation { flex-shrink: 0; }
.admin-topbar .account-navigation .nav-link { color: #222; }
.store-footer { background: #242a2e; color: #cbd2d5; padding-top: 3rem; margin-top: 2rem; }
.store-footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.store-footer a { color: #e2e8eb; text-decoration: none; overflow-wrap: anywhere; }
.store-footer a:hover { color: #f3cc83; text-decoration: underline; text-underline-offset: .2rem; }
.store-footer a:focus-visible { outline: 2px solid #f3cc83; outline-offset: 4px; }
.store-footer .footer-brand { display: inline-block; color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: .85rem; }
.footer-brand-section p { line-height: 1.7; max-width: 30ch; }
.store-footer h2 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 1.1rem; }
.footer-contact { display: grid; gap: .65rem; font-style: normal; line-height: 1.6; margin: 0 0 .8rem; }
.footer-contact p { margin: 0; overflow-wrap: anywhere; }
.footer-hours { color: #aebdc2; font-size: .85rem; line-height: 1.6; }
.footer-link-column { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.footer-link-column h2 { margin-bottom: .35rem; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.2rem; font-size: .85rem; }
.store-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; border-top: 1px solid #455056; padding: 1.2rem 0; font-size: .8rem; }
@media (max-width: 1199px) and (min-width: 992px) {
  .store-navbar .navbar-brand { font-size: 1.15rem; margin-right: .6rem; }
  .store-navbar .nav-link { font-size: .85rem; padding-inline: .4rem; }
  .navbar-call { margin: 0 .4rem; padding: 0 .5rem; gap: .35rem; }
  .navbar-call strong { font-size: .8rem; }
}
@media (max-width: 991px) {
  .store-navbar .navbar-collapse { padding-top: .75rem; }
  .navbar-call { border-left: 0; border-top: 1px solid #ffffff40; margin: .6rem 0; padding: .85rem 0; }
  .store-navbar .account-navigation { flex-direction: row; gap: 1rem; }
  .store-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .store-footer { padding-top: 2rem; }
  .store-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .store-footer-bottom { flex-direction: column; }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #3d7b71;
}

.btn-primary {
  background: #245e55;
  border-color: #245e55;
}

.btn-primary:hover {
  background: #1e4d46;
  border-color: #1e4d46;
}

.store-hero {
  color: #fff;
  min-height: 380px;
  margin: -1.5rem calc(50% - 50vw) 2rem;
  overflow: hidden;
  position: relative;
}

.store-hero-slide {
  align-items: center;
  background-position: center;
  background-size: cover;
  display: flex;
  inset: 0;
  min-height: 380px;
  opacity: 0;
  padding: 4rem;
  position: absolute;
  transition: opacity .6s ease;
}

.store-hero-slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.store-hero-slide > div {
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.store-hero-slide h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 880px;
}

.hero-dots {
  bottom: 1rem;
  display: flex;
  gap: .5rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-dots button {
  background: rgba(255, 255, 255, .55);
  border: 0;
  border-radius: 999px;
  height: .7rem;
  width: .7rem;
}

.hero-dots button.active {
  background: #fff;
  width: 1.6rem;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-header,
.admin-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.catalog-filter {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(180px, 1fr) 180px 220px auto;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.featured-ad-section {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.featured-ad-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.featured-ad-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.featured-ad-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.featured-ad-card {
  align-items: center;
  background: #f7f7f4;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  padding: .75rem;
}

.featured-ad-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.featured-ad-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}

.featured-ad-badge {
  background: #245e55;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .5rem;
  padding: .25rem .55rem;
}

.home-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 240px minmax(0, 1fr);
}

.category-pane {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 0;
  padding: 0;
  position: sticky;
  top: 1rem;
}

.category-panel-header {
  background: #1e5750;
  border-left: 4px solid #e0b35b;
  color: #fff;
  padding: 1.15rem 1rem;
}

.category-panel-header > span {
  color: #d0e4df;
  display: block;
  font-size: .75rem;
  margin-bottom: .25rem;
}

.category-pane h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.category-pane nav {
  display: grid;
  gap: 0;
  padding: .4rem .75rem;
}

.category-pane a {
  border-radius: 4px;
  color: #245e55;
  padding: .75rem .65rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.category-main-link {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  min-height: 48px;
}

.category-name { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.category-link-arrow { color: #6c827b; flex-shrink: 0; font-size: 1.4rem; line-height: 1; }

.category-pane nav > * + * { border-top: 1px solid #edf0ee; }
.category-pane a:focus-visible,
.category-toggle:focus-visible { outline: 2px solid #245e55; outline-offset: -2px; }

.category-pane .category-browse-all {
  align-items: center;
  background: #f0f4f2;
  border-top: 1px solid #dce5e0;
  border-radius: 0;
  display: flex;
  font-size: .85rem;
  font-weight: 600;
  gap: .75rem;
  justify-content: space-between;
  padding: 1rem;
}

.category-pane a:hover,
.category-toggle:hover {
  background: #eef4f1;
}

.category-toggle-group {
  display: grid;
  gap: 0;
}

.category-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #245e55;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  padding: .75rem .65rem;
  text-align: left;
  width: 100%;
}

.category-toggle[aria-expanded="true"] {
  background: #e6efeb;
  color: #17493f;
}

.category-toggle-symbol {
  align-items: center;
  border: 1px solid #cfd8d4;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 700;
  flex-shrink: 0;
  height: 1.5rem;
  justify-content: center;
  line-height: 1;
  width: 1.5rem;
}

.category-toggle[aria-expanded="true"] .category-toggle-symbol {
  background: #245e55;
  border-color: #245e55;
  color: #fff;
}

.category-toggle[aria-expanded="true"] .category-toggle-symbol::before {
  content: "-";
}

.category-toggle[aria-expanded="true"] .category-toggle-symbol {
  font-size: 0;
}

.category-toggle[aria-expanded="true"] .category-toggle-symbol::before {
  font-size: .95rem;
}

.subcategory-list {
  border-left: 2px solid #cadbd2;
  display: grid;
  gap: .2rem;
  margin: .5rem 0 .75rem .65rem;
  padding-left: .45rem;
}

.subcategory-list[hidden] { display: none; }
.category-pane .subcategory-list > a { font-size: .85rem; line-height: 1.5; }

.category-pane .subcategory-link {
  color: #5f6965;
  font-size: .92rem;
  margin-left: .35rem;
  padding: .65rem;
}

.category-sections {
  display: grid;
  gap: 2rem;
}

.category-section {
  scroll-margin-top: 1rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.product-summary {
  overflow-wrap: anywhere;
}

.promotion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.promotion-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.promotion-layout h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .promotion-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-card .product-summary,
.featured-ad-card .product-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  min-height: 4.5em;
  overflow: hidden;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: .25rem 0;
}

.product-card p {
  color: #5c615f;
  min-height: 48px;
}

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

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.product-card-actions form {
  margin: 0;
}

.product-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-detail h1 {
  overflow-wrap: anywhere;
}

.product-facts {
  display: grid;
  gap: .5rem 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin: 1.5rem 0;
}

.product-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-information {
  border-top: 1px solid #e4e2dc;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.product-information h2 {
  font-size: 1.5rem;
}

.product-description {
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.product-gallery {
  display: grid;
  gap: .75rem;
}

.product-gallery-main {
  border-radius: 8px;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.product-gallery-thumbs {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
}

.product-gallery-thumb {
  background: transparent;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.product-gallery-thumb.active {
  border-color: #245e55;
  box-shadow: 0 0 0 2px rgba(36, 94, 85, .18);
}

.product-gallery-thumb img {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.price-row strong {
  color: #245e55;
}

.price-row span {
  color: #7a817d;
  text-decoration: line-through;
}

.price-row-large {
  margin: 1rem 0;
}

.price-row-large strong {
  font-size: 2rem;
  font-weight: 700;
}

.product-option-control {
  display: grid;
  gap: .5rem;
  min-width: 150px;
}

.product-option-label {
  align-items: center;
  color: #263d38;
  display: flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .5rem;
  margin: 0;
}

.product-option-label span {
  align-items: center;
  background: #e6f0ed;
  border: 1px solid #c9ddd6;
  border-radius: 50%;
  color: #245e55;
  display: inline-flex;
  font-size: .68rem;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.product-option-select,
.product-quantity-input {
  background-color: #fff;
  border: 1px solid #cbd3cf;
  border-radius: 6px;
  min-height: 46px;
}

.product-option-select:focus,
.product-quantity-input:focus {
  border-color: #245e55;
  box-shadow: 0 0 0 3px rgba(36, 94, 85, .14);
}

.product-quantity-control {
  min-width: 100px;
}

.product-quantity-input {
  max-width: 100px;
}

.quantity-input {
  max-width: 110px;
}

.rating-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .25rem 0 .5rem;
}

.rating-line-large {
  margin-bottom: 1rem;
}

.rating-stars {
  color: #c9831f;
  letter-spacing: 0;
  white-space: nowrap;
}

.rating-line small {
  color: #68706d;
}

.product-reviews {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
  margin-top: 2rem;
}

.product-review-panel,
.review-item,
.review-empty {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1.25rem;
}

.product-review-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.review-form {
  display: grid;
  gap: 1rem;
}

.review-list {
  display: grid;
  gap: .85rem;
}

.review-item > div {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.review-item p {
  margin: .75rem 0 .35rem;
}

.admin-review-list {
  display: grid;
  gap: 1rem;
}

.admin-review-item {
  align-items: start;
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
}

.admin-review-actions {
  display: flex;
  gap: .5rem;
}

.nav-icon-link {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  position: relative;
}

.nav-cart-icon {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.2rem;
}

.nav-cart-count {
  align-items: center;
  background: #245e55;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  height: 1.25rem;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0 .35rem;
}

.cart-summary {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.form-panel {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1.25rem;
}

.checkout-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.checkout-options {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
}

.option-stack {
  display: grid;
  gap: .75rem;
}

.option-tile {
  align-items: flex-start;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: .75rem;
  padding: .85rem;
}

.option-tile:has(input:checked) {
  background: #eef4f1;
  border-color: #245e55;
}

.option-tile small {
  color: #68706d;
  display: block;
}

.order-summary {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.order-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.summary-items,
.summary-totals {
  display: grid;
  gap: .75rem;
}

.summary-line,
.summary-totals > div {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.summary-line small {
  color: #68706d;
}

.summary-totals {
  border-top: 1px solid #e4e2dc;
  margin-top: 1rem;
  padding-top: 1rem;
}

.summary-grand-total {
  color: #245e55;
  font-size: 1.1rem;
}

.policy-approval {
  align-items: flex-start;
  border-top: 1px solid #e4e2dc;
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.policy-page {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 900px;
  padding: 1.5rem;
}

.policy-page h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.contact-page {
  display: grid;
  gap: 1.25rem;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(24, 59, 54, .9), rgba(36, 94, 85, .68)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=80") center/cover;
  border-radius: 8px;
  color: #fff;
  min-height: 280px;
  padding: 2rem;
}

.contact-hero h1 {
  max-width: 760px;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
}

.contact-card {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1.25rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}

.contact-list dt {
  color: #68706d;
  font-size: .9rem;
}

.contact-list dd {
  margin: 0;
}

.whatsapp-widget {
  bottom: 1.25rem;
  position: fixed;
  right: 1.25rem;
  z-index: 1050;
}

.whatsapp-button {
  background: #25d366;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1rem;
}

.whatsapp-popup {
  background: #fff;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  bottom: 3.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
  padding: 1rem;
  position: absolute;
  right: 0;
  width: min(320px, calc(100vw - 2rem));
}

.whatsapp-popup-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.whatsapp-popup-header button {
  background: transparent;
  border: 0;
  color: #68706d;
  font-size: 1.1rem;
  line-height: 1;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-grid > div {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1rem;
}

.metric-grid span {
  color: #68706d;
  display: block;
}

.metric-grid strong {
  display: block;
  font-size: 1.8rem;
}

.delivery-fee-grid {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-fee-action {
  display: flex;
  justify-content: flex-end;
}

.hero-slide-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-active-check,
.hero-slide-action {
  align-self: end;
}

.admin-hero-list {
  display: grid;
  gap: .75rem;
}

.admin-hero-item {
  align-items: center;
  background: #f7f7f4;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  padding: .75rem;
}

.admin-hero-item img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.status-select {
  max-width: 220px;
}

.report-filter {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: 220px 220px auto;
}

.inventory-audit-filter {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 1fr) 220px auto;
}

.print-report,
.receipt-page {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1.25rem;
}

.print-report-header,
.receipt-header {
  align-items: start;
  border-bottom: 1px solid #e4e2dc;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.report-metric-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.report-metric-grid > div {
  background: #f7f7f4;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: .85rem;
}

.report-metric-grid span {
  color: #68706d;
  display: block;
  font-size: .85rem;
}

.report-metric-grid strong {
  display: block;
  font-size: 1.25rem;
}

.report-section {
  margin-top: 1.25rem;
}

.report-section h3 {
  font-size: 1.15rem;
}

.report-table,
.receipt-table {
  margin-bottom: 0;
}

.low-stock-row td {
  background: #fff7e6;
}

.receipt-toolbar {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.receipt-page {
  margin: 0 auto;
  max-width: 720px;
}

.receipt-header h1 {
  font-size: 1.8rem;
  margin: 0;
}

.receipt-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
}

.receipt-info-grid h2 {
  color: #68706d;
  font-size: .9rem;
  text-transform: uppercase;
}

.receipt-meta {
  background: #f7f7f4;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: .75rem;
}

.receipt-total-box {
  display: grid;
  gap: .45rem;
  margin: 1rem 0 0 auto;
  max-width: 280px;
}

.receipt-total-box > div {
  display: flex;
  justify-content: space-between;
}

.receipt-grand-total {
  border-top: 1px solid #e4e2dc;
  color: #245e55;
  font-size: 1.15rem;
  padding-top: .45rem;
}

.receipt-footer {
  border-top: 1px solid #e4e2dc;
  color: #68706d;
  font-size: .9rem;
  margin-top: 1.25rem;
  padding-top: .75rem;
  text-align: center;
}

.admin-product-preview {
  aspect-ratio: 4 / 3;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.admin-product-preview-empty {
  align-items: center;
  background: #f4f6f5;
  color: #68706d;
  display: flex;
  justify-content: center;
  min-height: 130px;
}

.admin-gallery-preview {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.admin-gallery-preview img {
  aspect-ratio: 1;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.auth-shell {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  margin: 2rem auto;
  max-width: 1040px;
}

.auth-shell-centered {
  display: block;
  max-width: 560px;
}

.auth-panel {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 1.5rem;
}

.auth-visual {
  background:
    linear-gradient(135deg, rgba(24, 59, 54, .94), rgba(36, 94, 85, .7)),
    url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1200&q=80") center/cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
}

.auth-visual h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 560px;
}

.auth-panel h2 {
  margin-bottom: 1rem;
}

.auth-divider {
  align-items: center;
  color: #747b78;
  display: flex;
  gap: .75rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  background: #dde3df;
  content: "";
  flex: 1;
  height: 1px;
}

.auth-google-btn {
  align-items: center;
  display: inline-flex;
  gap: .65rem;
  justify-content: center;
}

.sso-panel {
  background: #f4f8f6;
  border: 1px solid #d9e7e1;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.sso-panel h3 {
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.sso-panel p:last-child {
  color: #5c615f;
  margin-bottom: 0;
}

.google-mark {
  align-items: center;
  border: 1px solid #d9dedb;
  border-radius: 50%;
  display: inline-flex;
  font-weight: 700;
  height: 1.6rem;
  justify-content: center;
  width: 1.6rem;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.auth-note {
  color: #68706d;
  font-size: .95rem;
  margin: 1rem 0 0;
}

.admin-body {
  background: #eef1ef;
  margin-bottom: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #183b36;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.admin-brand {
  color: #fff;
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.admin-brand:hover {
  color: #fff;
}

.admin-nav {
  display: grid;
  gap: .35rem;
}

.admin-nav a,
.admin-sidebar-footer a {
  border-radius: 8px;
  color: #d7e5df;
  display: block;
  padding: .75rem .9rem;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: #245e55;
  color: #fff;
}

.admin-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: auto;
  padding-top: 1rem;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dde3df;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.admin-topbar h2 {
  font-size: 1.35rem;
  margin: 0;
}

.admin-content {
  padding: 1.5rem;
}

@media (max-width: 767px) {
  .store-hero {
    min-height: 320px;
  }

  .store-hero-slide {
    min-height: 320px;
    padding: 2rem 1rem;
  }

  .page-header,
  .admin-header,
  .cart-summary,
  .product-detail,
  .product-card-footer {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .product-card-actions {
    justify-content: stretch;
  }

  .product-card-actions .btn,
  .product-card-actions form {
    width: 100%;
  }

  .catalog-filter {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .checkout-options {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-reviews,
  .admin-review-item {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .featured-ad-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-ad-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .category-pane {
    position: static;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    padding: 1rem;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .delivery-fee-grid {
    grid-template-columns: 1fr;
  }

  .report-filter,
  .inventory-audit-filter,
  .report-metric-grid,
  .receipt-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide-form,
  .admin-hero-item {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    margin-top: .5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 300px;
  }
}

@media print {
  body {
    background: #fff;
    margin: 0;
  }

  .no-print,
  .admin-sidebar,
  .admin-topbar,
  .admin-sidebar-footer,
  .whatsapp-widget {
    display: none !important;
  }

  .admin-shell,
  .admin-main {
    display: block;
    min-height: auto;
  }

  .admin-content {
    padding: 0;
  }

  .print-report,
  .receipt-page {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .receipt-page {
    max-width: none;
  }

  .receipt-table,
  .report-table {
    font-size: .85rem;
  }

  .report-section {
    break-inside: avoid;
  }

  .receipt-page {
    font-size: .9rem;
  }
}

@page {
  margin: 12mm;
}

@page receipt {
  margin: 10mm;
  size: A5;
}

.receipt-page {
  page: receipt;
}


