
/* ================================
   Product Page Background
================================ */
.drxe-product-page {
    background:
      linear-gradient(rgba(245,241,233,0.88), rgba(245,241,233,0.88)),
      url('../../assets/images/home/cat-protein.jpg'); /* same as home */
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-top: 20px;  /* space for fixed header */
    padding-bottom: 10px; 
}

/* ================================
   Section Demarcation
================================ */
.drxe-section {
    padding: 20px 0;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.08); /* subtle top line */
}

/* Optional gradient line between sections */
.drxe-section:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
}

/* Inner content max-width */
.drxe-section > * {
    max-width: 1200px;
    margin: 0 auto;
}

/* Maintain spacing inside product container */
.drxe-product-container {
    gap: 30px;
}

/* ================================
   Product Details Subsections
================================ */
.drxe-product-details .drxe-details-block {
    background: rgba(255, 255, 255, 0.65); /* slightly transparent to blend with page bg */
    padding: 30px 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
}

/* Section titles inside details */
.drxe-product-details .drxe-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
}

/* ================================
   Layout
================================ */

.drxe-product-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    align-items: flex-start;
}

.drxe-product-left {
    width: 50%;
}

.drxe-product-right {
    width: 50%;
}

.drxe-product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.drxe-short-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.drxe-product-container {
    padding-top: 40px; /* add padding top so content starts below fixed header */
}

/* ================================
   Hide Woo Default UI
================================ */

/* Hide variation dropdown table */
.woocommerce div.product form.cart table.variations {
    display: none !important;
}

/* Hide dropdown selects */
.variations select {
    display: none !important;
}

/* Hide price everywhere */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-variation-price,
.single_variation_wrap {
    display: none !important;
}

/* Hide quantity input */
.quantity {
    display: none !important;
}

/* Hide Add to Cart */
.single_add_to_cart_button {
    display: none !important;
}


/* ================================
   Custom Attribute Buttons
================================ */

.drxe-attribute-group {
    margin-bottom: 25px;
}

.drxe-attribute-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}


/* =========================
   RFQ MODAL PRO VERSION
========================= */

.drxe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.drxe-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bigger, professional modal */
.drxe-modal {
    background: #fff;
    width: 680px;              /* reduced from 680px */
    max-width: 90%;
    max-height: 65vh;          /* reduced height */
    overflow-y: auto;
    padding: 35px;             /* slightly reduced padding */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
}

/* Header */
.drxe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.drxe-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.drxe-modal-close {
    font-size: 22px;
    cursor: pointer;
}

/* Section spacing */
.drxe-rfq-section {
    margin-bottom: 35px;
}

.drxe-rfq-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

/* Highlight selected product */
.drxe-highlight-box {
    background: #f6f6f6;
    padding: 18px;
    border-radius: 6px;
    font-size: 14px;
}

/* Two column grid */
.drxe-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px; /* increased spacing */
}

.drxe-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.drxe-rfq-section {
    margin-bottom: 45px;
}

/* Labels */
.drxe-modal label {
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

/* Inputs */
.drxe-modal input,
.drxe-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect */
.drxe-modal input:focus,
.drxe-modal textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Submit button */
.drxe-submit-btn {
    width: 100%;
    padding: 15px;
    background: #A82AAE;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.drxe-submit-btn:hover {
    opacity: 0.9;
}

/* RFQ button */
.drxe-rfq-btn {
    margin-top: 25px;
    padding: 13px 22px;
    background: #A82AAE;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.drxe-rfq-btn:hover {
    opacity: 0.9;
}

.drxe-rfq-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.drxe-rfq-note {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
    color: #666;
}

.drxe-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 13px;
}

.drxe-step {
    opacity: 0.4;
    font-weight: 500;
}

.drxe-step.active {
    opacity: 1;
    border-bottom: 2px solid #000;
    padding-bottom: 4px;
}

.drxe-modal input::placeholder {
    color: #999;
    font-size: 13px;
}


