/*
 * Reala Store – WooCommerce Styles
 * Real Sociedad Copa del Rey Final 2026
 *
 * Targets: TwentyTwentyFive block theme + WooCommerce 10.x block-based templates
 * Does NOT touch: .aupa-reala-landing (the custom landing page)
 *
 * Palette:
 *   --reala-blue:      #005BAC  (primary)
 *   --reala-blue-dark: #003F7D  (hover, dark)
 *   --reala-blue-mid:  #1A6EC0  (light variant)
 *   --reala-gold:      #C9A84C  (accent)
 *   --reala-gold-lt:   #E8C97A  (hover gold)
 *   --reala-white:     #FFFFFF
 *   --reala-gray-50:   #F8F9FC
 *   --reala-gray-100:  #EEF0F4
 *   --reala-gray-600:  #6B7280
 *   --reala-gray-900:  #0F172A
 */

/* ══════════════════════════════════════════════════════════════════════════════
   0. CSS CUSTOM PROPERTIES
══════════════════════════════════════════════════════════════════════════════ */

.woocommerce:not(.aupa-reala-landing),
.woocommerce-page:not(.aupa-reala-landing) {
  --reala-blue:      #005BAC;
  --reala-blue-dark: #003F7D;
  --reala-blue-mid:  #1A6EC0;
  --reala-gold:      #C9A84C;
  --reala-gold-lt:   #E8C97A;
  --reala-white:     #FFFFFF;
  --reala-gray-50:   #F8F9FC;
  --reala-gray-100:  #EEF0F4;
  --reala-gray-600:  #6B7280;
  --reala-gray-900:  #0F172A;
  --reala-radius:    12px;
  --reala-radius-sm: 8px;
  --reala-shadow:    0 2px 16px rgba(0,63,125,0.10);
  --reala-shadow-hover: 0 8px 32px rgba(0,63,125,0.18);
  --reala-transition: 0.22s ease;
}

/* ══════════════════════════════════════════════════════════════════════════════
   1. GLOBAL BODY / PAGE WRAPPER
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce:not(.aupa-reala-landing),
body.woocommerce-page:not(.aupa-reala-landing) {
  background-color: var(--reala-gray-50);
  color: var(--reala-gray-900);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Page content wrapper */
body.woocommerce:not(.aupa-reala-landing) .wp-site-blocks,
body.woocommerce-page:not(.aupa-reala-landing) .wp-site-blocks {
  background: var(--reala-gray-50);
}

/* Constrain max-width and add breathing room */
body.woocommerce:not(.aupa-reala-landing) .entry-content,
body.woocommerce-page:not(.aupa-reala-landing) .entry-content,
body.woocommerce:not(.aupa-reala-landing) .woocommerce,
body.woocommerce-page:not(.aupa-reala-landing) .woocommerce {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   2. SHOP PAGE HEADER BANNER
══════════════════════════════════════════════════════════════════════════════ */

/* Inject a txuri-urdin header bar above the product grid on archive/shop pages */
body.woocommerce-shop:not(.aupa-reala-landing) .wp-block-post-title,
body.archive.post-type-archive-product:not(.aupa-reala-landing) .wp-block-post-title,
body.woocommerce-shop:not(.aupa-reala-landing) h1.page-title,
body.woocommerce-shop:not(.aupa-reala-landing) .woocommerce-products-header__title {
  background: linear-gradient(135deg, var(--reala-blue-dark) 0%, var(--reala-blue) 100%);
  color: var(--reala-white) !important;
  padding: 28px 32px !important;
  border-radius: var(--reala-radius) !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 32px !important;
  margin-top: 24px !important;
}

/* Archive description */
body.woocommerce-shop:not(.aupa-reala-landing) .term-description,
body.woocommerce-shop:not(.aupa-reala-landing) .woocommerce-products-header__description {
  color: var(--reala-gray-600);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 640px;
}

/* Breadcrumbs */
.woocommerce-breadcrumb:not(.aupa-reala-landing *) {
  font-size: 0.82rem !important;
  color: var(--reala-gray-600) !important;
  margin-bottom: 20px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--reala-gray-100) !important;
}

.woocommerce-breadcrumb a:not(.aupa-reala-landing *) {
  color: var(--reala-blue) !important;
  text-decoration: none !important;
}

