/* =============================================
   Rosa Eterna JMC - Custom Styles
   ============================================= */

/* --- Header --- */
.rosa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.rosa-header .rosa-header-logo img {
  transition: filter 0.4s ease;
}

.rosa-header .wp-block-navigation a {
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.rosa-header .wp-block-navigation a:hover {
  color: #8B1A3A;
}

/* Navigation centered */
.rosa-nav-center {
  flex: 1;
  justify-content: center;
}

/* Header icons */
.rosa-header-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.rosa-header-icons .wc-block-customer-account__account-icon,
.rosa-header-icons .wc-block-mini-cart__button {
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.rosa-header-icons .wc-block-customer-account__account-icon:hover,
.rosa-header-icons .wc-block-mini-cart__button:hover {
  color: #8B1A3A;
}

.rosa-header-icons svg {
  width: 26px !important;
  height: 26px !important;
}

.rosa-header-icons .wc-block-mini-cart__button {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.rosa-header-icons .wc-block-customer-account__account-icon {
  display: flex;
  align-items: center;
}

/* --- Hero --- */
.rosa-hero {
  margin-top: 0 !important;
}

.rosa-hero .wp-block-cover__image-background {
  transform: scale(1.05);
}

.rosa-hero-sep {
  width: 80px !important;
  margin: 1.5rem auto !important;
  border: none !important;
  height: 1px !important;
}

.rosa-hero-cta .wp-block-button__link {
  transition: background 0.4s ease, border-color 0.4s ease;
}

.rosa-hero-cta .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* --- Gold separator --- */
.rosa-gold-sep {
  width: 60px !important;
  margin: 0.8rem auto 0 !important;
  border: none !important;
  height: 2px !important;
  border-radius: 2px !important;
}

/* --- Shipping Banner --- */
.rosa-shipping-banner {
  background: linear-gradient(135deg, #C5963A 0%, #D4A94C 50%, #C5963A 100%) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rosa-shipping-banner p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* --- Value Items --- */
.rosa-value-item .wp-block-group {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rosa-value-item .wp-block-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* --- Product Cards --- */
.rosa-product-card {
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rosa-product-card:hover {
  transform: translateY(-8px);
}

.rosa-product-card .wp-block-image {
  overflow: hidden;
  border-radius: 12px;
}

.rosa-product-card .wp-block-image img {
  transition: transform 0.7s ease;
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

.rosa-product-card:hover .wp-block-image img {
  transform: scale(1.08);
}

/* --- Shop Page --- */
.rosa-shop-card {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.rosa-shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.rosa-shop-card .wc-block-components-product-image {
  overflow: hidden;
  margin: 0;
}

.rosa-shop-card .wc-block-components-product-image img {
  transition: transform 0.6s ease;
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

.rosa-shop-card:hover .wc-block-components-product-image img {
  transform: scale(1.06);
}

.rosa-shop-card .wp-block-post-title a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rosa-shop-card .wp-block-post-title a:hover {
  color: #8B1A3A;
}

.rosa-shop-card .wc-block-components-product-price {
  color: #8B1A3A !important;
}

.rosa-shop-card .wc-block-components-product-button .wp-element-button,
.rosa-shop-card .wc-block-components-product-button a {
  background: transparent !important;
  color: #8B1A3A !important;
  border: 1px solid rgba(139, 26, 58, 0.3) !important;
  border-radius: 0 !important;
  padding: 0.6rem 1.5rem !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}

.rosa-shop-card .wc-block-components-product-button .wp-element-button:hover,
.rosa-shop-card .wc-block-components-product-button a:hover {
  background: #8B1A3A !important;
  color: #ffffff !important;
}

/* Sale badge */
.rosa-shop-card .wc-block-components-product-sale-badge {
  background: #8B1A3A;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Sorting and results */
.wc-block-catalog-sorting select,
.wc-block-sort-select select {
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #1A1A1A;
}

.wc-block-product-results-count,
.woocommerce-result-count {
  font-size: 0.85rem;
  color: #888;
}

/* Pagination */
.rosa-product-grid .wp-block-query-pagination {
  gap: 0.5rem;
}

.rosa-product-grid .wp-block-query-pagination-numbers .page-numbers {
  padding: 0.5rem 0.9rem;
  border: 1px solid #ddd;
  color: #1A1A1A;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rosa-product-grid .wp-block-query-pagination-numbers .page-numbers.current,
.rosa-product-grid .wp-block-query-pagination-numbers .page-numbers:hover {
  background: #8B1A3A;
  border-color: #8B1A3A;
  color: #fff;
}

/* --- WhatsApp Floating Button --- */
.rosa-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: rosa-pulse 2.5s ease-in-out infinite;
}

.rosa-whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes rosa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

/* --- Footer --- */
.rosa-footer a {
  color: #999 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rosa-footer a:hover {
  color: #C5963A !important;
}

.rosa-footer-links {
  list-style: none !important;
  padding-left: 0 !important;
}

.rosa-footer-links li {
  padding: 0.2rem 0;
}

/* --- General --- */
body {
  overflow-x: hidden;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Remove WordPress default block gap between full-width sections */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-group,
.wp-site-blocks > main > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Space for fixed header on non-hero pages */
body:not(.home) .wp-site-blocks > main {
  padding-top: 80px;
}

/* --- Single Product Page --- */
.single-product .wp-site-blocks > main {
  padding-top: 0 !important;
}

.single-product .wp-block-post-title {
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #1A1A1A;
}

.single-product .wc-block-components-product-price,
.single-product .wp-block-woocommerce-product-price,
.single-product .price {
  color: #8B1A3A !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
}

.single-product .wp-block-woocommerce-product-image-gallery img,
.single-product .woocommerce-product-gallery img {
  border-radius: 12px;
}

/* Add to cart button */
.single-product .wc-block-add-to-cart-form .wp-element-button,
.single-product .single_add_to_cart_button,
.single-product form.cart .button {
  background: #8B1A3A !important;
  color: #ffffff !important;
  border: 2px solid #8B1A3A !important;
  border-radius: 50px !important;
  padding: 0.9rem 2.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
  cursor: pointer;
}

.single-product .wc-block-add-to-cart-form .wp-element-button:hover,
.single-product .single_add_to_cart_button:hover,
.single-product form.cart .button:hover {
  background: #C5963A !important;
  border-color: #C5963A !important;
}

/* Quantity input */
.single-product .quantity .qty,
.single-product .wc-block-components-quantity-selector input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
  text-align: center;
  width: 60px;
  font-size: 1rem;
}

/* Product meta */
.single-product .wp-block-woocommerce-product-meta {
  font-size: 0.85rem;
  color: #666666;
}

.single-product .wp-block-woocommerce-product-meta a {
  color: #8B1A3A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-product .wp-block-woocommerce-product-meta a:hover {
  color: #C5963A;
}

/* Breadcrumbs */
.single-product .wc-block-breadcrumbs,
.single-product .woocommerce-breadcrumb {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.single-product .wc-block-breadcrumbs a,
.single-product .woocommerce-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.single-product .wc-block-breadcrumbs a:hover,
.single-product .woocommerce-breadcrumb a:hover {
  color: #8B1A3A;
}

/* Related products */
.single-product .wc-block-related-products h2,
.single-product .related.products h2 {
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
}

/* Product excerpt */
.single-product .wp-block-post-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4A4A4A;
}

/* --- Cart Page --- */
.woocommerce-cart .wp-element-button,
.wc-block-cart .wp-element-button {
  background: #8B1A3A !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  transition: background 0.3s ease !important;
}

.woocommerce-cart .wp-element-button:hover,
.wc-block-cart .wp-element-button:hover {
  background: #C5963A !important;
}

.wc-block-cart .wc-block-components-product-name {
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 500;
}

.wc-block-cart .wc-block-components-product-name:hover {
  color: #8B1A3A;
}

/* --- Checkout Page --- */
.woocommerce-checkout .wp-element-button,
.wc-block-checkout .wp-element-button {
  background: #8B1A3A !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  padding: 1rem 2rem !important;
  transition: background 0.3s ease !important;
}

.woocommerce-checkout .wp-element-button:hover,
.wc-block-checkout .wp-element-button:hover {
  background: #C5963A !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-combobox input:focus {
  border-color: #8B1A3A;
  box-shadow: 0 0 0 1px rgba(139, 26, 58, 0.2);
}

.wc-block-checkout .wc-block-components-order-summary {
  background: #FDF5F3;
  border-radius: 12px;
  padding: 1.5rem;
}

/* --- My Account Page --- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.8rem 1rem;
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
  font-size: 0.9rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: #8B1A3A;
  background: #FDF5F3;
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account .button {
  background: #8B1A3A !important;
  color: #ffffff !important;
  border: 2px solid #8B1A3A !important;
  border-radius: 50px !important;
  padding: 0.7rem 2rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: background 0.3s ease !important;
  cursor: pointer;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover {
  background: #C5963A !important;
  border-color: #C5963A !important;
}

/* --- Responsive --- */
@media (max-width: 781px) {
  .rosa-header .wp-block-navigation__responsive-container-open {
    color: #1A1A1A;
  }

  .rosa-header-icons svg {
    width: 22px !important;
    height: 22px !important;
  }

  .rosa-header-icons {
    gap: 0.8rem !important;
  }

  .rosa-product-card:hover {
    transform: none;
  }

  .rosa-shop-card:hover {
    transform: none;
  }

  .rosa-value-item .wp-block-group:hover {
    transform: none;
  }

  .single-product .wp-block-columns {
    flex-direction: column !important;
  }

  .single-product .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (max-width: 599px) {
  .rosa-hero .wp-block-heading {
    font-size: 2.2rem !important;
  }
}
