/* Otolastik — AI-First E-Commerce Design System v1.0 */

:root {
  /* Layout §5–6 */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-readable: 760px;
  --page-padding: 32px;

  /* Spacing §3 */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 128px;

  /* Radius §18 */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Typography §10–13 — Auchan Sana Sans Alt */
  --font-sans: "Outfit", Helvetica, Arial, sans-serif;
  --font-display: "Outfit", Helvetica, Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --heading-xs: 22px;
  --heading-sm: 24px;
  --heading-md: 28px;
  --heading-lg: 32px;
  --heading-xl: 40px;
  --display-sm: 48px;
  --display-lg: 56px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Controls §21 */
  --control-xs: 32px;
  --control-sm: 36px;
  --control-md: 40px;
  --control-lg: 48px;
  --control-xl: 56px;

  /* Shadows §20 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);

  /* Breakpoints (reference) §8 */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1440px;

  /* Brand colors §15 — tire commerce */
  --color-primary: #111111;
  --color-primary-hover: #000000;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-text: #171717;
  --color-text-secondary: #666666;
  --color-text-muted: #8a8a8a;
  --color-background: #ffffff;
  --color-background-soft: #f7f7f8;
  --color-border: #e7e7ea;
  --color-border-strong: #d5d5d8;
  --color-success: #16883d;
  --color-warning: #d97706;
  --color-error: #d93025;
  --color-on-primary: #ffffff;
  --color-on-accent: #111111;
}

@media (max-width: 1279px) {
  :root { --page-padding: 24px; }
}
@media (max-width: 767px) {
  :root { --page-padding: 16px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body.otolastik {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 24px;
  color: var(--color-text);
  background: var(--color-background-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.otolastik,
body.otolastik button,
body.otolastik input,
body.otolastik select,
body.otolastik textarea,
body.otolastik .button,
body.otolastik .woocommerce {
  font-family: var(--font-sans);
}

body.otolastik :is(h1, h2, h3, h4, h5, h6),
body.otolastik .ot-display,
body.otolastik .ots-hero-copy :is(h1, h2),
body.otolastik .ots-section-head h2,
body.otolastik .ots-editorial h2,
body.otolastik .ots-bottom-grid h2,
body.otolastik .ots-product-guide h2,
body.otolastik .ots-promo h2,
body.otolastik .ots-blog-card h3,
body.otolastik .ot-card__title,
body.otolastik .ot-pdp__title,
body.otolastik .ot-pdp__price,
body.otolastik strong,
body.otolastik b,
body.otolastik .ots-button,
body.otolastik .single_add_to_cart_button,
body.otolastik .ots-kicker {
  font-family: var(--font-display);
  font-weight: 400;
}

body.otolastik a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

/* Must beat component display:flex/grid (WP/Woo often set [hidden] without !important). */
[hidden] {
  display: none !important;
}

iconify-icon.ot-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}

.ot-shell,
.container {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--container-max));
  margin-inline: auto;
}

.ot-shell--wide {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--container-wide));
}

.ot-shell--readable {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--container-readable));
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ot-eyebrow {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 16px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ot-section-title,
.ot-page-title {
  margin: 0;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.ot-page-title {
  font-size: var(--heading-xl);
  line-height: 48px;
}

.ot-section-title {
  font-size: var(--heading-md);
  line-height: 36px;
}

.ot-page-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-6) var(--space-5);
}

.ot-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.ot-section-head > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-compact { padding-block: var(--space-6); }
.section-default { padding-block: var(--space-9); }
.section-large { padding-block: var(--space-11); }

@media (max-width: 767px) {
  .ot-page-title { font-size: var(--heading-lg); line-height: 40px; }
  .ot-section-title { font-size: var(--heading-sm); line-height: 32px; }
  .section-compact { padding-block: var(--space-5); }
  .section-default { padding-block: var(--space-8); }
  .section-large { padding-block: var(--space-9); }
  .ot-section-head { align-items: start; flex-direction: column; }
}

