/* Diseño de las tiendas que no son COM (hoy swi-tec.de).
   Layout.astro solo enlaza esta hoja cuando la tienda no es COM; el selector
   repite la condición para que nunca pueda afectar a swi-tec.com. */
html[data-store]:not([data-store="com"]) {
  --pd-red-cta: #C8102E;
  --pd-red-cta-hover: #A50F26;
  --pd-ink: #1E2328;
  --pd-ink-2: #3A4148;
  --pd-muted: #5B636B;
  --pd-line: #E3E6E9;
  --pd-soft: #F5F6F7;
  --pd-ok: #1B7A3E;
}

/* Layout.astro fija el gris #555 con !important en todos los títulos. */
html[data-store]:not([data-store="com"]) :is(.pd-sec-h, .ph-sec-h, .ph-card h3, .ph-help h2, .product-hero h1, .accessories-title) { color: var(--pd-ink) !important; }
html[data-store]:not([data-store="com"]) .ph-hero h1 { color: #fff !important; }

/* ---- Barra superior y cabecera compacta ---- */
html[data-store]:not([data-store="com"]) .swt-topbar { background: #23272B; border-bottom: 0; color: #fff; }
html[data-store]:not([data-store="com"]) .swt-topbar-inner { padding-top: 5px; padding-bottom: 5px; }
html[data-store]:not([data-store="com"]) .swt-topbar-slogan { color: #fff; font-weight: 600; letter-spacing: .01em; text-transform: none; }
html[data-store]:not([data-store="com"]) .swt-topbar-slogan-text,
html[data-store]:not([data-store="com"]) .lang-switcher-btn *,
html[data-store]:not([data-store="com"]) .swt-topbar-link,
html[data-store]:not([data-store="com"]) .swt-topbar .currency-switcher,
html[data-store]:not([data-store="com"]) .swt-topbar .lang-switcher-btn { color: #fff !important; }
html[data-store]:not([data-store="com"]) .swt-topbar-link:hover { color: #FF8796 !important; }
html[data-store]:not([data-store="com"]) .swt-main-header { box-shadow: none; border-bottom: 1px solid var(--pd-line); }
html[data-store]:not([data-store="com"]) .swt-main-header-inner { padding-top: 8px; padding-bottom: 8px; gap: 24px; }
html[data-store]:not([data-store="com"]) .swt-logo-img { height: 38px; }
html[data-store]:not([data-store="com"]) .swt-search-form { border-radius: 10px; border-color: #C9CED3; }
html[data-store]:not([data-store="com"]) .swt-search-form:focus-within { border-color: var(--pd-ink); }
html[data-store]:not([data-store="com"]) .swt-search-input { padding: 9px 14px; }
html[data-store]:not([data-store="com"]) .swt-search-btn { background: var(--pd-red-cta); }
html[data-store]:not([data-store="com"]) .swt-search-btn:hover { background: var(--pd-red-cta-hover); }
html[data-store]:not([data-store="com"]) .swt-cart-badge { background: var(--pd-red-cta); }
html[data-store]:not([data-store="com"]) .swt-navbar { border-bottom: 1px solid var(--pd-line); box-shadow: none; }
html[data-store]:not([data-store="com"]) .swt-nav-link {
  font-family: inherit; font-weight: 600; font-size: 14.5px; color: var(--pd-ink-2); height: 46px; padding: 10px 10px;
}
html[data-store]:not([data-store="com"]) .swt-nav-link:hover,
html[data-store]:not([data-store="com"]) .swt-nav-link.active { color: var(--pd-red-cta); border-bottom-color: var(--pd-red-cta); }
@media (max-width: 991.98px) {
  html[data-store]:not([data-store="com"]) .swt-main-header-inner { padding-top: 6px; padding-bottom: 6px; }
  html[data-store]:not([data-store="com"]) .swt-logo-img { height: 30px; }
}

/* ---- Ficha: bloque de compra ---- */
html[data-store]:not([data-store="com"]) .product-page-modern .breadcrumb { font-size: 13px; white-space: nowrap; flex-wrap: nowrap; overflow: hidden; }
html[data-store]:not([data-store="com"]) .product-page-modern .breadcrumb-item:last-child { overflow: hidden; text-overflow: ellipsis; }
html[data-store]:not([data-store="com"]) .product-hero h1 { font-size: 25px; font-weight: 800 !important; letter-spacing: -.01em; color: var(--pd-ink); }
html[data-store]:not([data-store="com"]) .price-current { font-size: 28px; font-weight: 800; color: var(--pd-ink); letter-spacing: -.01em; }
html[data-store]:not([data-store="com"]) .btn-addcart,
html[data-store]:not([data-store="com"]) .btn-addcart:focus { background-color: var(--pd-red-cta) !important; border-color: var(--pd-red-cta) !important; border-radius: 10px; font-weight: 700; color: #fff; }
html[data-store]:not([data-store="com"]) .btn-addcart:hover { background-color: var(--pd-red-cta-hover) !important; border-color: var(--pd-red-cta-hover) !important; }
html[data-store]:not([data-store="com"]) .quantity-selector { border-radius: 10px; border-color: #C9CED3; }
@media (min-width: 992px) {
  html[data-store]:not([data-store="com"]) .product-hero h1 { font-size: 34px; }
  html[data-store]:not([data-store="com"]) .price-current { font-size: 34px; }
}

.pd-assure { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.4; color: var(--pd-ink); }
.pd-assure li { display: flex; gap: 8px; align-items: flex-start; }
.pd-assure svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--pd-ok); }
.pd-assure b { font-weight: 700; }
.pd-buy-help { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--pd-line); font-size: 14px; color: var(--pd-ink-2); }
.pd-buy-help a { font-weight: 700; color: var(--pd-ink); }

/* ---- Ficha: secciones en vez de pestañas ---- */
.product-tabs-section--stacked .product-tabs-bar { display: none !important; }
.product-tabs-section--stacked .product-tab-content,
.product-tabs-section--stacked .product-tab-content.d-none { display: block !important; }
.product-tabs-section--stacked .product-tabs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.product-tabs-section--stacked .product-tab-content { padding: 26px 0; border-top: 8px solid var(--pd-soft); }
.product-tabs-section--stacked .product-tab-content:first-child { border-top: 0; }
.pd-sec-h { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; color: var(--pd-ink); }
.pd-sec-sub { color: var(--pd-muted); font-size: 14.5px; margin: -6px 0 14px; }
.product-tabs-section--stacked .spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.product-tabs-section--stacked .spec-table th,
.product-tabs-section--stacked .spec-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--pd-line); vertical-align: top; background: none; }
.product-tabs-section--stacked .spec-table th { width: 44%; font-weight: 600; color: var(--pd-ink-2); }
.product-tabs-section--stacked .spec-table td { font-weight: 500; color: var(--pd-ink); }
@media (min-width: 992px) {
  .product-tabs-section--stacked .product-tabs-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
  .product-tabs-section--stacked .product-tab-content { grid-column: 1 / -1; padding: 44px 0; border-top: 1px solid var(--pd-line); }
  .product-tabs-section--stacked .product-tab-content:first-child { border-top: 0; }
  .product-tabs-section--stacked #specifications { grid-column: 1; }
  .product-tabs-section--stacked #usage { grid-column: 2; }
  .product-tabs-section--stacked #specifications:last-child,
  .product-tabs-section--stacked #specifications:has(+ :not(#usage)) { grid-column: 1 / -1; }
  .pd-sec-h { font-size: 26px; }
}

/* ---- Ficha: accesorios ---- */
html[data-store]:not([data-store="com"]) .accessories-section { border-top: 1px solid var(--pd-line); padding-top: 32px !important; }
html[data-store]:not([data-store="com"]) .accessories-title { font-size: 21px; font-weight: 800; color: var(--pd-ink); text-align: left; }
html[data-store]:not([data-store="com"]) .accessories-header { text-align: left; }
@media (min-width: 992px) {
  html[data-store]:not([data-store="com"]) .accessories-title { font-size: 26px; }
}

/* ---- Ficha: barra de compra fija (móvil) ---- */
.pd-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--pd-line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; transform: translateY(110%); transition: transform .25s ease;
}
.pd-sticky.on { transform: none; }
.pd-sticky img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.pd-sticky-t { flex: 1; min-width: 0; line-height: 1.25; }
.pd-sticky-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pd-ink); }
.pd-sticky-t span { font-size: 15px; font-weight: 800; color: var(--pd-ink); }
.pd-sticky-t small { white-space: nowrap; font-weight: 500; color: var(--pd-muted); font-size: 11.5px; }
.pd-sticky button {
  flex: none; height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--pd-red-cta); color: #fff;
  font-weight: 700; font-size: 15.5px;
}
.pd-sticky button:hover { background: var(--pd-red-cta-hover); }
@media (min-width: 992px) { .pd-sticky { display: none; } }

