/* ====== کولی کولر — Cool Frost Design System ====== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --clr-navy: #0b1f33;
  --clr-navy-soft: #132a42;
  --clr-primary: #0077a8;
  --clr-primary-dark: #005f86;
  --clr-ice: #00b4d8;
  --clr-ice-soft: #90e0ef;
  --clr-mist: #e8f4f8;
  --clr-frost: #f3f9fb;
  --clr-bg: #eef5f8;
  --clr-bg-white: #ffffff;
  --clr-text: #152533;
  --clr-text-light: #5a6d7c;
  --clr-border: #d5e4eb;
  --clr-success: #0d9f6e;
  --clr-warning: #e8a317;
  --clr-danger: #d64545;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 2px 10px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 8px 28px rgba(11, 31, 51, 0.1);
  --shadow-lg: 0 16px 48px rgba(11, 31, 51, 0.14);
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --font: 'Vazirmatn', 'Tahoma', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body,
button,
input,
select,
textarea,
.form-control,
.btn,
.navbar,
.dropdown-menu,
.offcanvas,
h1, h2, h3, h4, h5, h6,
p, a, span, li, label {
  font-family: var(--font) !important;
}

body {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--clr-text);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(0, 180, 216, 0.12), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(0, 119, 168, 0.08), transparent 50%),
    var(--clr-bg);
  line-height: 1.7;
  padding-bottom: 0;
}

@media (max-width: 991.98px) {
  body { padding-bottom: 72px; }
}

a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-dark); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

p { margin-bottom: 1rem; }

/* ---------- Layout ---------- */
.gap-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 991.98px) {
  .gap-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .gap-row { grid-template-columns: 1fr; }
}

.container-section { padding: 3.5rem 0; }

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-ice), var(--clr-primary));
}

.section-link {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section-link:hover { gap: 0.55rem; color: var(--clr-primary-dark); }

/* ---------- Top bar & Header ---------- */
.top-bar {
  background: var(--clr-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}

.top-bar a { color: rgba(255, 255, 255, 0.82); }
.top-bar a:hover { color: #fff; }
.top-bar .badge { font-size: 0.65rem; }

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 228, 235, 0.8);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header { padding: 0.85rem 0; }

.brand-logo {
  height: 40px;
  width: auto;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-wordmark span {
  color: var(--clr-ice);
}

.header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-navy);
  background: var(--clr-frost);
  transition: var(--transition);
  position: relative;
}

.header-icon:hover {
  background: var(--clr-mist);
  color: var(--clr-primary);
}

.header-icon .badge {
  font-size: 0.62rem;
  min-width: 1.1rem;
  padding: 0.2em 0.35em;
}

.navbar-toggler {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler-icon {
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230b1f33' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Search ---------- */
.search-box {
  position: relative;
  display: flex;
  max-width: 520px;
  margin-inline: auto;
  direction: rtl;
}

.search-box .form-control {
  flex: 1;
  border: 1.5px solid var(--clr-border);
  border-inline-end: none;
  background: var(--clr-frost);
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  border-start-start-radius: 999px;
  border-end-start-radius: 999px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.search-box .form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.18);
  border-color: var(--clr-ice);
  background: #fff;
}

.search-box .btn {
  flex-shrink: 0;
  border: 1.5px solid var(--clr-primary);
  padding-inline: 1.15rem;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 999px;
  border-end-end-radius: 999px;
}

/* ---------- Nav ---------- */
.navbar.navbar-expand-lg .navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
}

.offcanvas .navbar-nav {
  flex-direction: column !important;
}

.navbar .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-text) !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--clr-primary) !important;
  background: rgba(0, 180, 216, 0.08);
}

.megamenu {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 100%;
  right: 0;
  left: auto;
  overflow: hidden;
}

.megamenu-column { padding: 1.25rem; }
.megamenu-column h6 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--clr-navy);
  margin-bottom: 0.85rem;
  text-transform: none;
}

.megamenu-column ul { list-style: none; padding: 0; margin: 0; }
.megamenu-column ul li { margin-bottom: 0.35rem; }
.megamenu-column ul a {
  font-size: 0.84rem;
  color: var(--clr-text-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
}
.megamenu-column ul a:hover {
  background: var(--clr-mist);
  color: var(--clr-primary);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}

.btn-accent,
.btn-cta {
  background: linear-gradient(135deg, var(--clr-ice), var(--clr-primary));
  border: none;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 119, 168, 0.28);
}
.btn-accent:hover,
.btn-cta:hover {
  filter: brightness(1.06);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
}

