/* =====================================================
   MOZOK COFFEE — main.css
   ===================================================== */

/* --- Variables --- */
:root {
  --mozok-blue: #00b7ff;
  --mozok-pink: #ff2d9a;
  --mozok-border: #e7eef6;
  --mozok-text: #0b1220;
  --mozok-radius: 18px;
}

/* --- Base --- */
body {
  color: var(--mozok-text);
  background: #fff;
}

/* --- Brand --- */
.mozok-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mozok-blue);
}

.mozok-testbar {
  border: 1px solid #ffd0df;
  background: #ffe6ef;
  color: #6b1a3a;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

/* =====================================================
   NAV
   ===================================================== */

.mozok-nav-link {
  text-decoration: none;
  color: #1b2533;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.mozok-nav-link:hover {
  color: var(--mozok-pink);
}
.mozok-nav-link.mozok-active {
  border-bottom-color: var(--mozok-pink);
}

.mozok-nav-pill {
  text-decoration: none;
  border: 1px solid var(--mozok-border);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: #1b2533;
  font-weight: 600;
}
.mozok-nav-pill.mozok-active {
  border-color: var(--mozok-pink);
  color: var(--mozok-pink);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn-mozok {
  background: var(--mozok-blue);
  border: none;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.btn-mozok:hover {
  background: var(--mozok-pink);
  color: #fff;
}

.btn-mozok-alt {
  background: var(--mozok-pink);
  border: none;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.btn-mozok-alt:hover {
  background: var(--mozok-blue);
  color: #fff;
}

.btn-mozok-cart {
  background: var(--mozok-pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
}
.btn-mozok-cart:hover {
  background: var(--mozok-blue);
  color: #fff;
}

.mozok-cart-badge {
  background: #fff;
  color: #111;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1;
}

/* =====================================================
   FILTERS
   ===================================================== */

.filters-box {
  border: 1px solid var(--mozok-border);
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
}

/* =====================================================
   CHIPS (typeChips)
   ===================================================== */

#typeChips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mozok-chip {
  appearance: none;
  border: 0;
  background: var(--mozok-pink);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(255, 42, 163, 0.15);
}
.mozok-chip:hover,
.mozok-chip:focus {
  background: var(--mozok-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 183, 255, 0.18);
  outline: none;
}
.mozok-chip.active {
  background: var(--mozok-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 183, 255, 0.22);
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */

#productsGrid {
  align-items: stretch;
}

#productsGrid > div {
  display: flex;
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */

.product-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--mozok-radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.product-card:hover {
  border-color: rgba(255, 42, 163, 0.35);
  box-shadow: 0 14px 30px rgba(255, 42, 163, 0.14);
  transform: translateY(-2px);
  cursor: pointer;
}

/* Image */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f7f9;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img,
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Card body */
.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px;
}

/* Title: 2 рядки фіксовано */
.product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.15rem * 1.15 * 2);
}

/* Мета рядки (країна/регіон/обсмажка) */
.product-card .card-body .small.text-muted.mb-1,
.product-card .card-body .small.text-muted.mb-2 {
  min-height: 20px;
}

/* Смакові нотатки: 2 рядки */
.product-card .card-body > .small.text-muted:not(.mb-1):not(.mb-2) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 36px;
}

/* Stock статус */
.mozok-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}
.mozok-stock.ok,
.stock-ok {
  color: #0a7a2e;
  min-height: 20px;
  font-weight: 800;
}
.mozok-stock.soon,
.stock-soon {
  color: #b02a6a;
  min-height: 20px;
  font-weight: 800;
}

/* Селект помолу — притискаємо вниз */
.product-card .card-body > select.form-select,
.product-card .card-body select.form-select {
  margin-top: auto;
}