/* Responsive */
@media (max-width: 768px) {
    .drxe-grid-2 {
        grid-template-columns: 1fr;
    }

    .drxe-modal {
        padding: 25px;
    }
}
/* ================================
   Responsive
================================ */

@media (max-width: 992px) {
    .drxe-product-container {
        flex-direction: column;
        gap: 40px;
    }

    .drxe-product-left,
    .drxe-product-right {
        width: 100%;
    }
}

/* Hide Quantity Section Completely */
h4:has(+ .drxe-btn-group) {
    display: none !important;
}

.drxe-btn-group {
    display: none !important;
}

/* =====================================
   WOO PRODUCT GALLERY - STABLE VERSION
===================================== */

/* Layout: thumbnails left, image right */
.drxe-product-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Keep Woo internal structure untouched */
.drxe-product-left .woocommerce-product-gallery {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    width: 100%;
}

/* Remove zoom icon */
.woocommerce-product-gallery__trigger {
    display: none !important;
}


/* =====================================
   MAIN IMAGE AREA
===================================== */



.woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
}

.woocommerce-product-gallery__image {
    background: rgba(245,241,233,0.6); /* match page bg */
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 450px;
    border-radius: 8px;
}

.woocommerce-product-gallery__image img {
    max-width: 500px;
    max-height: 100%;
    object-fit: contain;           /* no crop */
}

/* =====================================
   THUMBNAILS (LEFT SIDE)
===================================== */

.flex-control-thumbs {
    width: 90px !important;        /* thumbnail column width */
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    margin: 0 15px 0 0 !important;
    list-style: none;
}

/* Keep Woo JS structure intact */
.flex-control-thumbs li {
    width: 95% !important;
    float: none !important;
    margin-bottom: 10px !important;
}

.flex-control-thumbs img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.2s ease;
    background: rgba(245,241,233,0.6); /* blended with page */
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs .flex-active {
    border: 1px solid #000;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .drxe-product-left {
        flex-direction: column;
    }

    .drxe-product-left .woocommerce-product-gallery {
        flex-direction: column;
    }

    .flex-control-thumbs {
        width: 100% !important;
        display: flex;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 10px 0 0 0 !important;
    }

    .flex-control-thumbs li {
        width: 70px !important;
        margin: 0 8px 0 0 !important;
    }
}

/* ================================
   Product details modal styling
================================ */

.drxe-product-details {
    margin-top: 60px;
}

.drxe-details-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.drxe-details-block {
    margin-bottom: 50px;
}

.drxe-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.drxe-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.drxe-spec-table th,
.drxe-spec-table td {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    text-align: left;
}

.drxe-spec-table th {
    width: 30%;
    font-weight: 600;
    color: #222;
}

.drxe-spec-table td {
    color: #555;
}

/* product certifications */

.drxe-product-certifications {
    margin: 80px auto;
    max-width: 1200px;
}

