/*
Theme Name: TDM – The Doctor Motos
Theme URI: https://thedoctormotos.barcelona
Author: The Doctor Motos Barcelona
Description: Tema oscuro oficial para The Doctor Motos — concesionario multimarca Barcelona.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: tdm-theme
WC requires at least: 7.0
WC tested up to: 8.9
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — Dark mode (default)
   ============================================================ */
:root {
  --c-red:          #D70015;
  --c-red-dk:       #A8000F;
  --c-red-glow:     rgba(215,0,21,0.15);

  --c-bg:           #080808;
  --c-bg-2:         #0f0f0f;
  --c-bg-card:      rgba(255,255,255,0.03);
  --c-bg-card-h:    rgba(255,255,255,0.055);
  --c-bg-input:     rgba(255,255,255,0.04);
  --c-bg-overlay:   rgba(8,8,8,0.85);

  --c-text:         #f5f5f7;
  --c-text-mid:     rgba(255,255,255,0.65);
  --c-text-low:     rgba(255,255,255,0.40);
  --c-text-min:     rgba(255,255,255,0.25);

  --c-border:       rgba(255,255,255,0.08);
  --c-border-md:    rgba(255,255,255,0.12);
  --c-border-str:   rgba(255,255,255,0.18);

  --c-scroll:       rgba(255,255,255,0.12);
  --c-scroll-h:     rgba(255,255,255,0.22);
  --c-range:        rgba(255,255,255,0.12);
  --c-shadow:       rgba(0,0,0,0.50);

  --c-hero-grad:    rgba(215,0,21,0.08);
}

/* Light mode overrides */
[data-theme="light"] {
  --c-bg:           #f5f5f7;
  --c-bg-2:         #ffffff;
  --c-bg-card:      rgba(0,0,0,0.025);
  --c-bg-card-h:    rgba(0,0,0,0.05);
  --c-bg-input:     rgba(0,0,0,0.04);
  --c-bg-overlay:   rgba(245,245,247,0.92);

  --c-text:         #1d1d1f;
  --c-text-mid:     rgba(0,0,0,0.65);
  --c-text-low:     rgba(0,0,0,0.42);
  --c-text-min:     rgba(0,0,0,0.28);

  --c-border:       rgba(0,0,0,0.08);
  --c-border-md:    rgba(0,0,0,0.12);
  --c-border-str:   rgba(0,0,0,0.20);

  --c-scroll:       rgba(0,0,0,0.14);
  --c-scroll-h:     rgba(0,0,0,0.26);
  --c-range:        rgba(0,0,0,0.14);
  --c-shadow:       rgba(0,0,0,0.10);

  --c-hero-grad:    rgba(215,0,21,0.04);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  transition: background 0.25s, color 0.25s;
}

/* Admin bar */
#wpadminbar { display: none; }
html { margin-top: 0 !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-scroll); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-scroll-h); }

/* Links */
a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-red); }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-text);
  letter-spacing: -0.02em;
  margin-top: 0;
}

p {
  color: var(--c-text-mid);
  line-height: 1.7;
  margin: 0 0 1em;
}

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

/* ============================================================
   HEADER — Oculto (sin barra de navegación en el tema)
   La navegación vive dentro de cada template WooCommerce (tdm-core plugin).
   ============================================================ */
.site-header { display: none; }

/* Day / Night toggle */
.tdm-theme-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border-md);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--c-text-low);
  flex-shrink: 0;
}
.tdm-theme-toggle:hover {
  background: var(--c-bg-card-h);
  border-color: var(--c-border-str);
  color: var(--c-text);
}
.tdm-theme-toggle .icon-sun  { display: none; }
.tdm-theme-toggle .icon-moon { display: block; }
[data-theme="light"] .tdm-theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .tdm-theme-toggle .icon-moon { display: none; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.site-content, #primary, #main { background: var(--c-bg); }

.entry-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px;
  color: var(--c-text-mid);
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
input, select, textarea {
  background: var(--c-bg-input);
  border: 1px solid var(--c-border-md);
  color: var(--c-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-red); }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }
input[type="submit"], button[type="submit"] {
  background: var(--c-red);
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  transition: background 0.15s;
  width: auto;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--c-red-dk); }

/* ============================================================
   PAGINATION
   ============================================================ */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-text-low);
  font-size: 13px; font-weight: 500;
  margin: 0 3px;
  text-decoration: none;
  transition: all 0.15s;
}
.page-numbers:hover,
.page-numbers.current { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 32px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding: 60px 32px 40px;
  color: var(--c-text-low);
  font-size: 13px;
  transition: background 0.25s;
}

