/*
===========================================
PRODUCT PAGE STYLES - Craft Master Growlers
===========================================
Optimized for conversion with better visual hierarchy,
trust signals, and mobile responsiveness
*/

/* ==========================================
   PRODUCT PAGE LAYOUT
   ========================================== */

#main-product-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.product-area {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}

/* Product Title */
.product_title.entry-title {
    font-size: 32px;
    font-weight: 600;
    color: #293227;
    margin: 0 0 15px 0;
    line-height: 1.3;
    grid-column: 1 / -1;
}

/* Glass Set Size Badge */
.tupac {
    background: #e0a20f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    grid-column: 1 / -1;
}

/* ==========================================
   PRODUCT IMAGE GALLERY
   ========================================== */

.prime-woo-image {
    position: relative;
}

.woocommerce-product-gallery {
    margin-bottom: 20px;
}

.woocommerce-product-gallery__wrapper {
    position: relative;
}

/* Gallery Navigation Arrows - Make them more visible */
.woocommerce-product-gallery .flex-prev,
.woocommerce-product-gallery .flex-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(41, 50, 39, 0.8) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce-product-gallery .flex-prev:hover,
.woocommerce-product-gallery .flex-next:hover {
    background: rgba(41, 50, 39, 0.95) !important;
    transform: scale(1.1);
}

