/*
ALTAMIRA — WooCommerce + Elementor Premium Pack
CSS encapsulado. No afecta a otras páginas si las plantillas usan las clases raíz indicadas.
Clases raíz:
.altamira-shop-template
.altamira-category-template
.altamira-product-template
.altamira-cart-template
.altamira-checkout-template
.altamira-thankyou-template
*/

:root {
  --altamira-navy: #0b1f3a;
  --altamira-blue: #123761;
  --altamira-gold: #c6a35b;
  --altamira-cream: #f8f6f0;
  --altamira-stone: #e8e3d7;
  --altamira-text: #172033;
  --altamira-muted: #6b7280;
  --altamira-white: #ffffff;
  --altamira-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --altamira-shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.14);
  --altamira-radius: 28px;
  --altamira-radius-sm: 18px;
}

/* Ámbito general */
.altamira-shop-template,
.altamira-category-template,
.altamira-product-template,
.altamira-cart-template,
.altamira-checkout-template,
.altamira-thankyou-template {
  color: var(--altamira-text);
  font-family: inherit;
}

/* Hero */
.altamira-hero {
  border-radius: 36px;
  padding: clamp(42px, 7vw, 90px) clamp(22px, 5vw, 72px);
  background:
    radial-gradient(circle at top left, rgba(198,163,91,.24), transparent 32%),
    linear-gradient(135deg, #0b1f3a 0%, #123761 48%, #f8f6f0 100%);
  box-shadow: var(--altamira-shadow);
  overflow: hidden;
}

.altamira-hero h1,
.altamira-hero h2,
.altamira-hero .elementor-heading-title {
  color: #ffffff;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.altamira-hero .elementor-widget-text-editor,
.altamira-hero p {
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 760px;
  margin-inline: auto;
}

/* Buscador WooCommerce */
.altamira-shop-template .woocommerce-product-search {
  display: flex;
  max-width: 680px;
  margin: 26px auto 0;
  gap: 12px;
}

.altamira-shop-template .woocommerce-product-search input[type="search"] {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 17px 22px !important;
  background: #ffffff !important;
  min-height: 56px;
}

.altamira-shop-template .woocommerce-product-search button {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 16px 28px !important;
  background: var(--altamira-gold) !important;
  color: #0b1f3a !important;
  font-weight: 800 !important;
}

/* Categorías */
.altamira-shop-template .product-categories,
.altamira-category-template .product-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 36px;
}

.altamira-shop-template .product-categories li,
.altamira-category-template .product-categories li {
  border-radius: 24px;
  background: var(--altamira-cream);
  padding: 22px;
  box-shadow: var(--altamira-shadow);
  list-style: none;
  transition: .25s ease;
}

.altamira-shop-template .product-categories li:hover,
.altamira-category-template .product-categories li:hover {
  transform: translateY(-4px);
}

.altamira-shop-template .product-categories a,
.altamira-category-template .product-categories a {
  color: var(--altamira-navy);
  font-weight: 800;
  text-decoration: none;
}

/* Grid productos */
.altamira-shop-template .woocommerce ul.products,
.altamira-category-template .woocommerce ul.products,
.altamira-product-template .related.products ul.products {
  display: grid;
  gap: 26px;
}

.altamira-shop-template .woocommerce ul.products.columns-3,
.altamira-category-template .woocommerce ul.products.columns-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.altamira-shop-template .woocommerce ul.products li.product,
.altamira-category-template .woocommerce ul.products li.product,
.altamira-product-template .related.products ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 24px;
  padding: 22px;
  background: var(--altamira-white);
  box-shadow: var(--altamira-shadow);
  transition: all .25s ease;
  overflow: hidden;
}

.altamira-shop-template .woocommerce ul.products li.product:hover,
.altamira-category-template .woocommerce ul.products li.product:hover,
.altamira-product-template .related.products ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--altamira-shadow-hover);
}

.altamira-shop-template .woocommerce ul.products li.product img,
.altamira-category-template .woocommerce ul.products li.product img,
.altamira-product-template .related.products ul.products li.product img {
  border-radius: 18px;
  background: #f7f7f4;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
}

.altamira-shop-template .woocommerce-loop-product__title,
.altamira-category-template .woocommerce-loop-product__title,
.altamira-product-template .related .woocommerce-loop-product__title {
  color: var(--altamira-navy);
  font-weight: 850;
  font-size: 17px !important;
  line-height: 1.25;
}

.altamira-shop-template .price,
.altamira-category-template .price,
.altamira-product-template .related .price {
  color: var(--altamira-navy) !important;
  font-weight: 850 !important;
  font-size: 17px !important;
}

.altamira-shop-template .button,
.altamira-category-template .button,
.altamira-product-template .related .button {
  border-radius: 999px !important;
  padding: 13px 22px !important;
  font-weight: 800 !important;
  background: var(--altamira-navy) !important;
  color: #ffffff !important;
  border: 0 !important;
  transition: .22s ease;
}

