/* ComidaRusa customer storefront — clean mobile food-delivery UI */

:root {
  --rf-bg: #ffffff;
  --rf-text: #1c1c1c;
  --rf-muted: #8c8c8c;
  --rf-soft: #f3f3f3;
  --rf-soft-2: #f7f7f7;
  --rf-line: #eeeeee;
  --rf-accent: #eb3701;
  --rf-accent-dark: #c92d00;
  --rf-notice-bg: #111226;
  --rf-notice-text: #ffe45c;
  --rf-bonus: #ffe169;
  --rf-radius-sm: 12px;
  --rf-radius-md: 16px;
  --rf-radius-lg: 20px;
  --rf-page-max: 715px;
}

html,
body {
  background: var(--rf-bg);
  color: var(--rf-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
}

.gordan-like-app,
.app {
  width: 100%;
  max-width: var(--rf-page-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--rf-bg);
  color: var(--rf-text);
  padding-bottom: 112px;
  overflow-x: hidden;
}

/* Header */

.app-header,
.topbar {
  height: 64px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: #ffffff;
  border: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 50;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--rf-text);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.app-logo,
.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-logo .logo,
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rf-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.app-logo strong,
.brand strong {
  color: #2c2423;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.brand span {
  display: none;
}

.pill,
#openCartBtn {
  display: none;
}

/* Notice */

