/* ITIDA — product-page polish, loaded only for verified pack families. */

@media (min-width: 992px) {
    body.single-product .woocommerce div.product .summary {
        box-sizing: border-box;
        padding: 24px 26px 26px;
        background: #fff;
        border: 1px solid #e9e4e0;
        border-radius: 16px;
        box-shadow: 0 8px 26px rgba(36, 29, 23, .055);
    }
    body.single-product .woocommerce div.product .summary form.cart {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
        background: #faf8f6;
        border: 1px solid #eee6e0;
        border-radius: 13px;
    }
    body.single-product .woocommerce div.product .summary form.cart .single_add_to_cart_button,
    body.single-product .woocommerce div.product .summary form.cart .custom-buy-now-btn {
        flex: 1 1 180px;
        text-align: center;
    }
}

/* Breadcrumb: slightly larger, as requested. */
body.single-product .woocommerce-breadcrumb {
    font-size: 15px !important;
    line-height: 1.65;
    font-weight: 550;
    margin-bottom: 15px;
}

/* Sticky product gallery on desktop. Native page scroll moves the details;
   when the product-summary area ends the original tabs follow normally. */
@media (min-width: 992px) {
    body.single-product .woocommerce div.product div.woocommerce-product-gallery,
    body.single-product .woocommerce div.product .woocommerce-product-gallery {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 96px !important;
        align-self: flex-start;
    }
}
@media (max-width: 991px) {
    body.single-product .woocommerce div.product div.woocommerce-product-gallery,
    body.single-product .woocommerce div.product .woocommerce-product-gallery {
        position: static !important;
        top: auto !important;
    }
}
/* Ensure normal WooCommerce tab flow is preserved. */
body.single-product .woocommerce-tabs { clear: both; }

/* Real-link pack variants (each is still a separate WooCommerce product). */
body.single-product .itida-ppr-pack-picker {
    margin: 14px 0 18px;
    font-family: inherit;
    clear: none;
}
body.single-product .itida-ppr-pack-heading {
    font-size: 14px;
    font-weight: 750;
    color: #252525;
    margin: 0 0 9px;
}
body.single-product .itida-ppr-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
body.single-product .itida-ppr-pack-button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1px;
    min-height: 62px;
    padding: 8px 19px 8px 7px;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid #d7d9dd;
    border-radius: 10px;
    background: #fafafa;
    color: #292929 !important;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
body.single-product .itida-ppr-pack-button:hover,
body.single-product .itida-ppr-pack-button:focus-visible {
    border-color: #da641c;
    box-shadow: 0 2px 9px rgba(198,88,23,.11);
    outline-offset: 2px;
}
body.single-product .itida-ppr-pack-button.is-selected {
    border: 2px solid #d45d13;
    padding: 7px 18px 7px 6px;
    background: #fff7f1;
    color: #bc4b08 !important;
}
body.single-product .itida-ppr-pack-name { font-size: 13px; font-weight: 750; line-height: 1.3; }
body.single-product .itida-ppr-pack-price { font-size: 13px; font-weight: 600; line-height: 1.35; }
body.single-product .itida-ppr-pack-price .woocommerce-Price-amount { font-weight: 700; }
body.single-product .itida-ppr-choice-image {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin: 0 auto 5px;
    border-radius: 6px;
}
body.single-product .itida-ppr-pack-check {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
    width: 18px; height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #df6415;
    font-size: 11px;
    color: #fff;
}

/* Show categories as chip buttons, tags as ordinary inline links. */
body.single-product .product_meta .posted_in a {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px 3px 3px 0;
    border: 1px solid #e4e4e4;
    border-radius: 99px;
    color: #333;
    background: #f8f8f8;
    font-size: 12px;
    text-decoration: none;
}
body.single-product .product_meta .tagged_as a {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

/* Hide on-screen fields only; stock, quantity and SKU data are not edited. */
body.single-product .woocommerce div.product form.cart .quantity,
body.single-product .woocommerce div.product p.stock,
body.single-product .woocommerce div.product .sku_wrapper { display: none !important; }

/* Give the existing price-row share control a larger, clearer hit area. */
body.single-product .price-share-btn {
    min-width: 45px;
    min-height: 45px;
    padding: 10px !important;
    border: 1px solid #e3e3e3;
    border-radius: 9px;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
}
body.single-product .price-share-btn svg { width: 23px; height: 23px; }

/* Keep existing WooCommerce Add to Cart & Buy Now functionality; style only. */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 9px !important;
    padding: 9px 17px !important;
    background: #202020 !important;
    border: 1px solid #202020 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 750 !important;
}
body.single-product .woocommerce div.product form.cart .custom-buy-now-btn,
body.single-product .custom-buy-now-btn {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 9px !important;
    padding: 9px 17px !important;
    background: #ef171d !important;
    border: 1px solid #ef171d !important;
    box-shadow: 0 3px 10px rgba(225,20,25,.11);
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 750 !important;
}
body.single-product .custom-buy-now-btn:hover { background: #d21217 !important; }

/* Existing functional PIN checker (no fake/check-inert controls). */
body.single-product .itida-pincode-wrapper {
    margin: 18px 0 15px;
    padding: 15px 17px;
    border: 1px solid #e9dfd9;
    border-radius: 13px;
    background: #fffdfb;
    box-shadow: 0 3px 14px rgba(60,39,20,.035);
    font-family: inherit;
}
body.single-product .itida-pincode-wrapper .pincode-label {
    font-size: 14px;
    font-weight: 750;
    color: #252525;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 10px;
}
body.single-product .itida-pincode-wrapper .pincode-group {
    border: 1px solid #dbdfe1;
    border-radius: 9px;
    padding: 4px 5px 4px 11px;
    background: #fff;
}
body.single-product .itida-pincode-wrapper .pin-icon { color: #d56520; }
body.single-product .itida-pincode-wrapper .pincode-group input {
    height: 36px;
    font-size: 13px;
}
body.single-product .itida-pincode-wrapper .pincode-group button {
    border-radius: 7px;
    background: #202020;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
}

@media (max-width: 540px) {
    body.single-product .itida-ppr-packs { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
    body.single-product .itida-ppr-pack-button { min-height: 58px; padding: 7px 15px 7px 5px; }
    body.single-product .itida-ppr-pack-button.is-selected { padding: 6px 14px 6px 4px; }
    body.single-product .itida-ppr-pack-name { font-size: 12px; }
    body.single-product .itida-ppr-pack-price { font-size: 12px; }
    body.single-product .itida-ppr-pack-check { width: 15px; height: 15px; right: 4px; }
    body.single-product .woocommerce-breadcrumb { font-size: 14px !important; }
    body.single-product .itida-pincode-wrapper { padding: 13px 11px; }
    body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
    body.single-product .custom-buy-now-btn { min-height: 46px !important; height: 46px !important; }
}
