/* ICONIC — спільні стилі: шрифти підключені в base.html через Google Fonts */
html, body { margin: 0; padding: 0; background: #faf8f6; }
* { box-sizing: border-box; }
body { font-family: Manrope, system-ui, sans-serif; color: #15100f; }
a { color: #c0120f; text-decoration: none; }
img { max-width: 100%; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .pd-plus { transform: rotate(45deg); }
input, textarea, select { font-family: Manrope, system-ui, sans-serif; }
input::placeholder, textarea::placeholder { color: rgba(21, 16, 15, .32); }
input:focus, textarea:focus, select:focus { outline: none; border-color: #15100f; }
button { font-family: Manrope, system-ui, sans-serif; }

@keyframes iconicMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header / nav ---------- */
.nav-link { color: #15100f; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav-link:hover, .nav-link.active { color: #c0120f; border-bottom: 2px solid #c0120f; }

.icon-link { color: #15100f; transition: color .2s ease; }
.icon-link:hover, .icon-link.active { color: #c0120f; }

.btn-cart-pill { display: flex; align-items: center; gap: 8px; background: #15100f; color: #fff; padding: 10px 16px; border-radius: 999px; transition: background .2s ease; }
.btn-cart-pill:hover { background: #c0120f; color: #fff; }

.burger-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; flex: none; padding: 0; }
.burger-btn span { display: block; height: 2px; background: #15100f; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- мобільне бічне меню (drawer) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(21, 16, 15, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
  z-index: 999;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(84vw, 360px);
  background: #faf8f6; z-index: 1000; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -12px 0 40px rgba(21, 16, 15, .18);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 5vw, 28px); border-bottom: 1px solid rgba(21, 16, 15, .1); flex: none; }
.drawer-close { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(21, 16, 15, .18); background: transparent; color: #15100f; display: grid; place-items: center; cursor: pointer; transition: all .2s ease; flex: none; }
.drawer-close:hover { border-color: #c0120f; color: #c0120f; }

.mobile-drawer-search { padding: 18px clamp(20px, 5vw, 28px) 4px; flex: none; }
.mobile-drawer-search input { width: 100%; border: 1px solid rgba(21, 16, 15, .18); border-radius: 999px; padding: 13px 20px; font: 500 14px/1 Manrope, sans-serif; background: #fff; }

.mobile-drawer-links { display: flex; flex-direction: column; padding: 10px clamp(20px, 5vw, 28px) 18px; flex: 1; }
.mobile-drawer-links a {
  padding: 16px 0; font: 700 15px/1 Unbounded, sans-serif; letter-spacing: -.01em; text-transform: uppercase;
  color: #15100f; border-bottom: 1px solid rgba(21, 16, 15, .1); transition: color .2s ease, padding-left .2s ease;
}
.mobile-drawer-links a:hover, .mobile-drawer-links a:active { color: #c0120f; padding-left: 6px; }

.mobile-drawer-footer { display: flex; gap: 10px; padding: 18px clamp(20px, 5vw, 28px) 26px; border-top: 1px solid rgba(21, 16, 15, .1); flex: none; }
.mobile-drawer-footer a { padding: 15px 18px; font-size: 11px; }

body.drawer-open { overflow: hidden; }

/* ---------- product gallery lightbox ---------- */
.pdp-zoom-trigger { position: relative; }
.pdp-zoom-trigger::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 6px rgba(21, 16, 15, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%2315100f' stroke-width='1.8'/%3E%3Cpath d='M20 20l-4.3-4.3' stroke='%2315100f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M11 8.5v5M8.5 11h5' stroke='%2315100f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; opacity: 0; transition: opacity .2s ease;
}
.pdp-zoom-trigger:hover::after { opacity: 1; }

.pdp-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
}
.pdp-lightbox.open { display: flex; }
.pdp-lightbox-backdrop { position: absolute; inset: 0; background: rgba(21, 16, 15, .92); }
.pdp-lightbox-img {
  position: relative; z-index: 1; max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto; object-fit: contain;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.pdp-lightbox-close {
  position: absolute; z-index: 2; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s ease;
}
.pdp-lightbox-close:hover { background: #fff; color: #15100f; }
.pdp-lightbox-nav {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; display: grid; place-items: center;
  cursor: pointer; transition: all .2s ease;
}
.pdp-lightbox-nav:hover { background: #fff; color: #15100f; }
.pdp-lightbox-prev { left: 20px; }
.pdp-lightbox-next { right: 20px; }
.pdp-lightbox-nav[hidden] { display: none; }
@media (max-width: 640px) {
  .pdp-lightbox-prev { left: 8px; }
  .pdp-lightbox-next { right: 8px; }
  .pdp-lightbox-close { top: 12px; right: 12px; }
}

/* ---------- buttons ---------- */
.btn-primary, a.btn-primary, a.btn-primary:visited { background: #c0120f; color: #fff; padding: 17px 30px; border-radius: 999px; font: 700 12px/1 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: background .25s ease; white-space: nowrap; max-width: 100%; text-align: center; }
.btn-primary:hover { background: #15100f; color: #fff; }

.btn-outline, a.btn-outline, a.btn-outline:visited { border: 1px solid rgba(21, 16, 15, .25); color: #15100f; padding: 17px 30px; border-radius: 999px; font: 700 12px/1 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; background: transparent; cursor: pointer; transition: all .25s ease; white-space: nowrap; max-width: 100%; text-align: center; }
.btn-outline:hover, a.btn-outline:visited:hover { border: 1px solid #15100f; background: #15100f; color: #fff; }

.btn-dark, a.btn-dark { background: #15100f; color: #fff; padding: 12px 20px; border-radius: 999px; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: background .2s ease; }
.btn-dark:hover { background: #c0120f; color: #fff; }

/* ---------- chips / filters ---------- */
.chip { border: 1px solid rgba(21, 16, 15, .18); border-radius: 999px; padding: 11px 20px; font: 600 12px/1 Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #15100f; transition: all .2s ease; display: inline-flex; align-items: center; background: transparent; cursor: pointer; white-space: nowrap; }
.chip:hover { background: #c0120f; border-color: #c0120f; color: #fff; }
.chip.active { background: #15100f; border-color: #15100f; color: #fff; }

/* ---------- product cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.product-card { display: flex; flex-direction: column; gap: 14px; color: #15100f; }
.product-card:hover { color: #c0120f; }
.product-card .thumb { position: relative; border-radius: 16px; overflow: hidden; background: #eeebe8; aspect-ratio: 5/6; }
.product-card .thumb img.main { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .thumb img.main { transform: scale(1.05); }
.product-card .thumb img.lifestyle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s ease; }
.product-card:hover .thumb img.lifestyle { opacity: 1; }
.badge-pill { position: absolute; z-index: 3; top: 12px; left: 12px; background: #c0120f; color: #fff; padding: 6px 10px; border-radius: 999px; font: 700 10px/1 Manrope, sans-serif; letter-spacing: .14em; }
.badge-pill.dark { background: #15100f; }

.wish-btn { position: absolute; z-index: 3; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; background: rgba(250, 248, 246, .9); display: grid; place-items: center; font-size: 14px; color: #15100f; border: none; cursor: pointer; padding: 0; }
.wish-btn.active { color: #c0120f; }

/* ---------- footer ---------- */
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-heading { font: 700 11px/1 Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.footer-heading::before { content: ""; width: 16px; height: 1px; background: rgba(255, 255, 255, .5); display: block; flex: none; }
.footer-link, .footer-link:visited { color: rgba(255, 255, 255, .85); font: 500 14px/1 Manrope, sans-serif; transition: color .2s ease; }
.footer-link:hover { color: #fff; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); flex: none; transition: all .2s ease; }
.footer-social:hover .footer-social-icon { background: #fff; color: #c0120f; border-color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- checkout / delivery-payment radio rows ---------- */
.option-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; background: #fff; padding: 16px 20px; border-radius: 12px; transition: all .22s ease; font: 700 12px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #15100f; border: 1px solid rgba(21, 16, 15, .18); }
.option-row.active { border: 1px solid #c0120f; background: rgba(192, 18, 15, .05); }
.option-dot { flex: none; width: 14px; height: 14px; border-radius: 999px; display: block; transition: all .22s ease; border: 1px solid rgba(21, 16, 15, .35); background: #fff; }
.option-row.active .option-dot { border: 4px solid #c0120f; background: #fff; }

.bestseller-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bestseller-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.color-chip { padding: 13px 24px; border-radius: 999px; cursor: pointer; font: 700 11.5px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; transition: all .25s ease; background: #fff; border: 1px solid rgba(21, 16, 15, .25); color: #15100f; }
.color-chip.active { background: rgba(192, 18, 15, .07); border: 1px solid #c0120f; color: #c0120f; }

.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid rgba(21, 16, 15, .2); border-radius: 999px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; font: 500 16px/1 Manrope, sans-serif; color: #15100f; transition: background .2s ease; }
.qty-btn:hover { background: rgba(21, 16, 15, .06); }

.account-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid rgba(21, 16, 15, .14); padding: 18px 0; cursor: pointer; font: 700 12px/1 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #15100f; transition: color .2s ease; }
.account-nav-item:hover, .account-nav-item.active { color: #c0120f; }

.account-tab-pill { flex: none; border-radius: 999px; padding: 11px 16px; cursor: pointer; white-space: nowrap; transition: all .2s ease; font: 700 10.5px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: transparent; border: 1px solid rgba(21, 16, 15, .18); color: #15100f; }
.account-tab-pill.active { background: #c0120f; border-color: #c0120f; color: #fff; }

.field label { display: flex; flex-direction: column; gap: 9px; }
.field .field-label { font: 600 11px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(21, 16, 15, .55); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=password] {
  border: none; border-bottom: 1px solid rgba(21, 16, 15, .25); background: transparent; padding: 12px 0;
  font: 500 15px/1.2 Manrope, sans-serif; color: #15100f; width: 100%;
}
.field-error { color: #c0120f; font: 500 12px/1.4 Manrope, sans-serif; margin: 4px 0 0; }

.summary-toggle { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .desktop-nav, .desktop-actions { display: none !important; }
  .burger-btn { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-grid > div:first-child { padding: 40px clamp(20px, 5vw, 56px) 32px !important; min-height: auto !important; }
  .hero-grid > div:last-child { min-height: 320px !important; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .checkout-grid aside { position: static !important; border-left: none !important; padding-left: 0 !important; border-top: 1px solid rgba(21, 16, 15, .14); padding-top: 24px !important; }
  .account-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .account-grid nav { position: static !important; flex-direction: row !important; overflow-x: auto; border-top: none !important; gap: 8px; }
  .account-grid nav button { width: auto !important; border-bottom: none !important; border: 1px solid rgba(21, 16, 15, .18); border-radius: 999px; padding: 11px 16px !important; font-size: 10.5px !important; white-space: nowrap; }
  .pdp-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .pdp-grid > div:last-child { position: static !important; }
  .info-grid-sticky { position: static !important; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .footer-brand {
    grid-column: 1 / -1; align-items: center; text-align: center;
    margin-top: 8px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .28);
  }
  .contact-fields { grid-template-columns: minmax(0, 1fr) !important; }
  h1 { word-break: break-word; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .btn-primary, .btn-outline, .btn-dark { white-space: normal; padding: 15px 22px; }
  .bestseller-name { font-size: 11.5px; }
}
