/* Product Thumbnails - Square Aspect Ratio */
.product-nav-thumbs .product-thumb {
    display: inline-block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border: 2px solid #e7e7e7;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.product-nav-thumbs .product-thumb:hover,
.product-nav-thumbs .product-thumb.active {
    border-color: #D4AF37;
}

.product-nav-thumbs .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Main product image - also ensure proper aspect ratio */
.product-media .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 24px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
    margin: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #D4AF37;
}

.star-rating-input input[type="radio"]:checked ~ label {
    color: #D4AF37;
}

.rating-form-wrapper {
    border-top: 1px solid #ebebeb;
    padding-top: 2rem;
    margin-top: 2rem;
}

.rating-form .form-group {
    margin-bottom: 1.5rem;
}

.rating-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.rating-form .required {
    color: #ff0000;
}


/* Custom Styles */
:root {
    --primary-color: #d4af37;
    --secondary-color: #28a745;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Theme toggle (gold/dark) - base styles (works in light + gold) */
.dark-mode-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease;
    border-radius: 50%;
    position: relative;
    padding: 0;
}

.dark-mode-toggle:hover {
    background-color: rgba(212, 175, 55, 0.12);
}

.dark-mode-toggle:focus-visible {
    outline: none;
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.dark-mode-toggle .dark-mode-icon {
    color: #d4af37;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: var(--primary-color);
    color: #111;
    padding: 0.5rem 0;
}

/* Force gold header-top in EN too (but don't override dark mode) */
body:not(.dark-mode) header.header-4 .header-top,
body:not(.dark-mode) header.header-intro-clearance .header-top {
    background-color: var(--primary-color) !important;
    color: #111 !important;
}

body:not(.dark-mode) header.header-4 .header-top a,
body:not(.dark-mode) header.header-intro-clearance .header-top a {
    color: #111 !important;
}

.header-middle {
    padding: 1rem 0;
}

.header-bottom {
    background-color: var(--light-gray);
    padding: 0.5rem 0;
}

/* Navigation Styles */
.main-nav .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .menu li {
    margin-right: 1.5rem;
}

.main-nav .menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav .menu li a:hover,
.main-nav .menu li.active a {
    color: var(--primary-color);
}

/* Search Styles */
.header-search {
    position: relative;
    max-width: 400px;
}

.header-search .form-control {
    border-radius: 20px;
    padding-right: 40px;
}

.header-search .btn-search {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 0 20px 20px 0;
    background-color: var(--primary-color);
    color: #fff;
}

/* Footer Styles - Light Mode Default */
.footer {
    background-color: #f5f5f5;
    color: #333;
    padding-top: 3rem;
}

.footer a {
    color: #333;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #d4af37 !important;
}

.footer-newsletter {
    background-color: var(--primary-color);
    padding: 3rem 0;
}

.footer-top {
    padding: 3rem 0;
}

.footer-middle {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    color: #666;
}

.footer .widget-title {
    color: #333;
}

.footer .widget-list a {
    color: #666;
}

.footer .widget-list a:hover {
    color: #d4af37;
}

.footer .cta {
    background-color: #2d2d2d;
}

.footer .cta-title,
.footer .cta-desc {
    color: #fff;
}

/* Checkout payment method icons */
.payment-method-radio-wrapper .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-method-radio-wrapper .payment-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #222;
}

