:root {
  --gabum-ink: #10233f;
  --gabum-blue: #175cd3;
  --gabum-yellow: #ffcb30;
  --gabum-red: #ed3f3f;
  --gabum-cream: #fffaf0;
  --gabum-surface: #ffffff;
  --gabum-radius: 18px;
}

body { background: #f5f7fa; color: var(--gabum-ink); }
#header .header-nav { background: var(--gabum-ink); border: 0; color: #fff; }
#header .header-nav a,
#header .header-nav .blockcart,
#header .header-nav .user-info a { color: #fff; }
#header .header-nav .language-selector,
#header .header-nav .language-selector button,
#header .header-nav .language-selector .expand-more,
#header .header-nav .language-selector .material-icons {
  color: #fff;
}
#header .header-nav .language-selector button {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: .25rem;
  min-height: 42px;
  padding: .45rem .7rem;
}
#header .header-nav .language-selector .dropdown-menu {
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16,35,63,.2);
  padding: .45rem;
}
#header .header-nav .language-selector .dropdown-menu a {
  border-radius: 7px;
  color: var(--gabum-ink);
  display: block;
  padding: .55rem .75rem;
}
#header .header-nav .language-selector .dropdown-menu a:hover,
#header .header-nav .language-selector .dropdown-menu .current a {
  background: #edf3ff;
  color: var(--gabum-blue);
}
#header .header-nav .language-selector select {
  background: var(--gabum-ink);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
#header .header-nav .right-nav #_desktop_language_selector {
  align-items: center;
  display: inline-flex;
  margin-right: .75rem;
}
#header .header-top { border: 0; box-shadow: 0 10px 28px rgba(16,35,63,.08); }
#header .header-top .menu > ul > li > a,
#header .top-menu a[data-depth="0"] { color: var(--gabum-ink); font-weight: 700; letter-spacing: .01em; }
#header .top-menu a:hover,
#header a:hover { color: var(--gabum-blue); }
#wrapper { background: #f5f7fa; }

