/*
Theme Name: Termópilas Storefront Child
Theme URI: https://termopilas.co
Description: Storefront child theme for Finca Termópilas e-commerce store. Inherits WooCommerce-optimized base from Storefront and applies Termópilas brand identity (black/Colombian-gold/cream palette, Lora + Montserrat typography). Brand tokens are shared with termopilas.co to ensure visual consistency across website and store.
Author: Finca Termópilas
Author URI: https://termopilas.co
Template: storefront
Version: 1.0.12
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: termopilas-storefront-child
Tags: e-commerce, colombia, woocommerce, storefront, brand
*/

/* === BRAND TOKENS IMPORT === */
/* Single source of truth for all brand design tokens */
@import url('brand-tokens.css');

/* === FONT FACES === */
/* Self-hosted Lora and Montserrat fonts for performance and brand consistency */

/* Lora Font Family */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lora-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lora-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/lora-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lora-700-normal.woff2') format('woff2');
}

/* Montserrat Font Family */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/montserrat-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/montserrat-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/montserrat-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/montserrat-600-normal.woff2') format('woff2');
}

/* === BASE TYPOGRAPHY === */
/* Apply brand fonts to all elements */

body,
p,
a,
li,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-brand);
  color: var(--text-primary);
}

/* === STOREFRONT OVERRIDES === */
/* Map Storefront's default colors to Termópilas brand tokens */

.storefront-primary-navigation {
  background-color: var(--bg-dark);
}

.site-header {
  background-color: var(--bg-dark);
  border-bottom-color: var(--brand-accent);
}

.site-branding .site-title,
.site-branding .site-description {
  font-family: var(--font-brand);
  color: var(--brand-cream);
}

/* === CUSTOM NAVBAR (WC-032) === */
/* Fixed dark navbar matching termopilas.co website design
 *
 * Layout contract:
 *   `.navbar` is position:fixed and its real rendered height varies with the
 *   viewport (logo wrap, mobile toggle size, etc.). Anything below it is
 *   offset by `--navbar-height`, which defaults to 4.5rem and is kept in sync
 *   with the real measured height by the `termopilas_enqueue_mobile_nav_script`
 *   JS (see functions.php). If JS fails to run for any reason the default is
 *   a sensible lower bound so content never slides all the way under the
 *   navbar. */
:root {
  --navbar-height: 4.5rem;
}

.navbar {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--navbar-height);
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: none;
  transition: background 0.3s ease;
}

.logo {
  color: var(--brand-cream);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-brand);
  font-weight: 600;
  min-width: 0;
}

.logo a {
  color: var(--brand-cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

/* Keep the wordmark on a single line. At full-word-doesn't-fit widths the
 * span gets truncated with an ellipsis rather than wrapping to a second line
 * (which would nearly double the navbar height and push page content down
 * behind it). */
.logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On very narrow viewports, drop the wordmark entirely and keep only the
 * map-marker icon so the hamburger button always has room. */
@media (max-width: 360px) {
  .logo span {
    display: none;
  }
}

.logo a:hover {
  color: var(--brand-accent);
}

/* Override Storefront's default .nav-menu collapse (max-height: 0) which is
 * intended for its toggled mobile handheld menu. Our fixed top navbar renders
 * the list directly, so we need max-height/overflow back to their normal
 * flow values at all breakpoints.
 */
.navbar .nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(0.9rem, 1.5vw, 2rem);
  margin: 0;
  padding: 0;
  max-height: none;
  overflow: visible;
  transition: none;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--brand-cream);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
}

.nav-menu a:hover {
  color: var(--brand-accent);
}

.nav-menu li.active > a {
  color: var(--brand-accent);
}

.nav-menu .termopilas-cart-link a,
.nav-menu .termopilas-checkout-link a {
  color: var(--brand-accent);
}

.nav-menu .termopilas-checkout-link a {
  border: 1px solid var(--brand-accent);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.7rem;
}

@media (min-width: 769px) and (max-width: 1120px) {
  .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo {
    font-size: 1.15rem;
  }
}

