/* SANE-SANKY — brand: navy #073763, orange #eb7210 */

:root {
  --navy: #073763;
  --navy-deep: #052a4a;
  --orange: #eb7210;
  --orange-hover: #d4650e;
  --text: #1f2a33;
  --muted: #5c6b78;
  --line: #e2e8ee;
  --surface: #ffffff;
  --bg: #eef3f7;
  --bg-soft: #f7fafc;
  --success: #2d6a1e;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(7, 55, 99, 0.08);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(235, 114, 16, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(7, 55, 99, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f8fb 0%, var(--bg) 40%, #e8eef4 100%);
  min-height: 100vh;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

/*
@media (min-width: 640px) {
  .logo img {
    height: 58px;
  }
}
*/

.header-cart {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.header-cart:hover {
  transform: translateY(-1px);
  color: inherit;
}

.header-cart .info {
  border: 2px solid var(--orange);
  border-right: none;
  padding: 8px 14px;
  background: var(--surface);
  line-height: 1.25;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}

.header-cart-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.header-cart .info > div:last-child {
  font-size: 0.8rem;
  color: var(--muted);
}

.header-cart .icon {
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0 14px;
  min-width: 48px;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

.header-cart .icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .header-cart .info {
    display: none;
  }

  .header-cart .icon {
    border-radius: 8px;
    padding: 12px 14px;
  }
}

/* ——— Intro ——— */

.intro {
  padding: 28px 0 8px;
}

.intro h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.intro p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— Product grid (catalog) ——— */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px 0 40px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: rgba(7, 55, 99, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card__image {
  display: block;
  aspect-ratio: 1;
  padding: 12px;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.product-card__sku {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.product-card__title a {
  color: inherit;
}

.product-card__title a:hover {
  color: var(--orange);
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.product-card .buyform {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
}

/* ——— Shared buy controls ——— */

.quantity-minus,
.quantity-plus {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.quantity-minus:hover,
.quantity-plus:hover {
  background: var(--orange);
  color: #fff;
}

.quantity {
  width: 44px;
  height: 32px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex: 1;
  /* min-width: 140px; */
}

.to-cart:hover {
  background: var(--orange-hover);
  color: #fff;
}

.to-cart svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.btn-link:hover {
  color: var(--orange);
}

/* ——— Product detail page ——— */

.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.product-detail {
  padding: 20px 0 48px;
}

.product-detail__frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-detail__primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .product-detail__primary {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.15fr);
  }
}

.product-detail__photos {
  background: var(--bg-soft);
  padding: 20px;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery .cover a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery .cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-thumbs a {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.gallery-thumbs a.is-active,
.gallery-thumbs a:hover {
  border-color: var(--orange);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.product-detail__info {
  padding: 24px 20px 28px;
}

@media (min-width: 768px) {
  .product-detail__info {
    padding: 28px 32px 32px;
  }
}

.product-detail__info h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.price-and-buyform {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.price-and-buyform .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy);
}

.product-detail .buyform {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.specs td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs td:first-child {
  color: var(--muted);
  width: 40%;
  padding-right: 12px;
}

.specs td:last-child {
  font-weight: 700;
  color: var(--navy);
}

.stock-yes {
  color: var(--success);
}

.cms-block {
  color: var(--text);
}

.cms-block p {
  margin-bottom: 12px;
}

.cms-block p:last-child {
  margin-bottom: 0;
}

.product-meta-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(7, 55, 99, 0.05);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Checkout ——— */

.checkout-cart {
  padding: 8px 0 48px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.cart {
  margin-bottom: 16px;
}

.cart-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-head,
.delivery-head {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cart-item:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .cart-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cart-item .left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.cart-item-image {
  width: 72px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.cart-item-title a {
  color: inherit;
}

.cart-item-sku {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.cart-item .right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .cart-item .right {
    justify-content: flex-end;
  }
}

.cart-item-price,
.cart-item-total {
  font-weight: 600;
  min-width: 4.5rem;
}

.cart-item-total {
  color: var(--navy);
}

.cart-item-delete a {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item .buyform {
  display: flex;
  align-items: center;
  gap: 4px;
}

.products-total {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.products-total .right {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.products-total .item {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.products-total .item:last-child {
  border-bottom: none;
  background: rgba(7, 55, 99, 0.04);
}

.products-total .label {
  color: var(--muted);
}

.products-total .value {
  font-weight: 700;
  color: var(--navy);
}

#order-total-label {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
}

#order-total-value {
  color: var(--orange);
  font-size: 1.15rem;
}

.delivery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .delivery {
    grid-template-columns: 1fr 1fr;
  }
}

.delivery .frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.delivery .frame.error {
  border-color: var(--danger);
}

.delivery-error {
  background: var(--danger);
  padding: 8px 12px;
  color: #fff;
  font-weight: 700;
  display: none;
}

.delivery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.delivery-item:last-child {
  border-bottom: none;
}

.delivery-item:hover {
  background: var(--navy);
  color: #fff;
}

.delivery-item:hover > div {
  color: #fff;
}

.delivery-item.disabled {
  display: none;
}

.delivery-item.active .delivery-item-title {
  font-weight: 700;
  color: var(--navy);
}

.delivery-item.active:hover .delivery-item-title {
  color: #fff;
}

.delivery-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-item-title::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  flex-shrink: 0;
  opacity: 0.7;
}

.delivery-item.active .delivery-item-title::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 2px #fff;
  opacity: 1;
}

.pickup-note {
  padding: 4px 4px 16px;
  color: var(--success);
  font-size: 0.9rem;
}

.input-block {
  padding: 10px 14px;
}

.input-block-frame {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

@media (min-width: 480px) {
  .input-block-frame {
    flex-direction: row;
    align-items: stretch;
  }
}

.input-block-frame.error {
  border-color: var(--danger);
}

.input-block-error {
  background: var(--danger);
  padding: 6px 10px;
  color: #fff;
  font-weight: 700;
  display: none;
  font-size: 0.85rem;
}

.input-block label {
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--navy);
  white-space: nowrap;
}

@media (min-width: 480px) {
  .input-block label {
    width: 38%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

.input-block input {
  border: none;
  padding: 10px 12px;
  width: 100%;
  outline: none;
}

.input-block textarea,
.delivery .frame textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
  outline: none;
}

.input-group {
  display: none;
}

.input-group-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.input-group-switch:checked ~ .input-group {
  display: block;
}

.input-group-label,
.checkbox-label {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.4;
}

.input-group-label:hover,
.checkbox-label:hover {
  background: rgba(7, 55, 99, 0.06);
}

.input-group-label::before,
.checkbox-label::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
}

.input-group-switch:checked + .input-group-label,
.checkbox-input:checked + .checkbox-label {
  font-weight: 700;
  color: var(--navy);
}

.input-group-switch:checked + .input-group-label::before,
.checkbox-input:checked + .checkbox-label::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 3px #fff;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-label a {
  text-decoration: underline;
}

.checkbox-label.error {
  outline: 1px solid var(--danger);
}

.error-message {
  background: var(--danger);
  color: #fff;
  padding: 6px 10px;
  font-weight: 700;
  display: none;
  margin: 0 14px 10px;
  border-radius: 4px;
}

.checkout-agreements {
  margin: 12px 0;
}

.checkout-agreements .frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checkout-buttons {
  text-align: right;
  padding: 8px 0 0;
}

#send-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

@media (min-width: 480px) {
  #send-order {
    width: auto;
  }
}

#send-order:hover {
  background: var(--orange-hover);
}

#send-order:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
  line-height: 1.8;
}

.footer-sep {
  opacity: 0.35;
  user-select: none;
}

@media (max-width: 640px) {
  .footer-sep {
    display: none;
  }

  .footer-links a {
    width: 100%;
  }
}

/* ——— Utilities ——— */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}