.tdm-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Logo en footer */
.tdm-footer-logo-link { display: inline-block; line-height: 0; }
.tdm-footer-logo {
  display: block;
  height: 48px;   /* tamaño idóneo para footer */
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
/* custom-logo de WordPress */
.tdm-footer-logo-link .custom-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.tdm-footer-brand img { display: block; }

.tdm-footer-col h4 {
  color: var(--c-text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.tdm-footer-col ul li a {
  color: var(--c-text-low);
  text-decoration: none;
  font-size: 13px;
  line-height: 2.2;
  display: block;
  transition: color 0.15s;
}
.tdm-footer-col ul li a:hover { color: var(--c-text); }

.tdm-footer-bottom {
  border-top: 1px solid var(--c-border);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--c-text-min);
}

/* ============================================================
   WOOCOMMERCE DARK OVERRIDES
   ============================================================ */

/* Breadcrumb */
.woocommerce-breadcrumb {
  color: var(--c-text-low) !important;
  font-size: 12px;
  margin-bottom: 8px;
}
.woocommerce-breadcrumb a { color: var(--c-text-low) !important; text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--c-red) !important; }

/* Result count + ordering */
.woocommerce-result-count { color: var(--c-text-low); font-size: 13px; margin: 0; }
.woocommerce-ordering select {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border-md);
  color: var(--c-text);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  width: auto;
}

/* Products loop */
ul.products {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Product card */
.tdm-product-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.tdm-product-card:hover {
  border-color: var(--c-border-str);
  background: var(--c-bg-card-h);
  transform: translateY(-2px);
}

.tdm-card-link { display: block; color: inherit; text-decoration: none; }

.tdm-card-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--c-bg-card);
  overflow: hidden;
}
.tdm-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.tdm-product-card:hover .tdm-card-img img { transform: scale(1.04); }

.tdm-placeholder-moto { width: 100%; height: 100%; }

.tdm-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 980px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.tdm-card-badge--red   { background: var(--c-red); color: #fff; }
.tdm-card-badge--green { background: #00a651; color: #fff; }

.tdm-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.tdm-product-card:hover .tdm-card-overlay { opacity: 1; }
.tdm-card-overlay-btn {
  background: var(--c-red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 12px; font-weight: 700;
}

.tdm-card-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--c-border-md);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-low);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(8px);
}
.tdm-card-wishlist:hover {
  background: rgba(215,0,21,0.85);
  border-color: var(--c-red);
  color: #fff;
}

.tdm-card-body { padding: 12px 14px 14px; }
.tdm-card-brand {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-red);
  margin-bottom: 3px;
}
.tdm-card-name {
  font-size: 13px; font-weight: 700;
  color: var(--c-text);
  line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 6px;
}

/* Stars */
.tdm-card-rating {
  display: flex; align-items: center; gap: 1px;
  margin-bottom: 4px;
}
.tdm-star--full  { color: var(--c-red); }
.tdm-star--half  { color: var(--c-red); opacity: 0.6; }
.tdm-star--empty { color: var(--c-border-str); }
.tdm-star-count  { color: var(--c-text-low); font-size: 10px; margin-left: 3px; }

.tdm-card-spec {
  font-size: 11px;
  color: var(--c-text-low);
  margin-bottom: 4px;
}
.tdm-card-from {
  font-size: 11px;
  color: var(--c-text-mid);
  margin-bottom: 8px;
}
.tdm-card-from strong { color: var(--c-text); }

.tdm-card-foot {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--c-border);
}
.tdm-price-old {
  display: block; font-size: 10px;
  color: var(--c-text-low);
  text-decoration: line-through;
}
.tdm-card-price {
  font-size: 15px; font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.03em;
}
.tdm-card-price .woocommerce-Price-amount { color: var(--c-text); }