.nav-toggle {
  display: none;
}

/* Push the first row of page content clear of the fixed navbar. Uses the
 * `--navbar-height` custom property (kept in sync with the real rendered
 * navbar height by JS) so page titles never render underneath the navbar
 * regardless of viewport width, logo wrap, or mobile toggle size. */
.site-content {
  padding-top: var(--navbar-height);
}

/* Mobile Navigation Styles (matches website responsive design) */
@media (max-width: 768px) {
  .navbar .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    z-index: 999;
    gap: 0;
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
  }

  .nav-menu a:hover {
    color: var(--brand-accent);
  }

  .nav-menu li.active > a {
    color: var(--brand-accent);
  }

  .nav-menu .termopilas-checkout-link a {
    display: inline-block;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--brand-cream);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  /* Hamburger Icon */
  .hamburger {
    position: relative;
    display: block;
    background-color: var(--brand-cream);
    width: 24px;
    height: 2px;
    transition: background-color 0.3s;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    background-color: var(--brand-cream);
    width: 24px;
    height: 2px;
    transition: transform 0.3s;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  /* Hamburger Animation (X icon when menu is open) */
  .nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* === CUSTOM FOOTER (WC-033) === */
/* Sepia footer with contact, location, and social matching termopilas.co website */

.site-footer {
  background: #504127;
  color: #fdf6ea;
  padding: 4rem 2rem 2rem;
  background-image: url('assets/images/footer1.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(80, 65, 39, 0.85);
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.location,
.contact {
  text-align: center;
  background: transparent;
  padding: 2rem;
  border-radius: 0;
  border: none;
  color: #fdf6ea;
}

.location h3,
.contact h3 {
  margin-bottom: 1rem;
  color: var(--brand-accent);
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.location p,
.contact p {
  color: #fdf6ea;
  margin: 0.25rem 0;
}

.site-footer a {
  color: #fdf6ea;
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--brand-accent);
}

.directions-link,
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--bg-dark) !important;
  transition: all 0.3s ease;
  margin: 0;
  opacity: 1;
  visibility: visible;
}

.social-media a i,
.social-media a .fab,
.social-media a .fas,
.social-media a .fa {
  color: var(--bg-dark) !important;
  font-size: 1.125rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

.social-media a:hover {
  background: #FFFFFF;
  color: var(--bg-dark) !important;
  transform: translateY(-3px);
}

.social-media a:hover i,
.social-media a:hover .fab,
.social-media a:hover .fas,
.social-media a:hover .fa {
  color: var(--bg-dark) !important;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: #fdf6ea;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  color: #fdf6ea;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  margin: 0;
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile responsive footer */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location,
  .contact {
    padding: 1rem;
  }

  .location h3,
  .contact h3 {
    font-size: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-separator {
    display: none;
  }
}

/* === WOOCOMMERCE BRAND STYLING (WC-034) === */
/* Apply brand tokens to WooCommerce shop, product, cart, and checkout pages */

/* === GLOBAL LINKS === */
a {
  color: var(--brand-accent);
  transition: var(--transition-base);
}

a:hover {
  color: var(--interactive-primary-hover);
}

/* === BUTTONS (CTA Style from website main.css lines 146-164) === */
.button,
.woocommerce-Button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce input.button,
.single_add_to_cart_button,
.checkout-button,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  display: inline-block;
  background-color: var(--brand-accent) !important;
  color: var(--brand-cream) !important;
  padding: 1rem 2rem !important;
  text-decoration: none;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  cursor: pointer;
  box-shadow: none !important;
}

.button:hover,
.woocommerce-Button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-3px) !important;
  background-color: #FFFFFF !important;
  color: var(--bg-dark) !important;
}

/* Disabled button state */
.button:disabled,
.woocommerce-Button:disabled,
.woocommerce button.button:disabled,
.single_add_to_cart_button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Secondary/Alt buttons */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--brand-primary) !important;
  color: var(--brand-cream) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--gray-800) !important;
  color: var(--brand-cream) !important;
}