.btn-outline-secondary {
  border-color: var(--clr-border);
  color: var(--clr-text-light);
}
.btn-outline-secondary:hover {
  background: var(--clr-mist);
  border-color: var(--clr-ice);
  color: var(--clr-primary);
}

/* ---------- Hero (full-bleed) ---------- */
.hero-bleed {
  position: relative;
  min-height: min(88vh, 640px);
  overflow: hidden;
  background: var(--clr-navy);
}

.hero-bleed .carousel,
.hero-bleed .carousel-inner,
.hero-bleed .carousel-item {
  height: min(88vh, 640px);
}

.hero-bleed .carousel-item {
  position: relative;
}

.hero-bleed .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(11, 31, 51, 0.88) 0%, rgba(11, 31, 51, 0.55) 48%, rgba(0, 119, 168, 0.25) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.25), transparent 45%);
}

.hero-bleed .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.carousel-item.active img { animation-play-state: running; }

.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
}

.hero-caption .container {
  max-width: 720px;
  margin-inline: 0 auto 0 0;
}

.hero-brand {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  animation: fadeRise 0.8s ease both;
}

.hero-brand em {
  font-style: normal;
  background: linear-gradient(90deg, var(--clr-ice-soft), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.65rem;
  animation: fadeRise 0.8s 0.1s ease both;
}

.hero-lead {
  font-size: 1rem;
  color: rgba(240, 247, 250, 0.78);
  margin-bottom: 1.6rem;
  max-width: 36rem;
  animation: fadeRise 0.8s 0.18s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeRise 0.8s 0.26s ease both;
}

.hero-bleed .carousel-indicators {
  margin-bottom: 1.25rem;
}
.hero-bleed .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.hero-bleed .carousel-indicators .active {
  background: var(--clr-ice);
  transform: scale(1.2);
}

.hero-bleed .carousel-control-prev,
.hero-bleed .carousel-control-next {
  width: 3rem;
  opacity: 0.7;
}
.hero-bleed .carousel-control-prev:hover,
.hero-bleed .carousel-control-next:hover { opacity: 1; }

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--clr-bg-white);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.trust-item i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--clr-mist), #fff);
  color: var(--clr-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--clr-navy);
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--clr-text-light);
}

/* ---------- Flash sale ---------- */
.flash-sale-card {
  background:
    linear-gradient(125deg, var(--clr-navy) 0%, #0f3a55 45%, var(--clr-primary) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 1.75rem !important;
}

.flash-sale-card::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.35), transparent 70%);
  top: -100px;
  left: -60px;
  pointer-events: none;
}

.flash-sale-card .sale-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  min-width: 58px;
  height: 58px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.flash-sale-card .sale-badge .fw-bold {
  font-size: 1.15rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fs-10 { font-size: 0.65rem; opacity: 0.8; }

/* ---------- Category ---------- */
.category-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 180, 216, 0.08), transparent 55%);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.35);
}

.category-card:hover::before { opacity: 1; }

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  font-size: 1.7rem;
  color: var(--clr-primary);
  background: linear-gradient(145deg, var(--clr-mist), #fff);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: linear-gradient(145deg, var(--clr-ice), var(--clr-primary));
  color: #fff;
  transform: scale(1.06);
}

.category-card h5 {
  font-size: 1rem;
  position: relative;
}

.category-card p {
  font-size: 0.82rem;
  margin-bottom: 0;
  position: relative;
}

.category-card .stretched-link { position: absolute; inset: 0; z-index: 2; }
.category-card .stretched-link::before { display: none; }

/* ---------- Product ---------- */
.product-card {
  background: var(--clr-bg-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.4);
}

.product-image-box {
  position: relative;
  padding: 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 180, 216, 0.1), transparent 65%),
    var(--clr-frost);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-box img {
  max-width: 150px;
  max-height: 150px;
  transition: transform var(--transition);
}

.product-card:hover .product-image-box img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--clr-danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  z-index: 3;
}

.product-badge.soldout { background: #6b7c8a; }
.product-badge.discount { background: var(--clr-success); }
.product-badge.bg-warning { background: var(--clr-warning) !important; }

.product-body {
  padding: 1rem 1.1rem 1.15rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  min-height: 2.5rem;
  color: var(--clr-text);
}

.product-title a { color: inherit; }
.product-title a:hover { color: var(--clr-primary); }

.product-desc {
  font-size: 0.78rem;
  color: var(--clr-text-light);
  margin-bottom: 0.5rem;
  flex-grow: 1;
  min-height: 2.2rem;
}

.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.product-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-navy);
}

.product-old-price {
  text-decoration: line-through;
  color: var(--clr-text-light);
  font-size: 0.78rem;
}