/* ---- Portada (components/store/PartnerHome.astro) ---- */
.ph{--red-cta:#C8102E;--red-cta-hover:#A50F26;--ink:#1E2328;--ink-2:#3A4148;--muted:#5B636B;--line:#E3E6E9;--soft:#F5F6F7;--ok:#1B7A3E;--sea:#0E3A52;--radius:10px;--gutter:16px;color:var(--ink)}
.ph :where(h1,h2,h3,p,figure,blockquote){margin:0}
.ph img{display:block;max-width:100%}
.ph a{color:inherit}
.ph-wrap{max-width:1240px;margin:0 auto;padding:0 var(--gutter)}

.ph-hero{position:relative;background:var(--sea);color:#fff;overflow:hidden}
.ph-hero-img{position:absolute;inset:0}
.ph-hero-img img{width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.ph-hero-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,30,44,0) 0%,rgba(8,30,44,.25) 35%,rgba(8,30,44,.85) 75%,rgba(8,30,44,.95) 100%)}
.ph-hero-in{position:relative;padding:170px var(--gutter) 22px;display:flex;flex-direction:column;gap:10px}
.ph-eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#FFC2CA}
.ph-hero h1{font-size:29px;font-weight:800;line-height:1.15;letter-spacing:-.01em;max-width:18ch;color:#fff}
.ph-lead{font-size:15.5px;line-height:1.45;color:#E6EDF2;max-width:52ch}
.ph-hero-ctas{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}
.ph-btn-red,.ph-btn-line,.ph-btn-dark,.ph-btn-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:10px;font-weight:700;font-size:15.5px;text-decoration:none}
.ph-btn-red{background:var(--red-cta);color:#fff !important}
.ph-btn-red:hover{background:var(--red-cta-hover)}
.ph-btn-line{border:1.5px solid rgba(255,255,255,.85);color:#fff !important}
.ph-btn-dark{background:var(--ink);color:#fff !important;min-height:46px;font-size:15px}
.ph-btn-ghost{border:1.5px solid var(--ink);background:#fff;min-height:44px;font-size:14.5px}

.ph-trust{list-style:none;margin:0;padding:12px 0;display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;font-size:13px;line-height:1.3;border-bottom:1px solid var(--line)}
.ph-trust li{display:flex;gap:8px;align-items:flex-start}
.ph-trust svg{width:20px;height:20px;flex:none;color:var(--ok)}
.ph-trust b{display:block;font-size:13.5px}
.ph-trust span{color:var(--muted)}

.ph-sec{padding:26px 0}
.ph-sec + .ph-sec{border-top:8px solid var(--soft)}
.ph-sec-last{padding-top:8px;padding-bottom:32px}
.ph-sec-h{font-size:21px;font-weight:800;line-height:1.2;letter-spacing:-.01em}
.ph-mb{margin-bottom:12px}
.ph-sec-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.ph-sec-top a{font-size:14px;font-weight:700;white-space:nowrap}
.ph-kicker{font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--red-cta)}

.ph-cats{list-style:none;margin:0;padding:0 0 4px;display:grid;grid-auto-flow:column;grid-auto-columns:124px;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.ph-cats::-webkit-scrollbar{display:none}
.ph-cats li{scroll-snap-align:start}
.ph-cats a{display:flex;flex-direction:column;gap:2px;text-decoration:none}
.ph-cats img{width:124px;height:92px;object-fit:cover;border-radius:8px;background:var(--soft);margin-bottom:5px}
.ph-cats b{font-size:13.5px;line-height:1.25}
.ph-cats span{font-size:12px;color:var(--muted);line-height:1.3}

.ph-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ph-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;background:#fff;text-decoration:none}
.ph-card-im{position:relative;aspect-ratio:1;background:var(--soft);overflow:hidden}
.ph-card-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ph-tag{position:absolute;top:8px;left:8px;background:#fff;color:var(--ink);font-size:11px;font-weight:800;padding:2px 8px;border-radius:20px;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.ph-card-tx{padding:9px 10px 11px;display:flex;flex-direction:column;gap:3px;flex:1}
.ph-card h3{font-size:14.5px;font-weight:700;line-height:1.25}
.ph-pz{margin-top:auto !important;padding-top:4px;font-weight:800;font-size:16px}
.ph-pz small{white-space:nowrap;font-weight:500;color:var(--muted);font-size:11.5px}

.ph-prob{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ph-prob a{display:grid;grid-template-columns:56px 1fr 20px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:var(--radius);padding:8px 10px 8px 8px;text-decoration:none}
.ph-prob img{width:56px;height:56px;border-radius:8px;object-fit:cover}
.ph-prob b{display:block;font-size:15px;line-height:1.3}
.ph-prob span{font-size:13px;color:var(--muted)}
.ph-prob svg{width:20px;height:20px;color:var(--muted)}

.ph-maker{display:grid;gap:14px}
.ph-maker-img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--radius);background:var(--soft)}
.ph-maker-tx{display:grid;gap:12px;align-content:start;justify-items:start;font-size:15px;line-height:1.55;color:var(--ink-2)}
.ph-maker-tx .ph-sec-h{color:var(--ink)}
.ph-facts{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ph-facts li{position:relative;padding-left:18px;font-size:14.5px;line-height:1.45}
.ph-facts li::before{content:"";position:absolute;left:0;top:7px;width:8px;height:8px;border-radius:50%;background:var(--red-cta)}
.ph-facts b{margin-right:4px;font-size:.86em;letter-spacing:.04em;color:var(--ink)}

.ph-rv{display:grid;gap:10px}
.ph-rv figure{background:var(--soft);border-radius:var(--radius);padding:14px 16px;border-left:4px solid var(--red-cta);display:flex;flex-direction:column;gap:8px}
.ph-rv blockquote{font-size:15px;line-height:1.45;color:var(--ink-2)}
.ph-rv figcaption{font-size:13px;color:var(--muted)}
.ph-rv figcaption b{color:var(--ink)}

.ph-help{background:var(--soft);border-radius:var(--radius);padding:16px;display:grid;gap:10px}
.ph-help h2{font-size:18px;font-weight:800}
.ph-help p{font-size:14.5px;color:var(--ink-2)}
.ph-help-btns{display:flex;gap:8px;flex-wrap:wrap}

@media (min-width:1024px){
  .ph{--gutter:32px}
  .ph-hero-img img{object-position:50% 55%}
  .ph-hero-img::after{background:linear-gradient(90deg,rgba(8,30,44,.9) 0%,rgba(8,30,44,.6) 38%,rgba(8,30,44,0) 66%)}
  .ph-hero-in{padding:96px var(--gutter) 88px;gap:14px;align-items:flex-start;max-width:1240px;margin:0 auto}
  .ph-hero-in > *{max-width:620px}
  .ph-hero h1{font-size:48px;max-width:none}
  .ph-lead{font-size:19px}
  .ph-trust{grid-template-columns:repeat(4,1fr);padding:18px 0;font-size:14px}
  .ph-sec{padding:48px 0}
  .ph-sec + .ph-sec{border-top:1px solid var(--line)}
  .ph-sec-h{font-size:28px}
  .ph-grid{grid-template-columns:repeat(6,1fr);gap:14px}
  .ph-cats{grid-auto-flow:row;grid-template-columns:repeat(var(--ph-cats),1fr);grid-auto-columns:auto;overflow:visible}
  .ph-cats img{width:100%;height:auto;aspect-ratio:4/3}
  .ph-prob{grid-template-columns:repeat(3,1fr);gap:12px}
  .ph-maker{grid-template-columns:1.1fr 1fr;gap:40px;align-items:center}
  .ph-rv{grid-template-columns:repeat(3,1fr)}
  .ph-help{grid-template-columns:1fr auto;align-items:center;padding:24px 28px}
}