/* Thumbnails */
.woocommerce-product-gallery ol.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.woocommerce-product-gallery ol.flex-control-thumbs li {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.woocommerce-product-gallery ol.flex-control-thumbs li:hover,
.woocommerce-product-gallery ol.flex-control-thumbs li.flex-active {
    border-color: #e0a20f;
}

/* ==========================================
   PRODUCT SUMMARY / OPTIONS AREA
   ========================================== */

.summary.entry-summary {
    padding: 0;
}

/* ==========================================
   PRICING - MAKE IT PROMINENT!
   ========================================== */

/* Hide default price ONLY in summary at top (not in variation area) */
.summary > .price:not(.woocommerce-variation-price):not(.product-price) {
    display: none !important;
}

/* Simple Product Price Container */
.product-price {
    margin: 20px 0 !important;
    padding: 20px !important;
    background: #f8f8f8 !important;
    border-radius: 8px !important;
    border-left: 4px solid #e0a20f !important;
    display: block !important;
}

.product-price .price-title {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
}

/* Variation Price Display - Make this flex to align children horizontally */
.woocommerce-variation-price {
    padding: 20px !important;
    background: #f8f8f8 !important;
    border-radius: 8px !important;
    border-left: 4px solid #e0a20f !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-variation-price .price-title {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
}

/* FIXED: Price on one line - make the price div flex */
.woocommerce-variation-price > .price,
.product-price > .price {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

/* The nested span.price inside should also be flex */
.woocommerce-variation-price .price span.price,
.product-price .price span.price {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

/* Make sure del and ins are inline-flex */
.woocommerce-variation-price .price del,
.woocommerce-variation-price .price ins,
.product-price .price del,
.product-price .price ins {
    display: inline-flex !important;
    align-items: center !important;
}

/* Current Price - BIG and BOLD */
.woocommerce-variation-price .price ins,
.woocommerce-variation-price .price ins .woocommerce-Price-amount,
.product-price .price ins,
.product-price .price ins .woocommerce-Price-amount {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #293227 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Also target amount directly for simple products */
.woocommerce-variation-price .price > .woocommerce-Price-amount,
.product-price .price > .woocommerce-Price-amount {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #293227 !important;
    line-height: 1.2 !important;
}

/* Strikethrough Price - Smaller */
.woocommerce-variation-price .price del,
.product-price .price del {
    font-size: 24px !important;
    color: #999 !important;
    margin-right: 0 !important;
    opacity: 0.8 !important;
}

.woocommerce-variation-price .price del .woocommerce-Price-amount,
.product-price .price del .woocommerce-Price-amount {
    font-size: 24px !important;
    color: #999 !important;
}

/* ==========================================
   SELECT OPTIONS SECTION
   ========================================== */

.variation-title {
    background: #293227;
    color: #f3f3f3;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}

.variations_form.cart {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 30px;
}

.variation-table {
    padding: 20px;
    background: #fff;
}

.variations {
    width: 100%;
    border-collapse: separate;

}

.variations tr {
    margin-bottom: 15px;
}

.variations .label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 10px 15px 10px 0;
    vertical-align: middle;
    width: 30%;
}

.variations .value {
    padding: 10px 0;
    vertical-align: middle;
}

.variations select {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.variations select:hover,
.variations select:focus {
    border-color: #e0a20f;
    outline: none;
}

.variations .reset_variations {
    color: #e0a20f;
    font-size: 16px;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
}

.variations .reset_variations:hover {
    text-decoration: underline;
}

/* ==========================================
   ADD-ONS / CUSTOMIZATION OPTIONS
   ========================================== */

/* Product Add-ons Container */
.woocommerce-product-addons-container {
    background: #fffbd8;
    border: 2px solid #e0a20f;
    border-radius: 6px;
    padding: 25px;
    margin: 25px 0;
}

.woocommerce-product-addons-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #293227;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0a20f;
}

.woocommerce-product-addons-container .product-addon {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

.woocommerce-product-addons-container .product-addon:last-child {
    margin-bottom: 0;
}

/* Add-on Labels */
.woocommerce-product-addons-container label {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Add-on Price */
.woocommerce-product-addons-container .addon-price {
    color: #e0a20f;
    font-weight: 600;
    font-size: 16px;
}

/* Checkboxes */
.woocommerce-product-addons-container input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #e0a20f;
}

/* Text Inputs */
.woocommerce-product-addons-container input[type="text"],
.woocommerce-product-addons-container textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'roboto-regular', sans-serif;
    transition: border-color 0.2s;
}

.woocommerce-product-addons-container input[type="text"]:focus,
.woocommerce-product-addons-container textarea:focus {
    border-color: #e0a20f;
    outline: none;
}

/* File Upload */
.woocommerce-product-addons-container input[type="file"] {
    margin-top: 10px;
    padding: 10px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 4px;
    width: 100%;
}

.woocommerce-product-addons-container .addon-description {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* ==========================================
   QUANTITY & ADD TO CART
   ========================================== */

.single_variation_wrap {
    padding: 0px 20px;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.woocommerce-variation-add-to-cart,
.simple-quantity-checkout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.quantity-checkout-mix{
    display:flex;
    column-gap:40px;
}


/* Quantity Selector */
.quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 !important;
}

.quantity label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.quantity input[type="number"] {
    width: 100px;
    height: 50px;
    padding: 10px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.quantity input[type="number"]:focus {
    border-color: #e0a20f;
    outline: none;
}

/* Add to Cart Button - PROMINENT */
.single_add_to_cart_button {
    background: #e0a20f !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    padding: 18px 40px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(224, 162, 15, 0.3);
}

.single_add_to_cart_button:hover {
    background: #ecab0f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(224, 162, 15, 0.4);
}

.single_add_to_cart_button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================
   TRUST SIGNALS / BADGES
   ========================================== */

.product-trust-signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 6px;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.trust-signal::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================
   PRODUCT META (SKU, Categories, etc.)
   ========================================== */

.product_meta {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
    font-size: 15px;
    color: #666;
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
    display: block;
    margin: 8px 0;
}

.product_meta a {
    color: #e0a20f;
    text-decoration: none;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* ==========================================
   PRODUCT TABS
   ========================================== */

.woocommerce-tabs {
    margin: 50px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f8f8;
    border-radius: 6px 6px 0 0;
}

.woocommerce-tabs ul.tabs li {
    flex: 1;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 20px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 1px solid #e0e0e0;
}

.woocommerce-tabs ul.tabs li:last-child a {
    border-right: none;
}

.woocommerce-tabs ul.tabs li.active a {
    background: #fff;
    color: #293227;
    border-bottom: 3px solid #e0a20f;
}

.woocommerce-tabs ul.tabs li a:hover {
    background: #fff;
    color: #293227;
}

.woocommerce-tabs .panel {
    padding: 30px;
}

.woocommerce-tabs .panel h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #293227;
}

/* ==========================================
   RELATED / UPSELL PRODUCTS
   ========================================== */

.related.products,
.upsells.products {
    margin: 50px 0;
}

.related h2,
.upsells h2 {
    font-size: 28px;
    font-weight: 600;
    color: #293227;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e0a20f;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media screen and (max-width: 900px) {
    .product-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product_title.entry-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    #main-product-info {
        padding: 15px;
    }

    .product-area {
        grid-template-columns: 1fr;
    }

    /* Make product title visible at top on mobile */
    .product_title.entry-title {
        order: -2;
        font-size: 26px;
    }

    .tupac {
        order: -1;
    }

    /* Stack variation table vertically on mobile */
    .variations .label,
    .variations .value {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .variations .label {
        font-weight: 600;
        margin-bottom: 5px;
    }

    /* Pricing on mobile */
    .woocommerce-variation-price .price ins,
    .woocommerce-variation-price .price .woocommerce-Price-amount {
        font-size: 30px !important;
    }

    .woocommerce-variation-price .price del {
        font-size: 20px !important;
    }

    /* Full width button on mobile */
    .single_add_to_cart_button {
        width: 100%;
        font-size: 20px !important;
    }

    /* Trust signals stack on mobile */
    .product-trust-signals {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media screen and (max-width: 660px) {
    .product_title.entry-title {
        font-size: 24px;
        text-align: center;
    }

    .variation-title {
        font-size: 18px;
        text-align: center;
    }

    .variations .label {
        font-size: 16px;
    }

    .variations select {
        font-size: 16px;
    }

    /* Sticky Add to Cart on small mobile */
    .woocommerce-variation-add-to-cart {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 15px;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
        margin: 0 -15px;
        z-index: 10;
    }
}

/* ==========================================
   OUT OF STOCK
   ========================================== */

.out-of-stock {
    background: #fee;
    color: #c33;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #c33;
    font-weight: 600;
    margin: 20px 0;
}

/* ==========================================
   LOADING / DISABLED STATE
   ========================================== */

.single_variation_wrap.loading {
    opacity: 0.6;
    pointer-events: none;
}

.reset_variations {
    display: inline-block;
    margin-top: 10px;
    color: #e0a20f;
    text-decoration: none;
    font-weight: 500;
}

.reset_variations:hover {
    text-decoration: underline;
}