/* 
  E-STORE Modern UI Foundation
  Safe overrides for Bootstrap 5 based eCommerce
*/

:root {
    --primary-light: #e6f0f8;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;

    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(9, 93, 156, 0.12);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Refinement */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    /* Override Roboto for more modern look */
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: -0.01em;
}

/* Button Modernization */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 10px 24px;
    transition: var(--transition);
    text-transform: none !important;
    /* Avoid all-caps for modern feel */
}

.btn-fill-out {
    background: var(--primary-color) !important;
    border: none !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(9, 93, 156, 0.2);
}

.btn-fill-out:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 93, 156, 0.3);
    background: var(--hover-color) !important;
}

.btn-fill-out::before,
.btn-fill-out::after {
    display: none !important;
    /* Remove legacy hover animations */
}

/* Card Modernization */
.product {
    border: 1px solid rgba(var(--primary-color-rgb, 0, 0, 0), 0.1) !important;
    border-color: var(--primary-color) !important;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product_img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
    aspect-ratio: 1/1.1;
    /* Fixed aspect ratio for consistency */
}

.product_img a {
    display: block;
    height: 100%;
    width: 100%;
}

.product_img img {
    transition: var(--transition);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image fits perfectly */
}

.product:hover .product_img img {
    transform: scale(1.05);
}

.product_info {
    padding: 15px !important;
    border: none !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    /* Fixed height for info section to align buttons */
}

.product_title {
    margin-bottom: 5px !important;
    /* Reduced from 10px */
    font-size: 15px !important;
}

.product_title a {
    color: var(--dark-color) !important;
    font-weight: 500;
}

.product_price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px !important;
    /* Reduced from 15px */
}

