/*
Theme Name: Kerion
Theme URI: https://kerion.ge
Author: Kerion
Description: Custom WooCommerce theme for Kerion
Version: 1.0.0
Text Domain: kerion
*/
/* ==========================================================
   Kerion — сине-красная тема
   ========================================================== */
:root {
  --blue-950: #3ca9fc;
  --blue-900: #0b2a6f;
  --blue-700: #1240a8;
  --blue-600: #1a53d6;
  --blue-100: #e6edfb;
  --blue-50:  #f4f7fd;
  --red-600:  #e3262e;
  --red-700:  #bf1b22;
  --red-100:  #fde8e9;
  --ink:      #121a33;
  --muted:    #5d6785;
  --line:     #dbe2f2;
  --radius:   14px;
  --shadow:   0 6px 22px rgba(11, 42, 111, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.hero-tile {
  overflow: hidden;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body {
  font-family: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
.brand-logo {
  height: 45px;
  width: auto;
  display: block;
}
a { color: var(--blue-600); }
a:hover { color: var(--red-600); }

:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 2px;
}

/* ---------- Кнопки ---------- */
.btn-red {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
  font-weight: 600;
}
.btn-red:hover, .btn-red:focus {
  background: var(--red-700);
  border-color: var(--red-700);
  color: #fff;
}
.btn-red:disabled { background: #e9a0a4; border-color: #e9a0a4; color: #fff; }

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--red-600);
  color: #fff;
  font-size: .875rem;
  padding: .45rem 0;
}
.topbar-phone { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-phone:hover { color: #fff; text-decoration: underline; }

/* ---------- Шапка ---------- */
.site-header { background: var(--blue-900); z-index: 1030; box-shadow: 0 2px 12px rgba(7, 23, 63, .35); }
.site-header .navbar { padding: .7rem 0; }

.brand {
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand:hover { color: #fff; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-right: .15rem;
  background: var(--red-600);
  color: #fff;
  border-radius: 8px 8px 8px 0;
  font-size: 1.25rem;
}

.site-header .nav-link { color: #cfd9f6; font-weight: 500; }
.site-header .nav-link:hover,
.site-header .nav-link.active { color: #fff; }

.search-form .form-control {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.search-form .form-control::placeholder { color: #a9b8e6; }
.search-form .form-control:focus {
  background: #fff; color: var(--ink);
  border-color: var(--red-600);
  box-shadow: 0 0 0 .2rem rgba(227, 38, 46, .25);
}

.btn-cart {
  background: #fff;
  color: var(--blue-900);
  font-weight: 700;
  border: 0;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-cart:hover { background: var(--red-100); color: var(--red-700); }
.cart-badge { background: var(--red-600); color: #fff; border-radius: 999px; min-width: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--blue-950) 0%, var(--blue-900) 55%, var(--blue-700) 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}
/* красная диагональ */
.hero::after {
  content: "";
  position: absolute;
  right: -12%; bottom: -55%;
  width: 55%; height: 140%;
  background: var(--red-600);
  transform: rotate(18deg);
  opacity: .92;
}
.hero .container { position: relative; z-index: 1; }

.hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.hero-text { font-size: 1.15rem; color: #d7e0fa; max-width: 46ch; margin-bottom: 1.75rem; }

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 340px;
  margin-left: auto;
}
.hero-tile {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 3.4rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.tile-b { transform: translateY(1.5rem); }
.tile-d { transform: translateY(1.5rem); }

/* ---------- Преимущества ---------- */
.perks { background: var(--blue-50); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.perks strong { display: block; color: var(--blue-900); }
.perks span { color: var(--muted); font-size: .92rem; }

/* ---------- Каталог ---------- */
.catalog { padding: 3.5rem 0; }

.section-title {
  font-weight: 800;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .6rem;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px;
  background: var(--red-600);
  border-radius: 4px;
}

/* Категории */
.category-bar {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding: .25rem 0 1rem;
  margin-bottom: .5rem;
  scrollbar-width: thin;
}
.cat-btn {
  flex: 0 0 auto;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--blue-900);
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: .45rem;
}
.cat-btn:hover { border-color: var(--blue-600); }
.cat-btn.active {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}
.cat-btn .cat-count {
  font-size: .78rem;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 0 .5rem;
  border-radius: 999px;
}
.cat-btn.active .cat-count { background: var(--red-600); color: #fff; }

/* Панель сортировки */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin-bottom: 1.75rem;
}
.toolbar-count { font-weight: 600; color: var(--blue-900); }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.price-range { display: flex; align-items: center; gap: .4rem; }
.price-range .form-control { width: 105px; }
.price-range span { color: var(--muted); }
.sort-box .form-select { min-width: 210px; }

.toolbar .form-control:focus,
.toolbar .form-select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 .2rem rgba(26, 83, 214, .2);
}

/* Карточка товара */
.product-card {
  height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--blue-600); }

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  font-size: 4rem;
  background: var(--blue-50);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge-sale {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--red-600);
  color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 6px;
}

.product-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-cat { font-size: .82rem; color: var(--muted); }
.product-name { font-size: 1.02rem; font-weight: 600; margin: 0; color: var(--ink); }
.product-prices { margin-top: auto; padding-top: .5rem; display: flex; align-items: baseline; gap: .6rem; }
.price-now { font-size: 1.3rem; font-weight: 800; color: var(--blue-900); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.product-card .btn { margin-top: .6rem; }

/* Пустой результат */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- О нас ---------- */
.about { background: var(--blue-50); border-top: 1px solid var(--line); padding: 3.5rem 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem .5rem; }
.stat b { display: block; font-size: 1.8rem; color: var(--red-600); font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Футер ---------- */
.site-footer { background: var(--blue-900); color: #c3cef0; padding: 3rem 0 1.25rem; }
.site-footer a { color: #c3cef0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .3rem; }
.footer-title { font-size: 1.05rem; color: #fff; font-weight: 700; margin-bottom: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .88rem; }

/* ---------- Корзина ---------- */
#cartPanel .offcanvas-header { background: var(--blue-900); color: #fff; }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-thumb {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  background: var(--blue-50);
  border-radius: 10px;
}
.cart-item-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cart-item-price { color: var(--muted); font-size: .88rem; }
.qty { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.qty button {
  width: 28px; height: 28px; line-height: 1;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  font-weight: 700; color: var(--blue-900);
}
.qty button:hover { border-color: var(--red-600); color: var(--red-600); }
.cart-remove { border: 0; background: none; color: var(--red-600); font-size: .85rem; }
.cart-remove:hover { text-decoration: underline; }
.cart-empty { text-align: center; color: var(--muted); padding: 2.5rem 0; }
.cart-footer { border-top: 2px solid var(--line); padding-top: 1rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero::after { width: 90%; right: -45%; bottom: -70%; }
  .hero-cards { margin: 1rem auto 0; }
  .site-header .navbar-collapse { padding-top: .75rem; }
}
@media (max-width: 575.98px) {
  .toolbar-controls, .sort-box, .sort-box .form-select { width: 100%; }
  .price-range { width: 100%; }
  .price-range .form-control { flex: 1; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 575.98px) {
  .price-range {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .price-range .form-control {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
  }

  .price-range span {
    flex: 0 0 auto;
  }
}

/* =========================================
   KERION PRODUCT CARDS
   ========================================= */

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-thumb {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #ffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.product-cat {
  font-size: 0.78rem;
  color: #777;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 8px;
  min-height: 2.7em;
}

.product-description {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  margin: 0 0 10px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-stock {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-stock.in-stock {
  color: #198754;
}

.product-stock.out-of-stock {
  color: #dc3545;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 12px;
}

.price-now {
  font-size: 1.2rem;
  font-weight: 700;
}

.price-old {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #dc3545;
  color: #fff;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-stock-out {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #333;
  color: #fff;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-body .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 575.98px) {

  .product-thumb {
    height: 190px;
  }

  .product-body {
    padding: 12px;
  }

  .product-name {
    font-size: 0.92rem;
  }

  .product-description {
    font-size: 0.78rem;
  }

  .price-now {
    font-size: 1.05rem;
  }

  .product-stock {
    font-size: 0.76rem;
  }

  .badge-sale {
    top: 7px;
    left: 7px;
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .badge-stock-out {
    top: 7px;
    right: 7px;
    padding: 4px 7px;
    font-size: 0.68rem;
  }
}

/* =========================================================
   KERION SINGLE PRODUCT PAGE
   ========================================================= */

.kerion-product-page {
    background: #f7f8fa;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Breadcrumb */

.kerion-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #777;
}

.kerion-breadcrumb a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.kerion-breadcrumb a:hover {
    color: #d71920;
}


/* Main product card */

.kerion-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e9eaec;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}


/* Image */

.kerion-product-image-wrap {
    position: relative;
    min-height: 560px;
    height: 100%;
    background: #f7f7f7;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px;
}

.kerion-product-image {
    display: block;

    width: 100%;
    height: 470px;

    object-fit: contain;
}

.kerion-product-badge {
    position: absolute;

    top: 24px;
    left: 24px;

    z-index: 2;

    background: #111;
    color: #fff;

    padding: 7px 13px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}


/* Product information */

.kerion-product-info {
    height: 100%;

    padding: 45px 45px 40px;

    display: flex;
    flex-direction: column;
}

.kerion-product-stock {
    color: #198754;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 14px;
}

.kerion-product-title {
    margin: 0 0 18px;

    font-size: 34px;
    line-height: 1.15;

    font-weight: 800;
    color: #171717;
}

.kerion-product-short-description {
    color: #666;

    font-size: 15px;
    line-height: 1.7;

    margin-bottom: 24px;
}


/* Price */

.kerion-product-price {
    font-size: 32px;
    line-height: 1;

    font-weight: 800;

    color: #d71920;

    margin-bottom: 30px;
}


/* Options */

.kerion-product-options {
    margin-bottom: 25px;
}

.kerion-option-title {
    font-size: 14px;
    font-weight: 700;

    color: #222;

    margin-bottom: 10px;
}

.kerion-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kerion-variant-list button,
.kerion-variant {
    border: 1px solid #dcdfe3;

    background: #fff;

    color: #222;

    border-radius: 10px;

    padding: 11px 18px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.kerion-variant-list button:hover,
.kerion-variant:hover {
    border-color: #d71920;
}

.kerion-variant-list button.active,
.kerion-variant.active {
    background: #d71920;
    border-color: #d71920;

    color: #fff;
}


/* Quantity */

.kerion-quantity-section {
    margin-bottom: 20px;
}

.kerion-quantity-control {
    width: 150px;

    height: 48px;

    display: flex;
    align-items: center;

    border: 1px solid #dcdfe3;
    border-radius: 10px;

    overflow: hidden;

    background: #fff;
}

.kerion-quantity-btn {
    width: 48px;
    height: 100%;

    border: 0;
    background: #f5f5f5;

    font-size: 22px;

    cursor: pointer;

    transition: background .2s ease;
}

.kerion-quantity-btn:hover {
    background: #e9e9e9;
}

#singleProductQuantity {
    width: 54px;
    height: 100%;

    border: 0;

    text-align: center;

    font-size: 16px;
    font-weight: 700;

    outline: none;
}

#singleProductQuantity::-webkit-inner-spin-button,
#singleProductQuantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#singleProductQuantity {
    appearance: textfield;
}


/* Add to cart */

.kerion-add-to-cart {
    width: 100%;

    min-height: 54px;

    border: 0;
    border-radius: 11px;

    background: #d71920;
    color: #fff;

    font-size: 16px;
    font-weight: 800;

    margin-top: 4px;

    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.kerion-add-to-cart:hover {
    background: #b9141a;
    color: #fff;

    transform: translateY(-1px);

    box-shadow: 0 7px 20px rgba(215, 25, 32, .2);
}

.kerion-add-to-cart:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}


/* Cart button */

.kerion-go-cart {
    width: 100%;

    min-height: 48px;

    margin-top: 10px;

    border: 1px solid #dcdfe3;
    border-radius: 11px;

    background: #fff;
    color: #222;

    font-size: 14px;
    font-weight: 700;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.kerion-go-cart:hover {
    border-color: #222;
    background: #f7f7f7;
}


/* Product meta */

.kerion-product-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 20px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid #ececec;

    color: #777;

    font-size: 13px;
}

.kerion-product-meta strong {
    color: #333;
}


/* Description */

.kerion-product-content {
    margin-top: 30px;
}

.kerion-content-card {
    background: #fff;

    border: 1px solid #e9eaec;
    border-radius: 20px;

    padding: 35px 40px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .04);
}

.kerion-content-card h2 {
    margin: 0 0 22px;

    font-size: 24px;
    font-weight: 800;

    color: #171717;
}

.kerion-description {
    color: #555;

    font-size: 15px;
    line-height: 1.8;
}

.kerion-description img {
    max-width: 100%;
    height: auto;
}

.kerion-description h2,
.kerion-description h3,
.kerion-description h4 {
    color: #222;
    margin-top: 25px;
    margin-bottom: 12px;
}

.kerion-description ul,
.kerion-description ol {
    padding-left: 22px;
}


/* Error */

.kerion-product-error {
    margin-top: 25px;

    padding: 18px 20px;

    border-radius: 12px;

    background: #fff0f0;
    border: 1px solid #ffd1d1;

    color: #b42318;

    font-weight: 600;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .kerion-product-image-wrap {
        min-height: 420px;
        padding: 30px;
    }

    .kerion-product-image {
        height: 350px;
    }

    .kerion-product-info {
        padding: 30px;
    }

    .kerion-product-title {
        font-size: 28px;
    }

    .kerion-product-price {
        font-size: 28px;
    }

    .kerion-content-card {
        padding: 28px 24px;
    }
}


@media (max-width: 575.98px) {

    .kerion-product-page {
        padding-bottom: 40px;
    }

    .kerion-breadcrumb {
        font-size: 13px;
    }

    .kerion-product-card {
        border-radius: 14px;
    }

    .kerion-product-image-wrap {
        min-height: 320px;
        padding: 20px;
    }

    .kerion-product-image {
        height: 280px;
    }

    .kerion-product-badge {
        top: 15px;
        left: 15px;
    }

    .kerion-product-info {
        padding: 24px 20px 25px;
    }

    .kerion-product-title {
        font-size: 24px;
    }

    .kerion-product-short-description {
        font-size: 14px;
    }

    .kerion-product-price {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .kerion-content-card {
        border-radius: 14px;
        padding: 24px 20px;
    }

    .kerion-content-card h2 {
        font-size: 21px;
    }
}

/* =========================================
   HEADER LOGO FIX
   ========================================= */

.site-header .navbar-brand.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.site-header .navbar-brand.brand .brand-logo {
  width: auto;
  height: 45px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .navbar-brand.brand span {
  display: inline-block;
  line-height: 1;
}

/* Footer logo + brand name */
.site-footer .brand {
  font-size: 1.4rem;
  gap: 8px;
}

.site-footer .brand-logo {
  height: 30px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}
/* =========================================
   PRODUCT VARIATIONS
   ========================================= */

.kerion-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kerion-variation-btn {
  min-width: 90px;
  padding: 11px 18px;

  border: 1px solid #d8dee8;
  border-radius: 10px;

  background: #fff;
  color: #17233c;

  font-weight: 600;
  font-size: 15px;

  cursor: pointer;

  transition:
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.kerion-variation-btn:hover {
  border-color: #17233c;
}

.kerion-variation-btn.active {
  background: #17233c;
  border-color: #17233c;
  color: #fff;
}

.kerion-variation-btn:active {
  transform: scale(.97);
}

/* Product card variations */

.product-variations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.product-variation-btn {
  flex: 1 1 auto;
  min-width: 55px;
  padding: 7px 8px;

  border: 1px solid #d8dee8;
  border-radius: 8px;

  background: #fff;
  color: #17233c;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.product-variation-btn:hover {
  border-color: #17233c;
}

.product-variation-btn.active {
  background: #17233c;
  border-color: #17233c;
  color: #fff;
}

.product-variation-loading {
  font-size: 12px;
  color: #777;
}


/* =========================================
   KERION INSTALLMENTS
   ========================================= */

.installments-panel {
  background: #f5f7fb;
  border: 1px solid #e8ecf2;
  border-radius: 20px;
  padding: 28px;
}

.installments-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.installments-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #172b4d;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.installments-heading h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 750;
  color: #172b4d;
}

.installments-heading p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.installments-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.installment-card {
  min-width: 0;
  min-height: 125px;
  padding: 18px 10px;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: border-color .2s, transform .2s;
}

.installment-card:hover {
  border-color: #f28c28;
  transform: translateY(-2px);
}

.installment-card img {
  width: 100%;
  max-width: 130px;
  height: 70px;
  object-fit: contain;
}

.installment-card span {
  color: #172b4d;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.installments-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: #8992a3;
  text-align: center;
}

@media (max-width: 991px) {
  .installments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .installments-panel {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .installments-heading {
    gap: 12px;
  }

  .installments-heading h2 {
    font-size: 18px;
  }

  .installments-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .installments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .installment-card {
    min-height: 110px;
    padding: 12px 8px;
  }

  .installment-card img {
    height: 38px;
  }
}


/* Mobile installment cards fix */

@media (max-width: 575px) {
  .installments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .installment-card:last-child {
    grid-column: 1 / -1;
    min-height: 95px;
  }

  .installment-card:last-child img {
    max-width: 145px;
    height: 38px;
  }
}


/* =========================================
   KERION CATEGORY BUTTONS
   ========================================= */

#categoryBar .category-btn {
  position: relative;
  padding: 12px 20px;
  border: 1px solid #dce3ed;
  border-radius: 12px;

  background:
    linear-gradient(135deg, #ffffff 0%, #f0f4fa 100%);

  color: #172b4d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  box-shadow:
    0 2px 5px rgba(15, 35, 70, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

#categoryBar .category-btn:hover {
  background:
    linear-gradient(135deg, #eef3fa, #e1eaf5);

  border-color: #9fb1cd;

  box-shadow: 0 5px 14px rgba(23, 43, 77, 0.12);
  transform: translateY(-2px);
}

#categoryBar .category-btn.active {
  background:
    linear-gradient(135deg, #172b4d, #2c4f80);

  border-color: #172b4d;
  color: #ffffff;

  box-shadow:
    0 5px 14px rgba(23, 43, 77, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#categoryBar .category-btn.active:hover {
  background:
    linear-gradient(135deg, #1e3863, #365e92);
}

#categoryBar .category-btn:focus-visible {
  outline: 2px solid #e33443;
  outline-offset: 3px;
}

@media (max-width: 575px) {
  #categoryBar .category-btn {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
  }
}


/* KERION MESSENGER */

.kerion-messenger {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1050;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 13px 18px;
  border-radius: 50px;

  background: linear-gradient(135deg, #168aff, #0064e0);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;

  box-shadow: 0 6px 24px rgba(0, 100, 224, .25);
  transition: transform .2s, box-shadow .2s;
}

.kerion-messenger:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 100, 224, .35);
}

.kerion-messenger svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .kerion-messenger {
    right: 15px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .kerion-messenger svg {
    width: 30px;
    height: 30px;
  }

  .kerion-messenger span {
    display: none;
  }
}

/* =========================================
   KERION MOBILE HEADER CART
   ========================================= */

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (max-width: 991.98px) {

  .mobile-header-actions {
    display: flex;
    margin-left: auto;
  }

  .mobile-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .mobile-cart-btn svg {
    flex-shrink: 0;
  }

  .desktop-cart-btn {
    display: none !important;
  }

}

@media (min-width: 992px) {

  .mobile-header-actions {
    display: none;
  }

  .desktop-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

}

/* =========================================
   PRODUCT PAGINATION
   ========================================= */

.product-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    background: #fff;
    color: #172b45;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f2f4f7;
    border-color: #172b45;
}

.pagination-btn.active {
    background: #172b45;
    border-color: #172b45;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .product-pagination {
        gap: 5px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 38px;
        padding: 0 8px;
    }
}