/* === HEADINGS (Section h2 scale from website main.css lines 183-208) ===
 *
 * The block-based checkout/cart pages emit their page title as
 * `<h1 class="entry-title">`, which matches neither `.page-title` nor
 * `.product_title`. Without an explicit selector it falls back to
 * Storefront's default `h1 { font-weight: 300; font-size: 2.617924em }`,
 * which reads as a thin, slightly-undersized heading compared to the
 * 3.5rem / 700 Lora treatment used on termopilas.co page headings.
 *
 * Include `.entry-title` (and the block checkout/cart wrappers for extra
 * specificity) so "Finalizar compra", "Carrito", "Mi cuenta", etc. all
 * render with the same weight/size as the main site.
 */
.woocommerce .page-title,
.woocommerce-products-header__title,
.woocommerce .cart-empty,
.woocommerce h2,
.woocommerce-order-received h1,
.woocommerce-account h1,
.woocommerce-checkout h1.entry-title,
.woocommerce-cart h1.entry-title,
.woocommerce-page h1.entry-title,
body.page .wp-block-woocommerce-checkout ~ * h1.entry-title,
.wp-block-woocommerce-checkout h1.entry-title,
.wp-block-woocommerce-cart h1.entry-title {
  font-family: var(--font-brand) !important;
  font-size: 3.5rem !important;
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem;
  font-weight: 700 !important;
  line-height: 1.2;
  text-align: center;
}

/* Product detail title lives in the narrow `.summary` column (~53% of
 * content width). The big 3.5rem brand treatment we use for full-width
 * page titles ("Carrito", "Finalizar compra", etc.) overflows that column
 * and wraps oddly, so scope the single product title to a tighter,
 * left-aligned size that fits the layout.
 */
.woocommerce .single-product h1.product_title,
.woocommerce-page .single-product h1.product_title,
.single-product h1.product_title {
  font-family: var(--font-brand) !important;
  font-size: 2.25rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-align: left !important;
  margin: 0 0 0.75rem !important;
}

/* Scope these heading overrides to main content only. Previously
 * `.woocommerce-checkout h3` / `.woocommerce-cart h2` bled into the shared
 * footer (which contains `<h3>¿Cómo llegar?</h3>` and `<h3>¿Tienes
 * preguntas?</h3>`) and forced dark 2rem text over the dark footer
 * background, making the headings nearly invisible on checkout. The cart
 * page wasn't affected only because the footer uses h3s, not h2s.
 */
