/* v0.5.4 – EREXIUM WooCommerce product-page integration for Goya. */
body.erexium-product-page-enhanced .woocommerce-tabs{margin-bottom:0!important}
body.erexium-product-page-enhanced .woocommerce-tabs>.container,
body.erexium-product-page-enhanced .woocommerce-tabs .woocommerce-Tabs-panel--description>.container,
body.erexium-product-page-enhanced .woocommerce-tabs .woocommerce-Tabs-panel--description>.container>.row,
body.erexium-product-page-enhanced .woocommerce-tabs .woocommerce-Tabs-panel--description .tab-panel-inner{
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;
}
body.erexium-product-page-enhanced .woocommerce-tabs .woocommerce-Tabs-panel--description>.container>.row{display:block!important}
body.erexium-product-page-enhanced .woocommerce-tabs .woocommerce-Tabs-panel--description .tab-panel-inner{flex:0 0 100%!important}
body.erexium-product-page-enhanced .woocommerce-tabs .tabs,
body.erexium-product-page-enhanced #tab-description>.container>.row>.tab-panel-inner>h2:first-child,
body.erexium-product-page-enhanced #tab-additional_information,
body.erexium-product-page-enhanced section.related.products,
body.erexium-product-page-enhanced section.up-sells.upsells.products{display:none!important}
body.erexium-product-page-enhanced #tab-description{display:block!important;margin:0!important;padding:0!important}
body.erexium-product-page-enhanced #tab-description .description-inner,
body.erexium-product-page-enhanced #tab-description .wpb-content-wrapper,
body.erexium-product-page-enhanced #tab-description .sec_row.container-fluid,
body.erexium-product-page-enhanced #tab-description .vc_row,
body.erexium-product-page-enhanced #tab-description .vc_column_container,
body.erexium-product-page-enhanced #tab-description .vc_column-inner,
body.erexium-product-page-enhanced #tab-description .wpb_wrapper,
body.erexium-product-page-enhanced #tab-description .wpb_text_column{
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;
}
body.erexium-product-page-enhanced #tab-description .erx-product-story{
  width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
}

/* The Goya “full width” layout still caps the summary internally; keep the purchase area readable,
   but let the showcase itself use the available width. */
body.erexium-product-page-enhanced .et-product-detail.et-product-layout-full-width .product-showcase .showcase-inner{
  width:100%!important;max-width:1480px!important;
}

/* Desktop featured product image: about 20% smaller than the current 720 px source presentation. */
@media(min-width:992px){
  body.erexium-product-page-enhanced .product-showcase .product-gallery-inner{display:flex!important;justify-content:center!important;align-items:center!important}
  body.erexium-product-page-enhanced .product-showcase .woocommerce-product-gallery{width:100%!important}
  body.erexium-product-page-enhanced .product-showcase .woocommerce-product-gallery__image>a{display:flex!important;justify-content:center!important;align-items:center!important}
  body.erexium-product-page-enhanced .product-showcase .woocommerce-product-gallery__image img.wp-post-image,
  body.erexium-product-page-enhanced .product-showcase .woocommerce-product-gallery__image img{
    width:80%!important;max-width:576px!important;height:auto!important;margin:0 auto!important;object-fit:contain!important;
  }
}

