* {
  box-sizing: border-box;
}

:root {
  --page-bg: #edf1f6;
  --text-main: #111827;
  --text-muted: #64748b;
  --card-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

main {
  min-height: calc(100vh - 90px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 8%, rgba(59, 130, 246, 0.1), transparent 30%),
    radial-gradient(
      circle at 90% 0%,
      rgba(250, 204, 21, 0.13),
      transparent 28%
    ),
    linear-gradient(135deg, #f8fafc, #e8edf4 48%, #f4f6f9);
}

.site-header {
  position: sticky;
  width: calc(100% - 28px);
  max-width: 1680px;
  margin: 0 auto;
  z-index: 20;
  padding: 24px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 7px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.eyebrow {
  margin: 0 0 3px;
  color: #b45309;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 15px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.cart-button {
  position: relative;
  border: 0;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.cart-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.cart-button span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: none;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  background: #facc15;
  color: #111827;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cart-button span.show {
  display: grid;
}

.page-shell {
  width: calc(100% - 28px);
  max-width: 1680px;
  margin: 0 auto 10px;
}

.search-section {
  padding: 10px 0 18px;
}

.search-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: #ffffff;
  color: #111827;
  border-radius: 10px;
  padding: 17px 20px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 13px 32px rgba(15, 23, 42, 0.12);
}

.search-input:focus {
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.16);
}

.availability-filter-button {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 13px 32px rgba(15, 23, 42, 0.18);
}

.availability-filter-button:hover,
.availability-filter-button.active {
  background: #facc15;
}

.availability-filter-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.availability-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 9px;
  min-width: 178px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.availability-filter-menu[hidden] {
  display: none;
}

.availability-filter-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.availability-filter-heading {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-filter-menu input[type="checkbox"],
.availability-filter-menu input[type="radio"] {
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.availability-filter-menu input[type="checkbox"]::after,
.availability-filter-menu input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease;
}

.availability-filter-menu input[type="checkbox"]:checked,
.availability-filter-menu input[type="radio"]:checked {
  background: #facc15;
}

.availability-filter-menu input[type="checkbox"]:checked::after,
.availability-filter-menu input[type="radio"]:checked::after {
  transform: translateX(16px);
}

.availability-filter-menu input[type="checkbox"]:focus-visible,
.availability-filter-menu input[type="radio"]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.top-sticky-area {
  width: 100%;
}

.search-shell {
  width: calc(100% - 28px);
  max-width: 1680px;
  margin: 0 auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  position: relative;
}

.product-card {
  --theme: #2563eb;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  border: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  isolation: isolate;
}

.product-card-entering {
  animation: productCardEnter 0.4s ease-out both;
}

.product-card.is-loading {
  opacity: 0;
}

.product-loading-layer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  transition: opacity 0.4s ease;
}

.product-loading-layer.is-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  align-content: start;
  pointer-events: none;
}

.product-loading-layer.is-leaving {
  opacity: 0;
}

.skeleton-card {
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.skeleton-card.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

.skeleton-info-background {
  background: #1f2937;
}

.skeleton-product-top {
  display: grid;
  gap: 14px;
}

.skeleton-block {
  --skeleton-base: rgba(255, 255, 255, 0.16);
  --skeleton-highlight: rgba(255, 255, 255, 0.34);
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: var(--skeleton-base);
}

.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    var(--skeleton-highlight) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: skeletonShimmer 1.45s ease-in-out infinite;
}

.skeleton-title {
  width: 78%;
  height: clamp(27px, 2.8vw, 43px);
}

.skeleton-meta {
  display: grid;
  gap: 7px;
}

.skeleton-meta-line {
  width: 88%;
  height: 16px;
}

.skeleton-meta-line-short {
  width: 62%;
}

.skeleton-tag {
  width: 96px;
  height: 29px;
  margin-top: 3px;
}

.skeleton-footer {
  background: rgba(0, 0, 0, 0.94);
}

.skeleton-price {
  width: 42%;
  height: 36px;
}

.skeleton-button {
  width: 112px;
  height: 44px;
}

.skeleton-visual {
  background: #dbe2ea;
}

.skeleton-visual .skeleton-block {
  --skeleton-base: rgba(100, 116, 139, 0.18);
  --skeleton-highlight: rgba(255, 255, 255, 0.5);
}

