@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: rgba(242, 242, 242, 0.92);
  --surface-strong: #f2f2f2;
  --surface-deep: #111111;
  --text: #111111;
  --text-soft: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.12);
  --accent: #111111;
  --accent-dark: #000000;
  --accent-soft: #f2f2f2;
  --success: #1f6b4b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0;
}

.header-side {
  display: flex;
  align-items: center;
  min-width: 6rem;
}

.header-side-left {
  justify-content: flex-start;
}

.header-side-right {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.site-header .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0.35rem;
}

.admin-body .site-header .brand {
  position: static;
  left: auto;
  transform: none;
}

.brand-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.brand-caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff8ef;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-copy {
  display: grid;
  gap: 0.18rem;
}

.brand-copy strong,
h1,
h2,
h3,
.button,
.lang-button,
.modal-price {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

.brand-copy strong {
  font-size: 1.1rem;
}

.brand-copy span:last-child {
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-switcher {
  position: relative;
  display: inline-grid;
  gap: 0.35rem;
}

.language-switcher::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: center / cover no-repeat url("../img/flags/ru.png");
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
  pointer-events: none;
}

.header-cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
}

.header-cart-button.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.header-cart-button.has-items::after {
  content: attr(data-cart-count);
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #d62828;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.2rem;
  text-align: center;
  font-weight: 600;
}

.header-cart-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.language-switcher[data-active-lang="uz"]::before {
  background-image: url("../img/flags/uz.png");
}

.language-switcher[data-active-lang="en"]::before {
  background-image: url("../img/flags/en.png");
}

.language-select {
  min-width: 5.8rem;
  min-height: 2.8rem;
  padding: 0.55rem 2.5rem 0.55rem 2.6rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  appearance: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-section,
.catalog-section,
.stores-section,
.service-content,
.service-tabs-section {
  padding: 4.5rem 0;
}

.hero-grid,
.section-heading,
.footer-grid,
.modal-layout,
.info-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100vh - 88px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1;
  font-weight: 500;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.hero-text,
.section-copy,
.modal-description,
.info-card p,
.footer-note,
.hero-highlights,
.service-hero p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.button-full {
  width: 100%;
}

.hero-highlights {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.4rem;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34rem;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff9f1;
  background: var(--surface-deep);
}

.hero-card span {
  position: relative;
  z-index: 1;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 1.4rem;
}

.hero-card-large {
  inset: 2.6rem 2rem 3rem 3rem;
}

.hero-card-small {
  width: 14rem;
  height: 11rem;
}

.hero-card-top {
  top: 0;
  right: 0;
}

.hero-card-bottom {
  bottom: 0;
  left: 0;
}

.section-heading {
  grid-template-columns: 1fr minmax(16rem, 28rem);
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading-tight {
  margin-bottom: 1.6rem;
}

.section-heading-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-heading-centered .section-copy {
  margin-left: auto;
  margin-right: auto;
}

.service-tabs-section .section-heading {
  margin-bottom: 0.75rem;
}

.service-tabs-section .section-copy:empty {
  display: none;
}

.product-grid,
.store-grid,
.info-grid {
  display: grid;
  gap: 1.4rem;
}

.catalog-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.catalog-tab.is-active {
  border-color: var(--accent);
  background: rgba(17, 17, 17, 0.08);
  color: var(--accent-dark);
}

.catalog-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-soft);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.product-grid,
.store-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.store-card,
.info-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.product-card-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card-clickable:hover,
.product-card-clickable:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
}

.product-card::before,
.store-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 0.4rem);
  margin-bottom: 1rem;
  background: rgba(17, 17, 17, 0.06);
}

.product-card-content {
  display: grid;
  gap: 0.75rem;
}

.product-card h3,
.store-card h3,
.info-card h2,
.site-footer h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 500;
}