.woocommerce .site-content h3,
.woocommerce .related.products h2,
.woocommerce .upsells.products h2,
.woocommerce .cross-sells h2,
.woocommerce-checkout .site-content h3,
.woocommerce-cart .site-content h2 {
  font-family: var(--font-brand) !important;
  color: var(--text-primary) !important;
  font-size: 2rem !important;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* === WOOCOMMERCE BLOCKS SIDEBAR/SUMMARY HEADINGS ===
 *
 * The blanket `.woocommerce-cart h2 { font-size: 2rem }` rule above was
 * hitting `.wc-block-cart__totals-title` ("Totales del carrito") in the
 * narrow right-hand totals column, causing it to wrap as
 *   "TOTALES DEL"
 *   "CARRITO"
 * with line-height 1.2 + bold Lora making the two lines visually overlap.
 *
 * The block UI is designed around ~1.25em panel headings (see WC Blocks'
 * `.wc-block-components-sidebar .wc-block-components-panel > h2` rule).
 * Scope a smaller, tighter treatment to the sidebar titles and related
 * block summary headings so they sit comfortably in their column without
 * overlapping siblings.
 */
.woocommerce-cart .wc-block-cart__totals-title,
.woocommerce-cart .wc-block-cart__sidebar h2,
.woocommerce-cart .wc-block-cart h2.wc-block-components-title,
.woocommerce-cart .wc-block-components-sidebar h2,
.woocommerce-cart .wc-block-components-sidebar-layout h2,
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block h2,
.woocommerce-checkout .wc-block-components-sidebar h2,
.woocommerce-checkout .wc-block-components-sidebar-layout h2,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block h2 {
  font-family: var(--font-brand) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.75rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left !important;
  color: var(--text-primary) !important;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
  .woocommerce .page-title,
  .woocommerce-products-header__title,
  .woocommerce h2,
  .woocommerce-checkout h1.entry-title,
  .woocommerce-cart h1.entry-title,
  .woocommerce-page h1.entry-title {
    font-size: 2.5rem !important;
  }

  .woocommerce .single-product h1.product_title,
  .single-product h1.product_title {
    font-size: 1.75rem !important;
  }

  .woocommerce h3 {
    font-size: 1.5rem !important;
  }
}

/* === SHOP TOOLBAR (result count + ordering select) ===
 *
 * WooCommerce renders `.woocommerce-result-count` and `.woocommerce-ordering`
 * as free-floating siblings with no wrapper, and the select uses the browser
 * default chrome (system UI font, thin border, no radius). A custom
 * `.termopilas-shop-toolbar` wrapper is injected via functions.php so we
 * can present them as a single card that matches the form-field treatment
 * used elsewhere (cream bg, gray-200 border, gold focus ring).
 */
.termopilas-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  background-color: var(--bg-warm);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.termopilas-shop-toolbar + .termopilas-shop-toolbar {
  margin-top: 2rem;
}

.termopilas-shop-toolbar .woocommerce-result-count {
  float: none !important;
  margin: 0 !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  color: var(--text-secondary) !important;
  letter-spacing: 0.01em;
  order: 2;
}

.termopilas-shop-toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
  order: 1;
}

.termopilas-shop-toolbar .woocommerce-ordering select,
.termopilas-shop-toolbar .woocommerce-ordering select.orderby {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 220px;
  padding: 0.65rem 2.5rem 0.65rem 1rem !important;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body) !important;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.termopilas-shop-toolbar .woocommerce-ordering select:hover {
  border-color: var(--gray-300);
}

.termopilas-shop-toolbar .woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(242, 159, 5, 0.15);
}

/* Storefront wraps the bottom toolbar in `.storefront-sorting` by default.
 * It uses `display: flex; justify-content: space-between;` on that wrapper
 * which our `.termopilas-shop-toolbar` inside then fights. Flatten it so
 * our toolbar card owns the layout on its own. */
.storefront-sorting {
  display: block !important;
  background: transparent;
  border: none;
}

@media (max-width: 600px) {
  .termopilas-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .termopilas-shop-toolbar .woocommerce-ordering select,
  .termopilas-shop-toolbar .woocommerce-ordering select.orderby {
    width: 100%;
    min-width: 0;
  }

  .termopilas-shop-toolbar .woocommerce-result-count {
    text-align: center;
  }
}

/* === PRODUCT CARDS (Flat styling like website service-card lines 269-301) === */
ul.products {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

ul.products li.product {
  background: #FFFFFF !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 1.5rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  margin-bottom: 2rem;
}

ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12) !important;
}

ul.products li.product img {
  border-radius: 0 !important;
  margin-bottom: 1rem;
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-brand) !important;
  color: var(--brand-primary) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

ul.products li.product .price {
  color: var(--brand-primary) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  font-family: var(--font-body) !important;
  margin-bottom: 1rem;
  display: block;
}

ul.products li.product .price del {
  opacity: 0.6;
  font-size: 1rem;
}

ul.products li.product .price ins {
  text-decoration: none;
  color: var(--brand-accent) !important;
  font-weight: 700;
}

/* Sale badge */
ul.products li.product .onsale {
  background-color: var(--brand-accent) !important;
  color: var(--brand-cream) !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1;
  border: none;
}

/* === FORM FIELDS === */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-Input,
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea {
  background-color: var(--brand-cream) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--font-body) !important;
  color: var(--text-primary) !important;
  transition: var(--transition-base);
  box-shadow: none !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-Input:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus {
  outline: none !important;
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 3px rgba(242, 159, 5, 0.1) !important;
}