.woocommerce-breadcrumb a:hover:not(.aupa-reala-landing *) {
  color: var(--reala-blue-dark) !important;
  text-decoration: underline !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   3. PRODUCT GRID — BLOCK-BASED (WC 8+ / TwentyTwentyFive)
══════════════════════════════════════════════════════════════════════════════ */

/* Grid container */
.wc-block-product-template:not(.aupa-reala-landing *),
.wp-block-woocommerce-product-template:not(.aupa-reala-landing *) {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 48px !important;
}

/* Individual product card */
.wc-block-product:not(.aupa-reala-landing *),
.wc-block-product-template .wc-block-product:not(.aupa-reala-landing *) {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--reala-shadow) !important;
  border: 1px solid var(--reala-gray-100) !important;
  transition: transform var(--reala-transition), box-shadow var(--reala-transition) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.wc-block-product:hover:not(.aupa-reala-landing *),
.wc-block-product-template .wc-block-product:hover:not(.aupa-reala-landing *) {
  transform: translateY(-5px) !important;
  box-shadow: var(--reala-shadow-hover) !important;
}

/* Product image container */
.wc-block-product__image:not(.aupa-reala-landing *),
.wc-block-components-product-image:not(.aupa-reala-landing *) {
  overflow: hidden !important;
  background: var(--reala-gray-100) !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
}

.wc-block-product__image img:not(.aupa-reala-landing *),
.wc-block-components-product-image img:not(.aupa-reala-landing *) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
  display: block !important;
}

.wc-block-product:hover .wc-block-product__image img:not(.aupa-reala-landing *),
.wc-block-product:hover .wc-block-components-product-image img:not(.aupa-reala-landing *) {
  transform: scale(1.05) !important;
}

/* Product info area */
.wc-block-product .wc-block-components-product-title:not(.aupa-reala-landing *),
.wc-block-product h2.wc-block-components-product-title:not(.aupa-reala-landing *) {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--reala-gray-900) !important;
  line-height: 1.35 !important;
  padding: 16px 18px 6px !important;
  margin: 0 !important;
}

.wc-block-product .wc-block-components-product-title a:not(.aupa-reala-landing *) {
  color: inherit !important;
  text-decoration: none !important;
  transition: color var(--reala-transition) !important;
}

.wc-block-product:hover .wc-block-components-product-title a:not(.aupa-reala-landing *) {
  color: var(--reala-blue) !important;
}

/* Price */
.wc-block-product .wc-block-components-product-price:not(.aupa-reala-landing *),
.wc-block-product .price:not(.aupa-reala-landing *) {
  padding: 4px 18px 12px !important;
  display: block !important;
}

.wc-block-product .wc-block-components-product-price__value:not(.aupa-reala-landing *),
.wc-block-product .woocommerce-Price-amount:not(.aupa-reala-landing *) {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: var(--reala-blue) !important;
}