.price {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

del {
    font-size: 14px;
    color: #a0aec0;
}

.on_sale {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Badge Styling */
.sale-badge,
.hot-sale-badge {
    left: 15px !important;
    top: 15px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    padding: 4px 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2 !important;
}

/* Add to Cart Overlay */
.product_action_box {
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Centering vertically */
    justify-content: center;
    /* Centering horizontally */
    background: rgba(0, 0, 0, 0.3);
    /* Dimming background */
    z-index: 10;
    padding: 10px;
    transform: scale(0.9);
    /* Slight scale in as animation */
    pointer-events: none;
}

.product:hover .product_action_box {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.pr_action_btn {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto;
    /* Let content define width */
    max-width: 90%;
}

.add-to-cart {
    padding: 0 !important;
    margin: 0 !important;
}

.add-to-cart a {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    /* Pill shape for premium look */
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 12px 28px !important;
    /* More horizontal padding */
    border: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    /* PREVENT TEXT WRAPPING */
    transition: var(--transition);
    width: auto !important;
    min-width: 140px;
}

.add-to-cart a i {
    margin-right: 8px;
    font-size: 16px;
    display: inline-block;
}

.add-to-cart a:hover {
    background: var(--hover-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Adjustments for Add To Cart */
@media (max-width: 767px) {
    .product_action_box {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        transform: none !important;
        height: auto !important;
        padding: 5px 0 0 0 !important;
        pointer-events: auto !important;
        display: block !important;
    }

    .pr_action_btn {
        width: 100%;
    }

    .add-to-cart a {
        background: var(--primary-color) !important;
        color: var(--white) !important;
        font-size: 11px !important;
        padding: 8px 5px !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    .add-to-cart a i {
        display: none;
        /* Hide icon on small mobile to save space */
    }

    .product_info {
        padding: 10px !important;
        min-height: auto;
    }

    .product_img {
        aspect-ratio: 1/1 !important;
    }
}

/* Shared Elements & Spacing */
.section {
    padding: 60px 0 !important;
}

.small_pt {
    padding-top: 40px !important;
}

.pb_70 {
    padding-bottom: 70px !important;
}

.heading_s1 {
    margin-bottom: 30px;
}

.heading_s1 h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0;
}

.heading_s1 h2 {
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.heading_s1 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Forms & Inputs */
.form-control {
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(9, 93, 156, 0.1);
}

label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark-color) !important;
    /* Overriding text-danger if applied */
}

/* Auth Wrappers */
.login_register_wrap {
    background-color: var(--light-color);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.login_wrap {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.padding_eight_all {
    padding: 40px !important;
}

.different_login {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.different_login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.different_login span {
    background: var(--white);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #a0aec0;
    font-size: 13px;
}

.form-note {
    font-size: 14px;
    color: var(--secondary-color) !important;
}

.form-note a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tables & Cart */
.table {
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent !important;
}

.table thead th {
    border: none !important;
    text-transform: uppercase;
    font-size: 12px;
    color: #a0aec0;
    font-weight: 600;
    padding: 15px !important;
}

.table tbody tr {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-sm);
}

.table td {
    border: none !important;
    padding: 20px 15px !important;
    vertical-align: middle !important;
}

.shop_cart_table img {
    border-radius: var(--border-radius-sm);
    width: 60px;
}

.cart-product-quantity .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
    width: fit-content;
}

.quantity input {
    border: none;
    background: transparent;
    text-align: center;
    padding: 5px 10px;
}

.quantity .minus,
.quantity .plus {
    width: 35px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity .minus:hover,
.quantity .plus:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Product Details Page */
.pr_detail .product_title a {
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.2;
}

.shop_info_tab {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 50px;
}

.shop_info_tab h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Global Animations & Transitions */
.btn-fill-out {
    position: relative;
    overflow: hidden;
}

.btn-fill-out:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn-fill-out:hover:after {
    left: 0;
}

.product:hover {
    box-shadow: var(--shadow-hover);
}

.social_icons li a {
    transition: var(--transition);
}

.social_icons li a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Footer Improvements */
footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0;
}

.footer_logo img {
    max-width: 150px;
    height: auto;
}

.footer_link li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer_dark {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
    padding-top: 60px;
}

.footer_dark .widget_title {
    color: var(--white) !important;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 16px;
}

.footer_dark .widget_links li a,
.footer_dark .contact_info p,
.footer_dark .contact_info li i {
    color: #cbd5e0 !important;
}

.footer_dark .widget_links li a:hover {
    color: var(--white) !important;
}

.bottom_footer {
    background: #111827 !important;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.bottom_footer p {
    color: #9ca3af !important;
    font-size: 14px;
}

.footer_payment li {
    display: inline-block;
    margin-left: 10px;
}

.footer_payment img {
    height: 25px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer_payment img:hover {
    opacity: 1;
}

/* Accessibility & Loading Shimmer */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.shimmer {
    background: linear-gradient(90deg, #f0f2f5 25%, #e0e2e5 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.header_wrap {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.top-header {
    background: var(--white) !important;
    border-bottom: 1px solid #edf2f7;
    padding: 8px 0;
}

.middle-header {
    padding: 20px 0 !important;
}

.product_search_form .input-group {
    background: #f4f7fa;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.product_search_form .input-group:focus-within {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(9, 93, 156, 0.1);
}

.product_search_form input {
    background: transparent !important;
    border: none !important;
    padding-left: 20px !important;
}

.search_btn {
    background: transparent !important;
    color: var(--secondary-color) !important;
    padding-right: 20px !important;
}

.bottom_header {
    background: var(--dark-color) !important;
    margin-bottom: 0 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 15px 20px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Header Alignment & Spacing */
.header_wrap {
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
}

.top-header {
    background: #f8fafc !important;
    font-size: 13px;
}

.middle-header {
    padding: 15px 0 !important;
}

.bottom_header {
    background: var(--white) !important;
    border-top: 1px solid #f1f5f9;
}

.bottom_header .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.bottom_header .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mobile Product Scroller */
@media (max-width: 767px) {
    .mobile-card-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    .mobile-card-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-card-slider .col-md-4,
    .mobile-card-slider .col-sm-6,
    .mobile-card-slider .col-6 {
        flex: 0 0 calc(50% - 20px) !important;
        /* Show 2 cards with gaps */
        max-width: none !important;
        scroll-snap-align: start;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
}

/* Section Spacing Consistency */
.section,
.section_pt,
.section_pb {
    padding: 60px 0 !important;
}

.shop_container.grid .product {
    margin-bottom: 0px !important;
    /* Let the column handle spacing */
    height: 100%;
}

/* Mobile Side Menu */
.mobile_side_menu {
    background: var(--white) !important;
    padding: 20px !important;
    border-right: 1px solid #eee;
}

/* Skeleton Loading */
.skeleton {
    background: #f0f2f5;
    background: linear-gradient(90deg, #f0f2f5 25%, #e0e2e5 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-skeleton {
    padding: 20px;
}

.skeleton-img {
    height: 200px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
}

.skeleton-text {
    height: 15px;
    width: 80%;
    margin-bottom: 10px;
}

.skeleton-price {
    height: 20px;
    width: 40%;
}

/* Redundant ID fixes / JS generated style overrides */
.search-item:hover {
    background-color: var(--primary-light) !important;
}

.product_title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .section {
        padding: 50px 0 !important;
    }

    .product {
        margin-bottom: 20px;
    }

    .nav-link.active::after {
        display: none;
    }
}

/* =========================================
   Styles migrated from links.php
   ========================================= */

/* FANCY PAGE LOADER */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* ya rgba(255,255,255,0.9) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    flex-direction: column;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: logoBounce 1.5s infinite;
}

.loader-dots span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background: var(--primary-color);
    border-radius: 00%;
    animation: dotBounce 1s infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes logoBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Sidebar & Filters */
#navCatContent {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: "Poppins", sans-serif;
}

/* Section Titles */
#navCatContent h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

/* Category & Brand Lists */
#category-list li,
#brand-list li {
    margin-bottom: 7px;
    list-style: none;
    cursor: pointer;
}

#category-list li a,
#brand-list li a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

#category-list li a:hover,
#brand-list li a:hover {
    color: var(--primary-color);
}

/* Count Right Side */
.categories_num {
    color: #095d9c;
    font-weight: 600;
    margin-left: 5px;
}

/* SIZE FILTER BOXES */
.size_filters {
    display: flex;
    flex-wrap: wrap;
}

.size-filter {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin: 4px 5px;
    cursor: pointer;
    transition: 0.2s;
}

.size-filter:hover {
    background: #f4f4f4;
    border-color: #bbb;
}

.size-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* COLOR CIRCLES */
.color_filters {
    display: flex;
    flex-wrap: wrap;
}

.color-filter {
    width: 20px;
    /* Slightly smaller dots */
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin: 2px 3px;
    /* Reduced vertical margin from 4px to 2px */
    cursor: pointer;
    transition: 0.2s;
}

/* Specific fix for the space between price and dots */
.pr_switch_wrap.color-hover {
    margin-top: 5px !important;
    /* Forces tighter spacing */
}

/* If description is present instead of dots */
.pr_desc.mt-2 {
    margin-top: 5px !important;
}

.color-filter:hover {
    transform: scale(1.1);
}

.color-filter.selected {
    border: 2px solid #000;
}

/* PRICE FILTER */
#flt_price {
    font-weight: 500;
    margin: 5px 0 8px 0;
    font-size: 13px;
}

.more-filter-btn {
    font-size: 13px;
}

#moreFilters {
    padding-left: 5px;
}

/* Checkbox Text Styling */
#navCatContent label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    margin-left: 5px;
}

/* Checkbox + Text Row Alignment */
#navCatContent .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

/* Checkbox Size */
#navCatContent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* When Checked – Highlight Text (Optional) */
#navCatContent input[type="checkbox"]:checked+label {
    font-weight: 600;
    color: #095d9c;
}

/* Compare Floating Bar */
#compare-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 15px 0;
}

