/* This File Created by Diwakar Sinha */
.avatar_actions_btn {
    background: #e30962;
    border: 1px solid #e30962 !important;
}
.avatar_actions_btn:hover {
    background-color: #f60968 !important;
    color: #fff !important;
}
.dashboard_order_table table tr td a {
    color: #e30962;
    border: 1px solid #e30962 !important;
}
.dashboard_order_table table tr td a:hover {
    background-color: #e30962 !important;
    color: #fff !important;
}
/* =========================================
   PRODUCT GALLERY - AUTO SLIDER + ZOOM
   ========================================= */
.home_grocery .common_btn > * {
    color: #fff !important;
}
.product-gallery-wrapper {
    position: relative;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}

/* Main image */
#main-product-image {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    transition: opacity 0.25s ease-in-out;
}

/* Zoom icon button */
.product-zoom-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    padding: 0;
}

.product-zoom-button:hover {
    transform: scale(1.08);
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.product-zoom-button svg {
    width: 22px;
    height: 22px;
}

/* Thumbnail wrapper */
.thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
}

/* Hide scrollbar where supported */
.thumbnails-wrapper::-webkit-scrollbar {
    height: 5px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    border: 2px solid transparent;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Zoom lens */
.product-zoom-lens {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    display: none;
    z-index: 25;
    background-repeat: no-repeat;
    background-color: #fff;
}

/* =========================================
   LIGHTBOX
   ========================================= */

.product-zoom-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.product-zoom-overlay.show {
    display: flex;
}

.product-zoom-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.product-zoom-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 30px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 100001;
}

.product-zoom-prev,
.product-zoom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 30px;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    z-index: 100001;
}

.product-zoom-prev {
    left: 20px;
}

.product-zoom-next {
    right: 20px;
}

.product-zoom-prev:hover,
.product-zoom-next:hover,
.product-zoom-close:hover {
    background: #fff;
}

/* Mobile */
@media (max-width: 767px) {

    .thumbnail-item {
        width: 64px;
        height: 64px;
    }

    .product-zoom-button {
        width: 38px;
        height: 38px;
        top: 8px;
        right: 8px;
    }

    .product-zoom-button svg {
        width: 19px;
        height: 19px;
    }

    .product-zoom-lens {
        width: 130px;
        height: 130px;
    }

    .product-zoom-overlay {
        padding: 20px;
    }

    .product-zoom-prev,
    .product-zoom-next {
        width: 40px;
        height: 40px;
        font-size: 25px;
        line-height: 40px;
    }

    .product-zoom-prev {
        left: 10px;
    }

    .product-zoom-next {
        right: 10px;
    }
}

/* Header Menu Dropdown */
/* =========================================
   HEADER ACCOUNT HOVER DROPDOWN
   ========================================= */

.header_account_dropdown {
    position: relative;
    z-index: 1000;
}

.header_account_dropdown .account_dropdown_content {
    position: relative;
}

.header_account_dropdown .account_user_name {
    margin: 0;
}

.header_account_dropdown .account_user_name > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.account_arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Dropdown */
.account_dropdown_menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 210px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

/* Small arrow */
.account_dropdown_menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    transform: rotate(45deg);
}

/* Show dropdown on hover */
.header_account_dropdown:hover .account_dropdown_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotate arrow */
.header_account_dropdown:hover .account_arrow {
    transform: rotate(180deg);
}

/* Dropdown Item */
.account_dropdown_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.account_dropdown_item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.account_dropdown_item:hover {
    background: #f8f8f8;
    color: var(--colorPrimary, #e9005e);
}

/* Divider */
.account_dropdown_divider {
    height: 1px;
    background: #eee;
    margin: 5px 12px;
}

/* Logout */
.account_dropdown_item.account_logout {
    color: #d9363e;
}

.account_dropdown_item.account_logout:hover {
    background: #fff5f5;
    color: #c9232d;
}


/* Login link */
.account_login_link {
    margin: 0;
}

.account_login_link a {
    text-decoration: none;
}
.spk_header {
    z-index: 999 !important;
}
.spk_header .account_dropdown_menu {
    line-height: 20px !important;
}
.main_menu {
    z-index: 99 !important;
}
.wishlist_header_actions {
    display: flex;
    align-items: center;
}

button#sendOtpBtn:hover span#sendOtpBtnText {
    color: #fff !important;
}
button#sendOtpBtn span#sendOtpBtnText {
    color: #fff !important;
}
.dashboard_sidebar_user .img img {
    background: #fff;
}
.address-title {
    margin-top: 14px;
    font-weight: 600;
}
p.lite-border {
    border: 1px solid #ddd;
    padding: 5px 5px;
    margin-bottom: 3px;
}
@media (max-width: 767px) {
    .p_30 {
    padding: 20px !important;
}
.footer_info_item .text h3 {
    font-size: 18px;
}
}