/* Sale badge */
.wc-block-product .wc-block-components-product-sale-badge:not(.aupa-reala-landing *),
.wc-block-product .onsale:not(.aupa-reala-landing *) {
  background: #DC2626 !important;
  color: var(--reala-white) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 2 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

/* Add to cart button — block version */
.wc-block-product .wc-block-product-button:not(.aupa-reala-landing *),
.wc-block-product .wc-block-components-product-button:not(.aupa-reala-landing *) {
  padding: 0 18px 18px !important;
  margin-top: auto !important;
}

.wc-block-product .wc-block-product-button button:not(.aupa-reala-landing *),
.wc-block-product .wc-block-components-product-button button:not(.aupa-reala-landing *),
.wc-block-product .wc-block-product-button a:not(.aupa-reala-landing *),
.wc-block-product .wp-block-button__link:not(.aupa-reala-landing *) {
  background: var(--reala-blue) !important;
  color: var(--reala-white) !important;
  border: none !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 11px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background var(--reala-transition), transform var(--reala-transition) !important;
  letter-spacing: 0.3px !important;
  display: block !important;
  text-decoration: none !important;
}

.wc-block-product .wc-block-product-button button:hover:not(.aupa-reala-landing *),
.wc-block-product .wc-block-components-product-button button:hover:not(.aupa-reala-landing *),
.wc-block-product .wc-block-product-button a:hover:not(.aupa-reala-landing *),
.wc-block-product .wp-block-button__link:hover:not(.aupa-reala-landing *) {
  background: var(--reala-blue-dark) !important;
  transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   4. PRODUCT GRID — CLASSIC WOOCOMMERCE (ul.products fallback)
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce:not(.aupa-reala-landing) ul.products,
body.woocommerce-page:not(.aupa-reala-landing) ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 48px !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--reala-shadow) !important;
  border: 1px solid var(--reala-gray-100) !important;
  transition: transform var(--reala-transition), box-shadow var(--reala-transition) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  position: relative !important;
  margin: 0 !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product:hover,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--reala-shadow-hover) !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product a img,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product a img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product:hover a img,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product:hover a img {
  transform: scale(1.05) !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--reala-gray-900) !important;
  padding: 16px 18px 6px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product .price,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product .price {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: var(--reala-blue) !important;
  padding: 4px 18px 12px !important;
  display: block !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product .button,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product .button {
  background: var(--reala-blue) !important;
  color: var(--reala-white) !important;
  border: none !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 11px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  margin: auto 18px 18px !important;
  display: block !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background var(--reala-transition), transform var(--reala-transition) !important;
  text-decoration: none !important;
}

body.woocommerce:not(.aupa-reala-landing) ul.products li.product .button:hover,
body.woocommerce-page:not(.aupa-reala-landing) ul.products li.product .button:hover {
  background: var(--reala-blue-dark) !important;
  transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   5. SINGLE PRODUCT PAGE
══════════════════════════════════════════════════════════════════════════════ */

body.single-product:not(.aupa-reala-landing) .product {
  background: var(--reala-white);
  border-radius: var(--reala-radius);
  box-shadow: var(--reala-shadow);
  padding: 32px !important;
  margin-top: 24px !important;
}

/* Product gallery */
body.single-product:not(.aupa-reala-landing) .woocommerce-product-gallery {
  border-radius: var(--reala-radius) !important;
  overflow: hidden !important;
}

body.single-product:not(.aupa-reala-landing) .woocommerce-product-gallery__image img,
body.single-product:not(.aupa-reala-landing) .woocommerce-product-gallery img {
  border-radius: var(--reala-radius) !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

/* Block-based product gallery */
body.single-product:not(.aupa-reala-landing) .wp-block-woocommerce-product-image-gallery,
body.single-product:not(.aupa-reala-landing) .wc-block-product-gallery {
  border-radius: var(--reala-radius) !important;
  overflow: hidden !important;
}

/* Product summary */
body.single-product:not(.aupa-reala-landing) .summary,
body.single-product:not(.aupa-reala-landing) .entry-summary {
  padding: 0 0 0 40px !important;
}

/* Product title */
body.single-product:not(.aupa-reala-landing) h1.product_title,
body.single-product:not(.aupa-reala-landing) .product_title,
body.single-product:not(.aupa-reala-landing) .wp-block-post-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  font-weight: 900 !important;
  color: var(--reala-gray-900) !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.3px !important;
}

/* Price on single product */
body.single-product:not(.aupa-reala-landing) .price,
body.single-product:not(.aupa-reala-landing) p.price,
body.single-product:not(.aupa-reala-landing) .woocommerce-Price-amount,
body.single-product:not(.aupa-reala-landing) .wc-block-components-product-price {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  color: var(--reala-blue) !important;
  margin-bottom: 20px !important;
  display: block !important;
}

/* Short description */
body.single-product:not(.aupa-reala-landing) .woocommerce-product-details__short-description,
body.single-product:not(.aupa-reala-landing) .product-short-description {
  font-size: 0.95rem !important;
  color: var(--reala-gray-600) !important;
  line-height: 1.7 !important;
  margin-bottom: 24px !important;
  border-left: 3px solid var(--reala-gold) !important;
  padding-left: 16px !important;
}

/* Variations — size/color selectors */
body.single-product:not(.aupa-reala-landing) .variations select,
body.single-product:not(.aupa-reala-landing) .wc-block-components-product-details select {
  border: 2px solid var(--reala-gray-100) !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--reala-gray-900) !important;
  background: var(--reala-white) !important;
  cursor: pointer !important;
  transition: border-color var(--reala-transition) !important;
  min-width: 160px !important;
}

body.single-product:not(.aupa-reala-landing) .variations select:focus,
body.single-product:not(.aupa-reala-landing) .variations select:hover {
  border-color: var(--reala-blue) !important;
  outline: none !important;
}

body.single-product:not(.aupa-reala-landing) .variations label {
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  color: var(--reala-gray-900) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Quantity input */
body.single-product:not(.aupa-reala-landing) .quantity input[type="number"],
body.single-product:not(.aupa-reala-landing) .wc-block-components-quantity-selector input {
  border: 2px solid var(--reala-gray-100) !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 10px 14px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--reala-gray-900) !important;
  width: 72px !important;
  text-align: center !important;
}

/* Add to cart — single product */
body.single-product:not(.aupa-reala-landing) .single_add_to_cart_button,
body.single-product:not(.aupa-reala-landing) button.single_add_to_cart_button,
body.single-product:not(.aupa-reala-landing) .wc-block-components-product-button button,
body.single-product:not(.aupa-reala-landing) .wc-block-add-to-cart-button button {
  background: var(--reala-blue) !important;
  color: var(--reala-white) !important;
  border: none !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 16px 40px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all var(--reala-transition) !important;
  box-shadow: 0 4px 14px rgba(0, 91, 172, 0.30) !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  text-decoration: none !important;
}

body.single-product:not(.aupa-reala-landing) .single_add_to_cart_button:hover,
body.single-product:not(.aupa-reala-landing) .wc-block-components-product-button button:hover,
body.single-product:not(.aupa-reala-landing) .wc-block-add-to-cart-button button:hover {
  background: var(--reala-blue-dark) !important;
  box-shadow: 0 6px 20px rgba(0, 91, 172, 0.40) !important;
  transform: translateY(-2px) !important;
}

/* Product tabs */
body.single-product:not(.aupa-reala-landing) .woocommerce-tabs {
  margin-top: 48px !important;
}

body.single-product:not(.aupa-reala-landing) .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--reala-gray-100) !important;
  display: flex !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  list-style: none !important;
}