.rating-stars { color: #f0b429; font-size: 0.78rem; }
.product-rating-count {
  font-size: 0.72rem;
  color: var(--clr-text-light);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 10;
}

.product-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
}

.product-actions .btn-sm.btn-accent,
.product-actions .btn-sm.btn-primary {
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.5rem;
  box-shadow: none;
}

.aside-filters { position: sticky; top: 90px; }

.product-grid {
  row-gap: 1.5rem;
  column-gap: 1.5rem;
}

/* ---------- Blog ---------- */
.blog-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card .card-img-top,
.blog-card img:first-child {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.blog-card .card-body { padding: 1.25rem; }
.blog-card .card-title { font-size: 1.05rem; }
.blog-card .card-title a { color: var(--clr-navy); }
.blog-card .card-title a:hover { color: var(--clr-primary); }

/* ---------- Tabs (custom template only; do not break Bootstrap .tab-content) ---------- */
.tab-content-wrapper > .tab-content {
  display: none !important;
}
.tab-content-wrapper > .tab-content.active {
  display: block !important;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  border-bottom: 2px solid var(--clr-border);
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.tab-nav > li { margin: 0; }

.tab-nav a,
.tab-nav button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: none;
  background: transparent;
  font-weight: 600;
  font-family: inherit;
  color: var(--clr-text-light);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
}

.tab-nav a.active,
.tab-nav a:hover,
.tab-nav button.active,
.tab-nav button:hover {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-ice);
}

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.accordion-button:not(.collapsed) {
  color: var(--clr-navy);
  font-weight: 700;
  background: var(--clr-mist);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--clr-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 0;
  font-size: 0.88rem;
  margin-top: 3rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--clr-ice-soft); }
.site-footer .text-muted { color: rgba(255, 255, 255, 0.55) !important; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-top > .col {
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
}

.footer-top h5,
.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-top ul,
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-top ul li,
.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-top ul i,
.footer-col ul i {
  color: var(--clr-ice);
  margin-left: 0.35rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
  margin: 0;
}

.footer-social a:hover {
  background: var(--clr-ice);
  color: var(--clr-navy);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Payment Steps ---------- */
.step-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step-progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-border);
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-item .step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clr-bg-white);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-light);
}

.step-item.active .step-circle,
.step-item .step-circle.active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

.step-item .step-label { font-size: 0.8rem; font-weight: 600; }

/* ---------- Forms ---------- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: var(--clr-border);
  font-family: var(--font);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--clr-ice);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.18);
}

/* ---------- Offcanvas ---------- */
.offcanvas {
  font-family: var(--font);
}

.offcanvas-header {
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-frost);
}

.offcanvas .nav-link {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-weight: 600;
}

.offcanvas .nav-link.active,
.offcanvas .nav-link:hover {
  background: var(--clr-mist);
  color: var(--clr-primary);
}

/* ---------- Mobile tabs ---------- */
.mobile-tabs {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-around;
    padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom));
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(11, 31, 51, 0.08);
  }

  .mobile-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.68rem;
    color: var(--clr-text-light);
    padding: 0.2rem 0.4rem;
    font-weight: 600;
    gap: 0.15rem;
    min-width: 56px;
  }

  .mobile-tabs a.active { color: var(--clr-primary); }
  .mobile-tabs i { font-size: 1.25rem; }
}

.pb-100 { padding-bottom: 100px; }

@media (min-width: 992px) {
  .pb-100 { padding-bottom: 0; }
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clr-navy) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1030;
  margin: 0 !important;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--clr-primary) !important;
}

@media (max-width: 991.98px) {
  #back-to-top { bottom: 5.5rem; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "‹";
  color: var(--clr-text-light);
}

/* ---------- Animations ---------- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stagger-children.animate-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.animate-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.animate-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.animate-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.animate-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.animate-visible > *:nth-child(6) { transition-delay: 0.4s; }

.stagger-children.animate-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
  .hero-bleed .carousel-item img { animation: none; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--clr-frost); }
::-webkit-scrollbar-thumb { background: #b5c9d4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* ---------- Responsive hero ---------- */
@media (max-width: 767.98px) {
  .hero-bleed,
  .hero-bleed .carousel,
  .hero-bleed .carousel-inner,
  .hero-bleed .carousel-item {
    min-height: 520px;
    height: 520px;
  }

  .top-bar .d-flex.gap-3:last-child a:not(:first-child) {
    display: none;
  }

  .search-box { display: none !important; }

  .main-header .flex-grow-1.mx-4 { display: none; }
}
