/* ==========================================================
   GGAFAS · CATEGORÍA GAFAS DE SOL · V3
   CSS completo y aislado. Escritorio más ancho + carga infinita. No depende de home.css.
   ========================================================== */

body.ggafas-category-sun,
body.ggafas-category-sun * { box-sizing: border-box; }
body.ggafas-category-sun { margin: 0 !important; background: #f7f7f7 !important; color: #0a0a0a; font-family: Arial, Helvetica, sans-serif !important; overflow-x: hidden; }
body.ggafas-category-sun img { max-width: 100%; height: auto; }
body.ggafas-category-sun a { text-decoration: none; }

/* Header propio: evita cualquier choque con Flatsome/Home */
.ggcat-header { width: 100%; background: #050505; color: #fff; position: relative; z-index: 50; }
.ggcat-header__inner { width: min(1660px, calc(100% - 56px)); min-height: 82px; margin: 0 auto; display: grid; grid-template-columns: 125px minmax(620px,1fr) minmax(300px,380px) 130px; align-items: center; gap: 22px; }
.ggcat-header__logo { display: flex; align-items: center; width: 112px; }
.ggcat-header__logo img { display: block !important; width: 112px !important; max-width: 112px !important; height: auto !important; max-height: 46px !important; object-fit: contain !important; }
.ggcat-header__nav { display: flex; justify-content: center; align-items: center; gap: clamp(11px, 1.2vw, 22px); white-space: nowrap; }
.ggcat-header__nav a { color: #fff; font-size: clamp(10px,.72vw,12px); font-weight: 800; text-transform: uppercase; }
.ggcat-header__nav a:hover,.ggcat-header__nav a.is-active { color: #ed1c24; }
.ggcat-header__search { height: 40px; display: grid; grid-template-columns: 1fr 42px; background: #fff; border-radius: 4px; overflow: hidden; }
.ggcat-header__search input { min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; padding: 0 13px !important; margin: 0 !important; font-size: 12px !important; background: #fff !important; }
.ggcat-header__search button { border: 0; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.ggcat-header__actions { display: flex; justify-content: flex-end; gap: 18px; }
.ggcat-header__actions a { display: grid; place-items: center; color: #fff; font-size: 17px; line-height: 1; }
.ggcat-header__actions span { margin-top: 4px; font-size: 9px; font-weight: 700; }

.ggsun-page { --red:#ed1c24; --black:#050505; --muted:#686868; --line:#e4e4e4; width:100%; overflow:hidden; padding-bottom: 0; }
.ggsun-breadcrumbs,.ggsun-style-section,.ggsun-products,.ggsun-promise,.ggsun-footer,.ggsun-hero { width:min(1560px,calc(100% - 64px)); margin-inline:auto; }
.ggsun-breadcrumbs { display:flex; align-items:center; gap:9px; padding:18px 0 14px; font-size:13px; color:#707070; }
.ggsun-breadcrumbs a { color:#303030; }
.ggsun-breadcrumbs strong { color:#111; font-weight:700; }

.ggsun-hero { min-height:470px; margin-bottom:34px; display:grid; grid-template-columns:43% 57%; overflow:hidden; border-radius:10px; background:#030303; box-shadow:0 10px 30px rgba(0,0,0,.10); }
.ggsun-hero__copy { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; padding:54px 36px 48px 58px; color:#fff; }
.ggsun-kicker { margin-bottom:13px; font-size:12px; font-weight:700; letter-spacing:.28em; }
.ggsun-hero h1 { margin:0; font-size:clamp(44px,4.4vw,70px); line-height:.96; letter-spacing:-.04em; font-weight:900; }
.ggsun-hero h1 strong { color:var(--red); }
.ggsun-hero__copy>p { max-width:520px; margin:20px 0 28px; font-size:18px; line-height:1.45; color:rgba(255,255,255,.84); }
.ggsun-hero__benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:520px; }
.ggsun-hero__benefits>div { display:grid; grid-template-columns:30px 1fr; gap:8px; align-items:center; }
.ggsun-mini-icon { display:grid; width:28px; height:28px; place-items:center; color:var(--red); font-size:22px; font-weight:900; }
.ggsun-hero__benefits p { margin:0; }
.ggsun-hero__benefits strong,.ggsun-hero__benefits small { display:block; }
.ggsun-hero__benefits strong { font-size:11px; line-height:1.15; color:#fff; }
.ggsun-hero__benefits small { margin-top:3px; font-size:9px; line-height:1.25; color:rgba(255,255,255,.66); }
.ggsun-hero__visual { min-height:470px; background-image:linear-gradient(90deg,#030303 0%,rgba(3,3,3,.68) 6%,rgba(3,3,3,.12) 24%,rgba(3,3,3,0) 44%),url('../assets/images/gafas-sol/hero-gafas-sol.jpg'); background-size:cover; background-position:center; }

.ggsun-style-section { padding:0 0 26px; }
.ggsun-heading h2 { margin:0 0 4px; font-size:clamp(24px,2.3vw,34px); line-height:1; letter-spacing:-.03em; }
.ggsun-heading p { margin:0; color:var(--muted); font-size:15px; }
.ggsun-style-row { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:24px; margin-top:22px; }
.ggsun-style { min-width:0; text-align:center; color:#111; }
.ggsun-style__circle { display:grid; aspect-ratio:1; place-items:center; overflow:hidden; border:2px solid #e4e4e4; border-radius:50%; background:#fff; transition:.2s ease; }
.ggsun-style__circle img { width:100% !important; height:100% !important; object-fit:cover !important; padding:0 !important; margin:0 !important; }
.ggsun-style strong { display:inline-block; position:relative; margin-top:10px; padding-bottom:8px; font-size:14px; color:#111; }
.ggsun-style.is-active .ggsun-style__circle,.ggsun-style:hover .ggsun-style__circle { border-color:var(--red); box-shadow:0 0 0 2px rgba(237,28,36,.08); }
.ggsun-style.is-active strong:after,.ggsun-style:hover strong:after { content:''; position:absolute; left:50%; bottom:0; width:72%; height:3px; transform:translateX(-50%); background:var(--red); }
.ggsun-clear-filter { display:flex; justify-content:space-between; align-items:center; margin-top:18px; padding:11px 14px; border:1px solid #eee; border-radius:6px; background:#fff; font-size:13px; }
.ggsun-clear-filter a { color:var(--red); font-weight:800; }

.ggsun-products { padding:4px 0 32px; }
.ggsun-products__top { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.ggsun-products__top h2 { margin:0 0 4px; font-size:38px; line-height:1; letter-spacing:-.03em; }
.ggsun-products__top p { margin:0; color:var(--muted); font-size:15px; }
.ggsun-products__tools { display:flex; align-items:center; gap:18px; font-size:13px; color:#555; }
.ggsun-order-form { display:flex; align-items:center; gap:8px; }
.ggsun-order-form select { min-width:190px; height:42px; padding:0 36px 0 13px; border:1px solid #d8d8d8; border-radius:6px; background:#fff; color:#222; font-size:13px; }
.ggsun-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.ggsun-card { overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#fff; transition:transform .2s ease,box-shadow .2s ease; }
.ggsun-card:hover { transform:translateY(-3px); box-shadow:0 10px 25px rgba(0,0,0,.07); }
.ggsun-card__image { position:relative; display:block; aspect-ratio:1.32; overflow:hidden; background:#f2f0ee; }
.ggsun-card__image img { width:100% !important; height:100% !important; object-fit:contain !important; padding:10px !important; margin:0 !important; }
.ggsun-badge { position:absolute; z-index:2; top:12px; left:12px; padding:6px 10px; border-radius:5px; background:var(--red); color:#fff; font-size:11px; font-weight:800; }
.ggsun-card__body { padding:14px; }
.ggsun-card h3 { margin:0 0 5px; font-size:17px; line-height:1.15; }
.ggsun-card h3 a { color:#111; }
.ggsun-card p { min-height:32px; margin:0 0 8px; color:#686868; font-size:12px; line-height:1.35; }
.ggsun-card__price { margin-bottom:12px; color:#111; font-size:20px; font-weight:900; }
.ggsun-card__price del { color:#999; font-size:13px; font-weight:500; }
.ggsun-card__price ins { text-decoration:none; }
.ggsun-card__button { display:flex; min-height:43px; align-items:center; justify-content:center; gap:8px; border-radius:5px; background:var(--red); color:#fff; font-size:13px; font-weight:800; }
.ggsun-card__button:hover { background:#cf1018; color:#fff; }
.ggsun-empty { padding:50px 20px; border:1px solid #e5e5e5; border-radius:8px; background:#fff; text-align:center; }
.ggsun-empty h3 { margin:0 0 8px; font-size:24px; }
.ggsun-empty p { margin:0 0 18px; color:#666; }
.ggsun-empty a { display:inline-flex; min-height:42px; align-items:center; padding:0 18px; background:#111; color:#fff; font-weight:800; font-size:12px; }

.ggsun-promise { display:grid; grid-template-columns:32% 68%; margin-bottom:24px; overflow:hidden; border-radius:10px; background:#060606; color:#fff; min-height:210px; }
.ggsun-promise__lead { padding:42px 34px; border-right:1px solid rgba(255,255,255,.18); display:flex; flex-direction:column; justify-content:center; }
.ggsun-promise__lead h2 { margin:0 0 12px; font-size:44px; line-height:.95; color:#fff; letter-spacing:-.03em; }
.ggsun-promise__lead h2 strong { color:var(--red); }
.ggsun-promise__lead p { margin:0; color:rgba(255,255,255,.72); font-size:18px; line-height:1.45; max-width:340px; }
.ggsun-promise__items { display:grid; grid-template-columns:repeat(4,1fr); }
.ggsun-promise__items>div { display:grid; place-items:center; align-content:center; min-height:210px; padding:26px 18px; border-right:1px solid rgba(255,255,255,.13); text-align:center; }
.ggsun-promise__items span { margin-bottom:12px; color:#fff; font-size:38px; line-height:1; }
.ggsun-promise__items strong { color:#fff; font-size:16px; line-height:1.35; max-width:150px; }

.ggsun-footer { display:grid; grid-template-columns:30% 70%; margin-bottom:0; padding:34px 36px; background:#050505; color:#fff; min-height:150px; border-radius:0 0 10px 10px; }
.ggsun-footer__brand { display:flex; align-items:center; gap:22px; padding-right:30px; border-right:1px solid rgba(255,255,255,.18); }
.ggsun-footer__brand img { display:block !important; width:128px !important; max-width:128px !important; height:auto !important; max-height:52px !important; object-fit:contain !important; }
.ggsun-footer__brand p { margin:0; font-size:16px; line-height:1.45; color:rgba(255,255,255,.78); max-width:250px; }
.ggsun-footer__trust { display:grid; grid-template-columns:repeat(4,1fr); }
.ggsun-footer__trust>div,.ggsun-footer__trust>a { display:flex; align-items:center; justify-content:center; gap:12px; padding:18px 14px; min-height:82px; color:#fff; border-right:1px solid rgba(255,255,255,.13); text-align:center; }
.ggsun-footer__trust>:last-child { border-right:0; }
.ggsun-footer__trust span { font-size:28px; flex:0 0 auto; }
.ggsun-footer__trust strong { color:#fff; font-size:14px; line-height:1.35; }


.ggsun-infinite-sentinel { display:flex; justify-content:center; align-items:center; min-height:96px; margin-top:20px; text-align:center; }
.ggsun-infinite-loader { display:flex; align-items:center; justify-content:center; gap:12px; color:#444; font-size:13px; font-weight:700; }
.ggsun-infinite-loader span { width:24px; height:24px; border:3px solid #dedede; border-top-color:var(--red); border-radius:50%; animation:ggsun-spin .75s linear infinite; }
.ggsun-infinite-loader.is-paused span { animation:none; border-top-color:#dedede; }
.ggsun-infinite-end { padding:16px 20px; color:#777; font-size:13px; }
.ggsun-infinite-retry { min-height:40px; padding:0 18px; border:0; border-radius:5px; background:var(--red); color:#fff; font-size:12px; font-weight:800; cursor:pointer; }
@keyframes ggsun-spin { to { transform:rotate(360deg); } }


/* Scroll infinito y aislamiento del tema */
.ggsun-infinite-sentinel{display:flex;min-height:92px;align-items:center;justify-content:center;padding:26px 0 8px;text-align:center}
.ggsun-infinite-loader{display:flex;align-items:center;gap:12px;color:#444;font-size:13px}
.ggsun-infinite-loader span{width:24px;height:24px;border:3px solid #ddd;border-top-color:var(--red);border-radius:50%;animation:ggsunSpin .8s linear infinite}
.ggsun-infinite-end{padding:18px 22px;border-radius:6px;background:#fff;color:#666;font-size:13px}
.ggsun-infinite-retry{min-height:42px;padding:0 18px;border:0;border-radius:5px;background:#111;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
@keyframes ggsunSpin{to{transform:rotate(360deg)}}
body.ggafas-category-sun .woocommerce-pagination,
body.ggafas-category-sun nav.woocommerce-pagination,
body.ggafas-category-sun .nav-pagination,
body.ggafas-category-sun .page-numbers,
body.ggafas-category-sun #footer,
body.ggafas-category-sun .footer-wrapper,
body.ggafas-category-sun .absolute-footer,
body.ggafas-category-sun .shop-page-title,
body.ggafas-category-sun .category-filtering{display:none!important}

@media (max-width:1180px){
  .ggcat-header__inner { grid-template-columns:112px 1fr 260px 92px; width:calc(100% - 24px); }
  .ggcat-header__nav { gap:10px; }
  .ggcat-header__nav a { font-size:9px; }
}
@media (max-width:980px){
  .ggcat-header__inner { min-height:72px; grid-template-columns:100px 1fr 92px; }
  .ggcat-header__logo img { width:96px !important; max-width:96px !important; }
  .ggcat-header__nav { display:none; }
  .ggcat-header__search { min-width:0; }
  .ggsun-breadcrumbs,.ggsun-style-section,.ggsun-products,.ggsun-promise,.ggsun-footer,.ggsun-hero { width:min(100% - 28px,760px); }
  .ggsun-hero { min-height:540px; grid-template-columns:1fr; grid-template-rows:auto 235px; }
  .ggsun-hero__copy { padding:32px 26px 26px; }
  .ggsun-hero__visual { min-height:235px; background-position:center; }
  .ggsun-style-row { grid-template-columns:repeat(3,1fr); gap:18px 14px; }
  .ggsun-grid { grid-template-columns:repeat(2,1fr); }
  .ggsun-promise { grid-template-columns:1fr; }
  .ggsun-promise__lead { border-right:0; border-bottom:1px solid rgba(255,255,255,.16); }
  .ggsun-footer { grid-template-columns:1fr; gap:18px; }
  .ggsun-footer__brand { padding-right:0; padding-bottom:18px; border-right:0; border-bottom:1px solid rgba(255,255,255,.18); }
}
@media (max-width:620px){
  .ggcat-header__inner { min-height:64px; grid-template-columns:88px 1fr 64px; gap:8px; width:calc(100% - 16px); }
  .ggcat-header__logo img { width:84px !important; max-width:84px !important; }
  .ggcat-header__search { height:36px; }
  .ggcat-header__search input { font-size:10px !important; padding:0 9px !important; }
  .ggcat-header__search button { font-size:20px; }
  .ggcat-header__actions { gap:8px; }
  .ggcat-header__actions a { font-size:15px; }
  .ggcat-header__actions span { display:none; }
  .ggsun-breadcrumbs,.ggsun-style-section,.ggsun-products,.ggsun-promise,.ggsun-footer,.ggsun-hero { width:calc(100% - 20px); }
  .ggsun-breadcrumbs { padding-top:12px; font-size:11px; }
  .ggsun-hero { min-height:500px; margin-bottom:20px; grid-template-rows:auto 205px; }
  .ggsun-hero__copy { padding:26px 20px 22px; }
  .ggsun-kicker { font-size:10px; }
  .ggsun-hero h1 { font-size:39px; }
  .ggsun-hero__copy>p { margin:13px 0 18px; font-size:13px; }
  .ggsun-hero__benefits { gap:8px; }
  .ggsun-hero__benefits>div { grid-template-columns:22px 1fr; gap:5px; }
  .ggsun-mini-icon { width:21px; height:21px; font-size:17px; }
  .ggsun-hero__benefits strong { font-size:9px; }
  .ggsun-hero__benefits small { display:none; }
  .ggsun-heading h2 { font-size:25px; }
  .ggsun-heading p { font-size:13px; }
  .ggsun-style-row { display:flex; overflow-x:auto; gap:12px; padding:2px 2px 10px; scroll-snap-type:x mandatory; }
  .ggsun-style { flex:0 0 112px; scroll-snap-align:start; }
  .ggsun-style strong { font-size:12px; }
  .ggsun-products__top { align-items:flex-start; flex-direction:column; gap:12px; }
  .ggsun-products__top h2 { font-size:28px; }
  .ggsun-products__tools { width:100%; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
  .ggsun-order-form { width:100%; justify-content:space-between; }
  .ggsun-order-form select { flex:1; min-width:0; }
  .ggsun-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .ggsun-card h3 { font-size:14px; }
  .ggsun-card p { min-height:42px; font-size:10px; }
  .ggsun-card__price { font-size:17px; }
  .ggsun-card__button { min-height:39px; padding:0 6px; font-size:10px; }
  .ggsun-promise__lead { padding:22px 20px; }
  .ggsun-promise__lead h2 { font-size:25px; }
  .ggsun-promise__items { grid-template-columns:1fr 1fr; }
  .ggsun-promise__items>div { min-height:100px; }
  .ggsun-footer { padding:20px; }
  .ggsun-footer__brand img { width:90px !important; max-width:90px !important; }
  .ggsun-footer__trust { grid-template-columns:1fr 1fr; }
  .ggsun-footer__trust>div,.ggsun-footer__trust>a { min-height:68px; border-bottom:1px solid rgba(255,255,255,.1); }
}