/* Buttons §22–23 */
.ot-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.checkout-button,
.single_add_to_cart_button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-lg);
  padding-inline: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-on-accent) !important;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ot-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--color-accent-hover);
  filter: none;
}

.ot-btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
}
.ot-btn--primary:hover { background: var(--color-primary-hover); }

.ot-btn--ghost,
.ot-btn--secondary {
  background: var(--color-background);
  color: var(--color-text) !important;
  border-color: var(--color-border);
}
.ot-btn--ghost:hover,
.ot-btn--secondary:hover {
  border-color: var(--color-border-strong);
  background: var(--color-background-soft);
}

.ot-btn--block { width: 100%; }
.ot-btn:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.ot-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  text-decoration: none;
  color: var(--color-text);
}

/* Inputs §24–25 */
.ot-finder input,
.ot-plp__search input,
.woocommerce form .input-text,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-ordering select {
  width: 100%;
  min-height: var(--control-lg);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
  line-height: 24px;
}

.woocommerce form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.woocommerce form-row label {
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

/* Header §46–48 */
.ot-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-background) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.ot-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.ot-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 26px;
}

.ot-brand__mark {
  display: inline-flex;
  color: var(--color-accent);
}

.ot-site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.ot-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ot-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 20px;
  color: var(--color-text-secondary);
  min-height: 44px;
}
.ot-nav a:hover { color: var(--color-text); }

.ot-site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ot-tool-link,
.ot-cart-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  min-height: 44px;
  color: var(--color-text);
}

.ot-cart-link__count {
  font-style: normal;
  min-width: 20px;
  height: 20px;
  padding-inline: var(--space-1);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: var(--text-xs);
  line-height: 20px;
  text-align: center;
  font-weight: var(--weight-semibold);
}

.ot-nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--color-text);
}
.ot-nav-toggle__close { display: none; }
.ot-nav-toggle[aria-expanded="true"] .ot-nav-toggle__open { display: none; }
.ot-nav-toggle[aria-expanded="true"] .ot-nav-toggle__close { display: inline-block; }

@media (max-width: 1023px) {
  .ot-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ot-site-header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) var(--page-padding) var(--space-5);
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
  }
  .ot-site-header__nav.is-open { display: flex; }
  .ot-nav { flex-direction: column; align-items: stretch; gap: var(--space-0); }
  .ot-site-header__tools { justify-content: space-between; }
}

/* Home hero */
.ot-hero--home {
  position: relative;
  padding-block: var(--space-10) var(--space-9);
  background: var(--color-primary);
  color: var(--color-on-primary);
  overflow: hidden;
}

.ot-hero--home > .ot-shell {
  position: relative;
  z-index: 1;
}

.ot-hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(217, 119, 6, 0.22), transparent 55%),
    linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
  pointer-events: none;
}

.ot-hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .ot-hero__inner {
    grid-template-columns: 1fr minmax(280px, 420px);
    align-items: end;
    gap: var(--space-8);
  }
}

.ot-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--container-readable);
}

.ot-eyebrow--on-dark { color: rgba(255, 255, 255, 0.64); }

.ot-hero__title {
  margin: 0;
  font-size: var(--display-sm);
  line-height: 56px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
}

.ot-hero__lead {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 26px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
}

@media (max-width: 767px) {
  .ot-hero--home { padding-block: var(--space-8) var(--space-6); }
  .ot-hero__title { font-size: var(--heading-xl); line-height: 48px; }
}

.ot-finder--hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-background);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.ot-finder__tabs {
  display: flex;
  gap: var(--space-2);
}

.ot-finder__tab {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-background-soft);
  color: var(--color-text-secondary);
  min-height: var(--control-md);
  padding-inline: var(--space-4);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.ot-finder__tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.ot-finder__fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.ot-finder__fields label,
