/* Page styles for product-detail
   Moved out of the inline <style> in resources/views/front/product-detail.blade.php
 */

.toast-center-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: fixed !important;
}

.notifyMe,
#saveNotify {
    color: #fff !important;
}

/* Fly css */
.fly-cart-image {
    position: absolute;
    z-index: 999999;
    border-radius: 12px;
    pointer-events: none;
}

.cart-bounce {
    animation: cartBounce 0.7s ease;
}

@keyframes cartBounce {

    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.25);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Fly css */
#Description p {
    color: #000 !important;
    border: 1px solid #ddd;
    /* light border */
    padding: 15px 20px;
    /* inner space */
    background-color: #fafafa;
    /* light highlight */
    border-radius: 4px;
    /* smooth corners */
    font-size: 14px;
    line-height: 1.8;
}

.owl-carousel .owl-item img {
    width: auto !important;
}

.section {
    padding: 10px 0 !important;
}

.tab-style3 .nav-tabs .nav-item a.active {
    border-bottom-color: #152B39;
    color: #152B39;
}

.quantity .minus,
.quantity .plus {
    border-radius: 0px !important;
}

.btn-fill-out:hover {
    color: #152B39 !important;
}

.btn-fill-out {
    border: 1px solid #152B39;
}

.btn-fill-out::before,
.btn-fill-out::after {
    background-color: #152B39;
}

.form-control-custome:not(textarea) {
    height: 40px !important;
}

.video-link-product {
    border: 1px solid #ddd;
    display: block;
    padding: 5px;
}

img.loading {
    width: 128px;
    height: auto;
}

.video-link-product i {
    position: absolute;
    display: block;
    background: url(url_to_play_button_image.png);
    height: 40px;
    width: 40px;
    top: 20px;
    left: 20px;
}

@media only screen and (max-width: 760px) {
    .filtercatproductdetail {
        display: none;
    }
}

/*@media only screen and (max-width: 575px){
        .res_title {
            width: 90%;
        }

        .heart_res{
            left: 90%;
            top: -60px;
        }
    }*/

@media only screen and (min-width: 765px) {
    .cat_fil_button {
        display: none;
    }
}

/* @media only screen and (min-width: 992px) and (max-width: 1199px){
        .res{
            flex: 0 0 66.666667%;
            max-width: 66.666667%;
        }
    }*/
.spec-wrapper {
    background: #f3f3f3;
    padding: 25px;
    border-radius: 6px;
}

.spec-row {
    display: flex;
    gap: 40px;
}

.spec-column {
    flex: 1;
}

.spec-item {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.spec-label {
    font-size: 14px;
    color: #666;
}

.spec-value {
    font-size: 15px;
    color: #2c4c7c;
    font-weight: 500;
    margin-top: 3px;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .spec-row {
        flex-direction: column;
    }
}

.vk-pcard {
    --vk-gold: var(--gold, #B58A46);
    background: #fff;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(21, 43, 57, .07);
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vk-pcard:hover {
    box-shadow: 0 8px 24px rgba(21, 43, 57, .13);
    transform: translateY(-3px);
}

.vk-pcard__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f2ef;
}

.vk-pcard__img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .45s ease;
}

.vk-pcard:hover .vk-pcard__img {
    transform: scale(1.04);
}

/* Always visible, unlike the theme's hover-reveal .product_action_box. */
.vk-pcard__wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--vk-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
    transition: background .2s ease, color .2s ease;
}

.vk-pcard__wish:hover {
    background: var(--vk-gold);
    color: #fff;
}


.vk-pcard__wish.wishlist-active {
    background-color: var(--vk-gold) !important;
    color: #fff;
}