.payment-method-radio-wrapper
    .form-check-input:checked
    + .form-check-label
    .payment-method-icon {
    color: var(--gold-primary, #d7a500);
}

/* Product Card Styles */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fix duplicate icons in product cards - ensure only one set shows */
.product {
    position: relative;
}

.product .product-media {
    position: relative;
    overflow: hidden;
}

/* Product action vertical - top right icons (wishlist, compare) */
.product .product-action-vertical {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product:hover .product-action-vertical {
    opacity: 1;
}

/* Product action - bottom buttons (cart, quick view) */
.product .product-action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    visibility: visible;
    padding: 0;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.product:hover .product-action {
    transform: translateY(0);
    opacity: 1;
}

.product .product-action form,
.product .product-action a,
.product .product-action button {
    width: 100%;
    display: block;
}
.btn-product-icon span {
    background-color: #d4af37;
    top: -1px;
    bottom: -1px;
    left: -105px;
    width: 120px;
}
.btn-product-icon {
    color: #d4af37;
    border-color: #d4af37;
    background-color: #ffffff;
    border: 0.1rem solid #d4af37;
}
.btn-product-icon:hover,
.btn-product-icon:focus {
    color: white !important;
    border-color: #d4af37;
    background-color: #d4af37;
}
/* Hover animations for Add to Cart and Quick View buttons */
.product .product-action .btn-product {
    transition: all 0.3s ease !important;
    transform: translateY(0);
}

.product .product-action .btn-product:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
}

.product .product-action .btn-product.btn-cart:hover {
    background-color: var(--gold-primary-dark) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.product .product-action .btn-product.btn-quickview:hover {
    color: var(--gold-primary) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

/* Ensure buttons in product-action are full width */
.product .product-action .btn-product,
.product .product-action form,
.product .product-action a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.product .product-action .btn-product.btn-cart {
    width: 100% !important;
    border-radius: 0 !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background-color: #fff !important;
    color: #333 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.product .product-action .btn-product.btn-cart i {
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.product .product-action .btn-product.btn-cart span {
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.product:hover .product-action .btn-product.btn-cart {
    background-color: #fff !important;
    color: #333 !important;
}

.product:hover .product-action .btn-product.btn-cart i,
.product:hover .product-action .btn-product.btn-cart span {
    color: #333 !important;
}

.product .product-action .btn-product.btn-cart:hover {
    background-color: var(--gold-primary) !important;
    color: #fff !important;
}

.product .product-action .btn-product.btn-cart:hover i,
.product .product-action .btn-product.btn-cart:hover span {
    color: #fff !important;
}

/* CRITICAL: Hide wishlist and compare icons from product-action to prevent duplicates */
.product .product-action .btn-product-icon.btn-wishlist,
.product .product-action .btn-product-icon.btn-compare {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure product-action-vertical icons are visible and properly styled */
.product .product-action-vertical {
    display: flex !important;
    flex-direction: column !important;
}

.product .product-action-vertical .btn-product-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 0.5rem !important;
}

.product .product-action-vertical .btn-product-icon:last-child {
    margin-bottom: 0 !important;
}

/* CRITICAL: Ensure only ONE wishlist icon and ONE compare icon total in product-action-vertical */
/* Hide ALL duplicate wishlist icons - only show the first one */
.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist:not(:first-of-type),
.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist
    ~ .btn-product-icon.btn-wishlist,
.product .product-action-vertical .btn-product-icon.btn-wishlist ~ form,
.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist
    ~ a.btn-product-icon.btn-wishlist,
.product .product-action-vertical form ~ .btn-product-icon.btn-wishlist,
.product .product-action-vertical form ~ form,
.product
    .product-action-vertical
    a.btn-product-icon.btn-wishlist
    ~ .btn-product-icon.btn-wishlist,
.product .product-action-vertical a.btn-product-icon.btn-wishlist ~ form {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* Hide ALL duplicate compare icons - only show the first one */
.product
    .product-action-vertical
    .btn-product-icon.btn-compare:not(:first-of-type),
.product
    .product-action-vertical
    .btn-product-icon.btn-compare
    ~ .btn-product-icon.btn-compare,
.product
    .product-action-vertical
    .btn-product-icon.btn-compare
    ~ button.btn-product-icon.btn-compare,
.product
    .product-action-vertical
    .btn-product-icon.btn-compare
    ~ a.btn-product-icon.btn-compare,
.product
    .product-action-vertical
    button.btn-product-icon.btn-compare
    ~ .btn-product-icon.btn-compare,
.product .product-action-vertical button.btn-product-icon.btn-compare ~ button,
.product
    .product-action-vertical
    a.btn-product-icon.btn-compare
    ~ .btn-product-icon.btn-compare,
.product .product-action-vertical a.btn-product-icon.btn-compare ~ button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* Ensure forms and buttons don't create visual duplicates */
.product .product-action-vertical form {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product .product-action-vertical form .btn-product-icon {
    display: flex !important;
}

/* Icon hover effects - fill with gold on hover */
.product .product-action-vertical .btn-product-icon.btn-wishlist i.icon-heart-o,
.product .product-action-vertical .btn-product-icon.btn-wishlist i.icon-heart {
    color: var(--gold-primary) !important;
    transition: all 0.3s ease !important;
}

.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist:hover
    i.icon-heart-o::before {
    content: "\f004" !important; /* Filled heart icon */
    color: var(--gold-primary) !important;
}

.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist:hover
    i.icon-heart-o {
    color: var(--gold-primary) !important;
}

.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist.active
    i.icon-heart,
.product
    .product-action-vertical
    .btn-product-icon.btn-wishlist:hover
    i.icon-heart {
    color: var(--gold-primary) !important;
}

.product .product-action-vertical .btn-product-icon.btn-compare i.icon-random {
    color: var(--gold-primary) !important;
    transition: all 0.3s ease !important;
}

.product
    .product-action-vertical
    .btn-product-icon.btn-compare:hover
    i.icon-random {
    color: var(--gold-primary) !important;
    transform: scale(1.1) !important;
}

/* Quick view button styling - no blue */
.btn-product.btn-quickview,
.btn-product.btn-quickview span,
.btn-product.btn-quickview * {
    color: #000 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-product.btn-quickview:hover,
.btn-product.btn-quickview:focus,
.btn-product.btn-quickview:hover span,
.btn-product.btn-quickview:focus span,
.btn-product.btn-quickview:hover *,
.btn-product.btn-quickview:focus * {
    color: var(--gold-primary) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Product List View Image Slider */
.product-main-image {
    transition: opacity 0.3s ease-in-out;
}

.product-nav-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-nav-thumbs a {
    display: block;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
}

.product-nav-thumbs a.active {
    border-color: #d4af37;
}

.product-nav-thumbs a img {
    /* Keep thumbs consistent across grid sizes */
    width: clamp(42px, 10vw, 60px);
    height: clamp(42px, 10vw, 60px);
    object-fit: cover;
    display: block;
}

.product-nav-thumbs a:hover {
    border-color: #b8860b;
}

/* Product list layout: align content like Shop list view spec (name/meta/desc + right-side actions) */
.product.product-list .product-list-action-custom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

/* Keep the actions (links row + cart button) perfectly aligned as one block */
.product.product-list .product-list-action-custom .product-action-list-row,
.product.product-list .product-list-action-custom .btn-product.btn-cart {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.product.product-list .product-list-action-custom .product-action-list-row {
    margin-top: 0.25rem;
}

.product.product-list .product-list-action-custom .btn-product.btn-cart {
    margin-top: 0.35rem;
}

.product.product-list .product-list-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product.product-list .product-list-title-row .btn-product-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff;
}

.product.product-list .product-list-title-row .btn-product-icon:hover {
    border-color: var(--gold-primary, #d4af37);
}

.product.product-list .product-body .product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product.product-list .product-body .product-cat {
    margin-bottom: 0.75rem;
}

.product.product-list .product-action-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product.product-list .product-action-vertical-list .btn-product {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* List view: quickview/compare row above Add to Cart (template-like) */
.product.product-list .product-action-list-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 0.25rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    width: 100%;
}

.product.product-list .product-action-list-row .btn-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    text-decoration: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.product.product-list .product-action-list-row .btn-product.btn-quickview {
    flex: 0 0 auto;
}

.product.product-list .product-action-list-row .btn-product.btn-quickview span {
    font-size: 0.95rem;
}

.product.product-list .product-action-list-row .btn-product.btn-compare {
    flex: 0 0 auto;
    margin-left: 0.85rem;
    padding-left: 0.85rem;
    position: relative;
    border-left: 0 !important;
}

.product.product-list
    .product-action-list-row
    .btn-product.btn-compare::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #d0d0d0;
}

.product.product-list .product-action-list-row .btn-product.btn-compare:hover {
    color: var(--gold-primary, #d7a500);
}

.product.product-list .product-action-list-row .btn-product.btn-compare.active {
    color: var(--gold-primary, #d7a500);
}

.product.product-list .product-action-list-row .btn-product:hover,
.product.product-list .product-action-list-row .btn-product:focus {
    color: var(--gold-primary, #d7a500);
}

.product.product-list .product-list-action-custom .btn-product.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    width: 100%;
}

/* Make list-view Add to Cart look like template (bordered, full width) */
.product.product-list .product-list-action-custom .btn-product.btn-cart {
    border: 1px solid #d7a500;
    background: var(--gold-primary, #d7a500);
    color: #fff;
    border-radius: 4px;
}

.product.product-list .product-list-action-custom .btn-product.btn-cart:hover {
    background: #b8860b;
    color: #fff;
}

.product.product-list .product-list-action-custom .btn-product.btn-cart:hover i,
.product.product-list
    .product-list-action-custom
    .btn-product.btn-cart:focus
    i {
    color: inherit;
}

/* Price Filter Styles */
#price-filter-form #price-slider,
#mobile-filter-form #mobile-price-slider {
    margin: 15px 0;
}

#price-filter-form button[type="submit"] {
    margin-top: 30px !important;
}

.filter-price-text {
    margin-bottom: 10px;
}

/* Pagination Styles */
#pagination-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

#pagination-container .pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pagination-container .pagination-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

#pagination-container .pagination {
    justify-content: center;
    margin-bottom: 0;
}

#pagination-container .pagination .page-link {
    color: #333;
    border-color: #dee2e6;
    padding: 0.5rem 1rem;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: auto;
    white-space: nowrap;
}

#pagination-container .pagination .page-link:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

#pagination-container .pagination .page-item.active .page-link {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    font-weight: 600;
}

#pagination-container .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

#pagination-container .pagination .page-item.disabled .page-link:hover {
    background-color: #fff;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Dark mode pagination */
body.dark-mode #pagination-container {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode #pagination-container .pagination-info {
    color: #d4af37;
}

body.dark-mode #pagination-container .pagination .page-link {
    background-color: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4af37;
}

body.dark-mode #pagination-container .pagination .page-link:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

body.dark-mode #pagination-container .pagination .page-item.active .page-link {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

body.dark-mode
    #pagination-container
    .pagination
    .page-item.disabled
    .page-link {
    background-color: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(212, 175, 55, 0.5);
}

/* Location Selector Styles */
.location-selector {
    position: relative;
}

.location-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.location-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Location Modal Styles */
#location-modal .modal-content {
    border-radius: 8px;
}

#location-modal .modal-header,
#location-modal .modal-body {
    direction: ltr; /* keep English layout mechanics stable */
}

#location-modal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
}

#location-modal .modal-title {
    font-weight: 600;
    color: #333;
    font-size: 1.6rem;
}

#location-modal .modal-body {
    padding: 2rem;
}

