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

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

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

/* ------------------------------------------------------------------
   Product card (.vk-pcard)

   Same block as index.blade.php - keep the two in sync. Every rule
   is prefixed .vk-pcard so none of it reaches the theme's generic
   .product / .product_info / .product_title rules in style.css,
   which other pages still use.

   Markup: front/layout/_product-card.blade.php
   ------------------------------------------------------------------ */
.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;
    width:100%;
}

.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;
}

/* The theme sets a fixed height on ._1IXIk img - override inside the
   card so the 1:1 box is driven by aspect-ratio instead. */
.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;
}

/* homepage.js toggles .wishlist-active on click, and the global rule
   for it is `background-color: red !important` - so these two need
   !important purely to win that specificity fight. */
.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;
}

/* Pushed to the bottom so buttons line up across a row of cards whose
   titles wrap to different heights. */


/* Overrides the page-level .cart_btn above (dark, square-bottomed). */
.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: 16px;
}

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

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

.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;
    }
}

/* ---- List view -------------------------------------------------
   .shop_container.list forces one card per row, so the card turns
   horizontal: fixed-width thumbnail on the left, body on the right.
   Below 576px it falls back to the vertical grid card - a 200px
   thumbnail plus text does not fit a phone.

   Every selector below is scoped to .shop_container.list on
   purpose: style.css already styles list view through two-class
   selectors (.shop_container.list .product), which out-specify a
   bare .vk-pcard--list and would silently win. */
.shop_container.list .vk-pcard-col {
    flex: 0 0 100%;
    max-width: 100%;
}

/* .shop_container.list .product is display:inline-block in
   style.css, which cancels .vk-pcard's flex and leaves the card
   stacked. */
.shop_container.list .vk-pcard--list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}

/* In grid view the square media box comes from the theme's
   ._1IXIk { padding-bottom: 100% } with the image absolutely
   positioned inside it. That percentage resolves against the CARD
   width, so next to a 200px thumbnail it inflates to a ~700px tall
   empty column. Drop the hack here and let .vk-pcard__img's own
   aspect-ratio set the height. */
.shop_container.list .vk-pcard--list .vk-pcard__media {
    flex: 0 0 200px;
    max-width: 200px;
    display: block;
    padding-bottom: 0;
}

.shop_container.list .vk-pcard--list .vk-pcard__img {
    position: static;
    max-height: none;
}

.shop_container.list .vk-pcard--list .vk-pcard__body {
    flex: 1 1 auto;
    padding: 8px 10px 8px 0;
    align-items: flex-start;
}

.shop_container.list .vk-pcard--list .vk-pcard__title {
    font-size: 21px;
}

.shop_container.list .vk-pcard--list .vk-pcard__btn,
.shop_container.list .vk-pcard--list .vk-pcard__oos {
    max-width: 240px;
}

/* Phones keep the horizontal row - one full-width card per row with
   a 200px thumbnail would leave a huge square image - so only the
   thumbnail and type sizes shrink. */
@media (max-width: 575px) {
    .shop_container.list .vk-pcard--list {
        gap: 12px;
    }

    .shop_container.list .vk-pcard--list .vk-pcard__media {
        flex: 0 0 118px;
        max-width: 118px;
    }

    /* The 34px heart eats a third of a 118px thumbnail. */
    .shop_container.list .vk-pcard--list .vk-pcard__wish {
        width: 27px;
        height: 27px;
        top: 6px;
        right: 6px;
        font-size: 13px;
    }

    .shop_container.list .vk-pcard--list .vk-pcard__body {
        padding: 4px 4px 4px 0;
    }

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

    .shop_container.list .vk-pcard--list .vk-pcard__code {
        margin-bottom: 6px;
    }

    .shop_container.list .vk-pcard--list .vk-pcard__price {
        margin-bottom: 10px;
    }

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

    .shop_container.list .vk-pcard--list .vk-pcard__btn,
    .shop_container.list .vk-pcard--list .vk-pcard__oos {
        max-width: none;
        font-size: 13px;
        padding: 9px 8px;
    }
}

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

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

/* Legacy theme button, kept for any non-card .cart_btn markup. The
   card's own button wins through .vk-pcard .vk-pcard__btn - all
   three card pages render the same gold pill. */