.gabum-main-hero {
  align-items: center;
  background-color: var(--gabum-ink);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 24px 55px rgba(16,35,63,.2);
  display: flex;
  min-height: 540px;
  overflow: hidden;
  padding: clamp(2.5rem,7vw,6.5rem);
  position: relative;
}
.gabum-main-hero::before {
  background: linear-gradient(90deg,rgba(5,25,50,.98) 0%,rgba(5,29,59,.86) 32%,rgba(5,29,59,.12) 61%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}
.gabum-main-hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}
.gabum-main-hero::after {
  background: linear-gradient(130deg, transparent 45%, rgba(255,203,48,.16));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.gabum-main-hero__content { color: #fff; max-width: 610px; position: relative; z-index: 2; }
.gabum-main-hero__eyebrow {
  color: var(--gabum-yellow);
  display: inline-block;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.gabum-main-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem,5vw,4.65rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0 0 1.35rem;
  text-transform: none;
}
.gabum-main-hero p {
  color: rgba(255,255,255,.9);
  font-size: clamp(1.04rem,1.7vw,1.3rem);
  line-height: 1.55;
  margin: 0;
  max-width: 540px;
}

.gabum-stores {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: -3rem auto 4rem;
  max-width: 1180px;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}
.gabum-stores__label {
  color: var(--gabum-ink);
  font-size: .82rem;
  font-weight: 800;
  grid-column: 1/-1;
  letter-spacing: .15em;
  margin: 0 0 -.4rem;
  text-transform: uppercase;
}
.gabum-store-card {
  align-content: end;
  background-position: center;
  background-size: cover;
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(16,35,63,.2);
  color: #fff;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  padding: 1.65rem;
  position: relative;
  text-decoration: none;
  transition: transform .2s ease,box-shadow .2s ease;
}
.gabum-store-card::before {
  background: linear-gradient(180deg,rgba(7,22,42,.04) 20%,rgba(7,22,42,.92) 100%);
  content: '';
  inset: 0;
  position: absolute;
}
.gabum-store-card > * { position: relative; z-index: 1; }
.gabum-store-card--lego { background-image: url('../img/gabum-lego-hero.png'); }
.gabum-store-card--informatica { background-image: url('../img/gabum-informatica-cover.png'); }
.gabum-store-card__type { color: var(--gabum-yellow); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gabum-store-card strong { color: #fff; font-size: clamp(1.35rem,2.4vw,2rem); line-height: 1.1; margin: .45rem 0 .8rem; }
.gabum-store-card__action { color: #fff; font-weight: 700; }
.gabum-store-card:hover,
.gabum-store-card:focus { box-shadow: 0 24px 50px rgba(16,35,63,.28); color: #fff; text-decoration: none; transform: translateY(-5px); }

#content-wrapper .featured-products,
.block-category,
.product-information,
.product-cover,
.tabs { border-radius: var(--gabum-radius); }
.featured-products .products-section-title,
.block-category h1 { color: var(--gabum-ink); font-weight: 800; letter-spacing: -.025em; }
.product-miniature .thumbnail-container {
  border: 1px solid rgba(16,35,63,.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(16,35,63,.08);
  overflow: hidden;
  transition: transform .2s ease,box-shadow .2s ease;
}
.product-miniature .thumbnail-container:hover { box-shadow: 0 16px 34px rgba(16,35,63,.15); transform: translateY(-4px); }
.btn-primary,
.btn-primary:hover,
.btn-primary:focus { background: var(--gabum-blue); border-color: var(--gabum-blue); border-radius: 999px; font-weight: 700; }
.block-category { background: var(--gabum-surface); border: 0; box-shadow: 0 14px 34px rgba(16,35,63,.09); overflow: hidden; }
#footer,
#footer .footer-container {
  background: var(--gabum-ink);
  color: rgba(255,255,255,.82);
}
#footer .footer-container { border: 0; box-shadow: none; margin: 0; }
#footer p,
#footer li,
#footer span,
#footer .block-contact,
#footer .block-contact address { color: rgba(255,255,255,.82); }
#footer a { color: #fff; }
#footer a:hover,
#footer a:focus { color: var(--gabum-yellow); }
#footer .h1,
#footer .h2,
#footer .h3,
#footer .h4,
#footer .block-contact-title,
#footer .myaccount-title,
#footer .myaccount-title a,
#footer .links .h3,
#footer .links .h3 a {
  color: #fff;
  font-weight: 800;
}
#footer .block_newsletter {
  background: transparent;
  border: 0;
  color: #fff;
}
#footer .block_newsletter p,
#footer .block_newsletter label { color: rgba(255,255,255,.82); }
#footer .block_newsletter input[type="email"] {
  background: #fff;
  border: 0;
  color: var(--gabum-ink);
}
#footer .block_newsletter input[type="submit"],
#footer .block_newsletter button[type="submit"] {
  background: var(--gabum-yellow);
  border-color: var(--gabum-yellow);
  color: var(--gabum-ink);
}
#footer .copyright { color: rgba(255,255,255,.72); }
#footer .copyright a { color: #fff; }

.gabum-home-carousel { margin: 0 auto; max-width: 1180px; padding: 0 1.5rem; }
.gabum-home-carousel #carousel { margin-bottom: 0; }

@media (max-width: 767px) {
  .gabum-home-carousel { padding: 0 1rem; }
  .gabum-main-hero {
    border-radius: 0 0 20px 20px;
    min-height: 500px;
    padding: 3rem 1.5rem 5rem;
  }
  .gabum-main-hero::before { background: linear-gradient(180deg,rgba(5,25,50,.9),rgba(5,25,50,.48)); }
  .gabum-main-hero__image { object-position: 60% center; }
  .gabum-main-hero__content { align-self: flex-end; }
  .gabum-stores { grid-template-columns: 1fr; margin-top: -2.5rem; padding: 0 1rem; }
  .gabum-store-card { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .gabum-store-card,
  .product-miniature .thumbnail-container { transition: none; }
}

.gabum-category-hero {
  align-items: center;
  background-color: var(--gabum-ink);
  background-position: center;
  background-size: cover;
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(16,35,63,.18);
  color: #fff;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(2rem,6vw,5rem);
  position: relative;
}
.gabum-category-hero--lego {
  background-color: #09284d;
}
.gabum-category-hero--informatica {
  background-color: #09284d;
}
.gabum-category-hero::before {
  background: linear-gradient(90deg,rgba(5,25,50,.98),rgba(5,29,59,.76) 40%,rgba(5,29,59,.05) 70%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}
.gabum-category-hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}
.gabum-category-hero__content { max-width: 570px; position: relative; z-index: 2; }
.gabum-category-hero__eyebrow {
  color: var(--gabum-yellow);
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .15em;
  margin-bottom: .85rem;
  text-transform: uppercase;
}
.gabum-category-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem,4.7vw,4.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 1.15rem;
  text-transform: none;
}
.gabum-category-hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; line-height: 1.55; margin: 0; max-width: 530px; }
.gabum-category-hero__cta {
  background: var(--gabum-yellow);
  border-radius: 999px;
  color: var(--gabum-ink);
  display: inline-block;
  font-weight: 800;
  margin-top: 1.4rem;
  padding: .9rem 1.45rem;
}
.gabum-category-hero__cta:hover,
.gabum-category-hero__cta:focus { color: var(--gabum-ink); text-decoration: none; }
.gabum-category-hero + .subcategory-heading { margin-top: 2rem; }

@media (max-width: 767px) {
  .gabum-category-hero { align-items: flex-end; min-height: 440px; padding: 2rem 1.4rem; }
  .gabum-category-hero__image { object-position: 62% center; }
}

/* Carrusel de tiendas: conserva la composición panorámica completa. */
#carousel { border-radius: 22px; box-shadow: 0 20px 48px rgba(16,35,63,.18); overflow: hidden; }
#carousel .carousel-inner { aspect-ratio: 16 / 9; height: auto; }
#carousel .carousel-item { height: 100%; }
#carousel .carousel-item > a,
#carousel .carousel-item figure { display: block; height: 100%; margin: 0; position: relative; }
#carousel .carousel-item img { height: 100%; margin: 0; object-fit: cover; width: 100%; }
#carousel .caption {
  background: linear-gradient(90deg,rgba(5,25,50,.98),rgba(5,29,59,.8) 38%,rgba(5,29,59,0) 72%);
  color: #fff;
  inset: 0;
  max-width: none;
  padding: clamp(2rem,7vw,5.25rem);
  position: absolute;
  text-align: left;
}
#carousel .caption .display-1 {
  color: var(--gabum-yellow);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
