:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --muted: #5b6475;
  --text: #0f1a2a;
  --brand: #ffd400;
  --brand-2: #e31b23;
  --ok: #18a45b;
  --danger: #d92c2c;
  --ring: rgba(255, 212, 0, .5);
  --border: #d0d2d9;
  --shadow: 0 8px 24px rgba(16, 24, 40, .08);
  --radius: 16px;
  --site-header-h: 56px;
}

body.modal-open {
  padding-right: 0 !important;
}

img {
  max-width: 100%;
  display: block
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto
}

/* carousel */
.carous {
  margin-top: 0px;
}

/* Controls */
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0 8px
}

.chip {
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.711), rgba(255, 255, 255, 0.323));
  backdrop-filter: blur(6px);
  padding: .55rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.chip[data-active="true"],
.chip:hover {
  border-color: #d3d7e3;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(230, 202, 253, 0.703));
}

.sort {
  margin-left: auto;
}

select {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(240, 240, 255, 0.3));
  backdrop-filter: blur(6px);
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: .65rem .8rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

select:hover,
select:focus {
  border-color: #d3d7e3;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(230, 230, 255, 0.4));
  outline: none;
}

.search {
  position: relative;
  flex: 1 1 200px;
}

.search input {
  width: 100%;
  padding: .6rem 2.6rem .5rem .9rem;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(240, 240, 255, 0.3));
  backdrop-filter: blur(6px);
  font-weight: 600;
  transition: background .3s ease, border-color .3s ease, box-shadow .2s ease;
}

.search input:focus {
  border-color: #d3d7e3;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(230, 230, 255, 0.4));
  outline: none;
  box-shadow: 0 0 0 1px rgba(211, 215, 227, .35);
}

.search .search-btn {
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #98a0b3;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.search .search-btn:hover {
  color: #7f88a0;
}

.search .search-btn:active {
  transform: translateY(-50%) scale(0.96);
}


.search svg {
  position: absolute;
  right: 10px;
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
}


/* Sections */
section {
  margin: 24px 0
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px
}

.section-title h2 {
  margin: 0;
  font-size: 1.4rem
}

.section-title .kicker {
  color: var(--muted);
  font-weight: 600
}

.faq-section {
  margin: 24px 0;
  line-height: 1.5;
}

.faq-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.faq-title-wrap .faq-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text, #000);
}

.faq-title-wrap .kicker {
  color: var(--muted, #6b6b6b);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.3;
}

/* один пункт FAQ */
.faq-item {
  border: 1px solid rgba(44, 51, 71, .25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.015);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.faq-item[open] {
  background: rgba(0, 209, 170, 0.06);
  border-color: rgba(0, 209, 170, .5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text, #2c3347);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
  outline: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▼";
  font-size: .8rem;
  line-height: 1;
  color: rgba(44, 51, 71, .6);
  flex-shrink: 0;
  transition: transform .15s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-180deg);
  color: rgba(0, 209, 170, .8);
}

.faq-answer {
  margin-top: 10px;
  font-size: .95rem;
  color: rgba(44, 51, 71, .9);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .faq-section {
    margin: 32px 0;
  }

  .faq-item {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .faq-answer {
    font-size: 1rem;
  }
}

/* Newsletter */
.newsletter {
  border: 1px dashed #2c3347;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(1, 255, 204, 0.17), transparent);
  padding: 16px;
  color: var(--text, #2c3347);
}

.newsletter-inner {
  max-width: 100%;
  width: 100%;
}

.section-title h2 {
  font-size: clamp(1rem, 0.8rem + 1vw, 1.15rem);
  margin-bottom: .25rem;
}

.newsletter-heading {
  margin: 0 0 .75rem 0;
  font-size: clamp(.9rem, .8rem + .4vw, 1rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text, #2c3347);
}

.newsletter-form {
  display: block;
}

.newsletter-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.newsletter-input {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(44, 51, 71, .4);
  background: rgba(155, 155, 155, .3);
  color: var(--text, #2c3347);
  font-size: 1rem;
  line-height: 1.2;
  outline: none;
}

.newsletter-input:focus {
  border-color: #00d1aa;
  box-shadow: 0 0 0 3px rgba(0, 209, 170, .2);
}

.newsletter-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .9rem 1rem;
  background: #00d1aa;
  color: #000;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.newsletter-btn:active {
  scale: .98;
}

.newsletter-hint {
  margin: .5rem 0 0 0;
  font-size: .8rem;
  line-height: 1.3;
  color: rgba(44, 51, 71, .7);
}

@media (min-width: 576px) {
  .newsletter-row {
    flex-direction: row;
    align-items: stretch;
    gap: .6rem;
  }

  .newsletter-input {
    flex: 1 1 auto;
    min-width: 320px;
  }

  .newsletter-btn {
    flex: 0 0 auto;
    width: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .newsletter-inner {
    max-width: 800px;
  }
}

@media (min-width: 768px) {
  .newsletter {
    padding: 20px 24px;
  }

  .newsletter-heading {
    font-size: 1rem;
  }

  .newsletter-inner {
    max-width: 760px;
  }
}


/* FAQ */
details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.906);
  ;
  color: #e7ebf6;
}

details+details {
  margin-top: 10px
}

summary {
  cursor: pointer;
  font-weight: 700
}

summary::marker {
  color: #e7ebf6
}

/* PAGINATIONS */

.pagination {
  gap: .45rem;
  flex-wrap: wrap;
}

.pagination .page-item .page-link,
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50% !important;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(255, 255, 255, .7), rgba(240, 240, 255, .3));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, box-shadow .2s ease, transform .15s ease;
}

/* hover/focus */
.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus {
  border-color: #d3d7e3;
  background: linear-gradient(120deg, rgba(255, 255, 255, .85), rgba(230, 230, 255, .5));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
  outline: none;
}

/* active */
.pagination .page-item.active .page-link {
  border-color: #cfd5e6;
  background: linear-gradient(120deg, rgba(255, 255, 255, .95), rgba(225, 230, 255, .65));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 8px 20px rgba(50, 70, 140, .18);
  pointer-events: none;
}

/* disabled */
.pagination .page-item.disabled .page-link {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* дрібний твік для ««»/»» */
.pagination .page-link span[aria-hidden="true"] {
  line-height: 1;
}


/* ===== FIX: container + overflow ===== */

html,
body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  width: 100%;
  padding-left: var(--bs-gutter-x, .75rem);
  padding-right: var(--bs-gutter-x, .75rem);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .container {
    padding-left: max(.75rem, 12px);
    padding-right: max(.75rem, 12px);
  }
}

.container>.row {
  margin-left: calc(-.5 * var(--bs-gutter-x, .75rem));
  margin-right: calc(-.5 * var(--bs-gutter-x, .75rem));
}


.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
  max-width: 100%;
}

.carous .carousel-item {
    height: clamp(350px, 50vh, 520px);
}


.carous .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1120px) {
.carous .carousel-item {
    height: clamp(280px, 30vh, 520px);
    }
}

