/* ════════════════════════════════════════════
   Wishmash — Cart Page
   Template: woocommerce/cart/cart.php
   Версия: 2026.09e
════════════════════════════════════════════ */

/* ── СКРИВАМЕ WC NOTICES (add-to-cart съобщения и подобни) ── */
.wm-cart-active .woocommerce-notices-wrapper,
.wm-cart-active .woocommerce-message,
.wm-cart-active .woocommerce-info,
.wm-cart-active .woocommerce-error {
  display: none !important;
}

/* ── СКРИВАМЕ ДУБЛИРАНИЯ PAGE BANNER И RESET PADDING ── */
.wm-cart-active .wrap-bread-crumb,
.wm-cart-active .bread-crumb-,
.wm-cart-active .page-banner,
.wm-cart-active .page-header,
.wm-cart-active .page-header-wrap,
.wm-cart-active .inner-banner,
.wm-cart-active .bw-page-title,
.wm-cart-active .site-header-image,
.wm-cart-active .woocommerce-breadcrumb,
.wm-cart-active .entry-header {
  display: none !important;
}
/* Премахваме padding-top на #main-content (темата слага 100px) */
.wm-cart-active #main-content,
.wm-cart-active .main-page-default {
  padding: 0 !important;
}

.wm-cart-page {
  font-family: 'Inter', system-ui, sans-serif;
  color: #2C2C2C;
  background: #F8F4EE;
  min-height: 60vh;
}
.wm-cart-page *, .wm-cart-page *::before, .wm-cart-page *::after {
  box-sizing: border-box;
}
.wm-cart-page a { color: inherit; text-decoration: none; }
.wm-cart-page button, .wm-cart-page input { font: inherit; color: inherit; }
.wm-cart-page img { display: block; max-width: 100%; }

/* ── BREADCRUMB ── */
.wm-cart-breadcrumb {
  max-width: 1400px; margin: auto;
  padding: 12px 36px;
  color: #A89880; font-size: .7rem;
  display: flex; gap: 8px; align-items: center;
}
.wm-cart-breadcrumb a { color: #A89880; transition: color .22s; }
.wm-cart-breadcrumb a:hover { color: #7A6555; }

/* ── CONTAINER ── */
.wm-cart-container {
  max-width: 1400px; margin: auto;
  padding: 38px 36px 80px;
}

/* ── PAGE HEAD ── */
.wm-cart-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 24px;
  margin-bottom: 30px;
}
.wm-cart-eyebrow {
  font-size: .63rem; text-transform: uppercase;
  letter-spacing: .12em; color: #A89880; margin-bottom: 8px;
}
.wm-cart-page h1 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: clamp(1.65rem, 3vw, 2.15rem) !important;
  font-weight: 400 !important; line-height: 1.15;
  color: #2C2C2C !important;
  margin: 0;
}

/* ── LAYOUT ── */
.wm-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0 48px;
  align-items: start;
}
.wm-cart-items-col { min-width: 0; }