/* === WOOCOMMERCE BLOCKS ORDER SUMMARY ===
 *
 * The "Resumen del pedido" sidebar on the block-based checkout lists cart
 * line items. Each item is laid out as:
 *
 *   [thumbnail 48px] [name + description]           [total]
 *
 * Two problems appear without these overrides:
 *   1. The broad `.woocommerce h2 / .woocommerce-checkout h3` typography rule
 *      above promotes any heading/span inside the order summary to 2–3.5rem
 *      Lora, which blows up the product name (e.g. "Vino F27" wraps with
 *      "F27" rendered as a 3.5rem headline overlapping the thumbnail).
 *   2. The item image and text are `display: table-cell` siblings. Without an
 *      explicit width/column alignment the description eats into the image
 *      column when the name is longer than ~6 characters.
 *
 * Force all text inside an order-summary item back to body font at sensible
 * sizes, and keep the thumbnail + text in tidy columns with the price right
 * aligned.
 */
.wc-block-components-order-summary .wc-block-components-order-summary-item {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image {
  flex: 0 0 48px;
  width: 48px;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.5rem 0 0.75rem !important;
  word-break: break-word;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  font-weight: 600;
}

/* Force all typography inside an order-summary item back to the body font
 * at normal sizes. Prepending `.woocommerce-checkout` / `.woocommerce-cart`
 * bumps specificity to 0,0,3,1 so this rule wins against the scoped
 * `.woocommerce-checkout .site-content h3` (0,0,2,1) rule above, which
 * would otherwise promote any h3 inside the summary (WC Blocks may render
 * the product name as an h3) to 2rem Lora bold and force "Vino F27" to
 * wrap across the thumbnail again. */
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item h1,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item h2,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item h3,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item h4,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item h5,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item h6,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item span,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item div,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item p,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item a,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item h1,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item h2,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item h3,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item h4,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item h5,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item h6,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item span,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item div,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item p,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item a,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-name,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-product-name {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
}

.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-metadata,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-metadata *,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-product-metadata,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-product-metadata * {
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary, #6b7280) !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price,
.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price *,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price,
.woocommerce-cart .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price * {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: var(--font-body) !important;
  color: var(--text-primary) !important;
}

/* === WOOCOMMERCE BLOCKS CHECKOUT: floating-label text inputs ===
 *
 * The block-based checkout renders inputs with a floating <label> absolutely
 * positioned over the input. The generic .woocommerce-checkout padding rule
 * above collapses the top padding to 0.75rem, causing the label and the value
 * to render on the same line (visible overlap between "Dirección de correo
 * electrónico" and "free100-test@example.com").
 *
 * Restore WC Blocks' intended layout by giving the input extra top padding to
 * make room for the floating label, and reset the label position/transform
 * values so the active (filled/focused) state sits flush with the input top.
 */
.wc-block-components-text-input {
  position: relative;
}

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="password"] {
  /* Top padding makes room for the floating label; keep bottom generous so
   * the caret has breathing room. */
  padding: 1.5rem 1rem 0.5rem !important;
  height: auto !important;
  min-height: 3.5rem;
  line-height: 1.4;
}

.wc-block-components-text-input label {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  transform-origin: top left;
  pointer-events: none;
  transition: transform 150ms ease, color 150ms ease;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--text-secondary, #6b7280);
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

/* When the field is empty and not focused, show the label at input-text size
 * and position so it reads like a placeholder. WC Blocks toggles
 * .is-active on the wrapper when the input has a value or focus. */
.wc-block-components-text-input:not(.is-active) label {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-secondary, #6b7280);
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label {
  top: 0.5rem;
  transform: none;
  font-size: 0.75rem;
}

/* Match the same pattern for the Select control used by "Tipo de documento" */
.wc-block-components-combobox,
.wc-block-components-select {
  position: relative;
}

.wc-block-components-combobox-control .components-form-token-field__input,
.wc-block-components-select .wc-block-components-select__select {
  padding: 1.5rem 1rem 0.5rem !important;
  height: auto !important;
  min-height: 3.5rem;
  line-height: 1.4;
}

.wc-block-components-combobox-control label,
.wc-block-components-select label {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--text-secondary, #6b7280);
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

/* === NOTICES (Success/Error/Info with left-accent bar) === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  padding: 1rem 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
  border-left: 4px solid transparent !important;
  margin-bottom: 1.5rem !important;
  font-family: var(--font-body) !important;
  background: var(--bg-warm) !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding-left: 3.25rem !important;
}

.wc-block-components-notice-banner {
  align-items: center !important;
  gap: 0.75rem !important;
}

.wc-block-components-notice-banner > svg {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
  border-left-color: var(--success) !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #065f46 !important;
}

.woocommerce-message::before,
.wc-block-components-notice-banner.is-success::before {
  color: var(--success) !important;
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
  border-left-color: var(--error) !important;
  background: rgba(239, 68, 68, 0.1) !important;
  color: #991b1b !important;
}

.woocommerce-error::before {
  color: var(--error) !important;
}

.woocommerce-info,
.wc-block-components-notice-banner.is-info {
  border-left-color: var(--info) !important;
  background: rgba(59, 130, 246, 0.1) !important;
  color: #1e40af !important;
}

.woocommerce-info::before {
  color: var(--info) !important;
}

/* === BREADCRUMBS === */
.woocommerce-breadcrumb {
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  color: var(--text-secondary) !important;
  margin-bottom: 2rem !important;
  padding: 0.5rem 0;
}

.woocommerce-breadcrumb a {
  color: var(--text-secondary) !important;
  transition: var(--transition-fast);
}

.woocommerce-breadcrumb a:hover {
  color: var(--brand-accent) !important;
}

/* === TABS (Product tabs) === */
.woocommerce-tabs ul.tabs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  border-bottom: 2px solid var(--gray-200) !important;
  display: flex;
  gap: 1rem;
}

.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 1.5rem !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition-base);
}

.woocommerce-tabs ul.tabs li a:hover {
  color: var(--brand-accent) !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--brand-accent) !important;
  border-bottom-color: var(--brand-accent) !important;
}