body.single-product:not(.aupa-reala-landing) .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.single-product:not(.aupa-reala-landing) .woocommerce-tabs ul.tabs li a {
  color: var(--reala-gray-600) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 12px 20px !important;
  display: block !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  transition: all var(--reala-transition) !important;
  letter-spacing: 0.3px !important;
}

body.single-product:not(.aupa-reala-landing) .woocommerce-tabs ul.tabs li.active a,
body.single-product:not(.aupa-reala-landing) .woocommerce-tabs ul.tabs li a:hover {
  color: var(--reala-blue) !important;
  border-bottom-color: var(--reala-blue) !important;
}

body.single-product:not(.aupa-reala-landing) .woocommerce-tabs .panel {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  padding: 28px !important;
  box-shadow: var(--reala-shadow) !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: var(--reala-gray-600) !important;
}

/* Related products */
body.single-product:not(.aupa-reala-landing) .related.products > h2,
body.single-product:not(.aupa-reala-landing) .up-sells > h2 {
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  color: var(--reala-gray-900) !important;
  margin: 48px 0 24px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--reala-gray-100) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   6. CART PAGE
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce-cart:not(.aupa-reala-landing) .woocommerce-cart-form,
body.woocommerce-cart:not(.aupa-reala-landing) .wc-block-cart {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  box-shadow: var(--reala-shadow) !important;
  padding: 28px !important;
  margin-bottom: 32px !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) table.shop_table,
body.woocommerce-cart:not(.aupa-reala-landing) .wc-block-cart-items {
  width: 100% !important;
  border-collapse: collapse !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) table.shop_table th {
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--reala-gray-600) !important;
  padding: 12px 16px !important;
  border-bottom: 2px solid var(--reala-gray-100) !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) table.shop_table td {
  padding: 20px 16px !important;
  border-bottom: 1px solid var(--reala-gray-100) !important;
  vertical-align: middle !important;
  font-size: 0.9rem !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) table.shop_table td.product-name a {
  font-weight: 700 !important;
  color: var(--reala-gray-900) !important;
  text-decoration: none !important;
  transition: color var(--reala-transition) !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) table.shop_table td.product-name a:hover {
  color: var(--reala-blue) !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) .cart_totals,