@media (hover: none), (pointer: coarse) {
  .button:hover,
  .product-card-clickable:hover {
    transform: none;
    box-shadow: none;
    border-color: inherit;
  }
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price-tag {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 1.28rem;
}

.card-button {
  width: 100%;
  margin-top: 0.3rem;
}

.store-card {
  display: grid;
  gap: 0.85rem;
}

.offline-store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.offline-store-option {
  display: block;
  cursor: pointer;
}

.offline-store-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offline-store-card {
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.offline-store-option input:checked + .offline-store-card {
  border-color: rgba(17, 17, 17, 0.3);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.offline-store-option input:focus-visible + .offline-store-card {
  outline: 3px solid rgba(17, 17, 17, 0.22);
  outline-offset: 2px;
}

.store-map-button {
  width: fit-content;
  margin-top: 0.2rem;
}

.store-meta {
  color: var(--text-soft);
  line-height: 1.6;
}

.store-meta p {
  margin: 0;
}

.store-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--accent-dark);
  font-size: 0.88rem;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr;
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background: var(--surface-deep);
  color: #ffffff;
}

.footer-grid > div:nth-child(3) {
  display: none;
}

.brand-footer .brand-copy span:last-child,
.footer-note {
  color: rgba(255, 255, 255, 0.7);
}

.brand-footer .brand-logo {
  width: auto;
  max-width: 180px;
}

.footer-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
}

.footer-copyright,
.footer-policy-link {
  margin: 0;
  color: #111111;
  font-size: 0.95rem;
}

.footer-policy-link {
  text-align: right;
}

.service-page {
  padding-bottom: 2rem;
}

.service-tabs {
  display: grid;
  gap: 1.5rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.service-tabs .tabs-nav {
  justify-content: center;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.catalog-tab-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: #111111;
}

.catalog-tab-label {
  flex: 0 0 auto;
}

.tab-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: #111111;
}

.tab-button span[data-i18n] {
  flex: 0 0 auto;
}

.tab-button.is-active {
  border-color: var(--accent);
  background: rgba(17, 17, 17, 0.08);
  color: var(--accent-dark);
}

.tab-panel {
  display: block;
}

.tab-panel[hidden] {
  display: none;
}

.service-hero {
  padding: 4rem 0 2rem;
}

.service-hero-inner {
  max-width: 44rem;
}

.service-hero h1 {
  max-width: none;
}

.info-card {
  padding: 1.6rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 28rem);
  height: 100%;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
  font-size: 1.5rem;
}

.cart-drawer-content,
.cart-checkout-form,
.cart-item,
.cart-item-actions {
  display: grid;
  gap: 1rem;
}

.cart-drawer-content {
  height: 100%;
  padding-top: 2.25rem;
  grid-template-rows: auto auto auto auto 1fr;
}

.cart-items {
  display: grid;
  gap: 0.85rem;
  overflow: auto;
}

.cart-item {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: rgba(242, 242, 242, 0.72);
}

.cart-item-media {
  width: 72px;
}

.cart-item-thumb {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.06);
}

.cart-item-copy {
  display: grid;
  gap: 0.35rem;
}

.cart-item-copy h3,
.cart-item-copy p,
.cart-summary-row {
  margin: 0;
}

.cart-item-copy p {
  color: var(--text-soft);
  line-height: 1.5;
}

.cart-item-actions {
  grid-column: 2;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: start;
}

.cart-remove-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 0;
}

.cart-empty {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cart-summary {
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: rgba(242, 242, 242, 0.72);
}

.cart-checkout-summary {
  gap: 0.6rem;
}

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

.cart-summary-row-total {
  padding-top: 0.6rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.cart-page-main {
  padding: 2rem 0 4rem;
}

.cart-page-section {
  display: grid;
  gap: 1.5rem;
}

.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.cart-page-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
}

.cart-delivery-card {
  gap: 1.1rem;
}

.cart-delivery-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-delivery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  color: #1565c0;
  background: rgba(21, 101, 192, 0.08);
}

.cart-delivery-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cart-delivery-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 500;
}

.cart-delivery-option {
  display: grid;
  gap: 0.9rem;
  margin: 0.45rem 0 0.65rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: rgba(248, 248, 248, 0.82);
}