.woocommerce-tabs .panel {
  background: var(--bg-warm) !important;
  padding: 2rem !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
}

/* === QUANTITY SELECTOR === */
.quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

.quantity input.qty {
  background-color: var(--brand-cream) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0.5rem 1rem !important;
  text-align: center;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  width: 80px !important;
  transition: var(--transition-base);
}

.quantity input.qty:focus {
  outline: none !important;
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 3px rgba(242, 159, 5, 0.1) !important;
}

/* === PAGINATION === */
.woocommerce-pagination {
  margin: 3rem 0 !important;
  text-align: center;
}

.woocommerce-pagination ul.page-numbers {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-block;
  padding: 0.75rem 1.25rem !important;
  background: var(--bg-warm) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  text-decoration: none;
  transition: var(--transition-base);
  border: 1px solid var(--gray-200) !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers:hover,
.woocommerce-pagination ul.page-numbers li .page-numbers.current {
  background: var(--brand-accent) !important;
  color: var(--brand-cream) !important;
  border-color: var(--brand-accent) !important;
  transform: translateY(-2px);
}

/* === PRODUCT SINGLE PAGE === */
.single-product .product {
  background: #FFFFFF !important;
  padding: 2rem !important;
  border-radius: 0 !important;
}

.single-product .product_meta {
  font-family: var(--font-body) !important;
  color: var(--text-secondary) !important;
  font-size: var(--text-sm) !important;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1.5rem;
}

.single-product .product_meta a {
  color: var(--brand-accent) !important;
  font-weight: 500;
}

.single-product .product_meta a:hover {
  color: var(--interactive-primary-hover) !important;
}

/* === CART TABLE === */
.woocommerce table.shop_table {
  border: none !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: #FFFFFF;
}

.woocommerce table.shop_table th {
  background: var(--bg-dark) !important;
  color: var(--brand-cream) !important;
  font-family: var(--font-brand) !important;
  font-weight: 600 !important;
  padding: 1rem !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--text-sm) !important;
}