.vk-pcard__body {
    padding: 16px 8px 8px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.vk-pcard__title {
    margin: 0 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .1px;
}

.vk-pcard__title a {
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vk-pcard__title a:hover {
    color: var(--vk-gold);
}

.vk-pcard__code {
    font-size: 13.5px;
    color: #a0a0a0;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

.vk-pcard__price {
    margin-bottom: 14px;
    line-height: 1;
}

.vk-pcard__amt {
    font-size: 21px;
    font-weight: 600;
    color: #16181a;
}

.vk-pcard__unit {
    font-size: 14px;
    color: #8d8d8d;
    margin-left: 2px;
}


.vk-pcard .vk-pcard__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
    background: var(--vk-gold);
    color: #fff !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: background .2s ease;
}

.vk-pcard .vk-pcard__btn i {
    font-size: 12px;
}

.vk-pcard .vk-pcard__btn:hover {
    background: #9c7434;
}

.vk-pcard .vk-pcard__btn.wishlist-active {
    background-color: #1f1f1f !important;
}

/* Stock-alert button: same shape as Add To Cart, muted fill so it does
   not compete with in-stock products in the same row. .notifyMe is
   forced to #fff by a rule above, hence the override.
   Same block as shop-left-sidebar.blade.php - keep the two in sync. */
.vk-pcard .vk-pcard__btn--notify {
    background: #4a5a66;
}

.vk-pcard .vk-pcard__btn--notify:hover {
    background: #38454e;
}

.vk-pcard__oos {
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #80898e;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* The column already carries 8px side padding inline. */
.vk-pcard-col {
    display: flex;
}

.vk-pcard-col>.item {
    width: 100%;
}

@media (max-width: 599px) {
    .vk-pcard {
        padding: 8px;
        border-radius: 14px;
    }

    .vk-pcard__body {
        padding: 12px 5px 5px;
    }

    .vk-pcard__title {
        font-size: 16px;
    }

    .vk-pcard__amt {
        font-size: 18px;
    }

    .vk-pcard .vk-pcard__btn {
        padding: 10px 8px;
        font-size: 12.5px;
        gap: 7px;
    }
}




/* ---- Gallery ---------------------------------------------------- */
.product-image .product_img_box {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(21, 43, 57, .07);
    overflow: hidden;
    position: relative;
}

.product-image .product_img_box img.res_image {
    border-radius: 12px;
}

.product-image .product_img_zoom {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--gold, #B58A46);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
    top: 22px;
    right: 22px;
    left: auto;
}

#pr_item_gallery {
    margin-top: 14px;
}

#pr_item_gallery .item a,
#pr_item_gallery .item .video-link-product {
    display: block;
    border: 1px solid #ece7dd;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
    background: #fff;
    transition: border-color .2s ease;
}

#pr_item_gallery .item a img {
    border-radius: 7px;
}

#pr_item_gallery .item a:hover,
#pr_item_gallery .item a.active {
    border-color: var(--gold, #B58A46);
}

/* ---- Title / subline / price ------------------------------------ */
.pr_detail .product_title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.25;
    color: #16181a;
    margin-bottom: 6px;
    letter-spacing: .1px;
}

.pr_detail .pdp_subline {
    font-size: 14px;
    color: #a0a0a0;
    letter-spacing: .3px;
    margin-bottom: 16px;
}

.pr_detail .price,
.pr_detail .price .price_product,
.pr_detail .price .price_product_per_unit {
    font-size: 26px;
    font-weight: 600;
    color: #16181a !important;
}

/* MOQ sits in the same block and reuses .price_product_per_unit, so it
       needs pulling back out of the price sizing above. */
.pr_detail .pdp_moq,
.pr_detail .pdp_moq .price_product_per_unit {
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #8d8d8d !important;
    letter-spacing: .2px;
}

.pr_detail .currencys {
    font-size: 21px;
    font-weight: 500;
}

/* ---- Buy button -------------------------------------------------
       .btn-fill-out animates a fill via ::before/::after, and the rules
       earlier in this file paint those #152B39. Repointed to gold so it
       matches the card's Add To Cart. */