#carousel .caption-description { max-width: 570px; }
#carousel .caption-description h3 { color: #fff; font-size: clamp(2.25rem,4.8vw,4.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 1rem; }
#carousel .caption-description p { color: rgba(255,255,255,.92); font-size: clamp(1rem,1.6vw,1.18rem); line-height: 1.5; }
#carousel .gabum-slide-cta { background: var(--gabum-yellow); border-radius: 999px; color: var(--gabum-ink); display: inline-block; font-weight: 800; margin-top: .7rem; padding: .9rem 1.45rem; }

@media (max-width: 767px) {
  #carousel .carousel-inner { aspect-ratio: 4 / 5; }
  #carousel .carousel-item img { object-position: 66% center; }
  #carousel .caption { align-items: flex-end; background: linear-gradient(180deg,rgba(5,25,50,.15) 20%,rgba(5,25,50,.94) 90%); display: flex; padding: 2rem 1.4rem; }
  #carousel .caption .display-1 { font-size: .72rem; }
  #carousel .caption-description h3 { font-size: 2.25rem; }
}

/* GABUM_CHECKOUT_TERMS_MODAL_START */
body#checkout #modal .modal-content {
  background: #fff;
  color: #172a40;
}
body#checkout #modal .js-modal-content,
body#checkout #modal .js-modal-content * {
  color: #172a40 !important;
}
body#checkout #modal .js-modal-content a {
  color: #125a9e !important;
  text-decoration: underline;
}
body#checkout #modal .close,
body#checkout #modal .close span {
  color: #172a40 !important;
  opacity: 1;
}
/* GABUM_CHECKOUT_TERMS_MODAL_END */

/* GABUM_ORDER_DETAILS_WIDE_V1: espacio para el método de pago en la confirmación. */
@media (min-width: 768px) {
  .page-order-confirmation #order-details {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}
@media (min-width: 992px) {
  .page-order-confirmation #order-details li:nth-child(2) {
    white-space: nowrap;
  }
}