.skeleton-image {
  width: 86%;
  height: min(72%, 250px);
  min-height: 180px;
  border-radius: 11px;
}

@keyframes skeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes productCardEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-info {
  --product-footer-height: 78px;
  position: relative;
  min-height: 350px;
  padding: 28px 28px 0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.product-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #05070b;
  z-index: -1;
}

.product-bg-gradient,
.product-bg-photo,
.product-bg-shine {
  position: absolute;
  inset: 0;
}
/* BG gradient */
.product-bg-photo {
  bottom: var(--product-footer-height);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: contrast(1.08) saturate(1.08);
  mix-blend-mode: screen;
}

.product-bg-shine {
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.1) 48%,
    transparent 60%,
    transparent 100%
  );
  opacity: 0.75;
}

.product-top {
  max-width: 100%;
  padding-bottom: 16px;
}

.product-name {
  margin: 0 0 14px;
  font-size: clamp(27px, 2.8vw, 45px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 900;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.product-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.48);
}

.product-meta strong {
  font-weight: 900;
}

.tag-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.tag-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 7px 10px 7px 13px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.tag-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #ffffff;
}

.tag-chip.offer {
  color: #111827;
  background: #facc15;
}

.tag-chip.offer::before {
  width: 7px;
  background: #ffffff;
}

.tag-chip.warning {
  color: #fff7ed;
  background: rgba(154, 52, 18, 0.82);
}

.tag-chip.warning::before {
  background: #fed7aa;
}

.tag-chip.danger {
  background: #dc2626;
  color: #ffffff;
}

.tag-chip.danger::before {
  background: #fecaca;
}

.tag-chip.normal {
  background: rgba(187, 187, 187, 0.219);
  color: #ffffff;
}

.tag-chip.normal::before {
  background: #facc15;
}

.product-footer {
  margin-top: auto;
  margin-left: -28px;
  margin-right: -28px;
  min-height: 78px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  font-weight: 900;
  color: #facc15;
  line-height: 1;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.price-currency {
  font-size: clamp(13px, 1.3vw, 17px);
  padding-bottom: 4px;
  letter-spacing: 0.02em;
}

.price-amount {
  font-size: clamp(30px, 3.6vw, 45px);
  letter-spacing: -0.04em;
}

.add-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  padding: 13px 18px;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.add-button:hover {
  transform: translateY(-2px);
  background: #facc15;
}

.add-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  /* background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.26),
      transparent 38%
    ),
    linear-gradient(135deg, #b8c0cc, #d9dee7 46%, #aeb7c4); */
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.01) 0,
    rgba(15, 23, 42, 0.05) 15px,
    transparent 1px,
    transparent 18px
  );
  opacity: 0.22;
}

.item-image {
  position: relative;
  z-index: 3;
  width: 86%;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 26px 26px rgba(15, 23, 42, 0.28));
  transform: translateY(7px);
  transition: transform 0.25s ease;
}

.product-card:hover .item-image {
  transform: translateY(0) scale(1.1);
}

/* Floating promo tags */

.promo-stack {
  position: absolute;
  top: 17px;
  right: 16px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.promo-tag {
  --angle: -4deg;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 9px 13px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
  transform: rotate(var(--angle));
}

.promo-tag:nth-child(even) {
  --angle: 4deg;
}

.promo-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 45%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: promoShine 2.4s infinite;
}

.promo-tag.hot {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  animation: promoPulse 1.6s infinite ease-in-out;
}