body.woocommerce-cart:not(.aupa-reala-landing) .wc-block-cart__payment-options {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  box-shadow: var(--reala-shadow) !important;
  padding: 28px !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) .cart_totals h2 {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: var(--reala-gray-900) !important;
  margin-bottom: 20px !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) .cart_totals table th,
body.woocommerce-cart:not(.aupa-reala-landing) .cart_totals table td {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--reala-gray-100) !important;
  font-size: 0.9rem !important;
}

body.woocommerce-cart:not(.aupa-reala-landing) .cart_totals .order-total .woocommerce-Price-amount {
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  color: var(--reala-blue) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   7. CHECKOUT PAGE
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce-checkout:not(.aupa-reala-landing) .woocommerce-checkout,
body.woocommerce-checkout:not(.aupa-reala-landing) .wc-block-checkout {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  box-shadow: var(--reala-shadow) !important;
  padding: 32px !important;
}

body.woocommerce-checkout:not(.aupa-reala-landing) .woocommerce-billing-fields h3,
body.woocommerce-checkout:not(.aupa-reala-landing) .woocommerce-shipping-fields h3,
body.woocommerce-checkout:not(.aupa-reala-landing) .wc-block-checkout__billing-fields h2 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--reala-gray-900) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 20px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--reala-blue) !important;
}

body.woocommerce-checkout:not(.aupa-reala-landing) .form-row input,
body.woocommerce-checkout:not(.aupa-reala-landing) .form-row textarea,
body.woocommerce-checkout:not(.aupa-reala-landing) .form-row select,
body.woocommerce-checkout:not(.aupa-reala-landing) .wc-block-components-text-input input {
  border: 2px solid var(--reala-gray-100) !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  transition: border-color var(--reala-transition) !important;
  color: var(--reala-gray-900) !important;
}

body.woocommerce-checkout:not(.aupa-reala-landing) .form-row input:focus,
body.woocommerce-checkout:not(.aupa-reala-landing) .form-row select:focus,
body.woocommerce-checkout:not(.aupa-reala-landing) .wc-block-components-text-input input:focus {
  border-color: var(--reala-blue) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.12) !important;
}