#location-modal .modal-body .form-group {
    margin-bottom: 1.75rem;
}

#location-modal label {
    display: block;
    margin-bottom: 0.75rem;
    color: #666;
}

#location-modal .form-control {
    height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
}

#location-modal .form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.25);
}

#location-modal hr.my-4 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

#use-gps-btn-modal,
#save-location-btn-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
}

#use-gps-btn-modal i,
#save-location-btn-modal i {
    margin: 0;
}

/* Give the GPS button a bit more “premium” feel */
#use-gps-btn-modal {
    border-color: rgba(212, 175, 55, 0.8);
}

#use-gps-btn-modal:hover {
    background-color: rgba(212, 175, 55, 0.08);
}

#location-modal .close {
    color: #333;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#location-modal .close:hover {
    opacity: 1;
    color: #d4af37;
}

/* Saved Addresses in Location Selector */
.saved-addresses-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.saved-addresses-list {
    max-height: 200px;
    overflow-y: auto;
}

.saved-address-btn {
    border: 1px solid #ddd;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.saved-address-btn:hover {
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.saved-address-btn .text-muted {
    font-size: 0.75rem;
}

/* Dark Mode - Saved Addresses */
body.dark-mode .saved-addresses-section {
    border-bottom-color: #404040;
}

body.dark-mode .saved-address-btn {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #d4af37;
}

body.dark-mode .saved-address-btn:hover {
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.15);
    color: #b8860b;
}

body.dark-mode .saved-address-btn .text-muted {
    color: #b0b0b0 !important;
}

/* Search Bar Select Dropdown */
.header-search-wrapper {
    display: flex;
    align-items: stretch;
    flex-direction: row;
}

/* Search Button (Loop) - Left side */
.header-search-wrapper .btn-primary,
.header-search-wrapper .search-btn-left {
    border-radius: 20px 0 0 20px;
    border-right: none;
    flex-shrink: 0;
    order: 1;
}

/* Search Input Field - Middle - Specific class to avoid conflicts */
/* Override gold-theme.css with more specific selectors */
.header-search-wrapper input.search-input-field.form-control,
.header-search-wrapper .search-input-field.form-control,
.header-search-extended .search-input-field.form-control,
.header-search .search-input-field.form-control,
.header-search-wrapper .search-input-field,
.header-search-wrapper input.search-input-field,
.header-search-extended .search-input-field,
.header-search .search-input-field {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    flex: 1;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    padding: 0.75rem 1.25rem !important;
    height: 45px !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
    order: 2;
}

.header-search-wrapper input.search-input-field.form-control::placeholder,
.header-search-wrapper .search-input-field.form-control::placeholder,
.header-search-extended .search-input-field.form-control::placeholder,
.header-search .search-input-field.form-control::placeholder,
.header-search-wrapper .search-input-field::placeholder,
.header-search-extended .search-input-field::placeholder,
.header-search .search-input-field::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.header-search-wrapper input.search-input-field.form-control:focus,
.header-search-wrapper .search-input-field.form-control:focus,
.header-search-extended .search-input-field.form-control:focus,
.header-search .search-input-field.form-control:focus,
.header-search-wrapper .search-input-field:focus,
.header-search-extended .search-input-field:focus,
.header-search .search-input-field:focus {
    background-color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5) !important;
    color: #000 !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
    outline: none !important;
}

/* Select Tag - Right side with gold background - Specific class */
/* Override any form-control styles that might apply */
.header-search-wrapper select.search-type-select,
.header-search-extended select.search-type-select,
.header-search select.search-type-select,
.header-search-wrapper .search-type-select,
.header-search-extended .search-type-select,
.header-search .search-type-select,
.search-type-select {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-left: none !important;
    border-radius: 0 20px 20px 0 !important;
    padding: 0.5rem 0.35rem !important;
    background-color: #d4af37 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.3rem center !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    height: 45px !important;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 1.3rem !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
    order: 3;
}

.search-type-select:hover {
    background-color: #b8860b;
}

.search-type-select:focus {
    outline: none;
    background-color: #b8860b !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: #fff !important;
}

.search-type-select option {
    background: #d4af37 !important;
    color: white !important;
    padding: 0.5rem;
}

/* Dark mode search input field */
body.dark-mode .header-search-wrapper .search-input-field {
    background-color: #2d2d2d !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #d4af37 !important;
}

body.dark-mode .header-search-wrapper .search-input-field::placeholder {
    color: rgba(212, 175, 55, 0.6) !important;
}

