:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #767676;
  --dark: #0d0d0d;
  --border: #e5e5e5;
  --radius: 4px;
  --sale: #e2231a;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  background: url('../img/header-bg.jpg') no-repeat top center fixed;
  background-size: 100% auto;
  color: #ccc;
  font-size: 12px;
}
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 34px; flex-wrap: wrap; }
.topbar__item:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: url('../img/header-bg.jpg') no-repeat top center fixed;
  background-size: 100% auto;
  color: #fff;
}
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 42px;
  width: 240px;
  max-width: 45vw;
  background: url('../img/logo.png') no-repeat left center;
  background-size: contain;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}
.logo * {
  display: none !important;
}

.header-search { flex: 1; display: flex; max-width: 520px; }
.header-search input { flex: 1; padding: 12px 18px; border: none; border-radius: 30px 0 0 30px; font-size: 14px; }
.header-search button { padding: 0 20px; border: none; background: #fff; color: var(--dark); font-size: 16px; border-radius: 0 30px 30px 0; cursor: pointer; border-left: 1px solid var(--border); }

.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-icon { position: relative; display: flex; align-items: center; font-size: 20px; color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

.cart-badge, .wishlist-badge { background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; min-width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; padding: 0 3px; }

/* Dark category nav bar */
.category-nav {
  background: url('../img/header-bg.jpg') no-repeat top center fixed;
  background-size: 100% auto;
  border-top: 1px solid #222;
}
.category-nav__inner { display: flex; align-items: center; }
.category-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 14px 0; flex-wrap: wrap; }
.category-links a { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #fff; }
.category-links a:hover { color: #bbb; }

.nav-menu { display: none; list-style: none; margin: 0; padding: 0; gap: 16px; }
.nav-menu a { font-size: 15px; color: #fff; display: flex; align-items: center; gap: 6px; }
.nav-menu a:hover { color: #bbb; }

@media (max-width: 900px) {
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .category-links { display: none; }
  .category-nav { position: relative; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: flex-start; padding: 16px 20px; display: none; z-index: 30; }
  .nav-menu.open { display: flex; }
}

/* Hero */
.hero { position: relative; height: 460px; overflow: hidden; background: radial-gradient(circle at 30% 30%, #2b2b2b, #050505 75%); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity .5s ease; background-size: cover; background-position: center; }
.hero__slide.active { opacity: 1; pointer-events: auto; }
.hero__slide-inner { position: relative; z-index: 1; max-width: 600px; padding: 0 60px; color: #fff; }
.hero__eyebrow { font-size: 13px; letter-spacing: 3px; color: #bbb; margin-bottom: 14px; }
.hero__slide-inner h1 { font-size: 44px; margin: 0 0 16px; letter-spacing: 1px; line-height: 1.1; }
.hero__slide-inner p { color: #ccc; font-size: 16px; margin: 0 0 28px; }

.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 18px; cursor: pointer; z-index: 5; }
.hero__arrow:hover { background: rgba(255,255,255,.3); }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }
.hero__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.hero__dot.active { background: #fff; width: 22px; border-radius: 4px; }

@media (max-width: 720px) { .hero { height: 380px; } .hero__slide-inner { padding: 0 24px; } .hero__slide-inner h1 { font-size: 32px; } }

.btn { display: inline-block; padding: 13px 30px; border-radius: 2px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; border: 2px solid var(--dark); background: transparent; color: var(--dark); transition: transform .15s ease, opacity .15s ease; }
.btn--primary { background: var(--dark); color: #fff; }
.hero .btn--primary { background: #fff; color: var(--dark); border-color: #fff; }
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Section headers */
.section { padding: 40px 0 10px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section__head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.section__mark { width: 18px; height: 3px; background: var(--sale); display: inline-block; }
.section__all { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.section__all:hover { color: var(--dark); }

.top-offer-section {
  background: #fafafa;
  border: 1px solid var(--border);
  border-top: 3px solid var(--sale);
  border-radius: 14px;
  padding: 26px 24px 22px;
  margin-top: 24px;
}

/* Category circles */
.category-circles { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 16px; }
.category-circle { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 96px; text-align: center; }
.category-circle__img { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #f2f2f2; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.category-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.category-circle__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

/* Sale banner */
.sale-banner {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.5) 55%, rgba(0,0,0,.82)), url('../img/header-bg.jpg') center / cover no-repeat;
  color: #fff;
  margin-top: 30px;
}
.sale-banner__stripes {
  position: absolute; top: 0; left: 0; bottom: 0; width: 180px;
  background: repeating-linear-gradient(115deg, transparent 0 22px, var(--sale) 22px 28px, transparent 28px 70px);
  opacity: .85;
  z-index: 1;
  pointer-events: none;
}
.sale-banner__bull {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  width: 220px; height: 42px; z-index: 1; pointer-events: none;
  background: url('../img/logo.png') no-repeat right center;
  background-size: contain;
  opacity: .4;
}
.sale-banner__bull path, .sale-banner__bull circle { display: none; }
.sale-banner__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 20px;
}
.sale-banner__text { display: flex; flex-direction: column; gap: 8px; }
.sale-banner__title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}
.sale-banner__dash { font-weight: 400; color: #ccc; font-size: 26px; }
.sale-banner__accent { color: var(--sale); }
.sale-banner__subtitle { font-size: 13px; letter-spacing: 3px; color: #aaa; text-transform: uppercase; }
.sale-banner__btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.5); border-radius: 30px; padding: 12px 22px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  transition: background .2s ease, color .2s ease;
}
.sale-banner:hover .sale-banner__btn { background: #fff; color: #111; }
.sale-banner__arrow { font-size: 15px; }

@media (max-width: 720px) {
  .sale-banner__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 20px; }
  .sale-banner__title { font-size: 26px; }
  .sale-banner__bull { display: none; }
}

/* Catalog toolbar */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
.catalog-toolbar select, .catalog-toolbar input { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.catalog-toolbar input { flex: 1; min-width: 180px; }
.catalog-toolbar input[type="number"] { flex: 0 0 110px; min-width: 0; }
#catalog-status { width: 100%; color: var(--muted); font-size: 13px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; padding: 8px 0 40px; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.product-card__media { position: relative; display: block; aspect-ratio: 3/4; background: #f2f2f2; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; }
.product-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 4px 9px; border-radius: 3px; color: #fff; background: var(--dark); z-index: 2; }
.product-badge--sale { background: var(--sale); }
.wishlist-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: none; cursor: pointer; font-size: 15px; color: #bbb; display: flex; align-items: center; justify-content: center; z-index: 2; transition: transform .15s ease; }
.wishlist-btn:active { transform: scale(.85); }
.wishlist-btn.active { color: var(--sale); }
.product-card__body { padding: 14px; }
.product-card__cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; margin-bottom: 6px; min-height: 36px; }
.product-card__sizes { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.product-card__rating { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.product-card__stock { font-size: 12px; color: var(--sale); font-weight: 700; margin-bottom: 6px; }
.product-card__price { font-weight: 800; font-size: 15px; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* Product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 60px; }
.product-gallery__main { background: #f2f2f2; border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product-gallery__thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; }
.product-gallery__thumbs img.active { border-color: var(--dark); }
.product-info h1 { margin-top: 0; font-size: 26px; }
.product-vendor { color: var(--muted); margin-bottom: 8px; }
.product-price { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.product-unavailable { color: var(--sale); font-weight: 600; margin-bottom: 16px; }
.product-params { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.product-params td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.product-params td:first-child { color: var(--muted); width: 40%; }
.product-description { margin-top: 24px; line-height: 1.6; color: #333; }
@media (max-width: 800px) { .product-page { grid-template-columns: 1fr; } }

.variant-group { margin-bottom: 16px; }
.variant-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.variant-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; font-size: 14px; }
.variant-btn.active { border-color: var(--dark); background: var(--dark); color: #fff; font-weight: 600; }
.variant-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.product-stock { color: #2e7d32; font-size: 14px; margin-bottom: 16px; }
.product-stock.low { color: var(--sale); font-weight: 700; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.75)), url('../img/footer-bg.jpg') bottom center / cover no-repeat;
  color: #ccc;
  margin-top: 40px;
  font-size: 14px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 48px 20px 36px;
}
.footer-col h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #bbb; font-size: 13px; }
.footer-col ul a:hover { color: #fff; }
.footer-link--sale { color: var(--sale) !important; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  width: 200px;
  max-width: 60vw;
  background: url('../img/logo.png') no-repeat left center;
  background-size: contain;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  margin-bottom: 10px;
}
.footer-logo * { display: none !important; }
.footer-tagline { font-size: 11px; letter-spacing: 2px; color: #888; text-transform: uppercase; margin: 0; }

.footer-contacts { gap: 12px !important; margin-bottom: 18px; }
.footer-contacts li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #bbb; }
.footer-contacts .ts-icon { width: 15px; height: 15px; color: var(--sale); flex-shrink: 0; }
.footer-contacts a { color: #bbb; }
.footer-contacts a:hover { color: #fff; }

.footer-social { display: flex; gap: 12px; }
.footer-social-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #ccc; }
.footer-social-icon:hover { background: #fff; color: #111; border-color: #fff; }
.footer-social-icon .ts-icon { width: 15px; height: 15px; }

.footer-newsletter__desc { font-size: 12px; color: #999; margin: 0 0 14px; line-height: 1.5; }
.footer-newsletter { display: flex; }
.footer-newsletter input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); border-radius: 30px 0 0 30px; color: #fff; font-size: 13px; }
.footer-newsletter input::placeholder { color: #888; }
.footer-newsletter input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.footer-newsletter button { padding: 0 18px; border: none; background: var(--sale); color: #fff; font-size: 15px; border-radius: 0 30px 30px 0; cursor: pointer; }
.footer-newsletter button:hover { opacity: .9; }
.footer-newsletter__msg { font-size: 12px; color: #4caf50; margin: 10px 0 0; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); position: relative; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 20px; font-size: 12px; color: #888; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #888; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 980px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ Кошик-панель (drawer) ============ */
.cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 90;
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 100vw;
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.cart-drawer__header h2 { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .5px; }
.cart-drawer__close {
  background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted);
  width: 32px; height: 32px; border-radius: 50%; transition: background .2s ease, color .2s ease;
}
.cart-drawer__close:hover { background: #f2f2f2; color: var(--dark); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-drawer__empty { text-align: center; color: var(--muted); padding: 60px 0 30px; }
.cart-drawer__empty p { margin-bottom: 20px; }

.cart-drawer__item {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border);
  animation: cartItemIn .3s ease;
}
@keyframes cartItemIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cart-drawer__item.removing { animation: cartItemOut .25s ease forwards; }
@keyframes cartItemOut { to { opacity: 0; transform: translateX(30px); } }

.cart-drawer__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: #f2f2f2; }
.cart-drawer__info { flex: 1; min-width: 0; }
.cart-drawer__name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-drawer__meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cart-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-drawer__price { font-weight: 700; font-size: 14px; }
.cart-drawer__remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px; transition: color .2s ease; }
.cart-drawer__remove:hover { color: var(--sale); }

.qty-stepper { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .1s ease;
}
.qty-btn:hover { background: #f2f2f2; }
.qty-btn:active { transform: scale(.9); }
.qty-value { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }

.cart-drawer__footer { border-top: 1px solid var(--border); padding: 18px 24px 24px; flex-shrink: 0; }
.cart-drawer__total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.cart-drawer__footer .btn { width: 100%; text-align: center; }

@media (max-width: 480px) { .cart-drawer { width: 100vw; } }

.header-icon.bump .cart-badge { animation: badgeBump .35s ease; }
@keyframes badgeBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ============ Сторінка оформлення замовлення ============ */
.checkout-steps { display: flex; align-items: center; gap: 10px; margin: 32px 0 18px; font-size: 13px; color: var(--muted); }
.checkout-step { display: flex; align-items: center; gap: 8px; }
.checkout-step__num {
  width: 22px; height: 22px; border-radius: 50%; background: #eee; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.checkout-step.active { color: var(--dark); font-weight: 700; }
.checkout-step.active .checkout-step__num { background: var(--dark); color: #fff; }
.checkout-step__sep { width: 40px; height: 1px; background: var(--border); }

#view-checkout h1 { font-size: 26px; margin: 0 0 6px; }
.checkout-subtitle { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

.checkout-page { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 0 0 60px; align-items: start; }

.checkout-form-page { display: flex; flex-direction: column; gap: 20px; }
.checkout-section {
  border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.checkout-section__head { display: flex; align-items: center; gap: 12px; }
.checkout-section__head h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0; }
.checkout-section__icon {
  width: 34px; height: 34px; padding: 8px; box-sizing: border-box;
  background: #f2f2f2; border-radius: 8px; color: var(--dark); flex-shrink: 0;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: border-color .2s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--dark); }

.delivery-options { display: flex; flex-direction: column; gap: 10px; }
.delivery-option {
  display: flex; align-items: center; gap: 14px; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.delivery-option:hover { border-color: #bbb; }
.delivery-option.selected { border-color: var(--dark); background: #fafafa; }
.delivery-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.delivery-option__radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; }
.delivery-option.selected .delivery-option__radio { border-color: var(--dark); }
.delivery-option.selected .delivery-option__radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--dark);
}
.delivery-option__icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.delivery-option__text { display: flex; flex-direction: column; gap: 2px; }
.delivery-option__title { font-weight: 600; font-size: 14px; }
.delivery-option__desc { font-size: 12px; color: var(--muted); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.payment-option:hover { border-color: #bbb; }
.payment-option.selected { border-color: var(--dark); background: #fafafa; }
.payment-option input { margin-top: 3px; }
.payment-option__title { font-weight: 600; font-size: 14px; margin-bottom: 2px; display: block; }
.payment-option__desc { font-size: 12px; color: var(--muted); display: block; }

.checkout-page__error { color: var(--sale); font-size: 13px; }
.checkout-page .btn { align-self: flex-start; }

.order-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 100px; }
.order-summary h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 16px; }
.order-summary__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.order-summary__item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.order-summary__item-info { flex: 1; min-width: 0; }
.order-summary__item-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.order-summary__item-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.order-summary__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-summary__total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding-top: 16px; }
.order-summary__note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.order-summary__note svg { width: 18px; height: 18px; flex-shrink: 0; color: #2e7d32; margin-top: 1px; }

@media (max-width: 860px) {
  .checkout-page { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* ============ Інформаційні сторінки (Про нас / Доставка / Повернення / Контакти / Блог) ============ */
.info-page { max-width: 720px; padding: 40px 0 70px; }
.info-page h1 { font-size: 28px; margin: 0 0 24px; }
.info-page__body h2 { font-size: 17px; margin: 26px 0 10px; }
.info-page__body h2:first-child { margin-top: 0; }
.info-page__body p { line-height: 1.7; color: #333; margin: 0 0 16px; }
.info-page__body ul { margin: 0 0 16px; padding-left: 20px; line-height: 1.7; color: #333; }
.info-page__body li { margin-bottom: 6px; }
.info-page__body strong { color: var(--dark); }
.info-page__motto { font-weight: 700; color: var(--dark); }
.info-page__warning {
  background: #fdf3f2; border: 1px solid #f3d6d3; border-radius: var(--radius);
  padding: 14px 16px; color: #7a2b24; line-height: 1.6;
}
.info-page__contacts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-page__contacts li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.info-page__contacts .ts-icon { width: 18px; height: 18px; color: var(--sale); flex-shrink: 0; }
.info-page__social, .info-page__social-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.info-page__social a { font-weight: 700; text-decoration: underline; }

/* ============ Екран успіху ============ */
.order-success { text-align: center; padding: 40px 10px; }
.order-success__icon {
  width: 64px; height: 64px; border-radius: 50%; background: #2e7d32; color: #fff;
  font-size: 30px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; animation: successPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes successPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.order-success h3 { margin: 0 0 10px; font-size: 18px; }
.order-success__number { font-size: 15px; margin-bottom: 6px; }
.order-success p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.order-success__review-note { color: var(--dark); font-weight: 600; font-size: 14px; margin: -8px 0 20px; }
.order-success__review-items { display: flex; flex-direction: column; gap: 10px; margin: 0 0 26px; text-align: left; }
.order-success__review-item {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
}
.order-success__review-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: #f2f2f2; }
.order-success__review-item span { flex: 1; font-size: 13px; font-weight: 600; }
.order-success__review-item .btn { padding: 8px 16px; font-size: 12px; white-space: nowrap; }

/* ============ Модальне вікно "Написати відгук" ============ */
.review-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 190;
}
.review-modal-overlay.open { opacity: 1; pointer-events: auto; }

.review-modal {
  position: fixed; top: 50%; left: 50%; width: 460px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 32px 30px 28px;
  transform: translate(-50%, -50%) scale(.92); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  z-index: 200; box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.review-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

.review-modal__close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: #f2f2f2; border: none; cursor: pointer; font-size: 15px; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.review-modal__close:hover { background: #eaeaea; color: var(--dark); }

.review-modal__title { margin: 0 0 4px; font-size: 21px; font-weight: 800; padding-right: 30px; }
.review-modal__product { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.review-form { display: flex; flex-direction: column; gap: 16px; }
.review-form__stars { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.review-form__stars button {
  background: none; border: none; font-size: 34px; line-height: 1; cursor: pointer;
  color: #ddd; transition: transform .12s ease, color .12s ease; padding: 0;
}
.review-form__stars button:hover { transform: scale(1.12); }
.review-form__stars button.active { color: #f5b301; }

.review-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; resize: vertical; transition: border-color .2s ease;
}
.review-form textarea:focus { outline: none; border-color: var(--dark); }
.review-form .btn { width: 100%; text-align: center; }
.review-form__error { color: var(--sale); font-size: 13px; }

.review-modal__success { text-align: center; padding: 10px 0 6px; }
.review-modal__success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #2e7d32; color: #fff;
  font-size: 26px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; animation: successPop .4s cubic-bezier(.34,1.56,.64,1);
}
.review-modal__success h3 { margin: 0 0 8px; font-size: 17px; }
.review-modal__success p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.review-modal__success .btn { width: 100%; text-align: center; }

@media (max-width: 520px) {
  .review-modal { width: 100%; padding: 26px 20px 24px; }
}

/* ── Кнопка "Написати відгук" у блоці відгуків на сторінці товару ── */
.pr-side--empty { text-align: center; padding: 22px 10px; }
.pr-side__empty-text { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.pr-side-write-btn { margin-top: 16px; }