/* Place order button */
body.woocommerce-checkout:not(.aupa-reala-landing) #place_order,
body.woocommerce-checkout:not(.aupa-reala-landing) .wc-block-components-checkout-place-order-button {
  background: var(--reala-blue) !important;
  color: var(--reala-white) !important;
  border: none !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 18px 40px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all var(--reala-transition) !important;
  box-shadow: 0 4px 14px rgba(0, 91, 172, 0.30) !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

body.woocommerce-checkout:not(.aupa-reala-landing) #place_order:hover,
body.woocommerce-checkout:not(.aupa-reala-landing) .wc-block-components-checkout-place-order-button:hover {
  background: var(--reala-blue-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 91, 172, 0.40) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   8. GLOBAL WOOCOMMERCE BUTTONS
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce:not(.aupa-reala-landing) a.button,
body.woocommerce-page:not(.aupa-reala-landing) a.button,
body.woocommerce:not(.aupa-reala-landing) button.button,
body.woocommerce-page:not(.aupa-reala-landing) button.button,
body.woocommerce:not(.aupa-reala-landing) input.button,
body.woocommerce-page:not(.aupa-reala-landing) input.button,
body.woocommerce:not(.aupa-reala-landing) .wc-forward,
body.woocommerce:not(.aupa-reala-landing) .checkout-button {
  background: var(--reala-blue) !important;
  color: var(--reala-white) !important;
  border: none !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all var(--reala-transition) !important;
  text-decoration: none !important;
  display: inline-block !important;
  letter-spacing: 0.3px !important;
}

body.woocommerce:not(.aupa-reala-landing) a.button:hover,
body.woocommerce-page:not(.aupa-reala-landing) a.button:hover,
body.woocommerce:not(.aupa-reala-landing) button.button:hover,
body.woocommerce-page:not(.aupa-reala-landing) button.button:hover {
  background: var(--reala-blue-dark) !important;
  transform: translateY(-1px) !important;
}

/* Alt / secondary buttons */
body.woocommerce:not(.aupa-reala-landing) a.button.alt,
body.woocommerce-page:not(.aupa-reala-landing) a.button.alt {
  background: var(--reala-blue) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   9. NOTICES & MESSAGES
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce:not(.aupa-reala-landing) .woocommerce-message,
body.woocommerce-page:not(.aupa-reala-landing) .woocommerce-message,
body.woocommerce:not(.aupa-reala-landing) .wc-block-components-notice--success {
  background: #EEF7EC !important;
  border-left: 4px solid #22C55E !important;
  color: #14532D !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 14px 20px !important;
  font-size: 0.9rem !important;
  margin-bottom: 20px !important;
}

body.woocommerce:not(.aupa-reala-landing) .woocommerce-error,
body.woocommerce-page:not(.aupa-reala-landing) .woocommerce-error,
body.woocommerce:not(.aupa-reala-landing) .wc-block-components-notice--error {
  background: #FEF2F2 !important;
  border-left: 4px solid #EF4444 !important;
  color: #7F1D1D !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 14px 20px !important;
  font-size: 0.9rem !important;
  margin-bottom: 20px !important;
  list-style: none !important;
}

body.woocommerce:not(.aupa-reala-landing) .woocommerce-info,
body.woocommerce-page:not(.aupa-reala-landing) .woocommerce-info {
  background: #EFF6FF !important;
  border-left: 4px solid var(--reala-blue) !important;
  color: var(--reala-blue-dark) !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 14px 20px !important;
  font-size: 0.9rem !important;
  margin-bottom: 20px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   10. ORDERING / FILTER BAR
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce-shop:not(.aupa-reala-landing) .woocommerce-ordering select,
body.woocommerce-shop:not(.aupa-reala-landing) .wc-block-sort-select select {
  border: 2px solid var(--reala-gray-100) !important;
  border-radius: var(--reala-radius-sm) !important;
  padding: 9px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--reala-gray-900) !important;
  background: var(--reala-white) !important;
  cursor: pointer !important;
  transition: border-color var(--reala-transition) !important;
}

body.woocommerce-shop:not(.aupa-reala-landing) .woocommerce-ordering select:focus {
  border-color: var(--reala-blue) !important;
  outline: none !important;
}

body.woocommerce-shop:not(.aupa-reala-landing) .woocommerce-result-count {
  font-size: 0.85rem !important;
  color: var(--reala-gray-600) !important;
  margin-bottom: 0 !important;
  line-height: 2.5 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   11. PAGINATION
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce:not(.aupa-reala-landing) .woocommerce-pagination ul,
body.woocommerce-page:not(.aupa-reala-landing) .woocommerce-pagination ul {
  list-style: none !important;
  display: flex !important;
  gap: 6px !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 32px 0 !important;
}

body.woocommerce:not(.aupa-reala-landing) .woocommerce-pagination ul li a,
body.woocommerce:not(.aupa-reala-landing) .woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--reala-radius-sm) !important;
  border: 2px solid var(--reala-gray-100) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--reala-gray-900) !important;
  text-decoration: none !important;
  transition: all var(--reala-transition) !important;
}

body.woocommerce:not(.aupa-reala-landing) .woocommerce-pagination ul li a:hover,
body.woocommerce:not(.aupa-reala-landing) .woocommerce-pagination ul li span.current {
  background: var(--reala-blue) !important;
  border-color: var(--reala-blue) !important;
  color: var(--reala-white) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   12. MY ACCOUNT PAGE
══════════════════════════════════════════════════════════════════════════════ */

body.woocommerce-account:not(.aupa-reala-landing) .woocommerce-MyAccount-navigation {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  box-shadow: var(--reala-shadow) !important;
  padding: 20px !important;
  overflow: hidden !important;
}

body.woocommerce-account:not(.aupa-reala-landing) .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.woocommerce-account:not(.aupa-reala-landing) .woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 11px 16px !important;
  border-radius: var(--reala-radius-sm) !important;
  color: var(--reala-gray-600) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: all var(--reala-transition) !important;
  margin-bottom: 2px !important;
}

body.woocommerce-account:not(.aupa-reala-landing) .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account:not(.aupa-reala-landing) .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--reala-blue) !important;
  color: var(--reala-white) !important;
}