.product-card .form-select {
  border-radius: 12px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* Кнопка "До кошика" */
.product-card .btn {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  margin-top: 0.5rem;
}

.product-card .btn.btn-mozok {
  background: var(--mozok-blue) !important;
  border-color: var(--mozok-blue) !important;
  color: #fff !important;
}
.product-card .btn.btn-mozok:hover {
  background: var(--mozok-pink) !important;
  border-color: var(--mozok-pink) !important;
  color: #fff !important;
}

.product-card .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile */
@media (max-width: 575.98px) {
  .product-img-wrap {
    padding: 10px;
  }
  .product-card .card-body {
    padding: 14px;
  }
  .product-title {
    font-size: 1.05rem;
  }
}

/* =====================================================
   PRICE
   ===================================================== */

.price {
  font-weight: 750;
}
.product-price {
  font-weight: 700;
}

/* =====================================================
   PRODUCT PAGE (single)
   ===================================================== */

.product-media {
  border: 1px solid var(--mozok-border);
  border-radius: 16px;
  overflow: hidden;
  background: #f7f9fc;
}
.product-media-sm {
  background: #f7f9fc;
}
.product-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =====================================================
   MINI CART DRAWER
   ===================================================== */

.mozok-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 1040;
}
.mozok-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: #fff;
  border-left: 1px solid var(--mozok-border);
  transform: translateX(100%);
  transition: transform 0.18s ease;
  z-index: 1041;
  display: flex;
  flex-direction: column;
}
body.mozok-cart-open .mozok-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.mozok-cart-open .mozok-cart-drawer {
  transform: translateX(0);
}

.mozok-cart-head {
  padding: 14px;
  border-bottom: 1px solid var(--mozok-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mozok-cart-body {
  padding: 12px 14px;
  overflow: auto;
  flex: 1;
}
.mozok-cart-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--mozok-border);
}

.mozok-x {
  border: 1px solid var(--mozok-border);
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.mozok-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mozok-border);
}
.mozok-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.mozok-del {
  border: 1px solid var(--mozok-border);
  background: #fff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.75;
}
.mozok-del:hover {
  opacity: 1;
  border-color: #ffd0ea;
}

.mozok-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mozok-qtybtn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #bfeaff;
  background: #fff;
  color: var(--mozok-blue);
  font-weight: 900;
}
.mozok-qtybtn:hover {
  border-color: #ffd0ea;
  color: var(--mozok-pink);
}
.mozok-qtyinp {
  width: 56px;
  text-align: center;
  border: 1px solid var(--mozok-border);
  border-radius: 10px;
  height: 30px;
}

/* Mobile cart drawer */
@media (max-width: 991.98px) {
  .mozok-cart-drawer {
    top: 10px;
    right: 10px;
    height: auto;
    max-height: calc(100vh - 20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  }
}

/* FAB (більше не використовується) */
.mozok-cart-fab {
  display: none !important;
}

/* =====================================================
   CHECKOUT
   ===================================================== */

.mozok-h2 {
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-weight: 900;
}

.mozok-order-list {
  border: 1px solid var(--mozok-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.mozok-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--mozok-border);
}
.mozok-order-left {
  flex: 1;
  min-width: 0;
}
.mozok-order-mid {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mozok-order-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mozok-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.mozok-form {
  border: 1px solid var(--mozok-border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

/* =====================================================
   META LINKS
   ===================================================== */

.meta-link {
  color: var(--mozok-blue);
  text-decoration: none;
  font-weight: 700;
}
.meta-link:hover {
  color: var(--mozok-pink);
  text-decoration: underline;
}

/* =====================================================
   BURGER
   ===================================================== */

.mozok-burger {
  border-radius: 12px;
  font-weight: 800;
}

/* =====================================================
   MONO iPAY MODAL
   ===================================================== */

.mozok-mono-modal {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}
.mozok-mono-modal .modal-header {
  background: #000;
  color: #fff;
  border-bottom: 0;
}
.mozok-mono-modal .mozok-mono-sub {
  color: rgba(255, 255, 255, 0.75);
}
.mozok-mono-modal .mozok-mono-close {
  filter: invert(1);
  opacity: 0.9;
}

.mono-frame-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mono-frame {
  width: 600px;
  height: 600px;
  min-height: 576px;
  border: 0;
  border-radius: 24px;
  background: #fff;
}

@media (max-width: 700px) {
  .mono-frame {
    width: min(92vw, 600px);
    height: min(82vh, 600px);
    min-height: 0;
  }
  #monoPayModal .modal-dialog {
    margin: 0.75rem;
  }
}
