/* -----------------------------
   1. GENERAL STYLES
   ----------------------------- */
.primary-content-area {
  width: 100% !important;
}

.main-area {
  margin-top: 0;
}

/* -----------------------------
     2. PRODUCT LAYOUT
     ----------------------------- */
.thunk-single-product-summary-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.thunk-single-product-summary-wrap * {
  text-align: center;
}

.carousel-container {
  width: 100%;
  height: 40dvh;
}

.woocommerce div.product .product_title {
  font-size: 24px;
}

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
  width: 100%;
}

/* -----------------------------
     3. PRODUCT PRICE
     ----------------------------- */
p.price>span:nth-child(1)>bdi:nth-child(1) {
  font-size: 24px;
  color: #1f3e77;
  font-weight: 600;
  margin: 15px 0;
  text-align: center;
}

/* -----------------------------
     4. PRODUCT DESCRIPTION
     ----------------------------- */
.woocommerce-product-details__short-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

/* -----------------------------
     5. VARIATION SELECTORS
     ----------------------------- */
/* Hide original colorways */
#pa_colorways {
  display: none;
}

/* Variation container styles */
.variations {
  margin-bottom: 20px;
}

.variations td,
.variations th {
  padding: 10px 0;
  vertical-align: top;
}

.variations label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.variations select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
}

.woo-variation-swatches.wvs-show-label .variations td,
.woo-variation-swatches.wvs-show-label .variations th {
  text-align: center;
}

.woo-variation-swatches .variable-items-wrapper {
  justify-content: center;
}

/* -----------------------------
     6. VARIATION IMAGE OPTIONS
     ----------------------------- */
.variation-images-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 20px;
}

.variation-image-option {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.variation-image-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #0073aa;
}

.variation-image-option.selected {
  border: 2px solid #1f3e77;
}

.variation-image-option img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* -----------------------------
     7. PRODUCT THUMBNAILS
     ----------------------------- */
.flex-control-thumbs,
.woocommerce div.product div.images .flex-control-thumbs {
  overflow-y: hidden;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #1f3e77 #f1f1f1;
}

.flex-control-thumbs::-webkit-scrollbar {
  width: 6px;
}

.flex-control-thumbs::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.flex-control-thumbs::-webkit-scrollbar-thumb {
  background: #1f3e77;
  border-radius: 3px;
}

.woocommerce-product-gallery__image {
  max-height: 600px;
}

/* -----------------------------
     8. QUANTITY SELECTOR
     ----------------------------- */
.quantity {
  display: none;
}

.top-store-quantity {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  width: fit-content;
  align-self: center;
  height: 50px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.top-store-quantity button,
.top-store-quantity .minus,
.top-store-quantity .plus {
  background-color: #1f3e77 !important;
  color: white;
  border: none;
  height: 100%;
  width: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.top-store-quantity button:hover,
.top-store-quantity .minus:hover,
.top-store-quantity .plus:hover {
  background-color: #131a42 !important;
}

.top-store-quantity .quantity {
  flex: 1;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-store-quantity .quantity input {
  border: none;
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  outline: none;
  padding: 0;
  margin: 0;
  color: #333;
}

.quantity .buttons-added>a,
.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden)::after,
.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden)::before,
.woocommerce form .quantity.buttons-added .minus,
.woocommerce form .quantity.buttons-added .plus {
  display: none !important;
}

/* -----------------------------
     9. ADD TO CART BUTTON
     ----------------------------- */
.woocommerce div.product form.cart {
  width: 100%;
}

.add-to-cart-panel form.cart,
.woocommerce div.product.do-quantity-buttons form.cart {
  width: 100%;
}

.woocommerce div.product form.cart> :not(.quantity):not(.single_add_to_cart_button) {
  width: fit-content !important;
  margin: auto !important;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.single_add_to_cart_button {
  width: 100% !important;
  background-color: #1f3e77 !important;
  color: white !important;
  padding: 15px !important;
  border-radius: 5px !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 6px rgba(30, 45, 125, 0.2) !important;
  transition: all 0.3s ease !important;
  margin-top: 10px !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.single_add_to_cart_button:hover {
  background-color: #131a42 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(30, 45, 125, 0.25) !important;
}

/* -----------------------------
     10. PRODUCT TABS
     ----------------------------- */
.woocommerce-tabs ul.tabs {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  padding: 0 !important;
  flex-direction: row;
}

.woocommerce-tabs ul.tabs li {
  background: none !important;
  border: none !important;
  margin-right: 25px !important;
}

.woocommerce-tabs ul.tabs li a {
  padding: 10px 0 !important;
  font-weight: 600 !important;
  color: #777 !important;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #1f3e77 !important;
}

.woocommerce-tabs ul.tabs li.active a:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1f3e77;
  display: none;
}

body .woocommerce-tabs .tabs li a::before {
  border-bottom: 2px solid #131a42 !important;
}

/* -----------------------------
     11. RELATED PRODUCTS
     ----------------------------- */
.woocommerce .products ul,
.woocommerce ul.products {
  width: 100%;
}

section.related.products ul.products {
  grid-template-columns: repeat(1, 1fr);
}

/* -----------------------------
     12. WOOCOMMERCE NOTICES
     ----------------------------- */
.woocommerce-notices-wrapper {
  margin: 0;
}

/* Mensajes de éxito */
.woocommerce-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #eef7ee;
  border-top: 0 solid transparent !important;
  border-left: 4px solid #1f3e77;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333;
  font-weight: 500;
  animation: slideIn 0.5s ease-out forwards;
}

/* Mensajes de error */
.woocommerce-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #fef2f2;
  border-top: 0 solid transparent !important;
  border-left: 4px solid #dc2626;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333;
  font-weight: 500;
  animation: slideIn 0.5s ease-out forwards;
  margin: 0;
  margin-bottom: 1rem;
  list-style: none;
}