.work-alert {
  min-height: 72px;
  background: var(--rf-notice-bg);
  color: var(--rf-notice-text);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.work-alert-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.work-alert strong,
.work-alert span {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.work-alert strong {
  font-weight: 800;
}

/* Delivery start block */

.order-start {
  padding: 28px 44px 18px;
  display: grid;
  gap: 12px;
}

.delivery-switch {
  height: 48px;
  padding: 0;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.delivery-switch-item {
  border: 0;
  border-radius: var(--rf-radius-sm);
  background: transparent;
  color: var(--rf-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.delivery-switch-item.active {
  background: var(--rf-accent);
  color: #ffffff;
}

.address-card,
.bonus-card {
  min-height: 56px;
  width: 100%;
  border: 0;
  border-radius: var(--rf-radius-sm);
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  text-align: left;
  cursor: pointer;
}

.address-card {
  background: var(--rf-soft);
  color: var(--rf-text);
}

.address-card strong {
  font-size: 18px;
  font-weight: 700;
}

.bonus-card {
  min-height: 72px;
  background: var(--rf-bonus);
  color: var(--rf-text);
}

.bonus-card strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.bonus-card small {
  display: block;
  margin-top: 2px;
  color: rgba(28, 28, 28, 0.58);
  font-size: 14px;
}

.address-icon,
.bonus-icon {
  font-size: 22px;
}

.address-arrow {
  color: rgba(28, 28, 28, 0.55);
  font-size: 32px;
  line-height: 1;
}

/* Promo */

.promo-section {
  padding: 16px 0 22px 44px;
}

.promo-slider,
#quickCategories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: 44px;
  scrollbar-width: none;
}

.promo-slider::-webkit-scrollbar,
#quickCategories::-webkit-scrollbar,
.recommend-slider::-webkit-scrollbar,
.app-category-bar::-webkit-scrollbar {
  display: none;
}

.quick-card,
.promo-card {
  flex: 0 0 147px;
  width: 147px;
  height: 193px;
  border: 2px solid var(--rf-accent);
  border-radius: var(--rf-radius-md);
  background: var(--rf-accent);
  color: #ffffff;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  scroll-snap-align: start;
  overflow: hidden;
}

.quick-card:nth-child(2n) {
  background: #2b120c;
}

.quick-card:nth-child(3n) {
  background: #ffffff;
  color: var(--rf-text);
}

.quick-card .emoji {
  font-size: 52px;
  line-height: 1;
}

.quick-card span:last-child {
  font-size: 18px;
  line-height: 1.08;
  font-weight: 800;
  text-transform: uppercase;
}

/* Recommended */

.recommend-section {
  padding: 8px 0 18px 44px;
}

.recommend-section h2,
.section-head h2,
.delivery-info h2 {
  margin: 0 0 16px;
  color: var(--rf-text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.recommend-slider {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-right: 44px;
  scroll-snap-type: x mandatory;
}

.recommend-card {
  flex: 0 0 120px;
  min-height: 164px;
  border: 0;
  border-radius: var(--rf-radius-md);
  background: var(--rf-soft);
  padding: 12px 10px;
  color: var(--rf-text);
  display: grid;
  grid-template-rows: 78px 1fr auto;
  gap: 8px;
  cursor: pointer;
  scroll-snap-align: start;
}

.recommend-card img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.recommend-card-title {
  min-height: 36px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
}

.recommend-card-price {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* Category bar */

.menu-section {
  background: #ffffff;
}

.app-category-bar,
.category-scroll {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 44px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border: 0;
  box-shadow: none;
}

.cat {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: var(--rf-radius-sm);
  background: transparent;
  color: rgba(28, 28, 28, 0.62);
  padding: 0 12px;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.cat.active {
  background: var(--rf-soft);
  color: var(--rf-text);
  font-weight: 700;
}

/* Products grid */

.app-products,
.products {
  padding: 28px 44px 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 48px;
}

.product {
  position: relative;
  min-width: 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  cursor: pointer;
}

.photo {
  width: 100%;
  height: 200px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 0 14px;
  color: var(--rf-accent);
  font-size: 64px;
}

.product-img,
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-info {
  min-width: 0;
}

.product-title {
  display: block;
}

.product-title strong {
  display: block;
  color: var(--rf-text);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.product .tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.product .tag::before {
  content: "🔥";
  margin-right: 2px;
}

.desc {
  margin: 5px 0 10px;
  color: rgba(28, 28, 28, 0.48);
  font-size: 11px;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.price {
  min-height: 36px;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-soft);
  color: var(--rf-text);
  padding: 8px 10px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.add {
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin-left: -4px;
  border: 0;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-soft);
  color: var(--rf-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

/* Delivery info */

.delivery-info {
  margin: 0 44px 32px;
  padding: 18px 0 0;
  border-top: 1px solid var(--rf-line);
  color: rgba(28, 28, 28, 0.62);
}

.delivery-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Cart */

.cart-panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(calc(100% - 32px), 636px);
  z-index: 90;
  transition: transform 0.2s ease;
}

.cart-panel.open {
  transform: translateX(-50%) translateY(0);
}

.cart-row {
  min-height: 58px;
  border-radius: var(--rf-radius-md);
  background: var(--rf-accent);
  color: #ffffff;
  padding: 8px 14px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(235, 55, 1, 0.28);
}

.cart-row strong,
.cart-row span {
  color: #ffffff;
}

.checkout {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--rf-accent);
  padding: 0 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

/* Product modal */

.product-modal,
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0, 0, 0, 0.45);
}

.product-modal.open,
.checkout-modal.open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-sheet,
.sheet {
  width: min(100%, var(--rf-page-max));
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--rf-text);
  border-radius: 20px 20px 0 0;
  padding: 28px 28px calc(28px + env(safe-area-inset-bottom));
  position: relative;
}

.product-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--rf-soft);
  color: var(--rf-text);
  font-size: 28px;
  cursor: pointer;
}

.product-detail-photo {
  padding: 20px 18px 8px;
}

.product-detail-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.product-detail-content h2 {
  margin: 16px 0 6px;
  color: var(--rf-text);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.product-detail-desc,
.product-detail-section p {
  color: rgba(28, 28, 28, 0.55);
  font-size: 16px;
  line-height: 1.4;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.product-detail-meta span {
  border-radius: 999px;
  background: var(--rf-soft);
  padding: 8px 10px;
  color: rgba(28, 28, 28, 0.65);
  font-size: 13px;
}

.product-detail-bottom {
  position: sticky;
  bottom: 0;
  margin: 20px -28px -28px;
  padding: 14px 28px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rf-line);
}

.product-detail-price {
  font-size: 22px;
  font-weight: 800;
}

.btn.submit,
.submit {
  flex: 1;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

/* Checkout modal */

.sheet h2 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 800;
}

.field {
  margin: 0 0 14px;
}

.field label {
  display: block;
  margin: 0 0 6px;
  color: rgba(28, 28, 28, 0.62);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-soft);
  color: var(--rf-text);
  padding: 0 14px;
  font: inherit;
  box-sizing: border-box;
}

.field textarea {
  padding-top: 12px;
}

.btn.close,
.close {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-soft);
  color: var(--rf-text);
  font-weight: 700;
}

/* Old bottom navigation is hidden for this customer UI */

.bottom-nav {
  display: none;
}

/* Mobile */

@media (max-width: 560px) {
  .app-header,
  .topbar {
    height: 60px;
    padding: 0 16px;
    grid-template-columns: 40px 1fr 40px;
  }

  .app-logo strong,
  .brand strong {
    font-size: 26px;
  }

  .order-start,
  .app-products,
  .products {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-alert {
    padding-left: 24px;
    padding-right: 24px;
  }

  .promo-section,
  .recommend-section {
    padding-left: 20px;
  }

  .promo-slider,
  #quickCategories,
  .recommend-slider {
    padding-right: 20px;
  }

  .app-category-bar,
  .category-scroll {
    padding-left: 20px;
    padding-right: 20px;
  }

  .app-products,
  .products {
    column-gap: 28px;
    row-gap: 42px;
  }

  .photo {
    height: 160px;
  }

  .delivery-info {
    margin-left: 20px;
    margin-right: 20px;
  }

  .cat {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .app-products,
  .products {
    column-gap: 18px;
  }

  .photo {
    height: 142px;
  }

  .product-title strong {
    font-size: 14px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* PATCH GORDAN-UI-1: product modal cleanup */

.product-modal.open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-sheet {
  width: min(100%, var(--rf-page-max));
  max-height: 96vh;
  background: #ffffff !important;
  border-radius: 24px 24px 0 0;
  padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto;
}

.product-detail-photo {
  margin: 0 -18px;
  padding: 26px 18px 18px !important;
  background: #ffffff !important;
  display: grid;
  place-items: center;
}

.product-gallery {
  width: 100%;
  display: grid;
  place-items: center;
}

.product-detail-img {
  width: 100%;
  max-width: 430px;
  height: 320px;
  object-fit: contain;
  display: block;
  background: #ffffff !important;
}

.product-detail-content {
  padding: 0 4px;
  background: #ffffff !important;
}

.product-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-detail-content h2,
.product-detail-head h2 {
  margin: 18px 0 8px !important;
  color: var(--rf-text);
  font-size: 28px !important;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.3px;
}

.product-detail-desc {
  margin: 0 0 12px;
  color: rgba(28, 28, 28, 0.58) !important;
  font-size: 16px !important;
  line-height: 1.42;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px !important;
}

.product-detail-meta span {
  border-radius: 999px;
  background: var(--rf-soft);
  padding: 7px 10px;
  color: rgba(28, 28, 28, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.product-detail-section {
  margin: 16px 0;
  padding: 0;
  border: 0;
}

.product-detail-section strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rf-text);
  font-size: 17px;
  font-weight: 800;
}

.product-detail-section p {
  margin: 0;
  color: rgba(28, 28, 28, 0.58);
  font-size: 15px;
  line-height: 1.38;
}

.product-detail-bottom {
  position: sticky;
  bottom: 0;
  margin: 20px -18px calc(-22px - env(safe-area-inset-bottom));
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--rf-line);
}

.product-detail-price {
  color: var(--rf-text);
  font-size: 24px;
  font-weight: 850;
  white-space: nowrap;
}

.product-detail-bottom .btn.submit {
  min-height: 52px;
  border-radius: 14px;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(235, 55, 1, 0.24);
}

.product-modal-close {
  right: 14px;
  top: 12px;
  z-index: 5;
  background: rgba(243, 243, 243, 0.96);
}

/* PATCH GORDAN-UI-2: remove old square product photo behavior */

.product-modal .product-sheet {
  background: #ffffff !important;
}

.product-modal .product-detail-photo {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  width: auto !important;
  margin: 0 -18px !important;
  padding: 28px 18px 12px !important;
  background: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

.product-modal .product-gallery {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  background: #ffffff !important;
}

.product-modal .product-detail-img {
  width: 100% !important;
  max-width: 420px !important;
  height: 300px !important;
  max-height: 300px !important;
  object-fit: contain !important;
  display: block !important;
  background: #ffffff !important;
}

.product-modal .product-detail-content {
  padding: 0 4px 0 !important;
  background: #ffffff !important;
}

.product-modal .product-detail-head {
  margin-top: 4px !important;
  padding-top: 0 !important;
}

.product-modal .product-detail-head h2 {
  margin-top: 8px !important;
}

@media (max-width: 560px) {
  .product-modal .product-detail-img {
    height: 270px !important;
    max-height: 270px !important;
  }
}

@media (max-width: 380px) {
  .product-modal .product-detail-img {
    height: 230px !important;
    max-height: 230px !important;
  }
}

/* PATCH PRODUCT-CARD-1: GORDAN-style configurable product sheet */

.product-modal.open {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.product-modal .product-sheet {
  width: min(100%, var(--rf-page-max)) !important;
  max-height: 96vh !important;
  padding: 0 !important;
  border-radius: 28px 28px 0 0 !important;
  background: #ffffff !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
}

.product-modal-close {
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  right: calc(50% - min(50vw, 357px) + 14px) !important;
  z-index: 120 !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(243, 243, 243, 0.94) !important;
  color: var(--rf-text) !important;
  font-size: 32px !important;
  line-height: 1 !important;
}

.gordan-product-card {
  min-height: 100%;
  background: #ffffff;
  color: var(--rf-text);
  padding-bottom: 86px;
}

.gordan-hero {
  position: relative;
  background: #ffffff;
  min-height: min(715px, 76vh);
  display: grid;
  place-items: center;
  padding: 36px 0 20px;
}

.gordan-drag-indicator {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 42px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #dedede;
}

.gordan-hit-badge {
  position: absolute;
  top: 58px;
  left: 0;
  z-index: 2;
  min-height: 58px;
  padding: 0 22px 0 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 0 18px 18px 0;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.gordan-hit-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 88px;
  height: 42px;
  background: var(--rf-accent);
  clip-path: polygon(0 100%, 14% 25%, 27% 64%, 43% 0, 58% 55%, 74% 11%, 100% 100%);
}

.gordan-main-photo {
  width: 100%;
  height: min(620px, 66vh);
  display: grid;
  place-items: center;
  background: #ffffff;
  overflow: hidden;
}

.gordan-main-img {
  width: 100%;
  height: 100%;
  max-width: 640px;
  object-fit: contain;
  display: block;
}

.gordan-main-emoji {
  font-size: 160px;
}

.gordan-product-content {
  padding: 0 24px 14px;
  background: #ffffff;
}

.gordan-product-content h2 {
  margin: 0 0 8px;
  color: var(--rf-text);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.gordan-weight {
  margin-bottom: 16px;
  color: var(--rf-text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
}

.gordan-description {
  margin: 0 0 26px;
  color: rgba(28, 28, 28, 0.56);
  font-size: 18px;
  line-height: 1.48;
}

.gordan-config-section,
.gordan-list-section {
  margin: 0 0 24px;
}

.gordan-config-section h3,
.gordan-list-section h3 {
  margin: 0 0 6px;
  color: var(--rf-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.gordan-required {
  margin: 0 0 10px;
  color: rgba(28, 28, 28, 0.5);
  font-size: 13px;
  font-weight: 700;
}

.gordan-size-switch {
  height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rf-soft);
  border-radius: 12px;
  overflow: hidden;
}

.gordan-size-option {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--rf-text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.gordan-size-option.selected {
  background: var(--rf-accent);
  color: #ffffff;
}

.gordan-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.gordan-option-card {
  position: relative;
  min-height: 268px;
  border: 0;
  border-radius: 12px;
  background: #f1f1f1;
  color: var(--rf-text);
  padding: 6px 6px 12px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  justify-items: center;
  cursor: pointer;
  overflow: hidden;
}

.gordan-option-card.selected {
  background: var(--rf-accent);
  color: #ffffff;
}

.gordan-option-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: #252525;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.gordan-option-card.selected .gordan-option-check {
  display: grid;
}

.gordan-option-visual {
  width: 100%;
  min-height: 178px;
  display: grid;
  place-items: center;
  font-size: 96px;
  line-height: 1;
}

.gordan-option-title {
  min-height: 32px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 800;
}

.gordan-option-price {
  margin-top: 8px;
  color: rgba(28, 28, 28, 0.52);
  font-size: 14px;
  font-weight: 800;
}

.gordan-option-card.selected .gordan-option-price {
  color: rgba(255, 255, 255, 0.82);
}

.gordan-check-list {
  display: grid;
  gap: 0;
}

.gordan-check-row {
  min-height: 30px;
  border-bottom: 1px dashed rgba(28, 28, 28, 0.08);
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.gordan-check-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(28, 28, 28, 0.78);
  font-size: 16px;
  line-height: 1.2;
}

.gordan-check-emoji {
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
}

.gordan-check-price {
  color: rgba(28, 28, 28, 0.46);
}

.gordan-check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gordan-fake-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #dddddd;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.gordan-check-row.selected .gordan-fake-checkbox,
.gordan-check-row input:checked + .gordan-fake-checkbox {
  border-color: var(--rf-accent);
  background: var(--rf-accent);
  color: #ffffff;
}

.gordan-nutrition {
  margin: 20px 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--rf-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gordan-nutrition div {
  color: rgba(28, 28, 28, 0.48);
  font-size: 12px;
  line-height: 1.2;
}

.gordan-nutrition span,
.gordan-nutrition strong {
  display: block;
}

.gordan-nutrition strong {
  margin-top: 3px;
  color: rgba(28, 28, 28, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.gordan-add-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #ffffff 72%, rgba(255,255,255,0));
}

.gordan-add-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.gordan-toast {
  position: absolute;
  right: 24px;
  top: -28px;
  max-width: calc(100% - 48px);
  border-radius: 8px;
  background: var(--rf-accent);
  color: #ffffff;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.gordan-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .product-modal .product-sheet {
    max-height: 94vh !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .product-modal-close {
    right: 14px !important;
  }

  .gordan-hero {
    min-height: 520px;
  }

  .gordan-main-photo {
    height: 455px;
  }

  .gordan-hit-badge {
    top: 48px;
    min-height: 52px;
    padding-left: 24px;
    font-size: 24px;
  }

  .gordan-product-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gordan-product-content h2 {
    font-size: 28px;
  }

  .gordan-description {
    font-size: 17px;
  }

  .gordan-option-card {
    min-height: 178px;
  }

  .gordan-option-visual {
    min-height: 118px;
    font-size: 62px;
  }

  .gordan-add-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 380px) {
  .gordan-hero {
    min-height: 470px;
  }

  .gordan-main-photo {
    height: 405px;
  }

  .gordan-option-grid {
    gap: 5px;
  }

  .gordan-option-card {
    min-height: 158px;
  }

  .gordan-option-visual {
    min-height: 100px;
    font-size: 54px;
  }

  .gordan-option-title {
    font-size: 12px;
  }
}


/* PATCH PRODUCT-CARD-3: option images in customer configurator */
.gordan-option-visual img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.gordan-check-img{
  width:24px;
  height:24px;
  object-fit:contain;
  display:inline-block;
  vertical-align:middle;
  margin-right:6px;
}

.gordan-size-option span{
  display:block;
  margin-top:3px;
  font-size:11px;
  opacity:.72;
}