.cart_btn {
    display: inline-block;
    width: 100%;
    background: #1f1f1f;
    color: #fff !important;
    padding: 7px;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

/* Home sets these on the card title; product names were lighter here. */
.product .product_title,
.product .product_title a {
    font-weight: 600;
    color: var(--ink, #152B39);
}

/* New css for loading */
/* Full screen overlay using same ID */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* full width */
    height: 100vh;
    /* full height */
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;
    font-size: 18px;
}

/* Hide properly */
#loading-spinner.d-none {
    display: none !important;
}

/* Spinner circle using ::before */
#loading-spinner::before {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;

    position: absolute;
}

/* Text ne thodu niche mukva */
#loading-spinner {
    flex-direction: column;
}

/* #loading-spinner::after {
                    content: "Loading products...";
                    margin-top: 70px;
                } */

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* New css for loading */
.pagination .page-item a {
    color: #152B39 !important;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background-color: #152B39 !important;
    border-color: #152B39 !important;
    color: #fff !important;
}

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

.product_img img {
    width: fit-content;
}

.wishlist-active {
    background-color: red !important;
}

.pr_action_btn li a:hover {
    background-color: #152B39;
    /*display: none;*/
}

@media only screen and (max-width: 574px) {
    .mobile_item_count {
        display: block;
    }

    .window_count {
        display: none;
    }
}

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

@media only screen and (max-width: 480px) {
    .shop_container .col-6 {
        max-width: 50%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        padding-bottom: 42px;
    }

    .shop_container.list [class*="col-"] {
        padding: initial;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

}

@media only screen and (max-width: 760px) {
    .shop_container.list .pr_action_btn {
        position: absolute;
        top: 5%;
        right: 5%;
    }

    .shop_container.list .pr_action_btn li a:hover {
        background-color: transparent;
        color: black;
    }
}

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

    .responsive_filter {
        display: none;
    }

    .cat_sidebar {
        display: block;
    }

    .shop_container.list [class*="col-"] {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 2px;
    }
}

@media only screen and (min-width: 576px) and (max-width: 1000px) {
    .cat_count {
        margin-right: 60% !important;
    }
}

@media only screen and (max-width: 1000px) {

    .product_action_box li {
        opacity: 1 !important;
    }

    .pr_action_btn li a:hover {
        background-color: #fff;
        color: black;
    }

    .custom_select {
        display: none;
    }

    .category_sort {
        color: white;
    }

    .sortcategory {
        border-bottom: 1px solid;
        margin-top: 10px;
        font-size: 15px;
    }

    .pricefilter {
        display: none;
    }

    .shop_container .col-6 {
        padding-right: 3px;
        padding-left: 3px;
        padding-bottom: 0px !important;
    }

    .cat_sidebar {
        display: none;
    }

    .btn-link {
        position: unset;
    }

    .btn_filter {
        z-index: 0;
    }

    .navbar {
        background-color: #005aab;
        overflow: hidden;
        position: fixed;
        bottom: 0;
        width: 100%;
        left: 0px;
    }

    .responsive_filter {
        display: none;
    }

    /* Style the links inside the navigation bar */
    .navbar {
        display: block;
        color: #f2f2f2;
        padding: 8px;
        font-size: 15px;
        text-align: center;
    }

    .overlay {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.9);
        overflow-x: hidden;
        transition: 0.5s;

        display: block;
    }

    .rep_title {
        color: white;
    }

    .btn {
        border-radius: none;
    }

    .overlay-content {
        position: relative;
        top: 5%;
        width: 100%;
        margin-top: 30px;
    }

    .overlay a {
        text-decoration: none;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

    .overlay a:hover,
    .overlay a:focus {
        color: #f1f1f1;
    }

    .overlay .closebtn {
        position: absolute;
        top: 1px;
        right: 10px;
        font-size: 40px;
    }

    input[type=radio] {
        width: 30px;
        height: 1rem;
    }

    input[type="radio"] {
        /* remove standard background appearance */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* appearance for checked radiobutton */
    input[type="radio"]:checked {
        background-color: #152B39;

        display: inline-block;
        width: 22px;
        height: 22px;
        padding: 5px;
        /* background-color only for content */
        background-clip: content-box;
        border: 2px solid #bbbbbb;
        border-radius: 50%;
    }

    .close_sort {
        text-align: end;
        font-size: 30px;
    }

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

.product .image img {
    height: 250px;
}

@media only screen and (max-width: 480px) {
    .product .image img {
        height: 200px;
    }
}

@media screen and (max-height: 450px) {

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1000px) {
    .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