@media (max-width: 875.98px) {
.carous .carousel-item {
    height: clamp(280px, 30vh, 520px);
    }
}

@media (max-width: 650.98px) {
  .carous .carousel-item {
    /* трохи вище, ніж дефолт, але не на весь екран */
    height: clamp(180px, 15vh, 200px);
  }

  .carous .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
@media (max-width: 420.98px) {
  .carous .carousel-item {
    /* трохи вище, ніж дефолт, але не на весь екран */
    height: clamp(140px, 10vh, 160px);
  }

  .carous .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}


.controls {
  flex-wrap: wrap;
  overflow-x: hidden;
}

.controls .chip {
  max-width: 100%;
}

.product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.price_m {
  font-size: 1.9rem;
  font-weight: 800;
  color: #18a45b;
}

.qty_m-row {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-top: 6px
}

.qty_m {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

.qty_m button {
  background: #f2f4f8;
  border: 0;
  color: var(--text);
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer
}

.qty_m input {
  width: 40px;
  text-align: center;
  background: #fff;
  border: 0;
  color: var(--text);
  font-weight: 700
}

/* Alert */
#flash-root {
  position: fixed;
  right: 16px;
  z-index: 9999;
  width: min(360px, calc(100% - 32px));
  pointer-events: none;
}

.flash-item {
  pointer-events: auto;
  margin-top: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6e9f2;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.flash-item.show {
  opacity: 1;
  transform: translateX(0);
}

.flash-item.hide {
  opacity: 0;
  transform: translateX(100%);
}

.flash-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font: 500 14px/1.4 "Inter", system-ui, sans-serif;
  color: #0b1220;
}

.flash-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #73809b;
}

.flash-close:hover {
  color: #000;
}

.flash-item.success {
  border-color: #bbfee8;
  background: #f2fffa;
}

.flash-item.error {
  border-color: #ffd1d6;
  background: #fff5f6;
}

.flash-item.warning {
  border-color: #ffe7c2;
  background: #fffaf0;
}

.flash-item.info {
  border-color: #dfe6ff;
  background: #f5f7ff;
}

.cartm-row {
  padding-top: 1.25rem;
  padding-right: 1.25rem;
}

.cartm-dialog {
  --bs-modal-width: 92vw;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .cartm-dialog {
    --bs-modal-width: 540px;
  }
}

@media (min-width: 768px) {
  .cartm-dialog {
    --bs-modal-width: 720px;
  }
}

@media (min-width: 992px) {
  .cartm-dialog {
    --bs-modal-width: 840px;
  }
}

@media (min-width: 1200px) {
  .cartm-dialog {
    --bs-modal-width: 900px;
  }
}

.cartm-card {
  border-radius: var(--radius, 14px);
  overflow: hidden;
}

.modal-dialog.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 2rem);
}

@media (max-width: 575.98px) {
  .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--card, #fff);
    z-index: 1;
  }
}

.cartm-dialog {
  --bs-modal-width: clamp(320px, 92vw, 900px);
  margin-left: auto;
  margin-right: auto;
}

.modal.show .cartm-dialog,
.modal.fade .cartm-dialog {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 575.98px) {
  .modal {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width:576px) and (max-width:602px) {
  #cartModal .qty-sum {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 16px;
  }

  #cartModal .qty-sum form {
    flex: 0 0 auto;
    margin: 0 !important;
    width: auto !important;
  }

  #cartModal .qty-sum .cartm-subtotal {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    padding-left: 8px;
  }
}


.out-of-stock {
    filter: grayscale(80%);
    opacity: 0.6;
}

.out-of-stock-info {
  font-size: 11px;
  font-weight: bold 300;
}