/* ── CART LIST ── */
.wm-cart-list { border-top: 1px solid #DDD4C6; }

.wm-cart-item {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px 48px;
  padding: 28px 0;
  border-bottom: 1px solid #DDD4C6;
}

.wm-cart-item-img {
  width: 260px;
  aspect-ratio: 3/2;
  border-radius: 10px;
  overflow: hidden;
  background: #F1EAE0;
  display: block;
}
.wm-cart-item-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.wm-cart-item-main { min-width: 0; }

.wm-cart-item-title {
  display: block;
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.16rem !important; font-weight: 500 !important;
  line-height: 1.3; color: #2C2C2C;
  margin-bottom: 10px;
}
.wm-cart-item-title:hover { color: #8C6420; }

/* Acowebs / WC formatted item data */
.wm-cart-item-options {
  margin: 0 0 13px;
}
.wm-cart-item-options .wc-item-meta,
.wm-cart-item-options dl.variation {
  margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 4px 18px;
}
.wm-cart-item-options .wc-item-meta li,
.wm-cart-item-options dl.variation dt,
.wm-cart-item-options dl.variation dd {
  font-size: .8rem; color: #7A6555;
  line-height: 1.5; margin: 0; padding: 0;
  list-style: none;
}
.wm-cart-item-options .wc-item-meta li p,
.wm-cart-item-options dl.variation dd p { margin: 0; }
.wm-cart-item-options strong,
.wm-cart-item-options .wc-item-meta li strong,
.wm-cart-item-options .wc-item-meta-label {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: #7A6555;
}

/* ── CART ITEM HIERARCHY ── */

/* 2. Характеристики (цвят, стойка…) — една под друга */
.wm-cart-chars {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.wm-cart-chars li {
  font-size: .8rem; line-height: 1.5;
}

/* 3. Персонализация (надпис, гравюра…) — една под друга */
.wm-cart-personal {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.wm-cart-personal li {
  font-size: .8rem; line-height: 1.5;
}
.wm-cart-personal em { font-style: normal; }

/* Ключ (до двоеточието) — черен */
.wm-cart-char-key {
  color: #2C2C2C; font-weight: 500;
}
/* Стойността (самата опция) — златисто */
.wm-cart-chars li .wm-cart-char-val,
.wm-cart-personal li .wm-cart-char-val {
  color: #8C6420;
}

/* × addon remove button */
.wm-cart-price-addon .wm-cart-price-part-label {
  display: flex; align-items: center; gap: 4px;
}
.wm-addon-remove {
  border: none; background: none; padding: 0;
  width: 18px; height: 18px; line-height: 1;
  font-size: .85rem; color: #A89880;
  cursor: pointer; flex: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}
.wm-addon-remove:hover,
.wm-addon-remove:focus-visible { background: #fff; color: #2C2C2C; outline: none; }

/* Price breakdown */
.wm-cart-price-build {
  max-width: 430px; margin: 0 0 13px;
  padding: 9px 11px;
  background: #F1EAE0;
  border: 1px solid #DDD4C6;
  border-radius: 6px;
  display: grid; gap: 5px;
}
.wm-cart-price-part {
  display: flex; justify-content: space-between;
  gap: 14px; font-size: .8rem;
  line-height: 1.45; color: #7A6555;
}
.wm-cart-price-part span:last-child { white-space: nowrap; color: #2C2C2C; }
.wm-cart-price-part.wm-cart-price-total {
  padding-top: 5px;
  border-top: 1px solid #DDD4C6;
  font-weight: 500; color: #2C2C2C;
}
.wm-cart-price-part .woocommerce-Price-amount { color: inherit; }

/* Item actions */
.wm-cart-item-actions {
  display: flex; align-items: center; gap: 16px;
}
.wm-cart-text-link {
  border: 0; background: none;
  color: #8C6420 !important; font-size: .75rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  cursor: pointer; padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .22s;
  display: inline-block;
}
.wm-cart-text-link:hover { border-color: currentColor; }
.wm-cart-remove { color: #A89880 !important; }
.wm-cart-remove:hover { color: #2C2C2C !important; border-color: #A89880; }

/* Cart tools row */
.wm-cart-tools {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  padding-top: 18px;
}
.wm-cart-continue {
  display: inline-flex; gap: 7px; align-items: center;
  color: #7A6555 !important; font-size: .73rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: color .22s;
}
.wm-cart-continue:hover { color: #8C6420 !important; }
.wm-cart-coupon-toggle {
  border: 0; background: none;
  color: #7A6555 !important; font-size: .72rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  cursor: pointer; padding: 0;
}
.wm-cart-coupon-toggle:hover { color: #8C6420 !important; }

/* Coupon form */
.wm-cart-coupon {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px; margin-top: 14px;
  max-width: 390px; margin-left: auto;
}
.wm-cart-coupon.open { display: grid; }
.wm-cart-coupon input[type="text"] {
  height: 40px;
  border: 1px solid #C4B8A8;
  background: #fff;
  border-radius: 6px;
  padding: 0 12px; color: #2C2C2C;
  outline: none;
  transition: border-color .22s;
  font-size: .8rem;
}
.wm-cart-coupon input[type="text"]:focus { border-color: #8C6420; }
.wm-cart-small-btn {
  height: 40px; padding: 0 16px;
  border: 1.5px solid #2C2C2C;
  border-radius: 6px; background: transparent;
  font-size: .72rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: border-color .22s, color .22s;
}
.wm-cart-small-btn:hover { border-color: #8C6420; color: #8C6420; }

/* WC notices within cart */
.wm-cart-page .woocommerce-message,
.wm-cart-page .woocommerce-error,
.wm-cart-page .woocommerce-info {
  margin: 0 0 16px; padding: 12px 16px;
  border-radius: 6px; font-size: .8rem;
  list-style: none;
}
.wm-cart-page .woocommerce-message { background: #F0E4CC; border-left: 3px solid #8C6420; }
.wm-cart-page .woocommerce-error  { background: #fdecea; border-left: 3px solid #c62828; }
.wm-cart-page .woocommerce-info   { background: #F1EAE0; border-left: 3px solid #C4B8A8; }

/* ── SUMMARY SIDEBAR ── */
.wm-cart-summary-col {
  position: sticky;
  top: 130px;
  align-self: start;
}
.wm-cart-note {
  font-family: 'Lora', Georgia, serif !important;
  font-style: italic;
  font-size: .82rem; color: #7A6555;
  line-height: 1.55; margin: 0 0 16px;
}
.wm-cart-summary {
  background: #fff;
  border: 1px solid #DDD4C6;
  border-radius: 10px;
  padding: 24px;
}
.wm-cart-summary h2 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.15rem !important; font-weight: 500 !important;
  margin: 0 0 20px; padding: 0;
}
.wm-cart-sum-products {
  padding: 0 0 17px;
  border-bottom: 1px solid #DDD4C6;
  font-size: .8rem; color: #7A6555;
}
.wm-cart-sum-total {
  display: flex; justify-content: space-between;
  align-items: baseline;
  padding: 18px 0 20px;
}
.wm-cart-sum-total span:first-child {
  font-size: .82rem; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em; color: #7A6555;
}
.wm-cart-sum-total strong {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.38rem !important; font-weight: 500 !important;
  color: #2C2C2C;
}
.wm-cart-sum-total .woocommerce-Price-amount,
.wm-cart-sum-total .woocommerce-Price-amount bdi,
.wm-cart-sum-total strong bdi,
.wm-cart-sum-total .woocommerce-Price-currencySymbol {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.38rem !important; font-weight: 500 !important;
  color: #2C2C2C !important;
}

.wm-cart-checkout-btn {
  display: block; width: 100%;
  min-height: 48px; line-height: 48px;
  padding: 0 16px;
  border: 1.5px solid #2C2C2C;
  border-radius: 6px; background: transparent;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: .78rem !important; font-weight: 600 !important;
  letter-spacing: .02em; cursor: pointer;
  transition: border-color .22s, color .22s;
  text-align: center;
  color: #2C2C2C;
}
.wm-cart-checkout-btn:hover {
  border-color: #8C6420; color: #8C6420;
}

/* Trust items */
.wm-cart-trust {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid #DDD4C6;
  display: grid; gap: 10px;
}
.wm-cart-trust-item {
  display: flex; gap: 9px; align-items: flex-start;
  color: #7A6555; font-size: .73rem; line-height: 1.5;
}
.wm-cart-trust-item svg {
  width: 15px; height: 15px;
  fill: none; stroke: #8C6420; stroke-width: 1.6;
  flex: none; margin-top: 1px;
}

/* ── EMPTY CART ── */
.wm-cart-empty {
  text-align: center;
  padding: 84px 20px;
  border-top: 1px solid #DDD4C6;
  border-bottom: 1px solid #DDD4C6;
}
.wm-cart-empty h2 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.35rem !important; font-weight: 400 !important;
  margin: 0 0 9px;
}
.wm-cart-empty p {
  font-size: .76rem; color: #7A6555; margin: 0 0 22px;
}
.wm-cart-empty a {
  display: inline-flex; height: 42px; padding: 0 20px;
  align-items: center;
  border: 1.5px solid #2C2C2C;
  border-radius: 6px; font-size: .74rem;
  transition: border-color .22s, color .22s;
}
.wm-cart-empty a:hover { border-color: #8C6420; color: #8C6420; }

/* ── MOBILE STICKY BAR ── */
.wm-cart-mobile-bar {
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .wm-cart-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 0 32px; }
  .wm-cart-item { grid-template-columns: 220px minmax(0,1fr); gap: 16px 28px; }
  .wm-cart-item-img { width: 220px; }
}

@media (max-width: 1020px) {
  .wm-cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .wm-cart-summary-col { position: static; }
  .wm-cart-container { padding: 32px 28px 52px; }
  .wm-cart-breadcrumb { padding-left: 28px; padding-right: 28px; }
}

/* ── FOOTER ── */
.wm-cart-footer {
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #DDD4C6;
  padding: 24px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  color: #A89880;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  line-height: 1.5;
  box-sizing: border-box;
}
.wm-cart-footer-brand { display: grid; gap: 3px; }
.wm-cart-footer-logo {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: .8rem;
  color: #7A6555;
}
.wm-cart-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
  font-size: .72rem;
  color: #A89880;
}
.wm-cart-footer-links a { color: inherit; transition: color .22s; }
.wm-cart-footer-links a:hover { color: #8C6420; }
.wm-cart-footer-company {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}
.wm-cart-footer-company strong {
  color: #7A6555;
  font-size: .72rem;
  font-weight: 600;
}
.wm-cart-footer-company span { font-size: .72rem; white-space: nowrap; }
.wm-cart-footer-company a { color: #8C6420; }
.wm-cart-footer-company a:hover { text-decoration: underline; }

@media (max-width: 1020px) {
  .wm-cart-footer { grid-template-columns: 1fr; gap: 14px; padding: 20px 28px; }
  .wm-cart-footer-links { justify-content: flex-start; }
  .wm-cart-footer-company { justify-items: start; text-align: left; }
}
@media (max-width: 820px) {
  .wm-cart-footer { grid-template-columns: 1fr !important; gap: 14px !important; text-align: center !important; }
  .wm-cart-footer-brand { justify-items: center !important; text-align: center !important; }
  .wm-cart-footer-links { justify-content: center !important; }
  .wm-cart-footer-company { justify-items: center !important; text-align: center !important; }
  .wm-cart-footer-company span { white-space: normal !important; }
}
@media (max-width: 700px) {
  .wm-cart-footer { padding: 20px 20px 110px !important; }
}

@media (max-width: 700px) {
  .wm-cart-breadcrumb { display: none; }
  .wm-cart-container { padding: 24px 20px 110px; }
  .wm-cart-item {
    grid-template-columns: 112px minmax(0,1fr);
    gap: 14px; padding: 18px 0;
  }
  .wm-cart-item-img { width: 112px; }
  .wm-cart-item-options .wc-item-meta,
  .wm-cart-item-options dl.variation {
    grid-template-columns: 1fr;
  }
  .wm-cart-tools { flex-direction: column; align-items: flex-start; }
  .wm-cart-coupon { margin-left: 0; max-width: none; width: 100%; }
  .wm-cart-summary { padding: 20px; }

  /* Mobile sticky checkout bar */
  .wm-cart-mobile-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 80;
    background: #fff;
    border-top: 1px solid #DDD4C6;
    padding: 10px 16px;
    box-shadow: 0 -8px 30px rgba(44,28,10,.08);
  }
  .wm-cart-mobile-total {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.08rem !important; white-space: nowrap;
  }
  .wm-cart-mobile-bar .wm-cart-checkout-btn {
    height: 46px; line-height: 46px;
  }
  /* Hide desktop summary on mobile (we show mobile bar) */
  .wm-cart-summary-col { display: none; }
}

/* ── Много малки екрани: снимката на целия ред, детайли отдолу ── */
@media (max-width: 480px) {
  .wm-cart-container { padding: 20px 16px 110px; }
  .wm-cart-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }
  .wm-cart-item-img {
    width: 100%;
    max-height: 220px;
    aspect-ratio: 3/2;
  }
  .wm-cart-item-options .wc-item-meta,
  .wm-cart-item-options dl.variation {
    grid-template-columns: auto 1fr;
  }
  .wm-cart-item-title { font-size: 1rem; }
  /* Предотвратяваме хоризонтален overflow */
  .wm-cart-container, .wm-cart-list { overflow-x: clip; max-width: 100%; }
}