.altamira-shop-template .button:hover,
.altamira-category-template .button:hover,
.altamira-product-template .related .button:hover {
  background: var(--altamira-gold) !important;
  color: var(--altamira-navy) !important;
}

/* Producto individual */
.altamira-product-template .woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 44px;
  align-items: start;
}

.altamira-product-template .woocommerce div.product div.images,
.altamira-product-template .woocommerce div.product div.summary {
  width: auto !important;
  float: none !important;
}

.altamira-product-template .woocommerce div.product div.images img {
  border-radius: var(--altamira-radius);
  background: #f7f7f4;
  box-shadow: var(--altamira-shadow);
}

.altamira-product-template .woocommerce div.product .summary {
  border-radius: var(--altamira-radius);
  padding: clamp(24px, 4vw, 40px);
  background: var(--altamira-cream);
  box-shadow: var(--altamira-shadow);
  position: sticky;
  top: 24px;
}

.altamira-product-template .product_title {
  color: var(--altamira-navy);
  font-size: clamp(30px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -0.045em;
}

.altamira-product-template .woocommerce div.product p.price,
.altamira-product-template .woocommerce div.product span.price {
  color: var(--altamira-navy);
  font-weight: 900;
  font-size: 30px;
}

.altamira-product-template .single_add_to_cart_button {
  border-radius: 999px !important;
  padding: 16px 32px !important;
  font-weight: 900 !important;
  background: var(--altamira-navy) !important;
  color: #ffffff !important;
  border: 0 !important;
  min-height: 56px;
}

.altamira-product-template .quantity input.qty {
  border-radius: 999px !important;
  min-height: 54px;
  border: 1px solid var(--altamira-stone) !important;
}

.altamira-product-template .woocommerce-tabs {
  grid-column: 1 / -1;
  border-radius: var(--altamira-radius);
  background: #ffffff;
  padding: 34px;
  box-shadow: var(--altamira-shadow);
}

.altamira-product-template .related.products {
  grid-column: 1 / -1;
}

/* Carrito */
.altamira-cart-template .woocommerce-cart-form,
.altamira-cart-template .cart_totals {
  border-radius: var(--altamira-radius);
  background: #ffffff;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--altamira-shadow);
}

.altamira-cart-template .cart_totals {
  background: var(--altamira-cream);
}

.altamira-cart-template table.shop_table {
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.altamira-cart-template table.shop_table td,
.altamira-cart-template table.shop_table th {
  border: 0 !important;
  padding: 18px !important;
}

.altamira-cart-template .checkout-button {
  border-radius: 999px !important;
  padding: 17px 34px !important;
  font-weight: 900 !important;
  background: var(--altamira-navy) !important;
  color: #ffffff !important;
}

/* Checkout */
.altamira-checkout-template form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 32px;
}

.altamira-checkout-template .col2-set,
.altamira-checkout-template #order_review_heading,
.altamira-checkout-template .woocommerce-checkout-review-order {
  width: auto !important;
  float: none !important;
}

.altamira-checkout-template .woocommerce-billing-fields,
.altamira-checkout-template .woocommerce-shipping-fields,
.altamira-checkout-template .woocommerce-additional-fields,
.altamira-checkout-template .woocommerce-checkout-review-order {
  background: #ffffff;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--altamira-radius);
  box-shadow: var(--altamira-shadow);
}

.altamira-checkout-template .woocommerce-checkout-review-order {
  background: var(--altamira-cream);
  position: sticky;
  top: 24px;
}

.altamira-checkout-template #place_order {
  width: 100%;
  border-radius: 999px !important;
  padding: 17px 34px !important;
  font-weight: 900 !important;
  background: var(--altamira-navy) !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* Formularios */
.altamira-cart-template input,
.altamira-checkout-template input,
.altamira-checkout-template select,
.altamira-checkout-template textarea,
.altamira-product-template select {
  border-radius: 14px !important;
  border: 1px solid #d8d5cc !important;
  padding: 13px 16px !important;
  background: #ffffff !important;
}

.altamira-checkout-template label,
.altamira-cart-template label,
.altamira-product-template label {
  font-weight: 800;
  color: var(--altamira-navy);
}

/* Thank you */
.altamira-thankyou-template {
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .altamira-shop-template .product-categories,
  .altamira-category-template .product-categories {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .altamira-shop-template .woocommerce ul.products.columns-3,
  .altamira-category-template .woocommerce ul.products.columns-3,
  .altamira-product-template .woocommerce div.product,
  .altamira-checkout-template form.checkout {
    grid-template-columns: 1fr;
  }

  .altamira-product-template .woocommerce div.product .summary,
  .altamira-checkout-template .woocommerce-checkout-review-order {
    position: static;
  }
}

@media (max-width: 640px) {
  .altamira-shop-template .product-categories,
  .altamira-category-template .product-categories {
    grid-template-columns: 1fr;
  }

  .altamira-shop-template .woocommerce-product-search {
    flex-direction: column;
  }

  .altamira-hero {
    border-radius: 24px;
  }
}