.logo__img { height: 40px; width: auto; display: block; }
.logo__fallback { display: inline-flex; align-items: center; gap: 0.35rem; }
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--orange-500);
  color: #fff;
  font-size: 0.7rem;
  margin-left: 0.25rem;
}
.section--tight { padding-top: 0; }
.breadcrumb { font-size: 0.85rem; padding: 1rem 0 0; color: var(--text-muted); }
.breadcrumb a { text-decoration: none; }
.shop-hero__title { margin: 0 0 0.35rem; }
.shop-hero__sub { margin: 0; color: var(--text-muted); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-card__media { display: block; aspect-ratio: 1; background: var(--cream); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 1rem; }
.product-card__title { font-size: 1rem; margin: 0 0 0.5rem; }
.product-card__title a { color: inherit; text-decoration: none; }
.product-card__price s { color: var(--text-muted); margin-right: 0.35rem; font-size: 0.9em; }

/* Product detail */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.product-gallery__main {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--cream);
}
.product-buy__title { font-size: 1.75rem; margin: 0 0 0.35rem; }
.product-buy__rating { color: var(--orange-500); margin: 0 0 1rem; font-weight: 600; }
.product-buy__rating span { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }
.product-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-badges li {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.product-buy__price { margin: 0 0 0.5rem; }
.product-buy__old { color: var(--text-muted); margin-right: 0.5rem; }
.product-buy__current { font-size: 1.75rem; color: var(--green-800); }
.product-buy__stock { color: var(--green-700); font-weight: 600; }
.qty-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.qty-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--cream);
  font-size: 1.25rem;
  cursor: pointer;
}
.qty-input {
  width: 56px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
}
.btn--outline {
  background: #fff;
  color: var(--green-800);
  border: 2px solid var(--green-700);
  margin-top: 0.5rem;
}
.product-tabs { margin-top: 2.5rem; }
.product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.product-tabs__nav button {
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.product-tabs__nav button.is-active { border-color: var(--green-700); color: var(--green-800); }
.product-desc { white-space: pre-wrap; line-height: 1.65; }

/* Cart */
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-line__img img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-line__remove {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.cart-summary, .checkout-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--cream);
  position: sticky;
  top: 6rem;
}
.summary-rows { margin: 1rem 0; }
.summary-rows div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.summary-rows__total {
  font-weight: 800;
  font-size: 1.05rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* Checkout */
.checkout-shell { max-width: 1100px; }
.checkout-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.checkout-steps span { opacity: 0.45; }
.checkout-steps .is-active { opacity: 1; color: var(--green-800); }
.checkout-steps .is-done { opacity: 0.75; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}
.checkout-form .field { margin-bottom: 1rem; }
.checkout-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-lines li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.checkout-lines img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.checkout-note { color: var(--text-muted); font-size: 0.9rem; }
.form-error { color: #b42318; font-weight: 600; }
.checkout-success { text-align: center; }
.checkout-success-badge {
  width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 50%;
  background: #e6f4ea; color: #137333; font-size: 1.5rem; line-height: 3rem; font-weight: 700;
}

.checkout-verify { text-align: center; }
.checkout-verify__order { color: var(--text-muted); margin-bottom: 1.25rem; }
.checkout-verify__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: hx-spin 0.9s linear infinite;
}
@keyframes hx-spin { to { transform: rotate(360deg); } }
.checkout-verify__timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-800);
  margin: 0.5rem 0 0;
}
.checkout-verify__otp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 280px;
  margin: 1.25rem auto 0;
}
.checkout-verify__otp-form input {
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.checkout-verify__secure {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.08);
}
.checkout-title { margin: 0 0 1.25rem; font-size: 1.5rem; color: var(--green-shop-dark); }
.checkout-steps a { text-decoration: none; color: inherit; }
.checkout-secure { font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0 0; }

.pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pay-tabs__btn {
  border: 2px solid var(--border);
  background: #faf9f6;
  border-radius: 12px;
  padding: 0.85rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
}
.pay-tabs__btn.is-active {
  border-color: var(--green-shop);
  background: #eef6f0;
  color: var(--green-shop-dark);
}

.iban-box {
  background: #f0f7f2;
  border: 1px dashed var(--green-600);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.iban-box__hint { margin: 0 0 0.75rem; font-size: 0.92rem; }
.iban-box__rows { margin: 0; }
.iban-box__rows div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}
.iban-box__rows dt { font-weight: 700; color: var(--green-800); margin: 0; }
.iban-box__rows dd { margin: 0; }
.iban-box__iban-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.iban-box__rows code {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}
.iban-box__warn {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #9a6700;
  font-weight: 600;
}

.page-magaza .shop-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #fff;
  padding: 2rem 0;
  margin-bottom: 0;
}
.page-magaza .shop-hero__title { color: #fff; margin: 0; }
.page-magaza .shop-hero__sub { color: rgba(255,255,255,0.9); }

.product-card {
  border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(27, 67, 50, 0.12);
}
.product-buy__current { color: var(--green-shop-dark); }
.product-badges li { background: #eef6f0; border-color: #d8e8dc; }

.cart-page h1 { color: var(--green-shop-dark); }
.cart-empty h2 { color: var(--green-800); }

.checkout-page--pay.section { padding-top: 0.35rem; padding-bottom: 0.5rem; }
.checkout-page--pay .checkout-shell { max-width: 640px; }
.checkout-page--pay .checkout-grid { grid-template-columns: 1fr; }
.checkout-main--pay {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.pay-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}
.pay-head span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.pay-choice {
  position: relative;
  display: block;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 0.75rem;
  cursor: pointer;
}
.pay-choice > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pay-choice__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #1a1a1a;
}
.pay-choice__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cfcfcf;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
}
.pay-choice:has(input:checked) .pay-choice__dot {
  background: #111;
  border-color: #111;
}
.pay-choice:has(input:checked) .pay-choice__dot::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.pay-choice__body { display: none; padding: 0 1rem 1rem; }
.pay-choice:has(input:checked) .pay-choice__body { display: block; }
.pay-choice__body p {
  margin: 0 0 0.45rem;
  font-family: Urbanist, "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #111;
}
.pay-choice__bank { margin-top: 0.35rem; }
.pay-choice__account {
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  margin-bottom: 0.2rem;
}
.pay-choice__body--card .field { margin-bottom: 0.75rem; }
.pay-choice__body--card .field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pay-agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.55rem 0;
  font-size: 0.98rem;
  color: #222;
  cursor: pointer;
  line-height: 1.35;
}
.pay-agree > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pay-agree__box {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 3px;
  border: 1.5px solid #111;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pay-agree input:checked + .pay-agree__box {
  background: #111;
  border-color: #111;
}
.pay-agree input:checked + .pay-agree__box::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.pay-bar {
  margin: 1.15rem 0 0.5rem;
}
.pay-bar__btn {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pay-bar__btn:hover {
  background: #2a2a2a;
}

@media (max-width: 900px) {
  .product-layout, .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-summary { position: static; }
}
