@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Thin-FD.woff2") format("woff2"),
    url("../font/Shabnam-Thin-FD.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Light-FD.woff2") format("woff2"),
    url("../font/Shabnam-Light-FD.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-FD.woff2") format("woff2"),
    url("../font/Shabnam-FD.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Medium-FD.woff2") format("woff2"),
    url("../font/Shabnam-Medium-FD.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Bold-FD.woff2") format("woff2"),
    url("../font/Shabnam-Bold-FD.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f8fb;
  --bg-soft: #edf5f8;
  --surface: #ffffff;
  --surface-2: #f8fbfd;
  --surface-3: #eef5f8;

  --primary: #0f5c78;
  --primary-dark: #0a4458;
  --primary-deep: #072f3d;
  --secondary: #1d8f8a;
  --secondary-soft: #d8f1ee;

  --text: #17323b;
  --text-soft: #34505a;
  --muted: #617983;
  --muted-2: #87a0aa;

  --border: #d5e2e8;
  --border-strong: #c3d4dc;

  --success: #1c7c54;
  --danger: #b42318;
  --warning: #a56a00;

  --shadow-xs: 0 4px 12px rgba(15, 92, 120, 0.05);
  --shadow-sm: 0 10px 26px rgba(15, 92, 120, 0.08);
  --shadow-md: 0 18px 44px rgba(15, 92, 120, 0.12);
  --shadow-lg: 0 26px 64px rgba(8, 36, 46, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  --transition-fast: 0.2s ease;
  --transition: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Shabnam", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(29, 143, 138, 0.05), transparent 24%),
    linear-gradient(180deg, #f8fcfd 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.95;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea,
select,
button {
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-3);
}

.section-kicker {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.7rem, 2vw, 2.5rem);
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section-intro {
  max-width: 76ch;
  color: var(--muted);
  margin-bottom: 30px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head .section-intro {
  margin-bottom: 0;
  max-width: 48ch;
}

.site-header {
  background: linear-gradient(135deg, #0b3f52 0%, #0f5c78 52%, #136b76 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 28, 0.22) 0%, rgba(4, 20, 28, 0.38) 100%);
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -120px;
  top: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.topbar,
.hero {
  position: relative;
  z-index: 1;
}

/* Desktop header */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.2px;
  justify-self: end;
}

.nav {
    display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width var(--transition);
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #fff;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  backdrop-filter: blur(6px);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    width var(--transition-fast);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 78px 0 96px;
}

.page-header .hero {
  padding-bottom: 60px;
}

.hero-compact {
  padding-top: 36px;
  padding-bottom: 64px;
}

.hero-content {
  max-width: 760px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(7, 36, 46, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.18;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  margin-bottom: 30px;
}

.hero-actions,
.cta-actions,
.checkout-actions,
.product-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  font-weight: 700;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f3fbfd;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.section .btn-secondary,
.product-single .btn-secondary,
.checkout-card .btn-secondary {
  color: var(--primary);
  border-color: var(--border-strong);
  background: #fff;
}

.section .btn-secondary:hover,
.section .btn-secondary:focus-visible,
.product-single .btn-secondary:hover,
.product-single .btn-secondary:focus-visible,
.checkout-card .btn-secondary:hover,
.checkout-card .btn-secondary:focus-visible {
  background: var(--surface-2);
  border-color: var(--primary);
}

.cards-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.value-card,
.process-item,
.product-card,
.product-details,
.checkout-card,
.empty-products,
.stat-card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.info-card,
.value-card,
.process-item,
.product-card,
.product-details,
.checkout-card,
.empty-products {
  border-radius: var(--radius-md);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.info-card:hover,
.value-card:hover,
.process-item:hover,
.product-card:hover,
.product-details:hover,
.checkout-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 92, 120, 0.18);
}

.info-card,
.value-card {
  padding: 24px;
}

.info-card h3,
.value-card h3,
.process-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.info-card p,
.value-card p,
.process-item p {
  color: var(--muted);
  font-size: 0.97rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.two-column p {
  color: var(--muted);
  margin-bottom: 16px;
}

.stats-section {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.process-item {
  padding: 24px 20px;
}

.process-item span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 92, 120, 0.1);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section {
  padding-top: 24px;
  padding-bottom: 88px;
}

.cta-box {
  background: linear-gradient(135deg, #0f5c78, #136b76);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.cta-box .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 60ch;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__image-link {
  display: block;
  background: linear-gradient(180deg, #f9fcfd, #eef5f8);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card__category {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 92, 120, 0.08);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 500;
}

.product-card__title {
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 700;
}

.product-card__title a:hover,
.product-card__title a:focus-visible {
  color: var(--primary);
}

.product-card__text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.95;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card__price {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.product-card__stock {
  font-size: 0.85rem;
  font-weight: 500;
}

.product-card__stock.in-stock {
  color: var(--success);
}

.product-card__stock.out-of-stock {
  color: var(--danger);
}

.product-card__actions {
  margin-top: 4px;
}

.product-card__actions .btn {
  width: 100%;
}

.empty-products {
  padding: 28px;
  text-align: center;
}

.empty-products h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.1rem;
}

.empty-products p {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--primary);
}

.product-single {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.product-gallery__main {
  background: linear-gradient(180deg, #fbfdfe, #f2f8fa);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.product-thumb {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.product-thumb:hover,
.product-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.product-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 92, 120, 0.12);
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-details {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-single__title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.45;
  color: var(--text);
  font-weight: 700;
}

.product-single__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-single__lead {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.95;
}

.product-single__content p {
  color: var(--text-soft);
  margin-bottom: 12px;
}

.product-single__purchase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quantity-selector__label {
  font-weight: 600;
  color: var(--text);
}

.quantity-selector__control {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.quantity-btn:hover,
.quantity-btn:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  background: #f7fbfd;
  transform: translateY(-1px);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 72px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  padding: 0 8px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.quantity-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 92, 120, 0.08);
  outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type="number"] {
  -moz-appearance: textfield;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}

.checkout-card {
  padding: 24px;
  border-radius: 24px;
}

.checkout-card__head {
  margin-bottom: 20px;
}

.checkout-card__head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.checkout-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.checkout-product {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.checkout-product__image {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.checkout-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-product__body h3 {
  margin: 10px 0 8px;
}

.checkout-product__body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.95;
}

.checkout-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.invoice-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.invoice-row:last-child {
  border-bottom: none;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 92, 120, 0.08);
}

.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-section {
  padding: 48px 0;
}

.auth-shell {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.auth-card__head {
  padding: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-card__head h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.35rem;
}

.auth-card__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

.auth-card__body {
  padding: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.auth-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cart-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-inline-start: 12px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: var(--shadow-xs);
  justify-self: start;
  margin-inline-start: 20px;
}

.cart-header-btn:hover,
.cart-header-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cart-header-btn__icon {
  flex: 0 0 auto;
}

.cart-header-btn__text {
  line-height: 1;
}

.cart-badge {
  min-width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 6px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 49;
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head,
.cart-drawer__footer {
  padding: 18px;
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__head h3 {
  margin: 0;
}

.cart-drawer__head button,
.cart-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-drawer__footer {
  border-top: 1px solid var(--border);
}

.cart-drawer__body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.cart-empty-text {
  margin: 0;
  color: var(--muted);
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.mini-cart-item__image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.mini-cart-item__body h4 {
  margin: 0 0 6px;
}

.mini-cart-item__body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.mini-cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mini-cart-item__controls button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.mini-cart-remove {
  color: var(--danger);
}

.site-footer {
  background: linear-gradient(180deg, #10313c 0%, #0d2730 100%);
  color: #dfe9ed;
  padding: 64px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #c8d7dd;
  font-size: 0.96rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-list li {
  color: #c8d7dd;
  line-height: 1.9;
}

.contact-list a {
  color: #ffffff;
  word-break: break-word;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: #9fe4dd;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(29, 143, 138, 0.22);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .product-single {
    grid-template-columns: 1fr;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 16px 0;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    order: 1;
  }

  .logo {
    justify-self: center;
    text-align: center;
    font-size: 1.25rem;
    order: 2;
  }

  .cart-header-btn {
    justify-self: start;
    margin-inline-start: 0;
    min-height: 46px;
    padding: 10px 12px;
    order: 3;
  }

  .nav {
    grid-column: 1 / -1;
    order: 4;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: rgba(7, 36, 46, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
  }

  .cards-grid,
  .values-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 54px 0 72px;
  }

  .section {
    padding: 68px 0;
  }

  .cta-box {
    padding: 26px 20px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .auth-card__head,
  .auth-card__body {
    padding: 18px;
  }

  .checkout-card {
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .topbar {
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p,
  .section-intro,
  .two-column p,
  .info-card p,
  .value-card p,
  .process-item p,
  .site-footer p {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card__body {
    padding: 16px;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-single__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .quantity-selector__control {
    width: 100%;
    justify-content: space-between;
  }

  .quantity-input {
    flex: 1;
    max-width: 110px;
  }

  .mini-cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-header-btn {
    padding: 10px;
    min-width: 46px;
  }

  .cart-header-btn__text {
    display: none;
  }
}