.promo-tag.deal {
  background: linear-gradient(135deg, #f59e0b, #92400e);
  color: #111827;
}

.promo-tag.trend {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  animation: promoFloat 1.8s infinite ease-in-out;
}

.promo-tag.new {
  background: linear-gradient(135deg, #22c55e, #166534);
  animation: promoSoftPop 2s infinite ease-in-out;
}

.promo-tag.best {
  background: linear-gradient(135deg, #111827, #475569);
  border: 1px solid rgba(250, 204, 21, 0.65);
  animation: promoFloat 2.1s infinite ease-in-out;
}

@keyframes promoPulse {
  0%,
  100% {
    transform: rotate(var(--angle)) scale(1);
  }
  50% {
    transform: rotate(var(--angle)) scale(1.055);
  }
}

@keyframes promoFloat {
  0%,
  100% {
    transform: rotate(var(--angle)) translateY(0);
  }
  50% {
    transform: rotate(var(--angle)) translateY(-4px);
  }
}

@keyframes promoSoftPop {
  0%,
  100% {
    transform: rotate(var(--angle)) scale(1);
  }
  50% {
    transform: rotate(var(--angle)) scale(1.035);
  }
}

@keyframes promoShine {
  0% {
    transform: translateX(-130%);
  }
  55%,
  100% {
    transform: translateX(130%);
  }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 45px 20px;
  color: #475569;
  background: #ffffff;
  border-radius: 10px;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  z-index: 160;
  padding: 13px 18px;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.free-shipping-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.62);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.free-shipping-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.free-shipping-card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 34px));
  padding: 32px 26px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.22), transparent 42%),
    #ffffff;
  color: #111827;
  text-align: center;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  transform: scale(0.82) translateY(18px);
}

.free-shipping-overlay.show .free-shipping-card {
  animation: freeShippingCardIn 2.35s ease forwards;
}

.free-shipping-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(34, 197, 94, 0.32);
}

.free-shipping-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.free-shipping-small {
  margin: 0 0 6px;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.free-shipping-card h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.free-shipping-text {
  margin: 12px 0 0;
  color: #475569;
  font-weight: 700;
}

.confetti {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 18px;
  border-radius: 3px;
  background: #facc15;
  opacity: 0;
}

.free-shipping-overlay.show .confetti {
  animation: confettiDrop 3.3s ease-in-out forwards;
}

.c1 {
  left: 10%;
  background: #22c55e;
  animation-delay: 0.05s;
}
.c2 {
  left: 22%;
  background: #facc15;
  animation-delay: 0.16s;
}
.c3 {
  left: 35%;
  background: #3b82f6;
  animation-delay: 0.08s;
}
.c4 {
  left: 48%;
  background: #ef4444;
  animation-delay: 0.22s;
}
.c5 {
  left: 61%;
  background: #a855f7;
  animation-delay: 0.12s;
}
.c6 {
  left: 74%;
  background: #14b8a6;
  animation-delay: 0.18s;
}
.c7 {
  left: 86%;
  background: #f97316;
  animation-delay: 0.04s;
}
.c8 {
  left: 94%;
  background: #22c55e;
  animation-delay: 0.26s;
}

@keyframes freeShippingCardIn {
  0% {
    transform: scale(0.82) translateY(18px);
    opacity: 0;
  }
  18% {
    transform: scale(1.04) translateY(0);
    opacity: 1;
  }
  28% {
    transform: scale(1) translateY(0);
  }
  82% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
}

@keyframes confettiDrop {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(520deg);
  }
}
/* Cart */

.cart-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 100;
  display: none;
  justify-content: flex-end;
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  background: #ffffff;
  color: #111827;
  padding: 22px;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
}

.cart-header,
.delivery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
  color: #b45309;
}

.cart-header h2,
.delivery-header h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 20px 0;
}

.cart-empty {
  display: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 13px;
  margin-bottom: 12px;
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eef2f7;
  object-fit: contain;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-title strong {
  font-size: 15px;
}

.cart-item-code {
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.qty-control span {
  min-width: 34px;
  text-align: center;
  font-weight: 900;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-weight: 900;
  cursor: pointer;
}

.cart-summary {
  display: none;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
}

.cart-summary.show {
  display: grid;
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary span {
  color: #cbd5e1;
}

.cart-summary strong {
  color: #facc15;
}
.cart-total-line {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cart-total-line strong {
  font-size: 18px;
}

.order-button {
  border: 0;
  border-radius: 10px;
  padding: 16px;
  background: #22c55e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.order-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.price-with-offer {
  display: grid;
  gap: 4px;
}

.price-offer-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.price-old-label,
.price-now-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.price-old {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 238, 0, 0.5);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-off-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
}

.price-now-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-now-label {
  color: #ffffff;
}

.price-with-offer .price-currency {
  font-size: 13px;
}

.price-with-offer .price-amount {
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 0.95;
}

/* Delivery Modal */

.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.56);
}

.delivery-modal.open {
  display: flex;
}

.delivery-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #111827;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.3);
}