.drxe-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.drxe-cert-item {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drxe-cert-img {
    height: 70px;          /* uniform logo height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.drxe-cert-img img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.drxe-cert-item span {
    display: block;
    font-size: 13px;
    color: #444;
}

.drxe-cert-item:hover {
    border-color: #000;
}

/*product recommendations */

.drxe-related-products {
    margin: 80px auto;
    max-width: 1200px;
}

.drxe-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.drxe-related-card {
    border: 1px solid rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.65); /* slightly transparent to blend with page bg */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drxe-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.drxe-related-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.drxe-related-img img {
    max-height: 160px;
    object-fit: contain;
}

.drxe-related-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.drxe-related-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #000;
    font-size: 13px;
}

/* Compact country selector */
.drxe-phone-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.drxe-phone-group select {
    width: 90px;              /* small */
    min-width: 80px;
    padding: 10px 6px;
    font-size: 14px;
}

.drxe-phone-group input {
    flex: 1;
    padding: 10px 12px;
}

.drxe-success-box {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 6px;
}

.drxe-page-success {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 14px 20px;
    border-left: 4px solid #2e7d32;
    margin-bottom: 20px;
    font-weight: 500;
    border-radius: 4px;
}

.drxe-success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.drxe-success-modal.active {
    display: flex;
}

.drxe-success-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.drxe-success-content h3 {
    margin-bottom: 10px;
}

.drxe-success-content button {
    margin-top: 15px;
    padding: 8px 20px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}


/* =====================================
TABLET RESPONSIVE
===================================== */

@media (max-width:1024px){

.drxe-product-container{
flex-direction:column;
gap:40px;
padding:0 25px;
}

.drxe-product-left,
.drxe-product-right{
width:100%;
}

.drxe-product-title{
font-size:28px;
}

.woocommerce-product-gallery__image{
height:380px;
}

.flex-control-thumbs{
max-height:380px;
}

/* certifications grid */

.drxe-cert-grid{
grid-template-columns:repeat(3,1fr);
}

/* related products */

.drxe-related-grid{
grid-template-columns:repeat(3,1fr);
}

}

/* =====================================
MOBILE RESPONSIVE
===================================== */

@media (max-width:768px){

.drxe-product-container{
margin:40px auto;
padding:0 18px;
}

/* title */

.drxe-product-title{
font-size:24px;
}

/* description */

.drxe-short-description{
font-size:14px;
}

/* gallery */

.woocommerce-product-gallery__image{
height:320px;
}

.woocommerce-product-gallery__image img{
max-width:100%;
}

/* thumbnails */

.flex-control-thumbs{
width:100%!important;
display:flex;
flex-direction:row;
overflow-x:auto;
margin-top:12px!important;
}

.flex-control-thumbs li{
width:70px!important;
margin-right:8px!important;
}

/* attribute buttons */

.drxe-btn{
font-size:13px;
padding:7px 12px;
}

/* RFQ button */

.drxe-rfq-btn{
width:100%;
}

/* certifications */

.drxe-cert-grid{
grid-template-columns:repeat(2,1fr);
gap:20px;
}

/* related products */

.drxe-related-grid{
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.drxe-related-img{
height:150px;
}

}

/* ================================
   Product Page Background & Sections
================================ */

/* Product page wrapper (matches home page background) */
.drxe-product-container,
.drxe-product-details,
.drxe-related-products,
.drxe-product-certifications {
    background: rgba(245, 241, 233, 0.1); /* light page blend */
    padding: 60px 20px;
    border-radius: 0;
}

/* ================================
   Product Details Subsections
================================ */
.drxe-product-details .drxe-details-block {
    background: rgba(255, 255, 255, 0.85); /* subtle white for readability */
    padding: 30px 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
}

/* Section titles inside details */
.drxe-product-details .drxe-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
}

/* ================================
   Main Product Gallery
================================ */
.woocommerce-product-gallery__image {
    background: rgba(245, 241, 233, 0.6); /* page blended */
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 450px;
    border-radius: 8px;
}

/* Main product image */
.woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* no crop */
}