.cart-delivery-option-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cart-delivery-option-dot {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #0f7c82;
  box-shadow: 0 0 0 6px rgba(15, 124, 130, 0.1);
}

.cart-delivery-option-label,
.cart-delivery-copy p {
  margin: 0;
}

.cart-delivery-option-label {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.cart-delivery-copy p {
  color: var(--text-soft);
  line-height: 1.6;
}

.cart-delivery-badge {
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-delivery-copy {
  margin: 0;
}

.cart-delivery-copy-body {
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.cart-delivery-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.cart-delivery-more::-webkit-details-marker {
  display: none;
}

.cart-delivery-more::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.cart-delivery-copy[open] .cart-delivery-more::after {
  content: "-";
}

.cart-payment-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: rgba(250, 250, 250, 0.86);
}

.cart-payment-icon {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
}

.cart-payment-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cart-payment-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.cart-payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.cart-payment-logo.is-visa {
  color: #1a4fb5;
}

.cart-payment-logo.is-mastercard {
  color: #d84315;
}

.cart-payment-logo.is-humo {
  color: #00796b;
}

.cart-payment-logo.is-uzcard {
  color: #1e88e5;
}

.cart-payment-logo.is-payme {
  color: #00a7e7;
}

.cart-page-title {
  margin: 0;
}

.cart-checkout-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 1100px);
  border-radius: 30px;
  background: #ffffff;
}

.modal-dialog:has(.modal-layout.is-success) {
  width: min(100%, 520px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
  font-size: 1.5rem;
}

.modal-layout {
  grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 0.95fr);
  align-items: start;
  padding: 1.5rem;
}

.modal-layout.is-success {
  grid-template-columns: 1fr;
  width: min(100%, 520px);
  min-height: 22rem;
  max-width: 520px;
  margin: 0 auto;
}

.modal-layout.is-success .modal-gallery {
  display: none;
}

.modal-layout.is-success {
  width: 100%;
}

.modal-layout.is-success .modal-content {
  width: min(100%, 520px);
  margin: 0 auto;
}

.modal-gallery,
.modal-content,
.order-form {
  display: grid;
  gap: 1rem;
}

.modal-gallery {
  align-content: start;
}

.modal-success-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1rem 0.5rem;
  text-align: center;
}

.modal-success-icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(31, 107, 75, 0.12);
  color: var(--success);
}

.modal-success-icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

.modal-success-title,
.modal-success-text {
  margin: 0;
}

.modal-success-text {
  max-width: 22rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.modal-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.modal-main-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(17, 17, 17, 0.06);
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: start;
  align-items: start;
  gap: 0.75rem;
}

.thumb-button {
  align-self: start;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.06);
}

.thumb-button.is-active {
  border-color: var(--accent);
}

.thumb-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-price {
  margin: 0;
  font-size: 2rem;
  color: var(--accent-dark);
}