.tdm-card-atc {
  background: var(--c-red);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 5px 12px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.tdm-card-atc:hover { background: var(--c-red-dk); color: #fff; }
.tdm-card-atc--disabled {
  background: var(--c-bg-card);
  color: var(--c-text-low);
  cursor: default;
}

/* List view */
ul.products.tdm-list-view { grid-template-columns: 1fr; }
ul.products.tdm-list-view .tdm-product-card { display: flex; flex-direction: row; }
ul.products.tdm-list-view .tdm-card-link { display: flex; flex: 1; }
ul.products.tdm-list-view .tdm-card-img { width: 220px; flex-shrink: 0; aspect-ratio: auto; }
ul.products.tdm-list-view .tdm-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ============================================================
   SHOP PAGE LAYOUT
   ============================================================ */
.tdm-shop-page {
  background: var(--c-bg);
  min-height: 100vh;
  transition: background 0.25s;
}

/* Shop header bar (embedded in archive-product.php) */
.tdm-shop-header {
  background: var(--c-bg-overlay);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0; z-index: 90;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.25s;
}
.tdm-shop-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tdm-shop-header-logo img { height: 28px; width: auto; display: block; }
.tdm-shop-header-nav {
  display: flex; align-items: center; gap: 20px;
}
.tdm-shop-header-nav a {
  color: var(--c-text-mid);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.tdm-shop-header-nav a:hover { color: var(--c-text); }
.tdm-shop-header-actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}

.tdm-shop-hero {
  background: linear-gradient(180deg, var(--c-hero-grad) 0%, transparent 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 36px 32px 28px;
}
.tdm-shop-hero-inner { max-width: 1360px; margin: 0 auto; }
.tdm-shop-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--c-text);
  margin-bottom: 6px;
}
.tdm-shop-hero-sub { color: var(--c-text-low); font-size: 14px; margin: 0; }

.tdm-shop-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px 80px;
}

.tdm-shop-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ── */
.tdm-shop-sidebar {
  position: sticky;
  top: 72px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px;
  transition: background 0.25s;
}

/* Sidebar search */
.tdm-sidebar-search {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.tdm-sidebar-search-wrap {
  position: relative;
}
.tdm-sidebar-search-wrap input[type="search"] {
  background: var(--c-bg-input);
  border: 1px solid var(--c-border-md);
  color: var(--c-text);
  border-radius: 8px;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.tdm-sidebar-search-wrap input[type="search"]::placeholder { color: var(--c-text-low); }
.tdm-sidebar-search-wrap input[type="search"]:focus { border-color: var(--c-red); }
.tdm-sidebar-search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-low);
  pointer-events: none;
}

.tdm-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.tdm-sidebar-title { font-weight: 700; font-size: 14px; color: var(--c-text); }
.tdm-sidebar-clear { font-size: 12px; color: var(--c-red) !important; text-decoration: none; }
.tdm-sidebar-clear:hover { color: var(--c-red-dk) !important; }

.tdm-filter-section {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}
.tdm-filter-section:last-of-type { border-bottom: none; }

.tdm-filter-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-text-low);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.tdm-price-display {
  font-weight: 600; color: var(--c-text);
  text-transform: none; letter-spacing: 0; font-size: 11px;
}

.tdm-filter-tipo-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.tdm-tipo-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 980px;
  border: 1px solid var(--c-border-md);
  font-size: 11px;
  color: var(--c-text-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.tdm-tipo-pill:hover,
.tdm-tipo-pill.on {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}
.tdm-tipo-pill input { display: none; }

/* Category links in sidebar */
.tdm-cat-list { display: flex; flex-direction: column; gap: 2px; }
.tdm-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--c-text-mid);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.15s;
}
.tdm-cat-item:hover,
.tdm-cat-item.active {
  background: var(--c-red-glow, rgba(215,0,21,0.12));
  color: var(--c-red);
}
.tdm-cat-count {
  font-size: 10px;
  color: var(--c-text-low);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 980px;
  padding: 1px 6px;
}

.tdm-filter-check-list { display: flex; flex-direction: column; gap: 7px; }
.tdm-check-item {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 12px;
}
.tdm-check-item input { width: 15px; height: 15px; accent-color: var(--c-red); padding: 0; }
.tdm-check-label { color: var(--c-text-mid); flex: 1; }
.tdm-check-count { color: var(--c-text-low); font-size: 10px; }

/* Range sliders */
.tdm-range-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tdm-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: var(--c-range);
  border-radius: 2px;
  outline: none; border: none; padding: 0;
}
.tdm-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--c-red);
  cursor: pointer;
  border: 2px solid var(--c-bg);
}

.tdm-filter-apply {
  width: 100%;
  background: var(--c-red);
  color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 0;
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
  margin-top: 6px;
}
.tdm-filter-apply:hover { background: var(--c-red-dk); }

.tdm-sidebar-trust {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 9px;
}
.tdm-sidebar-trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--c-text-low);
}

/* ── Shop main ── */
.tdm-shop-main { min-width: 0; }

.tdm-mobile-filter-btn {
  display: none; align-items: center; gap: 6px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--c-text);
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  margin-bottom: 14px;
}