.woocommerce table.shop_table td {
  padding: 1.5rem 1rem !important;
  border-bottom: 1px solid var(--gray-200) !important;
  border-top: none !important;
  font-family: var(--font-body) !important;
}

.woocommerce table.shop_table td.product-name a {
  font-family: var(--font-brand) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  font-size: 1.1rem;
}

.woocommerce table.shop_table td.product-name a:hover {
  color: var(--brand-accent) !important;
}

.woocommerce table.shop_table .product-remove a {
  color: var(--error) !important;
  font-size: 1.5rem !important;
  font-weight: bold;
  transition: var(--transition-fast);
}

.woocommerce table.shop_table .product-remove a:hover {
  color: #991b1b !important;
}

/* === CART TOTALS === */
.cart-collaterals .cart_totals {
  background: var(--bg-warm) !important;
  padding: 2rem !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
}

.cart-collaterals .cart_totals h2 {
  font-family: var(--font-brand) !important;
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem !important;
}

.cart-collaterals .cart_totals table {
  border: none !important;
}

.cart-collaterals .cart_totals table th,
.cart-collaterals .cart_totals table td {
  border-top: none !important;
  border-bottom: 1px solid var(--gray-200) !important;
  padding: 0.75rem 0 !important;
  font-family: var(--font-body) !important;
}

.cart-collaterals .cart_totals table .order-total th,
.cart-collaterals .cart_totals table .order-total td {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--brand-accent) !important;
  border-bottom: none !important;
  padding-top: 1rem !important;
}

/* === CHECKOUT FORM === */
.woocommerce-checkout {
  background: var(--bg-warm);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.woocommerce-checkout .col2-set {
  margin-bottom: 2rem;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.woocommerce-checkout-review-order-table {
  border: none !important;
}

/* === RATING STARS === */
.star-rating {
  color: var(--brand-accent) !important;
}

.star-rating::before {
  color: var(--gray-300) !important;
}

/* === ACCOUNT NAVIGATION === */
.woocommerce-MyAccount-navigation {
  background: var(--bg-warm) !important;
  padding: 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.75rem 1.25rem !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  text-decoration: none;
  border-radius: var(--radius-lg) !important;
  transition: var(--transition-base);
  border-left: 3px solid transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--brand-accent) !important;
  color: var(--brand-cream) !important;
  border-left-color: var(--interactive-primary-hover) !important;
}

/* ========================================
   FRONT PAGE - BRANDED STOREFRONT LANDING
   ======================================== */

/* Catalog Hero Section - Full-viewport with background image */
.catalog-hero {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)),
              url('assets/images/catalog-header.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0;
}

/* Gradient fade at bottom of hero */
.catalog-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--brand-cream), transparent);
  pointer-events: none;
  z-index: 1;
}

.catalog-hero-content {
  max-width: 1000px;
  padding: 3rem;
  color: var(--text-inverse);
  position: relative;
  z-index: 2;
  transform: translateY(-2rem);
}

.catalog-hero h1 {
  font-family: var(--font-brand) !important;
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-inverse);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  font-weight: 700;
}

.catalog-hero h1 strong {
  color: var(--brand-accent);
}