/* ================================
   Thumbnails
================================ */
.flex-control-thumbs img {
    background: rgba(245, 241, 233, 0.6);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    transition: 0.2s ease;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs .flex-active {
    border: 1px solid #000;
}

/* ================================
   Related Products Cards
================================ */
.drxe-related-card {
    border: 1px solid rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drxe-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Related images */
.drxe-related-img {
    background: rgba(245, 241, 233, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   Certifications
================================ */
.drxe-cert-item {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 25px 15px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.drxe-cert-item:hover {
    border-color: #000;
}

/* Certification image container */
.drxe-cert-img {
    background: rgba(245,241,233,0.4);
    border-radius: 6px;
    padding: 10px;
}

/* ================================
   RFQ & Success Modal (blend)
================================ */
.drxe-modal {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.drxe-success-content {
    background: rgba(255,255,255,0.95);
}

/* ================================
   Responsive Adjustments (optional)
================================ */
@media (max-width: 768px) {
    .drxe-product-details .drxe-details-block {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .drxe-product-gallery__image {
        height: 320px;
    }

    .flex-control-thumbs img {
        width: 70px !important;
        margin-right: 8px !important;
    }

    .drxe-related-card {
        padding: 15px;
    }
}

/* ================================
   DRXE Buttons - Brand Standard
================================ */

/* Attribute / selection buttons */
.drxe-btn,
.drxe-related-btn,
.drxe-rfq-btn,
.drxe-submit-btn {
    background: #A82AAE;
    color: white;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none; /* remove old borders */
    display: inline-block;
    text-align: center;
}

/* Hover / Active effect */
.drxe-btn:hover,
.drxe-btn.active,
.drxe-related-btn:hover,
.drxe-rfq-btn:hover,
.drxe-submit-btn:hover {
    background: #541357; /* darker shade for hover */
    transform: translateY(-2px);
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .drxe-rfq-btn,
    .drxe-submit-btn {
        width: 100%;
        padding: 15px 0;
        font-size: 15px;
    }

    .drxe-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* Small adjustment for related product buttons */
.drxe-related-btn {
    padding: 12px 24px;
    font-size: 13px;
}

/* ================================
   DRXE Attribute Buttons
================================ */

.drxe-attribute-group{
margin-bottom:20px;
}

.drxe-attribute-label{
font-weight:400;
margin-bottom:8px;
display:block;
letter-spacing:.5px;
}

.drxe-btn{

background:#A82AAE;
color:#fff;

display:inline-block; 

padding:8px 14px;

border-radius:8px;

border:none;

font-size:14px;
font-weight:400;

cursor:pointer;

margin:6px 10px 6px 0;

transition:.25s;

display:inline-block;

min-width:140px;

text-align:center;

}

/* hover */

.drxe-btn:hover{

background:#541357;

transform:translateY(-2px);

}

/* selected state */

.drxe-btn.active{

background:#541357;

color:#fff;

}

/* =======================================
RELATED PRODUCTS — MATCH CATEGORY CARDS
(does not touch RFQ or gallery)
======================================= */

.drxe-related-products{
margin:80px auto;
max-width:1200px;
}

/* grid */

.drxe-related-grid{
display:grid;
grid-template-columns:repeat(auto-fit,220px);
gap:80px;
justify-content:flex-start;
margin-top:40px;
}


/* reuse category card design */

.drxe-related-grid .product-card{
width:220px;
background:#1f2026;
border-radius:12px;
overflow:hidden;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
display:flex;
flex-direction:column;
transition:.25s;
}

.drxe-related-grid .product-card:hover{
transform:translateY(-5px);
box-shadow:0 14px 30px rgba(0,0,0,0.25);
}


/* image */

.drxe-related-grid .product-img{
height:160px;
overflow:hidden;
}

.drxe-related-grid .product-img img{
width:100%;
height:100%;
object-fit:cover;
}


/* body */

.drxe-related-grid .product-body{
padding:16px 18px 22px;
display:flex;
flex-direction:column;
color:#fff;
}


/* name */

.drxe-related-grid .product-name{
font-size:18px;
font-weight:700;
line-height:1.3;
min-height:48px;
max-height:48px;
overflow:hidden;

line-clamp:2;

display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
}


/* qty */

.drxe-related-grid .product-qty{
font-size:14px;
color:#bbb;
margin-bottom:16px;
}


/* browse button */

.drxe-related-grid .product-btn{
margin-top:auto;
background:#A82AAE;
padding:12px;
border-radius:6px;
text-align:center;
font-size:13px;
font-weight:600;
color:#fff;
text-decoration:none;
}

.drxe-related-grid .product-btn:hover{
background:#541357;
}

.product-img{
height:160px;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
background:transparent;
}

.product-img img{
width:100%;
height:100%;
object-fit:cover;
}


