/* Fix product layout grid - Premium Layout */

/* == Force quantity and Add to Cart into single row == */ 
form.cart { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  flex-wrap: wrap; 
  margin-top: 30px; 
} 

/* == Fix quantity wrapper == */ 
form.cart .quantity { 
  display: flex; 
  align-items: center; 
  border: 1px solid rgba(191, 161, 90, 0.4); 
  border-radius: 6px; 
  overflow: hidden; 
  height: 48px; 
} 

/* == Quantity input styling == */ 
form.cart .quantity input.qty { 
  width: 50px; 
  height: 48px; 
  text-align: center; 
  border: none; 
  font-size: 16px; 
  font-weight: 500; 
} 

/* == Quantity buttons if any == */ 
form.cart .quantity button { 
  height: 48px; 
  width: 40px; 
  background: none; 
  border: none; 
  font-size: 18px; 
  color: #BFA15A; 
  cursor: pointer; 
} 

/* == Add to Cart Button == */ 
form.cart .single_add_to_cart_button { 
  height: 48px; 
  padding: 0 25px; 
  font-size: 14px; 
  text-transform: uppercase; 
  background-color: #BFA15A; 
  color: white; 
  font-weight: bold; 
  border-radius: 6px; /* Match exactly with quantity box */ 
  border: 1px solid rgba(191, 161, 90, 0.4); /* Match quantity box border */ 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  white-space: nowrap; 
  transition: background-color 0.3s ease;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
} 

/* == Hover effect == */ 
form.cart .single_add_to_cart_button:hover { 
  background-color: #a88c46; 
} 

