/*
 * Product detail fine tuning
 * Load AFTER: theme/product-detail-redesign.css
 * Keeps the pricing/select card structure intact while making the rest
 * of the product page lighter and more compact.
 */

/* ===== Legacy page rules moved out of prudei.php ===== */
.form-group {
    padding: 1px !important;
    float: right;
    width: 100%;
    margin: 0 !important;
}

.mypddc {
    background: #fcfcfc;
    display: block;
    padding: 8px 5px;
    font-size: 20px;
    border-bottom: 1px solid #d8d8d8;
    margin-bottom: 24px;
}

.table td,
.table th {
    padding: 9px;
    vertical-align: top;
    border-top: 1px solid #ebebeb;
    font-size: 13px;
}

.iurf1,
.iurf2 {
    border: none;
    padding: 0 !important;
}

table.table td,
table.table th {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.cardx {
    background: #fff !important;
    border: 1px solid #ebeced;
    border-radius: 3px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
    margin-bottom: 15px;
}

.cardr {
    display: block;
    margin-bottom: 15px;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    padding: 8px !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: #666;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    margin: 0 !important;
}

/* ===== Variant selects: keep the pricing card as-is ===== */
.price-select-wrap {
    position: relative;
    width: 100%;
    margin: 7px 0 10px;
}

.price-select-wrap::after {
    content: "\f078";
    font-family: FontAwesome;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8494;
    font-size: 10px;
    pointer-events: none;
}

.price-variant-select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px 0 36px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    line-height: 42px;
    direction: rtl;
    text-align: right;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.price-variant-select:focus {
    border-color: #aeb7c4;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, .06);
}

.price-variant-select option {
    color: #222;
    background: #fff;
    font-size: 13px;
}

.modern-product-buy-card .listradioselect h4 {
    margin: 5px 0 6px;
    font-size: 13px;
    line-height: 1.65;
}

/* Requested: make the main price noticeably larger. */
.modern-product-buy-card .price_show_page {
    display: block;
    font-size: 25px !important;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -.25px;
    margin-bottom: 15px;
}

.modern-product-buy-card .price_show_page > span {
    font-size: 12px !important;
    font-weight: 400 !important;
}

.modern-product-buy-card .eaddtocard {
    min-height: 40px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 13px !important;
}

.modern-product-buy-card .c-promotion-box__cover-text,
.modern-product-buy-card .page-header-phone {
    font-size: 12px;
}

/* ===== Make the rest of the product page lighter/finer ===== */
.modern-product-page {
    font-size: 13px;
}

.modern-product-breadcrumb {
    background: none !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
    line-height: 1.55;
}

.modern-product-breadcrumb,
.modern-product-breadcrumb a,
.modern-product-breadcrumb .breadcrumb-item {
    font-size: 10.5px !important;
    font-weight: 400 !important;
}

.product-redesign-layout {
    margin-top: 2px;
}

.product-redesign-info {
    padding-top: 2px;
}

.product-redesign-title {
    margin: 3px 0 6px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
}

.product-redesign-wishlist {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 16px !important;
}

.product-redesign-rating {
    margin-top: 2px !important;
    margin-bottom: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.5;
}

.product-redesign-rating .fa {
    font-size: 11px !important;
}

.product-redesign-shipping {
    gap: 8px !important;
    margin: 7px 0 9px !important;
    padding: 8px 10px !important;
}

.product-redesign-shipping-icon {
    flex: 0 0 24px !important;
}

.product-redesign-shipping-icon svg {
    width: 22px !important;
    height: 23px !important;
}

.product-redesign-shipping-text strong {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.product-redesign-shipping-text span {
    font-size: 10.5px !important;
    line-height: 1.55;
}

.modern-product-page .product_detail {
    margin-bottom: 6px !important;
}

.modern-product-page .product_detail .title_o {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.7;
}

.modern-product-page .product_detail .title_o i {
    font-size: 16px !important;
}

/* Description accordion */
.product-redesign-description {
    margin-top: 10px !important;
}

.product-description-toggle {
    min-height: 40px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.product-description-toggle-icon {
    font-size: 15px !important;
}

.product-description-content article {
    font-size: 12.5px !important;
    font-weight: 400;
    line-height: 2 !important;
}

/* Gallery: smaller gaps and lighter controls, image sizes stay intact. */
.product-redesign-gallery-grid {
    gap: 8px !important;
}

.product-redesign-gallery-item {
    border-radius: 10px !important;
}

.product-redesign-gallery-zoom {
    width: 29px !important;
    height: 29px !important;
    font-size: 12px !important;
}

/* Related products heading */
.product-redesign-related {
    margin-top: 16px !important;
}

.product-redesign-related-head {
    margin-bottom: 8px !important;
}

.product-redesign-related-head h2 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.6;
}

/* Lightbox controls slightly finer without changing image scale. */
.product-redesign-lightbox-close,
.product-redesign-lightbox-arrow {
    font-weight: 400 !important;
}

@media (max-width: 767px) {
    .modern-product-breadcrumb,
    .modern-product-breadcrumb a,
    .modern-product-breadcrumb .breadcrumb-item {
        font-size: 10px !important;
    }

    .product-redesign-title {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    .product-redesign-wishlist {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 15px !important;
    }

    .product-redesign-shipping {
        padding: 7px 9px !important;
    }

    .modern-product-buy-card .price_show_page {
        font-size: 23px !important;
    }

    .product-redesign-gallery-grid {
        gap: 6px !important;
    }
}

/* Product quantity selector beside Add to Cart */
.product-cart-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 8px;
}

.product-cart-row__button {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

.product-quantity-control {
    display: inline-flex;
    flex: 0 0 116px;
    height: 46px;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 9px;
    direction: ltr;
}

.product-quantity-control__button {
    width: 34px;
    min-width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #444;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.product-quantity-control__button:hover {
    background: #f6f7f9;
}

.product-quantity-control__input {
    width: 46px;
    min-width: 0;
    height: 100%;
    padding: 0 2px !important;
    border: 0 !important;
    border-right: 1px solid #eef0f2 !important;
    border-left: 1px solid #eef0f2 !important;
    outline: 0;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    direction: ltr;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.product-quantity-control__input::-webkit-outer-spin-button,
.product-quantity-control__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-quantity-control__input:focus {
    box-shadow: inset 0 0 0 1px #c9d0d8 !important;
}

@media (max-width: 767px) {
    .product-cart-row {
        gap: 7px;
    }

    .product-quantity-control {
        flex-basis: 108px;
        height: 44px;
        border-radius: 8px;
    }

    .product-quantity-control__button {
        width: 31px;
        min-width: 31px;
        font-size: 19px;
    }

    .product-quantity-control__input {
        width: 46px;
        font-size: 14px;
    }
}