.catalog-hero p {
  font-family: var(--font-brand) !important;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Featured Products Section */
.featured-products-section {
  padding: 5rem 2rem;
  background-color: var(--brand-cream);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-products-section h2 {
  font-family: var(--font-brand);
  font-size: 3.5rem;
  color: var(--brand-primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.featured-products-section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--brand-accent);
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Product cards inherit WC-034 styling */
.featured-products-grid .product {
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: var(--transition-base);
}

.featured-products-grid .product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

.view-all-products {
  text-align: center;
  margin-top: 3rem;
}

/* Ecosystem Cross-sell Section */
.ecosystem-section {
  padding: 5rem 2rem;
  background-color: var(--bg-warm);
}

.ecosystem-section h2 {
  font-family: var(--font-brand);
  font-size: 3.5rem;
  color: var(--brand-primary);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.ecosystem-section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--brand-accent);
}

.ecosystem-intro {
  text-align: center;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Service cards - matching website .service-card pattern */
.service-card {
  background: var(--bg-primary);
  border-radius: 0;
  padding: 2rem;
  text-align: center;
  box-shadow: none;
  transition: var(--transition-base);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--brand-accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-brand);
  font-size: 2rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card .cta-button {
  display: inline-block;
  background-color: var(--brand-accent);
  color: var(--brand-cream);
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--radius-lg);
}

.service-card .cta-button:hover {
  transform: translateY(-3px);
  background-color: #FFFFFF;
  color: var(--bg-dark);
}


/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  /* Catalog hero mobile responsive */
  .catalog-hero {
    min-height: 50vh;
  }

  .catalog-hero-content {
    padding: 2rem 1rem;
  }

  .catalog-hero h1 {
    font-size: 2.5rem;
  }

  .catalog-hero p {
    font-size: 1rem;
  }

  /* Section headings mobile */
  .featured-products-section h2,
  .ecosystem-section h2 {
    font-size: 2.5rem;
  }

  /* Featured products grid - single column on mobile */
  .featured-products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Ecosystem grid - single column on mobile */
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Service card padding reduction */
  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  /* General WooCommerce responsive */
  ul.products li.product {
    padding: 1rem !important;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 0.75rem 0.5rem !important;
    font-size: var(--text-sm) !important;
  }

  .button,
  .woocommerce-Button,
  .woocommerce a.button,
  .woocommerce button.button {
    padding: 0.75rem 1.5rem !important;
    font-size: var(--text-sm) !important;
  }

  .woocommerce-pagination ul.page-numbers li .page-numbers {
    padding: 0.5rem 0.75rem !important;
    font-size: var(--text-sm) !important;
  }
}

/* === STICKY MOBILE ADD-TO-CART BAR (WC-052) === */
/* Fixed bottom bar that appears on mobile when primary ATC scrolls out of view.
 * Follows Shopify Plus DTC pattern for mobile product pages: always-visible CTA
 * with product name, price, quantity selector. Hidden on desktop and non-product pages. */

.termopilas-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 2px solid var(--brand-accent);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 0.75rem 1rem;
  transform: translateY(0);
  transition: transform var(--transition-base);
}

.sticky-atc-content {
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sticky-atc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sticky-atc-name {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sticky-atc-price {
  font-size: var(--text-xs);
  color: var(--brand-accent);
  font-weight: 600;
}

.sticky-atc-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sticky-atc-qty {
  width: 60px;
}

.sticky-qty-input {
  width: 100%;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-align: center;
  font-family: var(--font-body);
  -moz-appearance: textfield;
}

.sticky-qty-input::-webkit-outer-spin-button,
.sticky-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sticky-qty-input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(242, 159, 5, 0.1);
}

.sticky-atc-button {
  background-color: var(--brand-accent);
  color: var(--brand-cream);
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: all var(--transition-base);
  box-shadow: none;
}

.sticky-atc-button:hover {
  background-color: var(--interactive-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sticky-atc-button:active {
  transform: translateY(0);
}

.sticky-atc-button:disabled,
.sticky-qty-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sticky-atc-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Hide on desktop (>768px) and non-product pages */
@media (min-width: 769px) {
  .termopilas-sticky-atc {
    display: none !important;
  }
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
  .sticky-atc-content {
    gap: 0.5rem;
  }

  .sticky-atc-name {
    font-size: 0.75rem;
  }

  .sticky-atc-price {
    font-size: 0.7rem;
  }

  .sticky-atc-qty {
    width: 50px;
  }

  .sticky-atc-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}