/* == Mobile responsive == */ 
@media (max-width: 600px) { 
  form.cart { 
    flex-direction: column; 
    align-items: stretch; 
  } 

  form.cart .quantity, 
  form.cart .single_add_to_cart_button { 
    width: 100%; 
  } 
}
.ia-single-product .ia-sp__grid,
.woocommerce .ia-single-product .ia-sp__grid,
.woocommerce-page .ia-single-product .ia-sp__grid,
.product-wrapper,
.woocommerce div.product {
  display: flex !important;
  gap: 60px;
  margin-bottom: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.ia-single-product .ia-sp__gallery,
.woocommerce .ia-single-product .ia-sp__gallery,
.woocommerce-page .ia-single-product .ia-sp__gallery,
.product-gallery {
  flex: 0 0 100%;
  max-width: 100%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}

.ia-single-product .ia-sp__summary,
.woocommerce .ia-single-product .ia-sp__summary,
.woocommerce-page .ia-single-product .ia-sp__summary,
.product-summary-block {
  flex: 1;
  padding-top: 20px;
}

/* Responsive layout adjustments */
@media (max-width: 992px) {
  .ia-single-product .ia-sp__grid,
  .woocommerce .ia-single-product .ia-sp__grid,
  .woocommerce-page .ia-single-product .ia-sp__grid,
  .product-wrapper {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .ia-single-product .ia-sp__grid,
  .woocommerce .ia-single-product .ia-sp__grid,
  .woocommerce-page .ia-single-product .ia-sp__grid,
  .product-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .ia-single-product .ia-sp__gallery,
  .woocommerce .ia-single-product .ia-sp__gallery,
  .woocommerce-page .ia-single-product .ia-sp__gallery,
  .product-gallery {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .ia-single-product .ia-sp__summary,
  .woocommerce .ia-single-product .ia-sp__summary,
  .woocommerce-page .ia-single-product .ia-sp__summary,
  .product-summary-block {
    padding-left: 0;
  }
}

/* Product details styling for premium look */
.product-summary-block {
  padding: 20px 0 0 20px;
}

.product-summary-block .product_title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.1;
  color: var(--ia-secondary, #0C3B2E);
  margin: 0 0 20px;
}

.product-summary-block .product-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #37433e;
  margin-bottom: 30px;
}

.product-summary-block .price {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ia-accent, #BFA15A);
  margin-bottom: 25px;
  display: block;
}

.product-summary-block .cart, 
form.cart { 
  margin-top: 40px !important; 
  margin-bottom: 30px; 
}

/* CONSOLIDATED ADD TO CART BUTTON STYLES - OVERRIDES ALL OTHER STYLES */
body .single_add_to_cart_button,
body.single-product.woocommerce div.product .single_add_to_cart_button,
body.woocommerce.single-product div.product .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.woocommerce-page .single_add_to_cart_button,
.product-summary-block .single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  height: 48px !important;
  padding: 8px 15px !important;
  border: none !important;
  border-radius: 4px !important;
  background-color: var(--color-accent, #BFA15A) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body .single_add_to_cart_button:hover,
body.single-product.woocommerce div.product .single_add_to_cart_button:hover,
body.woocommerce.single-product div.product .single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce-page .single_add_to_cart_button:hover,
.product-summary-block .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:hover {
  background-color: #a88c46 !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

/* CONSOLIDATED QUANTITY FIELD STYLES - OVERRIDES ALL OTHER STYLES */
/* CONSOLIDATED QUANTITY FIELD STYLES - OVERRIDES ALL OTHER STYLES */
body .quantity-selector,
.woocommerce .quantity-selector,
.quantity-selector,
.single-product .quantity {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 15px !important;
  position: relative !important;
  width: 100% !important;
  min-width: 100px !important;
  max-width: 100% !important;
  border: 1px solid rgba(191, 161, 90, 0.3) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  height: 48px !important;
}

body .qty-btn,
.woocommerce .qty-btn,
.qty-btn {
  background: none !important;
  border: none !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  color: #BFA15A !important;
  flex: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .qty-input,
.woocommerce .qty-input,
.qty-input,
.single-product .quantity .qty,
.woocommerce .quantity .qty,
.woocommerce-page .quantity .qty {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: none !important;
  background-color: #fff !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #0C3B2E !important;
  text-align: center !important;
  -moz-appearance: textfield !important;
  margin: 0 !important;
  flex: 1 !important;
}

body .qty-input::-webkit-outer-spin-button,
body .qty-input::-webkit-inner-spin-button,
.woocommerce .qty-input::-webkit-outer-spin-button,
.woocommerce .qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

body .quantity .qty::-webkit-outer-spin-button,
body .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce-page .quantity .qty::-webkit-outer-spin-button,
.woocommerce-page .quantity .qty::-webkit-inner-spin-button,
.single-product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Product gallery layout - thumbnails below main image */
.woocommerce-product-gallery.ia-gallery,
.woocommerce .woocommerce-product-gallery.ia-gallery,
.woocommerce-page .woocommerce-product-gallery.ia-gallery {
  display: block;
  width: 100%;
}

.woocommerce-product-gallery.ia-gallery .ia-stage,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-stage,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-stage {
  margin-bottom: 15px;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(191, 161, 90, 0.05);
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f7f3;
  border: none;
}

.woocommerce-product-gallery.ia-gallery .ia-stage::after,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-stage::after,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.woocommerce-product-gallery.ia-gallery .ia-stage img,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-stage img,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Enhance thumbnails for premium look */
.woocommerce-product-gallery.ia-gallery .ia-thumbs-container,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumbs-container,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumbs-container {
  margin-top: 30px;
  width: 100%;
  display: block;
  clear: both;
}

.woocommerce-product-gallery.ia-gallery .ia-thumbs-row,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumbs-row,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
}

.woocommerce-product-gallery.ia-gallery .ia-thumb,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumb,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumb {
  width: calc(20% - 9px);
  max-width: calc(20% - 9px);
  aspect-ratio: 1/1;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 0 calc(20% - 9px);
}

.woocommerce-product-gallery.ia-gallery .ia-thumb img,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumb img,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.woocommerce-product-gallery.ia-gallery .ia-thumb:hover,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumb:hover,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumb:hover {
  border-color: var(--ia-accent, #BFA15A);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.woocommerce-product-gallery.ia-gallery .ia-thumb:hover img,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumb:hover img,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumb:hover img {
  transform: scale(1.05);
}

.woocommerce-product-gallery.ia-gallery .ia-thumb.is-active,
.woocommerce .woocommerce-product-gallery.ia-gallery .ia-thumb.is-active,
.woocommerce-page .woocommerce-product-gallery.ia-gallery .ia-thumb.is-active {
  border-color: var(--ia-accent, #BFA15A);
  box-shadow: 0 5px 15px rgba(191, 161, 90, 0.2);
}