.ot-finder__full {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 16px;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}
.ot-finder__hint {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 16px;
  color: var(--color-text-muted);
}
.ot-finder__size,
.ot-finder__vehicle {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Vehicle cascade */
.ot-vehicle {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.ot-vehicle__cascade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.ot-vehicle__cascade label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 16px;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}
.ot-vehicle__cascade select {
  width: 100%;
  min-height: var(--control-lg);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
}
.ot-vehicle__cascade select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ot-vehicle__fitments {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ot-fit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ot-fit-chip {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-background-soft);
  color: var(--color-text);
  min-height: var(--control-md);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.ot-fit-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
@media (max-width: 479px) {
  .ot-finder__fields { grid-template-columns: 1fr; }
  .ot-vehicle__cascade { grid-template-columns: 1fr; }
}

/* Lastikcim-parity finder */
.ot-hero__copy--solo {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--container-readable);
  margin-bottom: var(--space-6);
}
.ot-lc-finder {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-text);
}
.ot-lc-finder__types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-0);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-soft);
}
.ot-lc-type {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-xl);
  padding-inline: var(--space-4);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.ot-lc-type.is-active {
  color: var(--color-text);
  background: var(--color-background);
  border-bottom-color: var(--color-accent);
}
.ot-lc-finder__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
}
.ot-lc-finder__modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.ot-lc-mode {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 20px;
  cursor: pointer;
}
.ot-lc-mode input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.ot-lc-mode__ui {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  background: var(--color-background);
  position: relative;
}
.ot-lc-mode input:checked + .ot-lc-mode__ui {
  border-color: var(--color-accent);
  background: var(--color-accent);
}
.ot-lc-mode input:checked + .ot-lc-mode__ui::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ot-lc-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.ot-lc-form__grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) repeat(5, minmax(72px, 1fr)) minmax(140px, auto);
  gap: var(--space-3);
  align-items: stretch;
}
.ot-lc-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-lg);
  min-width: 0;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
}
.ot-lc-field select,
.ot-lc-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  min-height: var(--control-md);
  color: var(--color-text);
  outline: none;
}
.ot-lc-field__icon {
  color: var(--color-accent);
  display: inline-flex;
  flex-shrink: 0;
}
.ot-lc-field--grow { grid-column: 1 / -1; }
.ot-lc-form__submit {
  min-height: var(--control-lg);
  font-size: var(--text-sm);
  white-space: nowrap;
  justify-content: center;
}
.ot-lc-form__other {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ot-lc-vehicle {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (max-width: 1279px) {
  .ot-lc-form__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ot-lc-field--cat { grid-column: 1 / -1; }
  .ot-lc-form__submit { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .ot-lc-finder__types {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .ot-lc-type {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .ot-lc-form__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ot-lc-form__submit { grid-column: 1 / -1; }
}

/* Seasons keep below */
.ot-seasons { padding-block: var(--space-6); }
.ot-seasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.ot-season {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 160ms ease;
}
.ot-season:hover { border-color: var(--color-border-strong); }
.ot-season__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 16px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ot-season strong {
  font-size: var(--heading-xs);
  line-height: 30px;
  font-weight: var(--weight-semibold);
}
.ot-season > span:last-child {
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-secondary);
}
@media (max-width: 767px) {
  .ot-seasons__grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* Home products / brands / steps / CTA */
.ot-home-products,
.ot-brands,
.ot-steps { padding-block: var(--space-9); }
.ot-home-products__grid { margin: 0; }

.ot-brands__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ot-brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: var(--space-4);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.ot-brand-tile img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 1023px) {
  .ot-brands__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .ot-brands__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

.ot-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ot-steps__grid li {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.ot-steps__grid em {
  font-style: normal;
  font-size: var(--text-xs);
  line-height: 16px;
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
}
.ot-steps__grid strong {
  font-size: var(--text-lg);
  line-height: 26px;
  font-weight: var(--weight-semibold);
}
.ot-steps__grid p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-secondary);
}
@media (max-width: 767px) {
  .ot-steps__grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

.ot-cta-band {
  padding-block: var(--space-9);
}
.ot-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ot-cta-band__inner > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ot-cta-band p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 24px;
}
@media (max-width: 767px) {
  .ot-cta-band__inner { flex-direction: column; align-items: stretch; }
}

/* Footer §49 */
.ot-site-footer {
  margin-top: var(--space-10);
  padding-block: var(--space-8) var(--space-5);
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}
.ot-site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.ot-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ot-site-footer__brand p {
  margin: 0;
  max-width: 36ch;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 20px;
}
.ot-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ot-footer-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-secondary);
}
.ot-footer-links a:hover { color: var(--color-text); }
.ot-filters__label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}
.ot-site-footer__bar {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 20px;
}
@media (max-width: 767px) {
  .ot-site-footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* PLP */
.ot-plp__head {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-5);
}
@media (min-width: 768px) {
  .ot-plp__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.ot-plp__titles {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ot-plp__title {
  margin: 0;
  font-size: var(--heading-xl);
  line-height: 48px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
.ot-plp__search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  min-width: min(100%, 320px);
}
.ot-plp__layout {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-9);
}
@media (min-width: 1024px) {
  .ot-plp__layout {
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
  }
}
.ot-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: sticky;
  top: 80px;
}
.ot-filters__hint {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-muted);
}