#compare-bar.active {
    bottom: 0;
}

.compare_item_thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.compare_item_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove_compare_small {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.compare_count_text {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
}

/* Compare Page Styling */
.compare_container {
    padding: 50px 0;
}

.compare_table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.compare_table th {
    background: #f8fafc;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
    width: 200px;
    min-width: 150px;
}

.compare_table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}

.compare_table .product_img_cell img {
    max-width: 150px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.compare_table .price {
    font-size: 20px !important;
}

.compare_table .btn-remove {
    color: var(--danger-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Horizontal Scroll for Compare Table on Mobile */
.compare_table_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .compare_table th {
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 5px 0 10px rgba(0, 0, 0, 0.02);
    }

    #compare-bar .compare_count_text {
        display: none;
    }
}

/* Button UI for 'Add to Compare' in card */
.pr_action_btn li.add-compare-btn {
    margin-top: 10px;
}

.add-compare-box {
    margin-top: 8px;
}

.btn-compare-link {
    font-size: 11px;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-compare-link:hover {
    color: var(--primary-color);
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: green;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 1;
}

.product {
    position: relative;
    /* Taake badge product ke upar sahi lage */
}

/* Support visibility without hover */
.pr_switch_wrap {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    bottom: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
    display: block !important;
    margin-top: 10px !important;
}

.product .product_color_switch span {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product:hover .pr_switch_wrap {
    opacity: 1 !important;
    visibility: visible !important;
}

.hidden-colors {
    display: block !important;
    margin-top: 8px;
}

.product_color_switch span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.product_color_switch span:hover {
    transform: scale(1.2);
}

/* MOBILE 2-COLUMN GRID FIX */
@media (max-width: 767px) {

    .shop_container .col-6,
    .shop_container .col-sm-6,
    .shop_container .col-md-4,
    .shop_container .col-lg-3 {
        width: 50% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 15px !important;
        /* Added gap */
    }

    .product_info {
        padding: 10px !important;
    }

    .product_price {
        flex-wrap: wrap;
        gap: 4px;
    }

    .price {
        font-size: 14px !important;
    }

    .product_title {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
}

/* =========================================
   ACCOUNT DASHBOARD MODERNIZATION
   ========================================= */

/* 1. Breadcrumb & Header */
.breadcrumb_section.bg_gray {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.breadcrumb_section .page-title h1 {
    font-weight: 700 !important;
    font-size: 28px;
    margin-bottom: 0;
}

/* 2. Sidebar Menu (Dashboard Menu) */
.dashboard_menu {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    border: 1px solid #f1f5f9;
}

.dashboard_menu .nav-tabs {
    border: none !important;
}

.dashboard_menu .nav-item {
    margin-bottom: 5px;
}

.dashboard_menu .nav-link {
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 12px 20px !important;
    color: #64748b !important;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard_menu .nav-link i {
    font-size: 18px;
    transition: var(--transition);
}

.dashboard_menu .nav-link:hover {
    background-color: #f8fafc !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.dashboard_menu .nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(9, 93, 156, 0.2);
}

.dashboard_menu .nav-link.active i {
    color: var(--white) !important;
}

/* 3. Main Content Area & Cards */
.dashboard_content .card {
    border: none !important;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 30px;
}

.dashboard_content .card-header {
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 25px;
}

.dashboard_content .card-header h3 {
    font-size: 20px;
    margin-bottom: 0;
    font-weight: 700;
}

.dashboard_content .card-body {
    padding: 25px;
}

/* Order Tracking Card UI */
.order-tracking-card {
    border: 1px solid #f1f5f9;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    transition: var(--transition);
    background: #fff;
}

.order-tracking-summary {
    background: #fafbfc;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.order-id-highlight {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.status-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-completed {
    background: #f0fdf4;
    color: #15803d;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.status-shipped {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-badge-dynamic {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
}

/* 4. Table UI Improvements */
#ordersTrackingTable,
#ordersTable {
    border-collapse: separate;
    border-spacing: 0;
}

.table.modern-table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table.modern-table tbody td {
    padding: 15px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table.modern-table tbody tr:last-child td {
    border-bottom: none !important;
}

.table.modern-table tbody tr:hover {
    background-color: #fafbfc !important;
}

.zebra-rows tr:nth-child(even) {
    background-color: #fcfdfe;
}

/* 5. Upload Button UI */
#btn-uploadScreenShot,
#btn-uploadPaymentScreenShot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px !important;
}

#btn-uploadScreenShot i,
#btn-uploadPaymentScreenShot i {
    font-size: 16px;
}

/* 6. Dashboard Skeleton Loader */
.dashboard-skeleton {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-row {
    height: 60px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e0e2e5 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-sidebar-item {
    height: 45px;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .dashboard_menu {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .dashboard_menu .nav-tabs {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .dashboard_menu .nav-link {
        padding: 10px 15px !important;
        font-size: 14px;
    }

    .order-tracking-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-responsive {
        border-radius: var(--border-radius-sm);
        border: 1px solid #f1f5f9;
    }

    #btn-uploadScreenShot,
    #btn-uploadPaymentScreenShot {
        width: 100%;
        justify-content: center;
    }
}

/* CATEGORY HEADER THEME SYNC */
.categories_btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    transition: var(--transition);
}

.categories_btn:hover {
    background-color: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
}

#navCatContent h6 {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

/* ABOUT & CONTACT PAGE THEME SYNC */
.bg_light_blue2 {
    background-color: var(--primary-light) !important;
}

.icon_box_style4 .icon i {
    background-color: var(--primary-color) !important;
}

.contact_style3 .contact_icon {
    border-color: var(--primary-color) !important;
}

.contact_style3 .contact_icon i {
    color: var(--primary-color) !important;
}

.contact_style3 .contact_icon::before {
    background-color: var(--primary-color) !important;
}

.contact_style3:hover .contact_icon i {
    color: var(--white) !important;
}

.contact_text a:hover {
    color: var(--hover-color) !important;
}

/* MODERN FOOTER STYLES */
.bg_dark_modern {
    background-color: #1a1e2e !important;
}

.bg_dark_deeper {
    background-color: #121623 !important;
}

.widget_title_modern {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget_title_modern::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.widget_links_modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_links_modern li {
    margin-bottom: 12px;
}

.widget_links_modern li a {
    color: #94a3b8;
    transition: var(--transition);
    text-decoration: none;
    font-size: 14px;
}

.widget_links_modern li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer_about_text {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 14px;
}

.social_modern li a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.social_modern li a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.contact_info_modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact_info_modern li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact_info_modern .c_icon {
    width: 45px;
    height: 45px;
    background: rgba(9, 93, 156, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.contact_info_modern .c_text span {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact_info_modern .c_text p {
    color: #94a3b8;
    font-size: 13px;
}

.copyright_text,
.powered_by {
    font-size: 13px;
    color: #64748b;
}

.powered_by a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer_payment li {
    display: inline-block;
    margin-left: 10px;
}

.footer_payment li img {
    height: 25px;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

.footer_payment li:hover img {
    filter: grayscale(0) opacity(1);
}

/* Accordion Theme Sync */
.accordion_style1 .card-header a {
    color: var(--dark-color) !important;
    transition: var(--transition);
}

.accordion_style1 .card-header a:not(.collapsed) {
    color: var(--primary-color) !important;
}

/* =========================================
   COMPARE FEATURE STYLES
   ========================================= */

/* 1. Floating Compare Bar */
#compare-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #1e293b;
    z-index: 9999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
}

#compare-bar.active {
    bottom: 0;
}

.compare_thumbs_list img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
}

.compare_thumb_wrapper {
    width: 45px;
    height: 45px;
}

.remove_compare_btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.xs-text {
    font-size: 11px;
}

/* 2. Compare Page Table */
.compare_table_wrapper {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-top: 20px;
}

.compare_table {
    width: 100%;
    border-collapse: collapse;
}

.compare_table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    width: 250px;
}

.compare_table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
    text-align: center;
    min-width: 280px;
}

.compare_table .pr_image img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.compare_table .pr_image h6 {
    font-weight: 600;
    margin-bottom: 0;
    color: #1e293b;
}

.compare_table .price {
    font-weight: 700;
    font-size: 18px;
}

.btn-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
}

.btn-remove:hover {
    color: #b91c1c;
}

/* 3. Independent Column Compare */
.compare_search_wrap {
    position: relative;
    padding: 10px;
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.compare_search_wrap input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.compare_search_results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.compare_search_item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.compare_search_item:hover {
    background: #f8fafc;
}

.compare_search_item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.compare_search_item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.compare_column_card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
    transition: var(--transition);
}

.compare_spec_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare_spec_list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.compare_spec_list li b {
    color: #475569;
}

@media (max-width: 991px) {
    .compare_table_wrapper {
        overflow-x: auto;
    }

    .compare_table {
        min-width: 1000px;
    }
}

.compare_search_item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.compare_search_results {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid #eef2f6;
    margin-top: 5px;
}