.purchase-mode {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.size-picker {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.purchase-mode legend {
  padding: 0 0.35rem;
}

.size-picker legend {
  padding: 0 0.35rem;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.size-availability {
  margin: -0.25rem 0 0;
  color: var(--success);
  line-height: 1.5;
  min-height: 1.5rem;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.size-option input:checked + span {
  border-color: var(--accent);
  background: rgba(17, 17, 17, 0.08);
  color: var(--accent-dark);
}

.size-option.is-disabled {
  cursor: not-allowed;
}

.size-option.is-disabled span {
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(17, 17, 17, 0.04);
  color: var(--text-soft);
  opacity: 0.5;
}

.mode-option,
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.purchase-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-mode legend {
  grid-column: 1 / -1;
}

.mode-option {
  position: relative;
  min-height: 4rem;
  padding: 0;
  cursor: pointer;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mode-option input:checked + span {
  border-color: rgba(17, 17, 17, 0.3);
  background: rgba(17, 17, 17, 0.08);
}

.mode-option input:focus-visible + span {
  outline: 3px solid rgba(17, 17, 17, 0.22);
  outline-offset: 2px;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field-label,
.field span {
  font-size: 0.95rem;
}

.field:has(input[required]) span::after,
.field:has(select[required]) span::after,
.field:has(textarea[required]) span::after {
  content: " *";
  color: #c62828;
}

.cart-contact-method {
  display: grid;
  gap: 0.75rem;
}

.cart-contact-tabs {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-contact-tab {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cart-contact-tab.is-active {
  border-color: var(--accent);
  background: rgba(17, 17, 17, 0.08);
  color: var(--accent-dark);
}

.price-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  align-items: center;
  gap: 0.75rem;
}

.price-input-currency {
  color: var(--text-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

select,
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 16px;
  background: #ffffff;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.order-fields {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(242, 242, 242, 0.9);
}

.gift-wrap-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.gift-wrap-copy {
  line-height: 1.5;
}

.quantity-picker {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.quantity-button {
  min-height: 3.2rem;
  border: 0;
  background: rgba(17, 17, 17, 0.06);
  color: var(--accent-dark);
  font-size: 1.4rem;
}

#quantity-input {
  border: 0;
  border-left: 1px solid rgba(17, 17, 17, 0.12);
  border-right: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  text-align: center;
}

.is-hidden {
  display: none;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  color: var(--text-soft);
}

.form-message.is-error {
  color: #9b1c1c;
}

.form-message.is-success {
  color: var(--success);
}

:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.22);
  outline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

.admin-body {
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
}

.admin-shell {
  min-height: 100vh;
}

.admin-main {
  padding: 2rem 0 3rem;
}

.admin-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.admin-card {
  padding: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

.admin-tab.is-active {
  border-color: var(--accent);
  background: rgba(17, 17, 17, 0.06);
  color: var(--accent-dark);
}

.admin-auth-card {
  width: min(100%, 32rem);
}

.admin-toolbar,
.admin-header-actions,
.admin-form,
.admin-grid,
.admin-section,
.admin-actions,
.admin-image-card {
  display: grid;
  gap: 1rem;
}

.admin-toolbar {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 1.2rem;
}

.admin-header-actions {
  grid-auto-flow: column;
  align-items: center;
}

.admin-title {
  margin: 0;
  max-width: none;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.admin-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-card:has(.admin-product-form) .admin-title {
  font-size: 25px;
}

.admin-catalog-card .admin-title {
  font-size: 20px;
}

.admin-overview-card .admin-title {
  font-size: 20px;
}

.admin-subtitle,
.admin-back-link,
.admin-empty,
.admin-table-note {
  color: var(--text-soft);
  line-height: 1.6;
}

.admin-alert {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.06);
}

.admin-alert.is-error {
  background: rgba(155, 28, 28, 0.08);
  color: #9b1c1c;
}

.admin-alert.is-success {
  background: rgba(31, 107, 75, 0.08);
  color: var(--success);
}

.admin-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-section {
  margin-top: 0.5rem;
}

.admin-section-title {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 1.4rem;
}

.admin-image-card {
  position: relative;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 20px;
  background: rgba(242, 242, 242, 0.72);
  cursor: pointer;
}

.admin-site-row {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-site-row-head {
  display: grid;
  gap: 0.15rem;
}

.admin-onec-actions {
  margin-bottom: 1.25rem;
}

.admin-log-view {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.96);
  color: #f2f2f2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 32rem;
}

.admin-image-card h3 {
  margin: 0;
  grid-column: 2;
}

.admin-image-preview,
.admin-image-placeholder {
  width: 100%;
  max-width: 80px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  grid-row: 1 / span 3;
}

.admin-image-preview {
  object-fit: cover;
  background: rgba(17, 17, 17, 0.06);
  cursor: pointer;
}

.admin-image-card.is-marked-for-removal .admin-image-preview {
  display: none;
}

.admin-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: rgba(17, 17, 17, 0.06);
  cursor: pointer;
}

.admin-image-card .admin-image-placeholder {
  display: none;
}

.admin-image-card.is-marked-for-removal .admin-image-placeholder {
  display: grid;
}

.admin-image-card .field,
.admin-image-card .checkbox-field {
  grid-column: 2;
}

.admin-image-card .field span,
.admin-image-card .field input[type="file"] {
  display: none;
}

.admin-remove-image-button {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.84);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.admin-remove-image-button.is-active {
  background: #9b1c1c;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
}

.admin-table-note {
  display: block;
}

.admin-actions {
  grid-auto-flow: column;
  width: fit-content;
  align-items: center;
}

.admin-actions form {
  margin: 0;
}

.admin-danger-button {
  background: #111111;
  color: #ffffff;
}

.not-found-page {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 88px - 180px);
  padding: 4rem 0;
}

.not-found-card {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(17, 17, 17, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.not-found-code {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 0.9;
  color: var(--accent-dark);
}

.not-found-title {
  max-width: none;
  margin-top: 1rem;
}

.not-found-text {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.language-prompt {
  padding: 1rem 0 0;
}

.language-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.language-prompt-copy {
  display: grid;
  gap: 0.25rem;
}

.language-prompt-copy strong {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
}

.language-prompt-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.language-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-heading,
  .modal-layout,
  .cart-page-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 2rem;
  }

  .admin-toolbar,
  .admin-grid.two-columns,
  .admin-grid.three-columns,
  .admin-grid.four-columns,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 28rem;
  }

  .modal-dialog {
    width: min(100%, 500px);
  }

  .cart-delivery-card {
    grid-column: auto;
  }

  .language-prompt-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .brand-logo {
    max-width: 100px;
  }

  .brand-caption {
    display: none;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.65rem, 6.2vw, 2.2rem);
  }

  .hero-text,
  .section-copy,
  .footer-note {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .product-card h3,
  .store-card h3,
  .info-card h2,
  .site-footer h3,
  .price-tag {
    font-size: 18px;
  }

  .cart-delivery-title,
  .cart-delivery-option h3 {
    font-size: 18px;
  }

  .info-card p,
  .store-meta,
  .store-meta p,
  .product-card-content p,
  .cart-delivery-copy p,
  .cart-delivery-option p,
  .cart-delivery-badge,
  .cart-payment-text,
  .cart-payment-logo {
    font-size: 14px;
    line-height: 1.6;
  }

  .cart-payment-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-tab,
  .service-tabs .tab-button {
    font-size: 0.95rem;
  }

  #modal-title,
  .modal-success-title {
    font-size: 18px;
  }

  .modal-price {
    font-size: 18px;
  }

  .modal-description,
  .modal-success-text,
  .field span,
  .size-availability,
  .mode-option span,
  .checkbox-field,
  select,
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea {
    font-size: 14px;
  }

  .size-option span {
    font-size: 14px;
    line-height: 1;
  }

  .header-inner {
    gap: 0.8rem;
  }

  .admin-header-actions,
  .admin-actions {
    grid-auto-flow: row;
    width: 100%;
  }

  .header-side {
    min-width: auto;
  }

  .language-prompt-actions {
    width: 100%;
  }

  .hero-section,
  .catalog-section,
  .stores-section,
  .service-content,
  .service-tabs-section {
    padding: 3.25rem 0;
  }

  .hero-card-large {
    inset: 1.8rem 1rem 2.4rem 1.5rem;
  }

  .hero-card-small {
    width: 10rem;
    height: 8.5rem;
  }

  .store-grid,
  .offline-store-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .modal-thumbs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-button {
    flex: 0 0 4.5rem;
  }

  .service-tabs .tabs-nav {
    flex-direction: row;
    justify-content: center;
  }

  .purchase-mode {
    grid-template-columns: 1fr;
  }

  .cart-drawer-panel {
    width: 100%;
    padding: 1rem;
  }

  .cart-checkout-actions,
  .cart-item-actions {
    grid-template-columns: 1fr;
  }

  .service-tabs .tab-button {
    width: auto;
    justify-content: center;
  }

  .modal-dialog {
    width: min(100%, 760px);
  }

  .modal-layout {
    padding: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-policy-link {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
