/*
Theme Name:   Xstore child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/
:root{
  --bg:#F7F4EE;
  --ink:#1B1B1B;
  --muted:#7A7A7A;
  --accent:#7A1F1F;
  --gold:#C7A663;
  --radius:16px;
}

body{ background:var(--bg); color:var(--ink); }
a{ color:var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover{ opacity:.85; }

/* Títulos estilo editorial */
h1,h2,h3,.product_title{
  font-feature-settings: "liga","lnum","kern";
  letter-spacing: .2px;
}

/* Botón principal */
.button, .single_add_to_cart_button, .et-cart .btn {
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
}
.button:hover, .single_add_to_cart_button:hover{ filter: saturate(1.05) brightness(.98); }

/* Cards de producto (grid) */
.products .product{
  background:#fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.products .product .woocommerce-LoopProduct-link{ display:block; padding: 12px 12px 0; }
.products .product .price{ color:var(--ink); font-weight:600; }
.products .product .woocommerce-loop-product__title{ font-size:1.05rem; margin:.4rem 0 .2rem; }
.products .product .author-line{ color:var(--muted); font-size:.9rem; }

/* Ratio portada 3:4 */
.products .product img, .woocommerce-product-gallery__image img{
  aspect-ratio: 3/4; object-fit: cover;
}

/* Badge Edición limitada */
.badge-edicion-limitada{
  position:absolute; top:10px; left:10px; z-index:3;
  background: var(--gold); color:#2f2a1d; padding:6px 10px; font-size:.78rem; border-radius:10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

/* Ficha: columna derecha más limpia */
.single-product .summary{
  background:#fff; border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.single-product .product_title{ font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom:.2rem; }
.single-product .short-description{ color:var(--muted); }

/* Tabla Ficha técnica */
.shop_attributes{
  width:100%; background:#fff; border-radius: var(--radius); overflow:hidden;
  border: 1px solid #eee;
}
.shop_attributes tr{ border-bottom: 1px solid #f1f1f1; }
.shop_attributes th{
  width:36%; background:#faf8f2; color:#3b3b3b; font-weight:600;
  padding:.75rem 1rem;
}
.shop_attributes td{ padding:.75rem 1rem; }

/* Tabs */
.woocommerce-tabs .tabs li a{ font-weight:600; }
.woocommerce-tabs .tabs li.active a{
  border-bottom: 2px solid var(--accent);
}

/* Header & menú */
.site-header, .header-wrapper{ background: var(--bg); }
.menu > li > a{ font-weight:600; letter-spacing:.3px; }

/* Footer sobrio */
.footer{ background:#111; color:#ddd; }
.footer a{ color:#fff; }

/* Sticky add-to-cart en móvil */
@media (max-width: 768px){
  .sticky-add-to-cart{
    position:fixed; left:0; right:0; bottom:0; z-index:99;
    background:#fff; padding:10px 14px; box-shadow:0 -6px 24px rgba(0,0,0,.12);
  }
}