/* Elementos li dentro de los errores */
.woocommerce-error li {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dc2626;
  font-weight: 500;
}

/* Mensajes de aviso/info */
.woocommerce-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #eff6ff;
  border-top: 0 solid transparent !important;
  border-left: 4px solid #3b82f6;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333;
  font-weight: 500;
  animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botones dentro de los mensajes */
.woocommerce-message .button.wc-forward,
.woocommerce-error .button.wc-forward,
.woocommerce-info .button.wc-forward {
  background-color: #1f3e77 !important;
  color: white !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  border-color: white !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-left: 0;
  margin-top: 12px;
  align-self: flex-end;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(30, 45, 125, 0.2) !important;
}

.woocommerce-message .button.wc-forward:hover,
.woocommerce-error .button.wc-forward:hover,
.woocommerce-info .button.wc-forward:hover {
  background-color: #131a42;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 45, 125, 0.25);
}

/* Botón específico para errores (opcional - color rojo) */
.woocommerce-error .button.wc-forward {
  background-color: #dc2626 !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

.woocommerce-error .button.wc-forward:hover {
  background-color: #b91c1c;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

/* -----------------------------
     13. IMAGE ZOOM FEATURES
     ----------------------------- */
.drift-zoom-pane {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 5px;
}

.fancybox__container {
  z-index: 9999;
}

.fancybox__toolbar {
  background: rgba(0, 0, 0, 0.7);
}

.fancybox__nav {
  color: #fff;
}

/* -----------------------------
     14. RESPONSIVE STYLES - TABLET
     ----------------------------- */
@media (min-width: 552px) {
  section.related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {

  p.price>span:nth-child(1)>bdi:nth-child(1) {
    font-size: 24px;
    text-align: left;
  }

  .woocommerce-tabs ul.tabs li.active a:after {
    display: block;
  }

  .woocommerce-message {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .woocommerce-message .button.wc-forward {
    margin-left: 15px;
    margin-top: 0;
  }
}

/* -----------------------------
     15. RESPONSIVE STYLES - DESKTOP
     ----------------------------- */
@media (min-width: 875px) {
  .thunk-single-product-summary-wrap {
    flex-direction: row;
    justify-content: left;
  }
}

@media (min-width: 1024px) {
  .woocommerce div.product .product_title {
    margin-top: 0;
    font-size: 28px;
  }

  section.related.products ul.products {
    grid-template-columns: repeat(4, 1fr);
  }

  .woocommerce #content div.product div.summary,
  .woocommerce div.product div.summary,
  .woocommerce-page #content div.product div.summary,
  .woocommerce-page div.product div.summary {
    width: 40% !important;
  }

  .thunk-single-product-summary-wrap * {
    text-align: left;
  }

  .woo-variation-swatches.wvs-show-label .variations td,
  .woo-variation-swatches.wvs-show-label .variations th {
    text-align: left;
  }

  .woocommerce div.product form.cart> :not(.quantity):not(.single_add_to_cart_button) {
    margin: 0 !important;
    width: auto !important;
  }

  .carousel-container {
    width: 50%;
    height: 40dvh;
  }

  .flex-control-thumbs,
  .woocommerce div.product div.images .flex-control-thumbs {
    max-height: 600px;
    overflow-y: auto !important;
    overflow-x: hidden;
  }

  .variation-images-list {
    justify-content: flex-start;
  }
}


/*
  RELATED PRODUCTS
*/


/* woocommerce.min.css | http://localhost/hws-2/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.min.css?ver=2.5.0-alpha.1 */

.woocommerce .related ul.products li.product a img,
.woocommerce .up-sells ul.products li.product a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.inside-wc-product-image {
  width: 100%;
  height: 200px;
}

/*
    CUSTOM STYLES AND FIXES

*/

/* woocommerce.css | http://localhost/hws-2/wp-content/plugins/woocommerce/assets/css/woocommerce.css?ver=9.7.1 */

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  width: 100%;
  height: 100%;
}

.woocommerce-variation.single_variation .price * {
  font-size: 19px;
  text-align: center;
}


.label {
  display: block;
}

/* Elemento | https://shop-dev.houstonwallpapering.com/product/tooting-sandstorm/ */

.variations>tbody:nth-child(1)>tr:nth-child(1) {
  display: block;
}

/* product.css | https://shop-dev.houstonwallpapering.com/wp-content/themes/thread/assets/css/product.css?ver=1.4.1 */

.variations label {
  margin-bottom: 0px;
}