
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7fbff;
  --bg-soft: #eef7ff;
  --bg-soft-2: #fff6fb;
  --surface: #ffffff;
  --surface-2: #f4f9ff;
  --line: #d7e6f7;
  --line-strong: #c8ddf4;
  --text: #17324d;
  --muted: #5e7185;
  --primary: #2e8de6;
  --primary-2: #67c6ff;
  --primary-dark: #185da8;
  --accent: #7b8cff;
  --shadow: 0 18px 42px rgba(36, 86, 147, 0.10);
  --shadow-soft: 0 10px 24px rgba(36, 86, 147, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(103, 198, 255, 0.22), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 174, 209, 0.18), transparent 20%),
    linear-gradient(180deg, #f8fcff 0%, #eef6ff 48%, #f9fbff 100%);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topo {
  position: relative;
  overflow: hidden;
  padding-bottom: 28px;
}

.topo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(103,198,255,.24), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(255,174,209,.16), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0));
  pointer-events: none;
}

.nav,
.hero,
.info-bar,
.menu-section,
footer {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.nav {
  position: relative;
  z-index: 3;
  padding: 22px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-wrap {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 24px;
  padding: 10px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.site-logo {
  width: 100%;
  height: auto;
  display: block;
}

.logo-area h1 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.06;
  color: #123a66;
}

.logo-area p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}

.cart-btn {
  border: 0;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(46, 141, 230, 0.24);
}

.cart-btn span {
  background: rgba(255,255,255,0.22);
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.hero {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.hero-text {
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6f5ff;
  border: 1px solid #bfe3fb;
  color: var(--primary-dark);
  padding: 9px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

.hero h2 {
  color: #14385f;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -1.3px;
  max-width: 700px;
}

.hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 18px 0 24px;
  font-size: 17px;
  line-height: 1.65;
}

.hero-btn,
.finish-btn,
.add-btn {
  border: 0;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(46, 141, 230, 0.24);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.hero-btn:hover,
.finish-btn:hover,
.add-btn:hover,
.category-tabs button:hover,
.cart-btn:hover {
  transform: translateY(-1px);
}

.hero-card {
  min-height: 350px;
  display: grid;
  place-items: center;
  position: relative;
}

.brand-panel {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-logo {
  width: min(250px, 86%);
  display: block;
  background: #fff;
  border-radius: 24px;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-badges span {
  background: #edf7ff;
  color: var(--primary-dark);
  border: 1px solid #d1e8fb;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.floating { display: none; }

.info-bar {
  margin: 12px auto 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-bar div {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.info-bar strong,
.info-bar span {
  display: block;
}

.info-bar strong {
  color: #18406e;
  font-size: 16px;
}

.info-bar span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.45;
}

.menu-section {
  padding: 28px 0 72px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title h2 {
  color: #163b64;
  font-size: clamp(30px, 3vw, 40px);
  margin-bottom: 6px;
}

.section-title p {
  color: var(--muted);
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.category-tabs::-webkit-scrollbar { height: 8px; }
.category-tabs::-webkit-scrollbar-thumb {
  background: #d8e8f8;
  border-radius: 999px;
}

.category-tabs button {
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.92);
  color: #23476f;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(36,86,147,0.05);
}

.category-tabs button.active {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  border-color: transparent;
  color: #fff;
}

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

.product-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.product-img {
  height: 240px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #eef6ff 100%);
  border: 1px solid #e3eef9;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.product-photo,
.product-card img,
.product-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 18px;
  padding: 8px;
}

.modal-product-photo {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #e3eef9;
  background: #f9fcff;
  padding: 10px;
}

.product-card h3 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #183d68;
}

.product-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.price {
  margin: 16px 0 14px;
  font-weight: 900;
  font-size: 17px;
  color: var(--primary-dark);
}

.add-btn {
  width: 100%;
}

.modal, .overlay { display: none; }

.modal.active {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 18px;
}

.overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(16, 38, 63, 0.35);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 22;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 32px 80px rgba(17, 48, 87, 0.18);
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary-dark);
  font-size: 25px;
  font-weight: 700;
}

.option-group { margin-top: 18px; }
.option-group h4 {
  margin-bottom: 10px;
  color: #1d446f;
}

.size-list, .addons-list {
  display: grid;
  gap: 10px;
}

.size-option, .addon-option,
.qty-control,
.modal-total,
.total-line,
.cart-item,
.info-note {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.size-option, .addon-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.size-option input, .addon-option input { transform: scale(1.1); }

.qty-control {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.qty-control div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.modal-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.modal-total {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  font-weight: 700;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -430px;
  width: min(430px, 96vw);
  height: 100vh;
  background: #ffffff;
  color: var(--text);
  z-index: 30;
  transition: .25s ease;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 38px rgba(17, 48, 87, 0.14);
}

.cart-panel.active { right: 0; }

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 { color: #183d68; }
.cart-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.cart-header button {
  border: 0;
  background: #eef6ff;
  color: var(--primary-dark);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 24px;
}

.cart-items {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.empty-cart {
  color: var(--muted);
  text-align: center;
  padding: 35px 10px;
}

.cart-item {
  padding: 14px;
  margin-bottom: 12px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-item h4 {
  font-size: 16px;
  color: #183d68;
}

.cart-item p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.4;
}

.remove-btn {
  background: #eef6ff;
  border: 1px solid #d9e9f9;
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 7px 9px;
  font-weight: 700;
}

.checkout {
  padding: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow-y: auto;
}

.checkout h4 {
  margin-bottom: 4px;
  color: #183d68;
}

.checkout label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.checkout input,
.checkout select,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f9fcff;
  color: var(--text);
  border-radius: 12px;
  padding: 11px;
  outline: none;
}

.checkout input:focus,
.checkout select:focus,
.checkout textarea:focus {
  border-color: #9fd3fb;
  box-shadow: 0 0 0 4px rgba(103,198,255,0.16);
}

.checkout select option { color: #111; }
.checkout textarea {
  min-height: 75px;
  resize: vertical;
}

.hidden { display: none !important; }

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  font-weight: 700;
}

.total-line strong,
.modal-total strong {
  color: var(--primary-dark);
}

.delivery-line {
  margin-bottom: -4px;
}

.finish-btn {
  width: 100%;
}

.checkout small {
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

footer {
  padding: 0 0 34px;
  text-align: center;
}

footer strong {
  display: block;
  color: #173b65;
  margin-bottom: 6px;
}

footer p {
  color: var(--muted);
  font-size: 14px;
}

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

  .info-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
  }

  .logo-wrap {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 18px;
    padding: 8px;
  }

  .logo-area h1 { font-size: 18px; }
  .logo-area p { font-size: 12px; }

  .cart-btn {
    padding: 10px 12px;
    font-size: 0;
  }

  .cart-btn span { font-size: 13px; }

  .hero {
    margin-top: 10px;
    gap: 16px;
  }

  .hero-text,
  .brand-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 15px;
  }

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

  .product-img {
    height: 230px;
  }

  .product-card h3 {
    font-size: 22px;
  }

  .modal-content {
    padding: 18px;
    border-radius: 22px;
  }

  .checkout {
    max-height: 56vh;
  }
}


#freeDeliveryHint {
  display: block;
  color: var(--primary-dark);
  font-size: 12px;
  line-height: 1.4;
  margin-top: -2px;
  margin-bottom: 4px;
}