/* GABUM_DELIVERY_MATCH_DESCRIPTION_20260925: reutiliza las clases del resumen del producto. */
#product .gabum-delivery-typography .product-description,
#product .gabum-delivery-typography .product-description p {
  margin: 0 !important;
}
#product .gabum-delivery-typography .delivery-information {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
}
#product .gabum-delivery-typography .gabum-delivery-prefix {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  line-height: inherit !important;
}
#product .gabum-delivery-label::before,
#product .gabum-delivery-typography::before,
#product .gabum-delivery-typography .delivery-information::before {
  content: none !important;
  display: none !important;
}

/* GABUM_PRODUCT_TABS_FULLWIDTH_20261005 */
#product .gabum-product-fullwidth-tabs {
  width: 100%;
  min-width: 0;
  clear: both;
  margin: 2rem 0;
}
#product .gabum-product-fullwidth-tabs .tabs,
#product .gabum-product-fullwidth-tabs .tab-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
#product .gabum-product-fullwidth-tabs .tab-pane {
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  #product .gabum-product-fullwidth-tabs {
    margin: 1.25rem 0;
  }
  #product .gabum-product-fullwidth-tabs .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #product .gabum-product-fullwidth-tabs .nav-item {
    flex: 0 0 auto;
  }
  #product .gabum-product-fullwidth-tabs .nav-link {
    white-space: nowrap;
  }
}

/* GABUM_CATEGORY_FULLWIDTH_GRID_V2_20261005 */
body.page-category #left-column,
body.page-category #content-wrapper.left-column {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
/* Category links also appear in the main navigation; keep the filter hook available. */
body.page-category #left-column .category-tree {
  display: none;
}
body.page-category #left-column {
  margin: 0;
}
body.page-category #content-wrapper,
body.page-category #products,
body.page-category #js-product-list {
  min-width: 0;
}
@media (min-width: 992px) and (max-width: 1199px) {
  body.page-category #js-product-list .js-product.product {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}
@media (min-width: 1200px) {
  body.page-category #js-product-list .js-product.product {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* GABUM_PRODUCT_NAME_TWO_LINES_20261005 */
.product-miniature .thumbnail-container {
  height: 360px;
}
.product-miniature .thumbnail-container .product-description {
  height: 110px;
}
.product-miniature .thumbnail-container .product-title {
  height: 2.8em;
  min-height: 2.8em;
  max-height: 2.8em;
  line-height: 1.4;
  overflow: hidden;
  margin: .35rem 0 .25rem;
}
.product-miniature .thumbnail-container .product-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* GABUM-FRENCH-CAROUSEL-CTA-POSITION-20261005 */
.gabum-home-carousel--fr #carousel .caption .gabum-slide-cta { position: absolute; right: 2.25rem; bottom: 2rem; z-index: 2; margin: 0; }
@media (max-width: 767px) {
  .gabum-home-carousel--fr #carousel .carousel-inner { aspect-ratio: auto; height: 610px !important; }
  .gabum-home-carousel--fr #carousel .caption { padding: 1.25rem 1.25rem 5.5rem !important; }
  .gabum-home-carousel--fr #carousel .caption-description h3 { font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.06; }
  .gabum-home-carousel--fr #carousel .caption-description p { font-size: .88rem; line-height: 1.32; }
  .gabum-home-carousel--fr #carousel .caption .gabum-slide-cta { bottom: 1rem; right: 1rem; padding: .65rem 1rem; }
}

/* Checkout navigation and confirmation actions. */
.checkout-step .gabum-checkout-back { clear: both; padding-top: 1rem; }
.checkout-step .gabum-checkout-back a { display: inline-block; color: #1459a8; text-decoration: underline; }
.header-nav .gabum-checkout-home { display: inline-block; margin-left: 1rem; color: #fff; text-decoration: underline; }
.header-nav .gabum-mobile-home-link { display: block; margin: .35rem 0 0; text-align: center; }
.gabum-confirmation-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gabum-confirmation-heading .card-title { margin-bottom: 0; }
.gabum-confirmation-home { white-space: nowrap; }
@media (max-width: 767px) {
  .header-nav .gabum-checkout-home { margin-left: 0; }
  .gabum-confirmation-heading { align-items: flex-start; }
}
/* Per-product image suppression: fill the space left by the hidden gallery. */
body:has(.gabum-images-disabled) .product-container > .col-md-6:first-child { display: none; }
body:has(.gabum-images-disabled) .product-container > .col-md-6:nth-child(2) { flex: 0 0 100%; max-width: 100%; }