body.dark-mode .header-search-wrapper .search-input-field:focus {
    background-color: #2d2d2d !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    color: #d4af37 !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* Dark mode search select - keep gold background */
body.dark-mode .search-type-select {
    background-color: #d4af37 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
}

body.dark-mode .search-type-select:hover {
    background-color: #b8860b !important;
    color: #fff !important;
}

body.dark-mode .search-type-select:focus {
    background-color: #b8860b !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* Store Card Styles */
.store-card .card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-logo {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #d4af37;
    color: #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Category Dropdown Enhancement */
/* Spacing for header-bottom to separate from burger menu */
.header-bottom .header-left {
    padding-left: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

/* Toggle Button - Light Mode (Gold Theme) */
.category-dropdown {
    margin-left: 0.5rem !important;
}

.category-dropdown .dropdown-toggle {
    color: #d4af37 !important;
    background-color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 500 !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.category-dropdown .dropdown-toggle:hover,
.category-dropdown .dropdown-toggle:focus,
.category-dropdown:not(.is-on):hover .dropdown-toggle {
    color: #b8860b !important;
    background-color: #fff !important;
    border-color: #d4af37 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-1px) !important;
}

.category-dropdown .dropdown-toggle .icon-angle-down {
    color: #d4af37 !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
    margin-left: 0.25rem !important;
}

.category-dropdown .dropdown-toggle:hover .icon-angle-down,
.category-dropdown .dropdown-toggle:focus .icon-angle-down {
    color: #b8860b !important;
}

.category-dropdown .dropdown-toggle:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.15) !important;
}

.category-dropdown.show .dropdown-toggle,
.category-dropdown.is-on .dropdown-toggle {
    color: #b8860b !important;
    border-color: #d4af37 !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2) !important;
}

.category-dropdown.show .dropdown-toggle .icon-angle-down,
.category-dropdown.is-on .dropdown-toggle .icon-angle-down {
    color: #b8860b !important;
    transform: rotate(180deg) !important;
}

.category-dropdown .dropdown-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 0 !important;
    min-width: 300px !important;
    animation: fadeInDown 0.3s ease !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-dropdown .menu-vertical li {
    transition: all 0.2s ease;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.category-dropdown .menu-vertical li:last-child {
    border-bottom: none !important;
}

.category-dropdown .menu-vertical li:hover {
    background-color: rgba(212, 175, 55, 0.08) !important;
}

.category-dropdown .menu-vertical li a {
    color: #000 !important;
    transition: all 0.3s ease !important;
    padding: 0.75rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-decoration: none !important;
}

.category-dropdown .menu-vertical li a:hover {
    color: #d4af37 !important;
    background-color: transparent !important;
    padding-left: 1.5rem !important;
}

.category-dropdown .menu-vertical li a .category-item-icon {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    background-color: #f8f9fa !important;
    padding: 0.25rem !important;
}

.category-dropdown .menu-vertical li a:hover .category-item-icon {
    background-color: rgba(212, 175, 55, 0.1) !important;
    transform: scale(1.05) !important;
}

.category-dropdown .menu-vertical li a .category-item-name {
    flex: 1 !important;
    font-weight: 500 !important;
}

.category-dropdown .menu-vertical li a:hover .icon-angle-right {
    color: #d4af37 !important;
    transform: translateX(5px) !important;
    transition: all 0.3s ease !important;
}

.category-dropdown .menu-vertical li:last-child {
    border-bottom: none !important;
}

/* Dark mode category dropdown */
#filter-price-range {
    color: #d4af37 !important;
}

/* Toggle Button - Dark Mode */
body.dark-mode .category-dropdown .dropdown-toggle,
body.dark-mode .category-dropdown a.dropdown-toggle {
    color: #d4af37 !important;
    background-color: #2d2d2d !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .category-dropdown .dropdown-toggle:hover,
body.dark-mode .category-dropdown .dropdown-toggle:focus,
body.dark-mode .category-dropdown:not(.is-on):hover .dropdown-toggle {
    color: #b8860b !important;
    background-color: #3a3a3a !important;
    border-color: #d4af37 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-1px) !important;
}

body.dark-mode .category-dropdown .dropdown-toggle:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2) !important;
}

body.dark-mode .category-dropdown.show .dropdown-toggle,
body.dark-mode .category-dropdown.is-on .dropdown-toggle {
    color: #b8860b !important;
    border-color: #d4af37 !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3) !important;
}

body.dark-mode .category-dropdown .dropdown-toggle .icon-angle-down {
    color: #d4af37 !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
    margin-left: 0.25rem !important;
}

body.dark-mode .category-dropdown .dropdown-toggle:hover .icon-angle-down,
body.dark-mode .category-dropdown .dropdown-toggle:focus .icon-angle-down {
    color: #b8860b !important;
}

body.dark-mode .category-dropdown.show .dropdown-toggle .icon-angle-down,
body.dark-mode .category-dropdown.is-on .dropdown-toggle .icon-angle-down {
    color: #b8860b !important;
    transform: rotate(180deg) !important;
}

body.dark-mode .category-dropdown .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 0 !important;
    min-width: 300px !important;
    animation: fadeInDown 0.3s ease !important;
}

body.dark-mode .category-dropdown .menu-vertical li {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

body.dark-mode .category-dropdown .menu-vertical li:last-child {
    border-bottom: none !important;
}

body.dark-mode .category-dropdown .menu-vertical li:hover {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

body.dark-mode .category-dropdown .menu-vertical li a {
    color: #d4af37 !important;
    transition: all 0.3s ease !important;
    padding: 0.75rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-decoration: none !important;
}

body.dark-mode .category-dropdown .menu-vertical li a:hover {
    color: #b8860b !important;
    background-color: transparent !important;
    padding-left: 1.5rem !important;
}

body.dark-mode .category-dropdown .menu-vertical li a .category-item-icon {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    padding: 0.25rem !important;
}

body.dark-mode
    .category-dropdown
    .menu-vertical
    li
    a:hover
    .category-item-icon {
    background-color: rgba(212, 175, 55, 0.15) !important;
    transform: scale(1.05) !important;
}

body.dark-mode .category-dropdown .menu-vertical li a .category-item-name {
    flex: 1 !important;
    font-weight: 500 !important;
}

body.dark-mode .category-dropdown .menu-vertical li a .icon-angle-right {
    color: rgba(212, 175, 55, 0.6) !important;
    transition: all 0.3s ease !important;
}

body.dark-mode .category-dropdown .menu-vertical li a:hover .icon-angle-right {
    color: #b8860b !important;
    transform: translateX(5px) !important;
}

/* Mobile Menu Toggler Spacing */
.mobile-menu-toggler {
    margin-right: 0.5rem !important;
}

/* Ensure burger menu is always visible on mobile */
@media (max-width: 991.98px) {
    .mobile-menu-toggler {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.header-middle .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

@media (max-width: 991.98px) {
    .header-top {
        display: none; /* Hide header-top on mobile to simplify */
    }

    .header-middle .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 10px;
        position: relative;
    }

    .header-middle .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        order: 1;
        margin-bottom: 0;
        /* position: relative; */
        z-index: 5;
        padding-left: 15px;
        padding-right: 15px;
        min-height: 60px; /* Give space for logo */
    }

    /* Burger Menu - Right side for English (LTR) */
    .header-middle .mobile-menu-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: #333;
        z-index: 15;
        position: absolute;
        right: 0; /* Extreme right edge */
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    /* Ensure burger menu is on right for LTR */
    body[dir="ltr"] .header-middle .mobile-menu-toggler,
    html[dir="ltr"] .header-middle .mobile-menu-toggler {
        right: 0 !important;
        left: auto !important;
    }

    .header-middle .mobile-menu-toggler:hover {
        color: var(--primary-color);
    }

    .header-middle .mobile-menu-toggler i {
        font-size: 25px;
    }

    /* Logo - Centered, slightly larger */
    .header-middle .header-left .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        z-index: 10;
        max-width: 190px !important; /* Increased size */
        width: auto;
        order: 1;
    }

    .header-middle .logo img {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        max-width: 190px !important; /* Match container max-width */
    }

    .header-middle .header-center {
        display: none; /* Hide search on mobile in header-middle */
    }

    .header-middle .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100%;
        order: 2; /* Icons come after logo */
        margin-top: 20px; /* Space between logo and icons */
        flex-wrap: wrap;
        position: relative;
        z-index: 5;
    }

    .header-middle .header-right .dark-mode-toggle-wrapper,
    .header-middle .header-right .dropdown.compare-dropdown,
    .header-middle .header-right .wishlist,
    .header-middle .header-right .cart-dropdown {
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-middle .header-right p {
        font-size: 0.75rem;
        margin-top: 2px;
        margin-bottom: 0;
        text-align: center;
        line-height: 1.2;
    }

    .header-middle .header-right .icon {
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-search {
        max-width: 100%;
        margin: 1rem 0;
    }

    .main-nav .menu {
        flex-direction: column;
    }

    .main-nav .menu li {
        margin: 0.5rem 0;
    }

    .header-bottom .header-left {
        padding-left: 0.5rem !important;
        gap: 0.75rem !important;
    }

    .category-dropdown {
        margin-left: 0.25rem !important;
    }


    .header-bottom {
        display: none !important;
    }
}

/* Fix for the moon/compare overlap shown in image */
@media (max-width: 576px) {
    /* Logo size for small screens */
    .header-middle .header-left .logo {
        max-width: 170px !important;
    }

    .header-middle .logo img {
        max-width: 100px !important;
    }

    .header-middle .header-right {
        gap: 0.75rem !important;
        justify-content: center !important;
    }

    .header-middle .header-right .dark-mode-toggle-wrapper,
    .header-middle .header-right .dropdown.compare-dropdown,
    .header-middle .header-right .wishlist,
    .header-middle .header-right .cart-dropdown {
        flex: 0 0 auto;
    }

    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .header-middle .header-right .icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-middle .header-right .icon i {
        font-size: 1.5rem !important;
    }

    .header-middle .header-right p {
        font-size: 0.7rem;
    }
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar-close:hover {
    color: #d4af37;
}

/* Auth Pages Styles */
.page-content .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.page-content .card-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.page-content .form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-content .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.page-content .form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.page-content .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
}

.page-content .text-primary {
    color: #d4af37 !important;
}

.page-content .text-primary:hover {
    color: #b8860b !important;
    text-decoration: none;
}

/* Dark Mode Auth Pages */
body.dark-mode .page-content .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .page-content .card-title {
    color: #d4af37;
}

body.dark-mode .page-content .form-group label {
    color: #d4af37;
}

body.dark-mode .page-content .form-control {
    background-color: #3a3a3a;
    border-color: #404040;
    color: #fff;
}

body.dark-mode .page-content .form-control:focus {
    background-color: #3a3a3a;
    border-color: #d4af37;
    color: #fff;
}

body.dark-mode .page-content .form-control::placeholder {
    color: #999;
}

body.dark-mode .page-content .text-muted {
    color: #b0b0b0 !important;
}

body.dark-mode .page-content .text-primary {
    color: #d4af37 !important;
}

body.dark-mode .page-content .text-primary:hover {
    color: #b8860b !important;
}

/* Header Dropdown Menu - Logout Button */
.header-menu .logout-form {
    display: block;
    margin: 0;
    padding: 0;
}

.header-menu .logout-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: inherit;
    font-family: inherit;
    transition: all 0.3s ease;
    display: block;
}

.header-menu .logout-btn:hover {
    color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
}

/* Dark Mode - Header Menu Logout */
body.dark-mode .header-menu .logout-btn {
    color: #d4af37 !important;
}

body.dark-mode .header-menu .logout-btn:hover {
    color: #b8860b !important;
    background-color: rgba(212, 175, 55, 0.15) !important;
}

/* Floating Cart Button */
#floating-cart {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 56px;
    height: 56px;
    background-color: #d4af37;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
}

#floating-cart.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#floating-cart i {
    color: #fff !important;
    font-size: 32px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 10px !important;
}