body.woocommerce-account:not(.aupa-reala-landing) .woocommerce-MyAccount-content {
  background: var(--reala-white) !important;
  border-radius: var(--reala-radius) !important;
  box-shadow: var(--reala-shadow) !important;
  padding: 28px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   13. SPORT ACCENT ELEMENTS
══════════════════════════════════════════════════════════════════════════════ */

/* Gold accent stripe on product cards (top border on hover) */
.wc-block-product:not(.aupa-reala-landing *)::before,
body.woocommerce:not(.aupa-reala-landing) ul.products li.product::before {
  content: '' !important;
  display: block !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--reala-blue), var(--reala-gold)) !important;
  opacity: 0 !important;
  transition: opacity var(--reala-transition) !important;
}

.wc-block-product:hover::before:not(.aupa-reala-landing *),
body.woocommerce:not(.aupa-reala-landing) ul.products li.product:hover::before {
  opacity: 1 !important;
}

/* Blue gradient page header area */
body.woocommerce-shop:not(.aupa-reala-landing) .wp-block-group:first-of-type {
  background: linear-gradient(135deg, var(--reala-blue-dark) 0%, var(--reala-blue) 100%) !important;
  color: var(--reala-white) !important;
  padding: 32px !important;
  border-radius: var(--reala-radius) !important;
  margin-bottom: 32px !important;
}

/* Category filter chips */
body.woocommerce-shop:not(.aupa-reala-landing) .wc-block-product-categories-list a,
body.woocommerce-shop:not(.aupa-reala-landing) .widget_product_categories a {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 100px !important;
  border: 2px solid var(--reala-gray-100) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--reala-gray-600) !important;
  text-decoration: none !important;
  margin: 0 4px 8px 0 !important;
  transition: all var(--reala-transition) !important;
}

body.woocommerce-shop:not(.aupa-reala-landing) .wc-block-product-categories-list a:hover,
body.woocommerce-shop:not(.aupa-reala-landing) .widget_product_categories a:hover {
  background: var(--reala-blue) !important;
  border-color: var(--reala-blue) !important;
  color: var(--reala-white) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE — TABLET (≤900px) → 2 columns
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .wc-block-product-template:not(.aupa-reala-landing *),
  .wp-block-woocommerce-product-template:not(.aupa-reala-landing *),
  body.woocommerce:not(.aupa-reala-landing) ul.products,
  body.woocommerce-page:not(.aupa-reala-landing) ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  body.single-product:not(.aupa-reala-landing) .summary,
  body.single-product:not(.aupa-reala-landing) .entry-summary {
    padding: 24px 0 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   15. RESPONSIVE — MOBILE (≤600px) → 1 column
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .wc-block-product-template:not(.aupa-reala-landing *),
  .wp-block-woocommerce-product-template:not(.aupa-reala-landing *),
  body.woocommerce:not(.aupa-reala-landing) ul.products,
  body.woocommerce-page:not(.aupa-reala-landing) ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.woocommerce:not(.aupa-reala-landing) .entry-content,
  body.woocommerce-page:not(.aupa-reala-landing) .entry-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.single-product:not(.aupa-reala-landing) .product {
    padding: 20px !important;
  }

  body.single-product:not(.aupa-reala-landing) .single_add_to_cart_button,
  body.single-product:not(.aupa-reala-landing) .wc-block-components-product-button button {
    width: 100% !important;
    padding: 18px 24px !important;
    font-size: 1rem !important;
  }

  body.woocommerce:not(.aupa-reala-landing) a.button,
  body.woocommerce-page:not(.aupa-reala-landing) a.button,
  body.woocommerce:not(.aupa-reala-landing) button.button {
    width: 100% !important;
    padding: 14px 20px !important;
    text-align: center !important;
  }

  body.woocommerce-cart:not(.aupa-reala-landing) .woocommerce-cart-form {
    padding: 16px !important;
  }

  body.woocommerce-cart:not(.aupa-reala-landing) table.shop_table td {
    padding: 12px 8px !important;
    font-size: 0.85rem !important;
  }

  body.woocommerce-checkout:not(.aupa-reala-landing) .woocommerce-checkout {
    padding: 20px !important;
  }
}