.delivery-top-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(250, 204, 21, 0.32),
      transparent 38%
    ),
    radial-gradient(circle at 82% 0%, rgba(34, 197, 94, 0.2), transparent 34%);
  pointer-events: none;
}

.delivery-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.delivery-header h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.delivery-subtitle {
  margin: 9px 0 0;
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}

.delivery-form {
  position: relative;
  display: grid;
  gap: 16px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.field-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.full-field {
  grid-column: 1 / -1;
}

.field-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: #111827;
}

.field-title small {
  color: #64748b;
  font-weight: 700;
}

.field-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #111827;
  color: #facc15;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.field-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.delivery-form input,
.delivery-form textarea {
  width: 100%;
  border: 0;
  background: #f1f5f9;
  color: #111827;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}

.delivery-form input::placeholder,
.delivery-form textarea::placeholder {
  color: #94a3b8;
}

.delivery-form input:focus,
.delivery-form textarea:focus {
  background: #ffffff;
  box-shadow:
    0 0 0 2px #facc15,
    0 10px 22px rgba(250, 204, 21, 0.12);
}

.save-info-row {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 14px;
  border-radius: 13px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
}

.save-info-row input {
  width: 19px;
  height: 19px;
  accent-color: #facc15;
}

.save-info-row span {
  display: grid;
  gap: 2px;
}

.save-info-row strong {
  font-size: 14px;
}

.save-info-row small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
}