#floating-cart:hover {
    background-color: #b8860b;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
    color: #fff;
    text-decoration: none;
}

#floating-cart .floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fff;
    color: #d4af37;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #d4af37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cart Flyer Animation */
.cart-flyer {
    pointer-events: none;
}

/* Pulse Animation */
.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart Bounce Animation */
.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
    0%,
    100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-3deg);
    }
}

/* Cart Count Badge Animation */
.cart-count,
.floating-cart-count {
    transition: all 0.3s ease;
}

.cart-count.updated,
.floating-cart-count.updated {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Cart Dropdown - Show All Items with Scrollbar */
.dropdown-cart-products {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
}

/* Custom Gold Scrollbar for Cart Dropdown */
.dropdown-cart-products::-webkit-scrollbar {
    width: 8px;
}

.dropdown-cart-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-cart-products::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.dropdown-cart-products::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Firefox scrollbar */
.dropdown-cart-products {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #f1f1f1;
}

/* Scroll to Top Button - Ensure it's available on all pages */
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border: 2px solid #333;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#scroll-top.show {
    display: flex;
}

#scroll-top:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}
.owl-theme .owl-nav [class*="owl-"]:not(.disabled):hover {
    border-color: #d4af37;
    background: #d4af37;
}
.owl-theme.owl-light .owl-nav [class*="owl-"] {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.7);
    color: #000000;
}