/* Cross-product recommendation integrated into the branded product description. */
.erx-ps-recommend{background:radial-gradient(circle at 80% 50%,rgba(232,0,57,.18),transparent 32%),linear-gradient(180deg,#050506,#0b0205)!important}
.erx-ps-recommend-card{display:grid;grid-template-columns:minmax(0,.9fr) minmax(320px,1.1fr);gap:50px;align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:42px 48px;background:linear-gradient(135deg,#0d0d10 0%,#100207 100%);overflow:hidden;position:relative}
.erx-ps-recommend-card:before{content:"";position:absolute;right:-10%;top:-55%;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(235,0,57,.24),transparent 67%);pointer-events:none}
.erx-ps-recommend-copy{position:relative;z-index:2}.erx-ps-recommend-copy .erx-ps-title{font-size:clamp(34px,4vw,62px)}
.erx-ps-recommend-copy p{font-size:18px;color:#d8d2d4;margin:18px 0 0;max-width:620px}
.erx-ps-recommend-price{margin-top:22px;font-size:24px;font-weight:900;color:#fff}.erx-ps-recommend-price del{opacity:.5;font-size:.72em}.erx-ps-recommend-price ins{text-decoration:none;color:#fff}
.erx-ps-recommend-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:24px;padding:15px 24px;border-radius:999px;background:linear-gradient(180deg,#f7db8b,#c89538);color:#080808!important;font-weight:900;font-size:14px;letter-spacing:.02em;text-decoration:none!important;box-shadow:0 12px 30px rgba(182,124,31,.18)}
.erx-ps-recommend-btn:hover{transform:translateY(-1px);color:#000!important}.erx-ps-recommend-btn.is-disabled{opacity:.6}
.erx-ps-recommend-image{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;min-height:280px}.erx-ps-recommend-image img{display:block;max-width:100%;max-height:330px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 28px 34px rgba(0,0,0,.48))}
@media(max-width:980px){.erx-ps-recommend-card{grid-template-columns:1fr;padding:32px 26px;gap:18px}.erx-ps-recommend-image{order:-1;min-height:220px}.erx-ps-recommend-image img{max-height:240px}.erx-ps-recommend-copy{text-align:center}.erx-ps-recommend-copy p{margin-left:auto;margin-right:auto}}
@media(max-width:560px){body.erexium-product-page-enhanced #tab-description .erx-product-story{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}.erx-ps-recommend-card{padding:26px 18px;border-radius:20px}.erx-ps-recommend-copy p{font-size:16px}.erx-ps-recommend-btn{width:100%}}

/* v0.5.6 – product summary, variation pills and finishing fixes. */
body.erexium-product-page-enhanced .site-content{padding-bottom:0!important}
body.erexium-product-page-enhanced .woocommerce-tabs,
body.erexium-product-page-enhanced .woocommerce-tabs>.container,
body.erexium-product-page-enhanced #tab-description,
body.erexium-product-page-enhanced #tab-description>.container{
  margin-bottom:0!important;padding-bottom:0!important;background:#050506!important;
}
body.erexium-product-page-enhanced .woocommerce-tabs + .container,
body.erexium-product-page-enhanced .woocommerce-tabs + section{margin-top:0!important}

/* Table header contrast: Goya's generic table rules must not override the branded table. */
body.erexium-product-page-enhanced .erx-product-story .erx-ps-table thead,
body.erexium-product-page-enhanced .erx-product-story .erx-ps-table thead tr,
body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th{
  background:#18191d!important;color:#fff!important;
}
body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th *,
body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th .mtr-cell-content{color:#fff!important}

/* Short-description block intended for the empty space under the product title/price. */
body.erexium-product-page-enhanced .woocommerce-product-details__short-description{margin-top:20px!important;max-width:620px}
.erx-shortdesc{font-family:Lato,Arial,sans-serif;color:#282828;max-width:620px}
.erx-shortdesc-copy{margin:0!important;font-size:16px;line-height:1.62;color:#555!important}
.erx-shortdesc-trust{display:flex;flex-wrap:wrap;gap:9px 10px;margin-top:18px}
.erx-shortdesc-trust-item{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 11px;border:1px solid rgba(40,40,40,.13);border-radius:999px;background:#faf8f3;color:#38332c;font-size:12px;font-weight:700;line-height:1.15;white-space:nowrap}
.erx-shortdesc-trust-item svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:#b78a33;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Replace the native variation dropdown visually with landing-page style package buttons. */
body.erexium-product-page-enhanced .variations_form .erx-native-variation-select{
  position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;padding:0!important;margin:-1px!important;
}
body.erexium-product-page-enhanced .variations_form .erx-variation-pills{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0}
body.erexium-product-page-enhanced .variations_form .erx-variation-pill{
  min-width:84px;height:42px;padding:0 18px;border-radius:999px;border:1px solid #b99042;background:#fff;color:#30271b;font:800 14px/1 Lato,Arial,sans-serif;cursor:pointer;box-shadow:none;transition:.18s ease;
}
body.erexium-product-page-enhanced .variations_form .erx-variation-pill:hover{border-color:#c99b42;background:#fffaf0;transform:translateY(-1px)}
body.erexium-product-page-enhanced .variations_form .erx-variation-pill.is-active{
  background:linear-gradient(180deg,#f4d68d,#c5953f);border-color:#c79a45;color:#140d06;box-shadow:0 7px 20px rgba(184,137,48,.18)
}
body.erexium-product-page-enhanced .variations_form .erx-variation-pill:disabled{opacity:.4;cursor:not-allowed;transform:none}
body.erexium-product-page-enhanced .variations_form .reset_variations{display:none!important}

/* Main and sticky add-to-cart buttons use the same gold language as the landing page. */
body.erexium-product-page-enhanced .et-product-detail .single_add_to_cart_button,
body.erexium-product-page-enhanced .sticky-product-bar .single_add_to_cart_button,
body.erexium-product-page-enhanced .sticky-product-bar .add_to_cart_button{
  background:linear-gradient(180deg,#f4d68d,#bf9140)!important;
  color:#130b08!important;
  border:1px solid rgba(185,135,46,.55)!important;
  border-radius:999px!important;
  font-weight:900!important;
  box-shadow:0 10px 26px rgba(194,144,50,.16)!important;
}
body.erexium-product-page-enhanced .et-product-detail .single_add_to_cart_button:hover,
body.erexium-product-page-enhanced .sticky-product-bar .single_add_to_cart_button:hover,
body.erexium-product-page-enhanced .sticky-product-bar .add_to_cart_button:hover{filter:brightness(1.035);transform:translateY(-1px)}

/* Keep quantity and package choices visually coherent. */
body.erexium-product-page-enhanced .summary .variations td.value{vertical-align:middle!important}
body.erexium-product-page-enhanced .summary .variations th.label{padding-right:18px!important}

@media(max-width:991px){
  body.erexium-product-page-enhanced .woocommerce-product-details__short-description{max-width:none}
  .erx-shortdesc-copy{font-size:15px}.erx-shortdesc-trust{gap:8px}.erx-shortdesc-trust-item{font-size:11px;padding:6px 9px}
  body.erexium-product-page-enhanced .variations_form .erx-variation-pill{min-width:76px;height:40px;padding:0 15px;font-size:13px}
}


/* v0.5.16 – compact mobile purchase area + robust branded table rendering. */
.erx-withdrawal-float{display:none!important}
@media(max-width:767px){
body.erexium-product-page-enhanced .product-showcase{padding-top:14px!important;padding-bottom:20px!important}body.erexium-product-page-enhanced .product-showcase .showcase-inner{padding-left:18px!important;padding-right:18px!important}body.erexium-product-page-enhanced .product-showcase .woocommerce-product-gallery__image img.wp-post-image,body.erexium-product-page-enhanced .product-showcase .woocommerce-product-gallery__image img{max-height:285px!important;width:auto!important;max-width:90%!important;object-fit:contain!important;margin:0 auto!important}
body.erexium-product-page-enhanced .summary{padding-top:16px!important;padding-bottom:16px!important}body.erexium-product-page-enhanced .summary .product_title{font-size:38px!important;line-height:1.04!important;margin:0 0 10px!important}body.erexium-product-page-enhanced .summary>p.price,body.erexium-product-page-enhanced .summary .price{font-size:20px!important;line-height:1.2!important;margin:0 0 14px!important}body.erexium-product-page-enhanced .woocommerce-product-details__short-description{margin-top:12px!important;margin-bottom:14px!important}.erx-shortdesc-copy{font-size:14px!important;line-height:1.48!important}.erx-shortdesc-trust{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:10px!important}.erx-shortdesc-trust-item{min-width:0!important;min-height:28px!important;padding:4px 6px!important;gap:5px!important;font-size:9.8px!important;line-height:1.12!important;white-space:normal!important;justify-content:flex-start!important}.erx-shortdesc-trust-item svg{width:13px!important;height:13px!important;flex-basis:13px!important}
body.erexium-product-page-enhanced .summary form.variations_form{margin-top:10px!important}body.erexium-product-page-enhanced .summary table.variations{width:100%!important;margin:0 0 10px!important;display:table!important}body.erexium-product-page-enhanced .summary table.variations tbody{display:table-row-group!important}body.erexium-product-page-enhanced .summary table.variations tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;width:100%!important}body.erexium-product-page-enhanced .summary table.variations th.label,body.erexium-product-page-enhanced .summary table.variations td.value{display:block!important;width:auto!important;padding:0!important;border:0!important}body.erexium-product-page-enhanced .summary table.variations th.label{font-size:13px!important;line-height:1.2!important;padding-right:2px!important}body.erexium-product-page-enhanced .variations_form .erx-variation-pills{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;justify-content:flex-end!important}body.erexium-product-page-enhanced .variations_form .erx-variation-pill{min-width:70px!important;height:36px!important;padding:0 9px!important;font-size:11.5px!important;white-space:nowrap!important}
body.erexium-product-page-enhanced .single_variation_wrap{margin-top:4px!important}body.erexium-product-page-enhanced .single_variation_wrap .woocommerce-variation-price{margin:0 0 9px!important}body.erexium-product-page-enhanced .single_variation_wrap .woocommerce-variation-price .price{font-size:27px!important;margin:0!important}body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart,body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart.variations_button{display:grid!important;grid-template-columns:102px minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important;width:100%!important}body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart .quantity{width:102px!important;min-width:102px!important;height:48px!important;margin:0!important}body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart .quantity input,body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart .quantity button,body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart .quantity .minus,body.erexium-product-page-enhanced .woocommerce-variation-add-to-cart .quantity .plus{height:48px!important}body.erexium-product-page-enhanced .et-product-detail .single_add_to_cart_button{width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;margin:0!important;padding:0 12px!important;font-size:12.5px!important}
body.erexium-product-page-enhanced .erx-product-story .erx-ps-table-wrap{overflow-x:auto!important;overflow-y:hidden!important;background:#09090b!important;-webkit-overflow-scrolling:touch}body.erexium-product-page-enhanced .erx-product-story table.erx-ps-table{display:table!important;width:100%!important;min-width:700px!important;table-layout:auto!important;background:#09090b!important;border-collapse:collapse!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table thead{display:table-header-group!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table tbody{display:table-row-group!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table tr{display:table-row!important;background:transparent!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table tbody tr:nth-child(odd){background:rgba(255,255,255,.025)!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th,body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td{display:table-cell!important;position:static!important;width:auto!important;float:none!important;clear:none!important;text-align:left!important;padding:13px 14px!important;background:transparent!important;color:#ece8e9!important;vertical-align:middle!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th{background:#18191d!important;color:#fff!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th:nth-child(2),body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th:nth-child(3),body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:nth-child(2),body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:nth-child(3){text-align:right!important;white-space:nowrap!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table .mtr-cell-label{display:none!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table .mtr-cell-content{display:block!important;color:inherit!important;padding:0!important;margin:0!important}body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:before,body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:after{display:none!important;content:none!important}
}


/* v0.5.18 – mobile variation emphasis, compact ingredient table, carousel typography polish */
@media(max-width:767px){
  /* Variation buttons: clearly visible as the primary package selector. */
  body.erexium-product-page-enhanced .variations_form .erx-variation-pills{
    gap:9px!important;
  }
  body.erexium-product-page-enhanced .variations_form .erx-variation-pill{
    min-width:88px!important;
    height:42px!important;
    padding:0 15px!important;
    border:2px solid #c79a45!important;
    background:#fff9ea!important;
    color:#5b431a!important;
    font-size:12.5px!important;
    font-weight:900!important;
    box-shadow:0 3px 10px rgba(174,124,32,.10)!important;
  }
  body.erexium-product-page-enhanced .variations_form .erx-variation-pill.is-active{
    background:linear-gradient(180deg,#f7dd96 0%,#d2a84f 100%)!important;
    color:#160d05!important;
    border-color:#b8862c!important;
    box-shadow:0 0 0 3px rgba(205,158,66,.18),0 9px 20px rgba(161,111,24,.20)!important;
  }

  /* Ingredient table: show all three columns immediately on a phone.
     Long ingredient names wrap instead of forcing a huge first column. */
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table-wrap{
    overflow-x:hidden!important;
    width:100%!important;
  }
  body.erexium-product-page-enhanced .erx-product-story table.erx-ps-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th,
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td{
    padding:9px 7px!important;
    font-size:11px!important;
    line-height:1.28!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th:nth-child(1),
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:nth-child(1){width:58%!important;text-align:left!important;}
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th:nth-child(2),
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:nth-child(2){width:27%!important;text-align:right!important;white-space:normal!important;}
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table th:nth-child(3),
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table td:nth-child(3){width:15%!important;text-align:right!important;white-space:normal!important;}
  body.erexium-product-page-enhanced .erx-product-story .erx-ps-table thead th{
    font-size:10px!important;
    line-height:1.15!important;
    letter-spacing:.01em!important;
  }
}


/* v0.5.24 – mobile cart row + final carousel-related product polish */
@media(max-width:767px){
  /* Goya can shrink single_variation_wrap to the natural width of the quantity control.
     Force the whole purchase row to use the available summary width. */
  body.erexium-product-page-enhanced .summary .single_variation_wrap,
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart,
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart.variations_button{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
    max-width:none!important;
    float:none!important;
    clear:both!important;
    box-sizing:border-box!important;
  }
  body.erexium-product-page-enhanced .summary .single_variation_wrap{
    display:block!important;
  }
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart .quantity{
    flex:0 0 104px!important;
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    height:50px!important;
    margin:0!important;
    float:none!important;
  }
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart .quantity input,
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart .quantity button,
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart .quantity .minus,
  body.erexium-product-page-enhanced .summary .woocommerce-variation-add-to-cart .quantity .plus{
    height:50px!important;
  }
  body.erexium-product-page-enhanced .summary .single_add_to_cart_button,
  body.erexium-product-page-enhanced .summary button.single_add_to_cart_button,
  body.erexium-product-page-enhanced .summary .variations_button .single_add_to_cart_button{
    flex:1 1 auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    min-height:50px!important;
    height:50px!important;
    margin:0!important;
    padding:0 14px!important;
    float:none!important;
    clear:none!important;
    white-space:nowrap!important;
    line-height:50px!important;
    font-size:13px!important;
    border-radius:999px!important;
    box-sizing:border-box!important;
  }
}