.delivery-submit {
  width: 100%;
  background: linear-gradient(135deg, #22c55e, #15803d);
}

@media (min-width: 721px) {
  .top-sticky-area {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(
      to bottom,
      rgb(255, 255, 255),
      rgb(255, 255, 255) 95%,
      rgba(255, 255, 255, 0)
    );
    height: 220px;
  }

  .site-header {
    padding-top: 18px;
    padding-bottom: 10px;
  }

  .search-section {
    padding-top: 6px;
    padding-bottom: 14px;
  }
}

/* Admin Mode */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-order-type {
  margin-top: 5px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.admin-action-button {
  display: none;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.admin-table-button,
.admin-view-as-button {
  background: #111827;
}

.admin-save-all-top-button {
  background: #22c55e;
}

.admin-exit-button {
  background: #dc2626;
}

.admin-action-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.admin-view-as-button .view-as-eye-off {
  display: none;
}

.admin-view-as-button.active {
  background: #0f766e;
}

.admin-view-as-button.active .view-as-eye {
  display: none;
}

.admin-view-as-button.active .view-as-eye-off {
  display: block;
}

body.admin-mode .cart-button {
  display: none;
}

body.admin-mode .admin-action-button {
  display: inline-flex;
}

.admin-card-panel {
  margin-top: 16px;
  display: none;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body.admin-mode .admin-card-panel {
  display: grid;
  gap: 10px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.admin-card-field {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  color: #374151;
}

.admin-card-field input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 8px 9px;
  font-family: inherit;
  font-weight: 800;
  outline: none;
}

.admin-card-field input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.admin-check-row,
.admin-promo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-check-row label,
.admin-promo-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-save-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 13px;
  background: #111827;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.admin-login-modal,
.admin-table-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.admin-login-modal.open,
.admin-table-modal.open {
  display: flex;
}

.admin-login-card {
  position: relative;
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 13px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 13px;
}

.admin-login-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.admin-login-card input {
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.admin-login-card input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.admin-login-card button[type="submit"] {
  border: 0;
  border-radius: 9px;
  padding: 13px;
  background: #111827;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.admin-login-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 22px;
}

.admin-table-card {
  width: min(1500px, calc(100vw - 24px));
  max-height: min(780px, calc(100vh - 30px));
  overflow: hidden;
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-table-header h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.admin-table-search {
  width: 100%;
  border: 0;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
}

.admin-table-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111827;
  color: #ffffff;
  text-align: left;
  padding: 12px;
  font-size: 12px;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.admin-table input[type="text"],
.admin-table input[type="number"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 8px;
  font-family: inherit;
  font-weight: 700;
}

.admin-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.admin-table-code {
  font-weight: 900;
}

.admin-table-name {
  min-width: 210px;
  font-weight: 800;
}

.admin-table-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-save-all-btn {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  background: #22c55e;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}
.admin-save-all-btn,
.admin-save-all-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Admin promo tag view - no animation, no angle */
body.admin-mode .promo-tag,
body.admin-mode .promo-tag:nth-child(even),
body.admin-mode .promo-tag:nth-child(odd) {
  transform: none !important;
  rotate: 0deg !important;
  animation: none !important;
}

body.admin-mode .promo-tag::before,
body.admin-mode .promo-tag::after {
  animation: none !important;
}

.admin-promo-select {
  position: relative;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
}

.admin-promo-disabled-layer {
  display: none;
}

.admin-promo-select.not-selected .admin-promo-disabled-layer {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.admin-promo-select.selected .admin-promo-disabled-layer {
  display: none;
}

/* category filter */
.category-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding-top: 10px;
  padding-bottom: 4px;
  padding-right: 42px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 calc(100% - 46px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 calc(100% - 46px),
    transparent 100%
  );
}

.category-filter:active {
  cursor: grabbing;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter-btn {
  flex: 0 0 auto;
  border: 2px solid var(--category-color, #111827);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--category-color, #111827);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.category-filter-btn:hover {
  transform: translateY(-1px);
}

.category-filter-btn.active {
  background: var(--category-color, #111827);
  color: #ffffff;
}

.category-filter-btn.all-category {
  border-color: #111827;
  color: #111827;
  background: #ffffff;
}

.category-filter-btn.all-category.active {
  background: #111827;
  color: #ffffff;
}

.category-filter-count {
  opacity: 0.65;
  margin-left: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 24px 0 12px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.page-btn.active {
  background: #111827;
  color: #ffffff;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-arrow {
  font-size: 20px;
  line-height: 1;
}

/*footer*/
.site-footer {
  width: 100%;
  margin-top: 0px;
  padding: 18px 12px 20px;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* responsive */

@media (max-width: 1280px) {
  .price-amount {
    font-size: clamp(18px, 3.6vw, 30px)
  }
}

@media (max-width: 720px) {
  body.admin-mode .header-actions {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  }

  body.admin-mode .admin-action-button {
    min-height: 42px;
    padding: 10px;
  }

  body.admin-mode .admin-action-button span {
    display: none;
  }
}

@media (max-width: 768px) {
  .category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    padding-right: 42px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 calc(100% - 46px),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 calc(100% - 46px),
      transparent 100%
    );
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .category-filter-btn {
    min-height: 36px;
  }

  .catalog-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-card {
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .delivery-card {
    padding: 21px;
    border-radius: 13px;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .field-card {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .site-footer {
      padding: 6px 30px 6px;

  }
}

@media (max-width: 1050px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .product-loading-layer {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .top-sticky-area {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(
      to bottom,
      rgb(255, 255, 255),
      rgb(255, 255, 255) 95%,
      rgba(255, 255, 255, 0)
    );
    height: 95%;
  }

  .search-section {
    padding: 8px 0 14px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .cart-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100;
  }

  .toast {
    bottom: 86px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    order: -1;
    min-height: 285px;
  }

  .product-info {
    --product-footer-height: 100px;
    min-height: auto;
    padding: 23px 23px 0;
  }

  .product-footer {
    margin-left: -23px;
    margin-right: -23px;
    flex-direction: column;
    align-items: stretch;
  }

  .add-button {
    width: 100%;
  }

  .item-image {
    height: 400px;
  }

  .cart-item {
    grid-template-columns: 54px 1fr;
  }

  .cart-thumb {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 430px) {
  .page-shell,
  .site-header {
    width: calc(100% - 20px);
  }

  .product-card {
    border-radius: 9px;
  }

  .product-info {
    padding: 20px 20px 0;
  }

  .product-footer {
    margin-left: -20px;
    margin-right: -20px;
  }

  .product-name {
    font-size: 30px;
  }

  .promo-stack {
    top: 12px;
    right: 12px;
  }

  .cart-panel {
    padding: 18px;
  }

  .delivery-card {
    border-radius: 10px;
    padding: 20px;
  }
}