.tdm-shop-topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 18px; gap: 14px;
}
.tdm-topbar-right {
  display: flex; align-items: center; gap: 10px;
}

.tdm-view-toggle {
  display: flex; gap: 2px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 6px; padding: 2px;
}
.tdm-view-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 4px;
  color: var(--c-text-low);
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.tdm-view-btn.on,
.tdm-view-btn:hover { background: var(--c-bg-card-h); color: var(--c-text); }

/* Pagination */
.tdm-pagination-wrap { margin-top: 36px; text-align: center; }
.woocommerce-pagination ul {
  list-style: none;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 0; margin: 0;
}
.woocommerce-pagination ul li { margin: 0; }
.woocommerce-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-text-low);
  font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.15s;
}
.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
  background: var(--c-red); border-color: var(--c-red); color: #fff;
}

/* No products */
.tdm-no-products-wrap {
  padding: 80px 0; text-align: center; color: var(--c-text-low);
}

/* ============================================================
   SINGLE PRODUCT (WC default fallback, overridden by our template)
   ============================================================ */
.woocommerce div.product { background: var(--c-bg); color: var(--c-text); }
.woocommerce div.product .product_title {
  color: var(--c-text);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900; letter-spacing: -0.035em;
}
.woocommerce div.product .price { color: var(--c-text) !important; font-size: 1.8rem; font-weight: 800; }
.woocommerce div.product .price del { color: var(--c-text-low) !important; }
.woocommerce div.product .price ins { color: var(--c-red) !important; text-decoration: none; }

.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--c-red) !important;
  color: #fff !important;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  border: none; padding: 12px 24px; cursor: pointer;
  transition: background 0.15s;
  text-decoration: none; display: inline-block; font-family: inherit;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--c-red-dk) !important; color: #fff !important;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: transparent;
  border-bottom: 1px solid var(--c-border);
  padding: 0; margin: 0 0 24px;
  list-style: none; display: flex; gap: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none !important; background: transparent !important;
  border-radius: 0; margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--c-text-low);
  padding: 12px 20px;
  display: block; font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--c-text); border-bottom-color: var(--c-red);
}
.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 12px; padding: 24px;
  color: var(--c-text-mid);
}

/* Cart */
.woocommerce .cart-collaterals,
.woocommerce-cart .cart-collaterals { background: transparent; }
.woocommerce table.shop_table {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border) !important;
  border-radius: 12px; border-collapse: separate; border-spacing: 0;
  color: var(--c-text);
}
.woocommerce table.shop_table th {
  color: var(--c-text-low);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  background: transparent;
}
.woocommerce table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text); vertical-align: middle;
}
.woocommerce table.shop_table td a { color: var(--c-text); }
.woocommerce table.shop_table td a:hover { color: var(--c-red); }
.woocommerce table.shop_table .cart-subtotal td,
.woocommerce table.shop_table .order-total td { font-weight: 700; color: var(--c-text); }

/* Checkout */
.woocommerce .woocommerce-checkout #order_review {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 12px; padding: 24px;
}
.woocommerce form .form-row label {
  color: var(--c-text-mid);
  font-size: 13px; margin-bottom: 6px; display: block;
}

/* Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  color: var(--c-text-low);
  display: block; padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--c-red); }

/* WC notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background: var(--c-bg-card) !important;
  border-top-color: var(--c-red) !important;
  color: var(--c-text) !important;
  border-radius: 0 0 8px 8px;
}
.woocommerce-error { border-top-color: #ff3b30 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .tdm-shop-wrap { grid-template-columns: 200px 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .tdm-header-inner { padding: 0 16px; }
  .tdm-nav { display: none; }

  .site-footer .tdm-footer-inner { grid-template-columns: 1fr 1fr; }
  .tdm-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .tdm-shop-wrap { grid-template-columns: 1fr; }
  .tdm-shop-sidebar { position: static; display: none; }
  .tdm-shop-sidebar.open { display: block; }
  .tdm-mobile-filter-btn { display: flex; }

  ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  ul.products.tdm-list-view .tdm-product-card { flex-direction: column; }
  ul.products.tdm-list-view .tdm-card-img { width: 100%; }

  .tdm-shop-container { padding: 14px 14px 60px; }
  .tdm-shop-hero { padding: 20px 16px; }
  .tdm-shop-header-inner { padding: 0 16px; }
}

@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr; }
  .site-footer .tdm-footer-inner { grid-template-columns: 1fr; }
}