/* Additional Category Page Fixes */
@media (max-width: 991.98px) {
    .sidebar-shop {
        margin-bottom: 3rem;
    }

    .toolbox {
        margin-bottom: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toolbox-right {
        width: 100%;
        justify-content: space-between !important;
    }

    .toolbox-sort {
        margin-right: 0 !important;
    }

    .banner-poster {
        min-height: 15rem;
    }
}

@media (max-width: 576px) {
    .category-info .col-auto {
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }

    .category-info .category-icon {
        margin: 0 auto;
    }

    .category-info .col {
        text-align: center;
    }

    /* Fix the header middle icons size */
    .header-middle .header-right .icon i {
        font-size: 20px !important;
    }

    .header-middle .header-right .dark-mode-toggle svg {
        width: 18px;
        height: 18px;
    }

    .header-middle .header-right .wishlist,
    .header-middle .header-right .compare-dropdown,
    .header-middle .header-right .cart-dropdown {
        padding: 0 5px;
    }
}

/* Sticky Header Mobile fixes */
.sticky-header.fixed {
    background-color: #fff;
}

body.dark-mode .sticky-header.fixed {
    background-color: #2d2d2d;
}

/* ==============================================
   Product Gallery Vertical Layout
   ============================================== */
.product-gallery-vertical .row {
    margin-left: 0;
    margin-right: 0;
}

.product-gallery-vertical .product-main-image {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.product-gallery-vertical .product-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: -5px;
    margin-right: -5px;
}

.product-gallery-item {
    display: block;
    width: 70px; /* Default thumbnail size */
    /* height: 70px; */
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-gallery-item.active,
.product-gallery-item:hover {
    border-color: #d4af37;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .product-gallery-vertical .row {
        flex-wrap: nowrap;
    }

    .product-details-top .col-md-6 {
        display: flex;
        flex-direction: column;
    }

    .product-gallery-vertical .product-main-image {
        flex: 1;
        max-width: calc(100% - 120px); /* Adjust based on sidebar width */
        order: 2;
        margin-bottom: 0;
    }

    .product-gallery-vertical .product-image-gallery {
        flex: 0 0 100px;
        max-width: 100px;
        flex-direction: column;
        margin-right: 20px; /* Space between thumbs and main image */
        order: 1;
        margin-left: 0;
        gap: 10px;
    }

    .product-gallery-item {
        width: 100%;
        /* height: 100px; */ /* Larger thumbs on desktop */
    }
}

@media (max-width: 991px) {
    .product-gallery-vertical .row {
        flex-direction: column;
    }
    .product-gallery-vertical .product-image-gallery {
        justify-content: center;
    }
}

/* ==============================================
   Sidebar Shop (Search Page)
   ============================================== */
.sidebar-shop .widget {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 2rem;
}

.sidebar-shop .widget:last-child {
    border-bottom: none;
}

.sidebar-shop .widget-title {
    color: #333;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.sidebar-shop .widget-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ebebeb;
}

.sidebar-shop .widget-clean label {
    margin: 0;
    color: #333;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.sidebar-shop .sidebar-filter-clear {
    color: #c96;
    font-size: 1.3rem;
}

.sidebar-shop .filter-item {
    position: relative;
    margin-bottom: .5rem;
}

/* Sidebar toggler for mobile */
.sidebar-toggler {
    display: none;
    align-items: center;
    color: #333;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2rem;
    margin-right: 2rem;
    cursor: pointer;
}
.sidebar-toggler i {
    font-size: 1.8rem;
    margin-right: 1rem;
}

@media (max-width: 991px) {
    .sidebar-toggler {
        display: flex;
    }

}

/* Mobile Filter Sidebar Styles - Wrapped in Media Query */
@media (max-width: 991.98px) {
    .mobile-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100% !important;
        background-color: #fff;
        z-index: 20000 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        visibility: hidden;
        display: block !important; /* Ensure it overrides any theme-level display: none */
        overflow-y: auto;
        padding: 0; /* Changed from 20px - padding will be handled by internal widgets */
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        margin: 0;
    }

    .mobile-filter-sidebar.active {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-filter-sidebar .sidebar-wrapper {
        padding: 5rem 2rem 2rem 2rem; /* Add consistent padding inside the wrapper */
    }

    .mobile-filter-sidebar .widget {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-filter-sidebar .widget:last-child {
        border-bottom: none;
    }

    body.sidebar-filter-active {
        overflow: hidden;
    }

    .sidebar-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 10000; /* Just below sidebar (10001) */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        pointer-events: none; /* Allow clicks to pass through when inactive */
    }

    .sidebar-filter-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Block clicks when active */
    }

    /* RTL Support for Mobile Sidebar */
    html[dir='rtl'] .mobile-filter-sidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    html[dir='rtl'] .mobile-filter-sidebar.active {
        transform: translateX(0);
    }

    /* Mobile Filter Toggle Button */
    .btn-filter-mobile {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        border: 1px solid #D4AF37;
        border-radius: 30px;
        background-color: #D4AF37;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    }

    .btn-filter-mobile:hover, .btn-filter-mobile:focus {
        background-color: #b8860b;
        border-color: #b8860b;
        color: #fff;
        box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    }

    .btn-filter-mobile i {
        font-size: 1.2rem;
    }

    /* Close Button in Sidebar */
    .btn-close-filter {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 2rem;
        line-height: 1;
        color: #333;
        padding: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 11; /* Higher than sidebar content */
        transition: color 0.3s ease;
    }

    .btn-close-filter:hover {
        color: #D4AF37;
    }

    html[dir='rtl'] .btn-close-filter {
        right: auto;
        left: 15px;
    }
}

/* Fix for shop-grid-item padding */
@media (max-width: 767px) {
    .shop-grid-item {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Cart & Wishlist Sidebar Styles */
/* Cart & Wishlist Sidebar Styles */
.cart-sidebar, .wishlist-sidebar {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    width: 350px;
    max-width: 85vw;
    background-color: #fff;
    z-index: 10001 !important; /* Higher than overlay (10000) */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: none; /* Safety first: hide from flow */
    flex-direction: column;
    pointer-events: none; /* Disable when hidden */
}

.cart-sidebar.active, .wishlist-sidebar.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    display: flex !important; /* Show when active */
    pointer-events: auto !important; /* Enable clicks when active */
    z-index: 10001 !important;
}

/* RTL Support for Cart/Wishlist */
body[dir="rtl"] .cart-sidebar,
body[dir="rtl"] .wishlist-sidebar,
html[dir='rtl'] .cart-sidebar,
html[dir='rtl'] .wishlist-sidebar {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

body[dir="rtl"] .cart-sidebar.active,
body[dir="rtl"] .wishlist-sidebar.active,
html[dir='rtl'] .cart-sidebar.active,
html[dir='rtl'] .wishlist-sidebar.active {
    transform: translateX(0) !important;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.btn-sidebar-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.btn-sidebar-close:hover {
    color: var(--primary-color);
}


/* Global Responsive Fixes */
html, body {
    overflow-x: hidden;
}

/* Ensure sidebars don't cause overflow even when hidden */
.cart-sidebar, .wishlist-sidebar, .mobile-filter-sidebar {
    max-width: 100% !important; /* Prevent wider than screen */
}

/* Age Confirmation Modal Styles */
.age-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.age-confirmation-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.age-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.age-confirmation-box {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    height: fit-content;
    margin: auto;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    align-self: center;
}

.age-confirmation-modal.active .age-confirmation-box {
    transform: scale(1) translateY(0);
}

.age-confirmation-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
}

.age-confirmation-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.02em;
}

.age-confirmation-body {
    padding: 2rem 2.5rem;
    text-align: center;
}

.age-confirmation-body p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #666;
}

.age-confirmation-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-confirmation-footer .btn {
    min-width: 160px;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.age-confirm-yes {
    background-color: #d4af37;
    color: #fff;
}

.age-confirm-yes:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.age-confirm-no {
    background-color: #f5f5f5;
    color: #333;
}

.age-confirm-no:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Age Restriction Message */
.age-restriction-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-restriction-content {
    text-align: center;
    max-width: 600px;
}

.age-restriction-icon {
    font-size: 6rem;
    color: #d4af37;
    margin-bottom: 2rem;
}

.age-restriction-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* RTL Support */
html[dir='rtl'] .age-confirmation-footer {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 575px) {
    .age-confirmation-box {
        width: 95%;
        margin: 1rem;
    }

    .age-confirmation-header {
        padding: 2rem 1.5rem 1rem;
    }

    .age-confirmation-title {
        font-size: 1.6rem;
    }

    .age-confirmation-body {
        padding: 1.5rem;
    }

    .age-confirmation-body p {
        font-size: 1.4rem;
    }

    .age-confirmation-footer {
        padding: 1rem 1.5rem 2rem;
        flex-direction: column;
    }

    .age-confirmation-footer .btn {
        width: 100%;
        min-width: auto;
    }

    .age-restriction-content h3 {
        font-size: 1.6rem;
    }

    .age-restriction-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
}

/* Fix product gallery width on mobile */
@media (max-width: 767px) {
    .product-gallery, .product-details {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .product-details-top .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-6 {
        /* Ensure 2 columns for grid items, but reset for other col-6 usage if needed */
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* Mobile Menu Info Section */
.mobile-menu-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background-color: #D4AF37; /* Gold Primary */
    border-radius: 8px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 2rem;
}

.mobile-menu-info .info-item {
    margin-bottom: 1.5rem;
}

.mobile-menu-info .info-item:last-child {
    margin-bottom: 0;
}

.mobile-menu-info .info-item a {
    display: flex;
    align-items: center;
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 500;
}

.mobile-menu-info .info-item i {
    font-size: 1.8rem;
    margin-right: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
}

.mobile-menu-info .info-item span {
    color: #fff;
}

/* Adjust social icons spacing to match */
.mobile-menu-wrapper .social-icons {
    justify-content: center;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

/* ============================================
   RESPONSIVE MOBILE FIXES FOR PAGES
   ============================================ */

/* Mobile Container Padding Fix */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Page Content Responsive */
    .page-content {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .page-content .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }

    /* Remove max-width restrictions on mobile */
    .page-content .container[style*="max-width"] {
        max-width: 100% !important;
    }

    /* Page Header Responsive */
    .page-header {
        padding: 2rem 0;
    }

    .page-header .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-title span {
        display: block;
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }

    /* Breadcrumb Responsive */
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }

    .breadcrumb-nav .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .breadcrumb {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        word-break: break-word;
    }

    /* Page Content Typography */
    .page-content h1,
    .page-content h2 {
        font-size: 1.75rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-content h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        margin-top: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-content ul,
    .page-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .page-content li {
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Icon Box Responsive (for how-to-shop page) */
    .icon-box {
        margin-bottom: 1.5rem;
    }

    .icon-box-side {
        flex-direction: column;
        text-align: center;
    }

    .icon-box-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .icon-box-content {
        text-align: center;
    }

    .icon-box-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    /* Button Responsive */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .btn-round {
        margin-bottom: 0.5rem;
    }

    /* Row and Column Responsive */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
    }

    /* Global reset rules - commented out as not needed */
    /* * { max-width: 100%; box-sizing: border-box; } */

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-content .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-header .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .breadcrumb-nav .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-content h1,
    .page-content h2 {
        font-size: 1.5rem;
    }

    .page-content h3 {
        font-size: 1.25rem;
    }

    .page-content p {
        font-size: 0.9rem;
    }

    .row {
        margin-left: -12px;
        margin-right: -12px;
    }

    .row > [class*="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Brands Carousel Responsive */
    .brands-carousel {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .brands-carousel.owl-carousel {
        display: block;
    }

    .brands-carousel .owl-stage-outer {
        overflow: hidden;
        position: relative;
    }

    .brands-carousel .owl-stage {
        display: flex;
        align-items: center;
    }

    .brands-carousel .owl-item {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .brands-carousel .brand {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 25px;
        min-height: 140px;
        height: 100%;
        width: 100%;
    }

    .brands-carousel .brand img {
        max-width: 85%;
        height: auto;
        max-height: 140px;
        width: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* Container adjustments for brands carousel */
    .container .brands-carousel {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Slider Banner Mobile Fixes - English */
    .intro-slider-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 310px !important;
        min-height: 310px !important;
        overflow: visible !important;
    }

    .intro-slider {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 310px !important;
    }

    .intro-slider .owl-stage-outer {
        display: block !important;
        visibility: visible !important;
        height: 310px !important;
        min-height: 310px !important;
    }

    .intro-slider .owl-stage {
        display: block !important;
        visibility: visible !important;
        height: 310px !important;
        min-height: 310px !important;
    }

    .intro-slider .owl-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 310px !important;
        min-height: 310px !important;
        position: relative !important;
    }

    .intro-slide {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
        height: 310px !important;
        min-height: 310px !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .intro-slide img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 310px !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 0 !important;
    }

    /* Force owl-carousel to show on mobile */
    .intro-slider.owl-carousel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .intro-slider.owl-loading,
    .intro-slider.owl-hidden {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* Slider Banner - Small Mobile (480px+) - English */
@media (min-width: 480px) and (max-width: 575.98px) {
    .intro-slider-container,
    .intro-slider,
    .intro-slider .owl-stage-outer,
    .intro-slider .owl-stage,
    .intro-slider .owl-item,
    .intro-slide {
        height: 320px !important;
        min-height: 320px !important;
    }

    .intro-slide img {
        height: 320px !important;
        min-height: 320px !important;
    }
}

/* Brands Carousel - Small Mobile (480px+) */
@media (min-width: 480px) {
    .brands-carousel .brand {
        min-height: 140px;
        padding: 25px;
    }

    .brands-carousel .brand img {
        max-height: 140px;
    }
}

/* Brands Carousel - Tablet and Desktop */
@media (min-width: 768px) {
    .brands-carousel .brand {
        min-height: 80px;
        padding: 15px;
    }

    .brands-carousel .brand img {
        max-height: 80px;
    }
}

@media (min-width: 1024px) {
    .brands-carousel .brand {
        min-height: 100px;
        padding: 20px;
    }

    .brands-carousel .brand img {
        max-height: 100px;
    }
}

/* Completely disable cart dropdown menu - using sidebar instead */
.cart-dropdown .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.cart-dropdown:hover .dropdown-menu,
.cart-dropdown:focus .dropdown-menu,
.cart-dropdown.show .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Prevent Bootstrap dropdown from interfering */
.cart-dropdown .dropdown-toggle {
    pointer-events: auto;
    cursor: pointer;
}

/* Mobile Filter Sidebar Slide-in */
@media (max-width: 991px) {
    .sidebar-shop {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        background-color: #fff;
        z-index: 1001;
        transition: transform 0.4s ease;
        transform: translateX(-100%);
        overflow-y: auto;
        padding: 2rem;
        box-shadow: 0.5rem 0 1.5rem rgba(0, 0, 0, 0.1);
        display: block !important; /* Ensure it's not hidden by other rules */
    }

    .sidebar-filter-active .sidebar-shop {
        transform: translateX(0);
    }

    /* RTL Support */
    [dir="rtl"] .sidebar-shop {
        left: auto !important;
        right: 0 !important;
        transform: translateX(100%);
        box-shadow: -0.5rem 0 1.5rem rgba(0, 0, 0, 0.1);
    }

    [dir="rtl"] .sidebar-filter-active .sidebar-shop {
        transform: translateX(0);
    }

    .sidebar-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .sidebar-filter-active .sidebar-filter-overlay {
        visibility: visible;
        opacity: 1;
    }

    .btn-close-filter {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        font-size: 2rem;
        color: #333;
        z-index: 1002;
    }

    [dir="rtl"] .btn-close-filter {
        right: auto;
        left: 1rem;
    }

    /* RTL Widget Styles */
    [dir="rtl"] .sidebar-shop {
        text-align: right;
    }

    [dir="rtl"] .sidebar-shop .widget-title {
        text-align: right;
    }

    [dir="rtl"] .sidebar-shop .collapse-icon {
        padding-left: 0;
        padding-right: 0; /* Adjust if standard has padding */
    }

    /* Fix Checkboxes/Radios in RTL */
    [dir="rtl"] .custom-control {
        padding-left: 0;
        padding-right: 1.5rem;
    }

    [dir="rtl"] .custom-control-label::before,
    [dir="rtl"] .custom-control-label::after {
        left: auto;
        right: 0; /* Base position, adjust if container has padding */
    }

    /* If bootstrap custom-control-label uses left: -1.5rem paradigm */
    [dir="rtl"] .custom-control-label {
        padding-left: 0;
        padding-right: 2rem; /* Ensure space for box */
    }

    [dir="rtl"] .custom-control-label::before,
    [dir="rtl"] .custom-control-label::after {
        left: auto;
        right: 0;
    }

    /* Fix Price Slider / Range Text */
    [dir="rtl"] .filter-price-text {
        text-align: right;
    }

    /* Force visibility in RTL specifically */
    [dir="rtl"] .sidebar-shop .widget-body,
    [dir="rtl"] .sidebar-shop .collapse.show {
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        display: block !important;
    }

    [dir="rtl"] .sidebar-shop .widget-body ul,
    [dir="rtl"] .sidebar-shop .widget-body li,
    [dir="rtl"] .sidebar-shop .widget-body a {
        padding-left: 0;
        padding-right: 0;
        text-align: right;
        visibility: visible !important;
    }

    /* Reset absolute positioning if any */
    [dir="rtl"] .sidebar-shop .widget-body a {
        position: relative;
        left: auto;
        right: auto;
    }

    /* NUCLEAR VISIBILITY FIX FOR RTL SIDEBAR CONTENT */
    [dir="rtl"] .sidebar-shop .widget-body *,
    [dir="rtl"] .sidebar-shop .widget-body .form-group,
    [dir="rtl"] .sidebar-shop .widget-body .form-control,
    [dir="rtl"] .sidebar-shop .widget-body label,
    [dir="rtl"] .sidebar-shop .widget-body span,
    [dir="rtl"] .sidebar-shop .widget-body input,
    [dir="rtl"] .sidebar-shop .widget-body select {
        visibility: visible !important;
        opacity: 1 !important;
        text-align: right;
        color: #333 !important; /* Force dark color in case of white-on-white */
        text-indent: 0 !important; /* Fix potential indent issues */
    }

    /* Fix potential bootstrap/theme hidden overrides */
    [dir="rtl"] .sidebar-shop .widget-body .form-group {
        display: block !important;
    }

    /* ULTRA SPECIFIC FIX FOR MOBILE RTL SIDEBAR */
    @media (max-width: 991px) {
        /* Corrected selector: .mobile-filter-sidebar IS .sidebar-shop, so chain them */
        [dir="rtl"] .sidebar-shop.mobile-filter-sidebar .widget-body,
        [dir="rtl"] .sidebar-shop.mobile-filter-sidebar .widget-body *,
        /* Also keep generic just in case */
        [dir="rtl"] .mobile-filter-sidebar .widget-body,
        [dir="rtl"] .mobile-filter-sidebar .widget-body * {
             visibility: visible !important;
             opacity: 1 !important;
             display: block !important;
             height: auto !important;
             color: #333 !important;
             text-align: right !important;
        }

        /* Exception for hidden inputs */
        [dir="rtl"] .mobile-filter-sidebar .widget-body input[type="hidden"] {
            display: none !important;
        }

        /* Flex for checkboxes */
        [dir="rtl"] .mobile-filter-sidebar .custom-control {
            display: flex !important;
            align-items: center;
        }
    }

    /* Ensure selects are visible and clickable */
    [dir="rtl"] .sidebar-shop .widget-body select.form-control {
        appearance: none; /* specific override might be needed */
        -webkit-appearance: none;
        background-color: #fff !important;
        border: 1px solid #ddd;
        padding-right: 1rem;
    }
}

/* Fix excessive sidebar spacing */
.sidebar-shop .widget {
    margin-bottom: 2rem; /* Reduced from potential default */
}

.sidebar-shop .widget-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sidebar-shop .widget-title {
    margin-bottom: 0.5rem;
}

/* Ensure hidden form groups don't consume space */
.sidebar-shop .form-group[style*="display: none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.sidebar-shop .widget-body .form-group {
    margin-bottom: 1rem; /* Tighter form groups */
}

/* Fix for widget content visibility */
.sidebar-shop .widget-body,
.sidebar-shop .collapse.show {
    visibility: visible !important;
    opacity: 1 !important;
    height: auto;
}

/* Enhanced Sidebar Widget Styling (Card Style) */
.sidebar-shop .widget {
    background: #fff;
    border: 1px solid #ebebeb;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.02);
}

.sidebar-shop .widget-title {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 1rem;
}

/* Ensure empty form groups don't take space */
.sidebar-shop .form-group:empty {
    display: none;
}

/* Fix for scroll lock issue */
body:not(.sidebar-filter-active):not(.mmenu-active) {
    overflow-y: auto !important;
}

/* Slider Content Styling */
.slider-text-box {
    background: #ffffff75 !important;
    padding: 20px;
    border-radius: 20px;
}

/* ========================================
   DUAL SIDEBAR ARCHITECTURE
   ======================================== */

/* Desktop Sidebar - Always visible in grid on desktop */
@media (min-width: 992px) {
    .desktop-sidebar {
        display: block !important;
    }
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}

/* Mobile Sidebar - Slide-in overlay on mobile */
@media (max-width: 991px) {
    /* Hide desktop sidebar completely on mobile */
    .desktop-sidebar {
        display: none !important;
    }

    /* Mobile sidebar overlay */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

    /* Mobile sidebar header */
    .mobile-sidebar-header {
        position: sticky;
        top: 0;
        background: #fff;
        padding: 1.5rem;
        border-bottom: 1px solid #ebebeb;
        z-index: 10;
    }

    .btn-close-mobile-sidebar {
        background: transparent;
        border: none;
        font-size: 2rem;
        color: #333;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    /* Mobile sidebar content */
    .mobile-sidebar-content {
        padding: 2rem 1.5rem;
    }

    /* Overlay backdrop */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Scroll Top Button - Ensure visibility */
#scroll-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    background-color: #333; /* Dark background */
    color: #fff;
    border: none;
    border-radius: 4px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
}

#scroll-top:hover {
    background-color: var(--primary-color, #c96); /* Use gold as hover */
    opacity: 1;
}

#scroll-top.show {
    display: flex; /* or block depending on layout */
}

#scroll-top i {
    font-size: 1.6rem;
    line-height: 1;
    margin: 0;
}