/* Product cards §27–29 */
ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.products::before,
ul.products::after { display: none !important; content: none !important; }

@media (max-width: 1279px) {
  ul.products { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
@media (max-width: 1023px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (max-width: 479px) {
  ul.products { gap: var(--space-3); }
}

.ot-card {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 160ms ease;
}
.ot-card:hover { border-color: var(--color-border-strong); }

.ot-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--color-background-soft);
  text-decoration: none;
}
.ot-card__img,
.ot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
}
.ot-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}
.ot-card__badge img {
  width: 32px;
  height: auto;
  padding: 0;
}

.ot-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}
.ot-card__brand {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 16px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.ot-card__title {
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: var(--weight-semibold);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--space-1);
}
.ot-card__spec {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 16px;
  color: var(--color-text-muted);
}
.ot-card__row {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.ot-card__price {
  font-size: var(--text-base);
  line-height: 24px;
  font-weight: var(--weight-bold);
}
.ot-card__price del {
  margin-right: var(--space-2);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
  font-size: var(--text-sm);
}
.ot-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  color: var(--color-text);
}

.woocommerce-pagination { margin-top: var(--space-6); }
.woocommerce-pagination ul {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-md);
  height: var(--control-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  text-decoration: none;
  font-size: var(--text-sm);
}
.woocommerce-pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* PDP §30–33 */
.ot-pdp { padding-block: var(--space-5) var(--space-9); }
.ot-pdp__grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .ot-pdp__grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "gallery summary"
      "tabs tabs";
    gap: var(--space-8) var(--space-6);
    align-items: start;
  }
  .ot-pdp__gallery { grid-area: gallery; }
  .ot-pdp__summary { grid-area: summary; }
  .ot-pdp__tabs { grid-area: tabs; }
}

.ot-pdp__gallery {
  padding: var(--space-4);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ot-pdp__gallery .woocommerce-product-gallery {
  width: 100% !important;
  opacity: 1 !important;
}
.ot-pdp__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--color-background-soft);
  border-radius: var(--radius-md);
}
.ot-pdp__gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.ot-pdp__gallery .flex-control-thumbs img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  opacity: 0.75;
  cursor: pointer;
}
.ot-pdp__gallery .flex-control-thumbs .flex-active {
  opacity: 1;
  border-color: var(--color-primary);
  border-width: 2px;
}