.pr_detail .btn-addtocart,
.pr_detail .btn-fill-out {
    background: var(--gold, #B58A46);
    border: 1px solid var(--gold, #B58A46);
    border-radius: 10px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 13px 34px;
}

.pr_detail .btn-fill-out::before,
.pr_detail .btn-fill-out::after {
    background-color: #9c7434;
}

.pr_detail .btn-fill-out:hover {
    color: #fff !important;
    border-color: #9c7434;
}

.pr_detail .notifyMe {
    background: #4a5a66;
    border: 0;
    border-radius: 10px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.pr_detail .notifyMe:hover {
    background: #38454e;
}

/* ---- Tabs -------------------------------------------------------
       Gold active underline, matching the home page section headings. */
.tab-style3 .nav-tabs {
    border-bottom: 1px solid #ece7dd;
}

.tab-style3 .nav-tabs .nav-item a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #8d8d8d;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 4px;
    margin-right: 26px;
}

.tab-style3 .nav-tabs .nav-item a.active,
.tab-style3 .nav-tabs .nav-item a:hover {
    color: #16181a;
    border-bottom-color: var(--gold, #B58A46);
    background: transparent;
}

/* Overrides the boxed grey #Description p rule earlier in this file. */
#Description p,
.shop_info_tab .tab-pane p {
    border: 0 !important;
    background: transparent !important;
    padding: 18px 0 !important;
    font-size: 15px;
    line-height: 1.9;
    color: #3f4750 !important;
}

/* ---- Related products carousel ---------------------------------- */
.releted_product_slider .vk-pcard-col {
    display: flex;
    padding: 6px 0 14px;
}

.releted_product_slider .vk-pcard {
    width: 100%;
}

.heading_s1 h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 26px;
    color: #16181a;
}

/* product-detail.js swaps the <i> between .icon-heart and .fa-heart
       instead of toggling .wishlist-active, so the filled state has to be
       styled off the icon on this page. */
.vk-pcard__wish .fa-heart {
    color: var(--gold, #B58A46);
}

@media (max-width: 767px) {
    .pr_detail .product_title {
        font-size: 23px;
    }

    .pr_detail .price,
    .pr_detail .price .price_product,
    .pr_detail .price .price_product_per_unit {
        font-size: 22px;
    }
}

.pr_detail hr {
    border: 0;
    border-top: 1px solid #ece7dd;
    margin: 20px 0;
}

.pr_detail .cart_extra {
    border: 0;
    padding-top: 0;
}

.pr_detail .product_price {
    margin-bottom: 4px;
}


.pr_detail .cart-product-quantity .quantity {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e2dccf;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pr_detail .quantity .minus,
.pr_detail .quantity .plus {
    width: 40px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #faf7f2;
    color: #6d6047;
    font-size: 17px;
    line-height: 1;
    transition: background .18s ease, color .18s ease;
}

.pr_detail .quantity .minus:hover,
.pr_detail .quantity .plus:hover {
    background: var(--gold, #B58A46);
    color: #fff;
}

.pr_detail .quantity .qty_input {
    width: 56px;
    border: 0;
    border-left: 1px solid #ece7dd;
    border-right: 1px solid #ece7dd;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #16181a;
    background: #fff;
}

.pr_detail .quantity .qty_input:focus {
    outline: 0;
}


.spec-wrapper {
    background: #fff;
    border: 1px solid #f0ebe1;
    border-radius: 18px;
    padding: 8px 26px;
    box-shadow: 0 2px 10px rgba(21, 43, 57, .05);
    margin-top: 34px;
}

.spec-row {
    display: block;
    gap: 0;
}

.spec-column {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 44px;
}

@media (min-width: 768px) {
    .spec-column {
        grid-template-columns: 1fr 1fr;
    }
}

.spec-item {
    padding: 16px 0;
    border-bottom: 1px solid #f2ede4;
}

/* Drop the rule under the last row of the grid. */
.spec-item:last-child,
.spec-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}

.spec-label {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #a79a84;
}

.spec-value {
    font-size: 15px;
    color: #16181a;
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.55;
}

/* ---- Gallery thumbnails -----------------------------------------
       Slick lays these out; keep them square so mixed ratios line up. */
#pr_item_gallery .item {
    padding: 0 5px;
}

#pr_item_gallery .item a img,
#pr_item_gallery .item .video-link-product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