.ot-pdp__summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.ot-pdp__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--weight-medium);
}
.ot-pdp__brand-logo { height: 24px; width: auto; object-fit: contain; }
.ot-pdp__yetkili img { max-width: 96px; height: auto; }
.ot-pdp__title {
  margin: 0;
  font-size: var(--heading-lg);
  line-height: 40px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
.ot-pdp__spec {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-secondary);
}
.ot-pdp__price {
  font-size: var(--heading-md);
  line-height: 36px;
  font-weight: var(--weight-bold);
}
.ot-pdp__price del {
  margin-right: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

.ot-pdp__summary .otolastik-brand,
.ot-pdp__summary .otolastik-yetkili-rozet--single {
  display: none !important;
}

.ot-pdp__summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin: 0;
}
.ot-pdp__summary .quantity .qty {
  width: 72px;
  min-height: var(--control-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  text-align: center;
  font: inherit;
}

.ot-pdp__trust {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.ot-pdp__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-text-secondary);
}
.ot-pdp__trust .ot-icon { color: var(--color-accent); }

.ot-pdp__tabs {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 0;
}
.woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm);
}
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  min-height: var(--control-md);
}
.woocommerce-tabs ul.tabs li.active {
  background: var(--color-primary);
  border-color: var(--color-primary) !important;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--color-on-primary); }
.woocommerce-tabs .panel {
  padding: var(--space-5);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: var(--text-sm);
  line-height: 20px;
}
.woocommerce-product-attributes th {
  width: 40%;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}
.related > h2,
.upsells > h2 {
  margin: var(--space-8) 0 var(--space-4);
  font-size: var(--heading-sm);
  line-height: 32px;
}

/* Cart + Checkout */
.ot-cart,
.ot-checkout { padding-bottom: var(--space-9); }

.ot-cart__layout,
.ot-checkout__layout {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .ot-cart__layout {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
    gap: var(--space-6);
  }
  .ot-checkout__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: var(--space-6);
  }
}

.ot-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ot-cart-table th,
.ot-cart-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  text-align: left;
  font-size: var(--text-sm);
  line-height: 20px;
}
.ot-cart-table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--color-background-soft);
  border-radius: var(--radius-xs);
}
.ot-cart-table .product-remove a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-xl);
}
.ot-cart-table .actions { background: var(--color-background-soft); }
.ot-cart-table .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ot-cart__aside,
.ot-checkout__primary,
.ot-checkout__aside {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.ot-cart__aside,
.ot-checkout__aside {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.ot-cart__aside .cart_totals {
  width: 100% !important;
  float: none !important;
}
.ot-cart__aside h2,
.ot-checkout__aside-title {
  margin: 0;
  font-size: var(--heading-xs);
  line-height: 30px;
  font-weight: var(--weight-semibold);
}
.ot-cart__aside table,
#order_review table {
  width: 100%;
  border-collapse: collapse;
}
.ot-cart__aside th,
.ot-cart__aside td,
#order_review th,
#order_review td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: var(--text-sm);
  line-height: 20px;
}
.ot-cart__checkout { width: 100%; }
.ot-cart__aside .wc-proceed-to-checkout { display: none; }

.ot-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  max-width: var(--container-readable);
}
.ot-cart-empty__icon { color: var(--color-text-muted); }
.ot-cart-empty h1 {
  margin: 0;
  font-size: var(--heading-md);
  line-height: 36px;
}
.ot-cart-empty p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 24px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--heading-xs);
  line-height: 30px;
}
.wc_payment_methods {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wc_payment_methods li {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.woocommerce-notices-wrapper { margin: var(--space-4) 0; }
.woocommerce-message,
.woocommerce-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.woocommerce-error {
  padding: var(--space-4);
  background: var(--color-background);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  list-style: none;
}

body.otolastik-dev::before {
  content: "DEV · no cache";
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: var(--text-xs);
  line-height: 16px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 767px) {
  .ot-cart-table thead { display: none; }
  .ot-cart-table tr {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-4);
  }
  .ot-cart-table td {
    border: 0;
    padding: 0;
  }
  .ot-cart__aside,
  .ot-checkout__aside { position: static; }
}
