/* Gold Theme - Override Bootstrap Primary Colors */

:root {
    --gold-primary: #D4AF37;
    --gold-primary-dark: #B8860B;
    --gold-primary-light: #F4D03F;
    --gold-primary-rgba: rgba(212, 175, 55, 0.1);
    --gold-primary-rgba-25: rgba(212, 175, 55, 0.25);
    --gold-primary-rgba-2: rgba(212, 175, 55, 0.2);
}

/* GLOBAL BLUE TO GOLD REPLACEMENT - Catch all blue colors */
/* This ensures NO blue colors appear anywhere in the project */

/* Override blue in all text colors */
[style*="color: #39f"],
[style*="color:#39f"],
[style*="color: #007bff"],
[style*="color:#007bff"],
[style*="color: #0080ff"],
[style*="color:#0080ff"],
[style*="color: #0066cc"],
[style*="color:#0066cc"],
[style*="color: #1d84ea"],
[style*="color:#1d84ea"],
[style*="color: #278bf0"],
[style*="color:#278bf0"],
[style*="color: rgb(0, 123, 255)"],
[style*="color:rgb(0, 123, 255)"],
[style*="color: rgb(57, 153, 255)"],
[style*="color:rgb(57, 153, 255)"] {
    color: var(--gold-primary) !important;
}

/* Override blue in all borders */
[style*="border-color: #39f"],
[style*="border-color:#39f"],
[style*="border-color: #007bff"],
[style*="border-color:#007bff"],
[style*="border:.*#39f"],
[style*="border:.*#007bff"] {
    border-color: var(--gold-primary) !important;
}

/* Override blue in all backgrounds */
[style*="background-color: #39f"],
[style*="background-color:#39f"],
[style*="background: #39f"],
[style*="background:#39f"],
[style*="background-color: #007bff"],
[style*="background-color:#007bff"] {
    background-color: var(--gold-primary) !important;
}

/* Override blue in all box-shadows (underlines) */
[style*="box-shadow:.*#39f"],
[style*="box-shadow:.*#007bff"],
[style*="box-shadow:.*#0080ff"],
[style*="box-shadow:.*rgb(0, 123, 255)"],
[style*="box-shadow:.*rgb(57, 153, 255)"] {
    box-shadow: 0 1px 0 0 var(--gold-primary) !important;
}

/* Override Bootstrap CSS variables */
html {
    --blue: #D4AF37 !important;
    --primary: #D4AF37 !important;
}

/* Global Blue Color Replacement - Replace ALL blue colors with gold */

/* Override all blue color values globally */
[style*="color: #39f"],
[style*="color:#39f"],
[style*="color: #007bff"],
[style*="color:#007bff"],
[style*="color: #0080ff"],
[style*="color:#0080ff"],
[style*="color: #0066cc"],
[style*="color:#0066cc"],
[style*="color: #1d84ea"],
[style*="color:#1d84ea"],
[style*="color: #278bf0"],
[style*="color:#278bf0"] {
    color: var(--gold-primary) !important;
}

/* Override blue borders */
[style*="border-color: #39f"],
[style*="border-color:#39f"],
[style*="border-color: #007bff"],
[style*="border-color:#007bff"] {
    border-color: var(--gold-primary) !important;
}

/* Override blue backgrounds */
[style*="background-color: #39f"],
[style*="background-color:#39f"],
[style*="background: #39f"],
[style*="background:#39f"] {
    background-color: var(--gold-primary) !important;
}

/* Additional overrides for Bootstrap classes that use --primary */
[style*="--primary"] {
    --primary: #D4AF37;
}

/* Default text color - black */
body {
    color: #000 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
}

p {
    color: #000 !important;
}

/* Burger Menu (icon-bars) - Black in gold mode (default, not dark mode) */
body:not(.dark-mode) .mobile-menu-toggler i.icon-bars,
body:not(.dark-mode) .mobile-menu-toggler .icon-bars,
body:not(.dark-mode) .mobile-menu-toggler i,
body:not(.dark-mode) .icon-bars,
body:not(.dark-mode) i.icon-bars {
    color: #000 !important;
    transition: color 0.3s ease !important;
}

body:not(.dark-mode) .mobile-menu-toggler:hover i.icon-bars,
body:not(.dark-mode) .mobile-menu-toggler:hover .icon-bars,
body:not(.dark-mode) .mobile-menu-toggler:hover i {
    color: #D4AF37 !important;
}

/* Burger Menu (icon-bars) - Black in gold mode - Arabic RTL */
body[dir="rtl"]:not(.dark-mode) .mobile-menu-toggler i.icon-bars,
body[dir="rtl"]:not(.dark-mode) .mobile-menu-toggler .icon-bars,
body[dir="rtl"]:not(.dark-mode) .mobile-menu-toggler i,
body[dir="rtl"]:not(.dark-mode) .icon-bars,
body[dir="rtl"]:not(.dark-mode) i.icon-bars {
    color: #000 !important;
    transition: color 0.3s ease !important;
}

body[dir="rtl"]:not(.dark-mode) .mobile-menu-toggler:hover i.icon-bars,
body[dir="rtl"]:not(.dark-mode) .mobile-menu-toggler:hover .icon-bars,
body[dir="rtl"]:not(.dark-mode) .mobile-menu-toggler:hover i {
    color: #D4AF37 !important;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--gold-primary-dark) !important;
    border-color: var(--gold-primary-dark) !important;
    color: #fff !important;
}

/* Banner buttons - ensure white text before and after hover */
.btn-round,
.btn.btn-round,
.btn-primary.btn-round,
.banner .btn,
.banner .btn-primary,
.banner .btn-round,
.intro-slide .btn,
.intro-slide .btn-primary,
.intro-slide .btn-round,
.cta .btn,
.cta .btn-primary,
.cta .btn-round {
    color: #fff !important;
}

.btn-round:hover,
.btn-round:focus,
.btn-round:active,
.btn.btn-round:hover,
.btn.btn-round:focus,
.btn-primary.btn-round:hover,
.btn-primary.btn-round:focus,
.banner .btn:hover,
.banner .btn:focus,
.banner .btn-primary:hover,
.banner .btn-primary:focus,
.banner .btn-round:hover,
.banner .btn-round:focus,
.intro-slide .btn:hover,
.intro-slide .btn:focus,
.intro-slide .btn-primary:hover,
.intro-slide .btn-primary:focus,
.intro-slide .btn-round:hover,
.intro-slide .btn-round:focus,
.cta .btn:hover,
.cta .btn:focus,
.cta .btn-primary:hover,
.cta .btn-primary:focus,
.cta .btn-round:hover,
.cta .btn-round:focus {
    color: #fff !important;
}

/* Banner button text and icons */
.btn-round span,
.btn-round i,
.banner .btn span,
.banner .btn i,
.banner .btn-primary span,
.banner .btn-primary i,
.intro-slide .btn span,
.intro-slide .btn i,
.cta .btn span,
.cta .btn i {
    color: #fff !important;
}

.btn-round:hover span,
.btn-round:hover i,
.btn-round:focus span,
.btn-round:focus i,
.banner .btn:hover span,
.banner .btn:hover i,
.banner .btn:focus span,
.banner .btn:focus i,
.banner .btn-primary:hover span,
.banner .btn-primary:hover i,
.banner .btn-primary:focus span,
.banner .btn-primary:focus i,
.intro-slide .btn:hover span,
.intro-slide .btn:hover i,
.intro-slide .btn:focus span,
.intro-slide .btn:focus i,
.cta .btn:hover span,
.cta .btn:hover i,
.cta .btn:focus span,
.cta .btn:focus i {
    color: #fff !important;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: var(--gold-primary-dark) !important;
    border-color: var(--gold-primary-dark) !important;
}

.btn-outline-primary,
.btn-outline-primary-2 {
    border-color: var(--gold-primary) !important;
    color: var(--gold-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary-2:hover,
.btn-outline-primary-2:focus,
.btn-outline-primary-2:active {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

/* Links - Black by default, gold on hover - NO BLUE ANYWHERE */
/* Ensure these rules apply in normal mode (not dark mode) and override any dark mode rules */
body:not(.dark-mode) a,
body:not(.dark-mode) a:link,
body:not(.dark-mode) a:visited,
body:not(.dark-mode) a:active {
    color: #000 !important;
}

body:not(.dark-mode) a:hover,
body:not(.dark-mode) a:focus {
    color: var(--gold-primary) !important;
}

/* Mobile-specific: Ensure links are black in mobile when not in dark mode */
@media (max-width: 991.98px) {
    body:not(.dark-mode) a,
    body:not(.dark-mode) a:link,
    body:not(.dark-mode) a:visited,
    body:not(.dark-mode) a:active {
        color: #000 !important;
    }

    body:not(.dark-mode) a:hover,
    body:not(.dark-mode) a:focus {
        color: var(--gold-primary) !important;
    }
}

/* Remove ALL blue underlines, box-shadows, and text decorations */
a,
a:hover,
a:focus,
a:active,
a *,
a:hover *,
a:focus *,
a:active * {
    text-decoration: none !important;
}

/* Override any blue box-shadow underlines */
a,
a:hover,
a:focus,
a:active {
    box-shadow: none !important;
}

/* Only allow gold underlines via link-underline class */
.link-underline,
a.link-underline {
    box-shadow: 0 1px 0 0 var(--gold-primary) !important;
}

a.link-underline:hover,
a.link-underline:focus {
    box-shadow: 0 1px 0 0 var(--gold-primary) !important;
}

/* Override any blue links from skin files */
a[style*="color: #39f"],
a[style*="color:#39f"],
a[style*="color: #007bff"],
a[style*="color:#007bff"],
a[style*="color: #0080ff"],
a[style*="color:#0080ff"] {
    color: var(--gold-primary) !important;
}

/* Override skin-demo-4.css and other skin files blue links */
/* Only apply to links that don't have specific context classes - ONLY WHEN NOT IN DARK MODE */
body:not(.dark-mode) a:not(.btn):not(.dropdown-toggle):not(.product-title a):not(.nav-link):not(.menu a):not(.main-nav a) {
    color: #000 !important;
}

body:not(.dark-mode) a:not(.btn):not(.dropdown-toggle):not(.product-title a):not(.nav-link):not(.menu a):not(.main-nav a):hover,
body:not(.dark-mode) a:not(.btn):not(.dropdown-toggle):not(.product-title a):not(.nav-link):not(.menu a):not(.main-nav a):focus {
    color: var(--gold-primary) !important;
}

/* Mobile-specific: Ensure these rules apply in mobile when not in dark mode */
@media (max-width: 991.98px) {
    body:not(.dark-mode) a:not(.btn):not(.dropdown-toggle):not(.product-title a):not(.nav-link):not(.menu a):not(.main-nav a) {
        color: #000 !important;
    }

    body:not(.dark-mode) a:not(.btn):not(.dropdown-toggle):not(.product-title a):not(.nav-link):not(.menu a):not(.main-nav a):hover,
    body:not(.dark-mode) a:not(.btn):not(.dropdown-toggle):not(.product-title a):not(.nav-link):not(.menu a):not(.main-nav a):focus {
        color: var(--gold-primary) !important;
    }
}

/* Override specific skin classes that might have blue */
.link-underline {
    box-shadow: 0 1px 0 0 var(--gold-primary) !important;
}

/* Specific link types */
a.btn-link {
    color: #000 !important;
}

a.btn-link:hover,
a.btn-link:focus {
    color: var(--gold-primary) !important;
}

/* Menu links */
.menu a,
.menu li a,
.main-nav a,
.main-nav .menu a,
.main-nav .menu li a {
    color: #000 !important;
}

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

/* Category links */
.category-dropdown a,
.category-dropdown .dropdown-menu a,
.side-nav a,
.menu-vertical a {
    color: #000 !important;
}

.category-dropdown a:hover,
.category-dropdown .dropdown-menu a:hover,
.side-nav a:hover,
.menu-vertical a:hover {
    color: var(--gold-primary) !important;
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem var(--gold-primary-rgba-25);
}

/* Custom checkbox and radio */
.form-check-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.form-check-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.25rem var(--gold-primary-rgba-25);
}

/* Pagination */
.page-link {
    color: #000 !important;
}

.page-link:hover {
    color: var(--gold-primary) !important;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Badges */
.badge-primary,
.badge,
.cart-count,
.wishlist-count,
.compare-count {
    background-color: var(--gold-primary) !important;
    color: #fff !important;
}

/* Header Menu - Logout Button */
.header-menu .logout-btn {
    color: #333 !important;
}

.header-menu .logout-btn:hover {
    color: var(--gold-primary) !important;
}

/* Alerts */
.alert-primary {
    background-color: var(--gold-primary-rgba);
    border-color: var(--gold-primary);
    color: var(--gold-primary-dark);
}

/* Dropdown */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--gold-primary-rgba);
    color: var(--gold-primary-dark);
}

.dropdown-item.active {
    background-color: var(--gold-primary);
    color: #fff;
}

/* Nav links */
.nav-link {
    color: #000 !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gold-primary) !important;
}

.nav-link.active {
    color: var(--gold-primary) !important;
}

/* Nav pills - category navigation border-bottom */
.nav.nav-pills .nav-link.active,
.nav.nav-pills .nav-item.show .nav-link,
.nav.nav-pills .nav-item .nav-link.active {
    border-bottom-color: var(--gold-primary) !important;
}

.nav.nav-pills .nav-link:hover,
.nav.nav-pills .nav-link:focus {
    border-bottom-color: var(--gold-primary) !important;
}

/* Nav border anim - animated underline */
.nav.nav-border-anim .nav-link::before,
.nav.nav-border-anim .nav-link:before {
    background-color: var(--gold-primary) !important;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: #000 !important;
}

.breadcrumb-item a:hover {
    color: var(--gold-primary) !important;
}

/* Product cards hover */
.product:hover .product-title a,
.product-title a:hover,
.product-title a:focus {
    color: var(--gold-primary) !important;
}

/* Product title links default */
.product-title a,
.product-title a:link,
.product-title a:visited {
    color: #000 !important;
}

/* Header links - black by default, gold on hover */
.header a,
.header a:link,
.header a:visited {
    color: #000 !important;
}

.header a:hover,
.header a:focus,
.header .top-menu a:hover,
.header .top-menu a:focus {
    color: var(--gold-primary) !important;
}

/* Navigation menu active border-top - change from blue to gold */
.header-bottom .menu > li > a::before,
.header-bottom .menu > li > a:before,
.menu > li > a::before,
.menu > li > a:before,
.main-nav .menu > li > a::before,
.main-nav .menu > li > a:before {
    background-color: var(--gold-primary) !important;
}

.header-bottom .menu > li:hover > a::before,
.header-bottom .menu > li:hover > a:before,
.header-bottom .menu > li.active > a::before,
.header-bottom .menu > li.active > a:before,
.menu > li:hover > a::before,
.menu > li:hover > a:before,
.menu > li.active > a::before,
.menu > li.active > a:before,
.main-nav .menu > li:hover > a::before,
.main-nav .menu > li:hover > a:before,
.main-nav .menu > li.active > a::before,
.main-nav .menu > li.active > a:before {
    background-color: var(--gold-primary) !important;
}

/* Footer links */
.footer a,
.footer a:link,
.footer a:visited {
    color: #000 !important;
}

.footer a:hover,
.footer a:focus {
    color: var(--gold-primary) !important;
}

/* Product Action Buttons - Gold Theme */
/* Note: Product card cart button styling is handled in custom.css */
.btn-product.btn-cart {
    background-color: var(--gold-primary) !important;
    color: #fff !important;
    border: 2px solid var(--gold-primary) !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
}

/* Override for product card buttons - white by default, gold on hover */
.product .product-action .btn-product.btn-cart {
    background-color: #fff !important;
    color: #333 !important;
    border: none !important;
}

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

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

/* Remove blue underline and text color from cart button */
.btn-product.btn-cart span,
.btn-product.btn-cart,
.btn-product.btn-cart * {
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-product.btn-cart:hover span,
.btn-product.btn-cart:hover,
.btn-product.btn-cart:hover * {
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-product.btn-cart:hover,
.btn-product.btn-cart:focus {
    background-color: var(--gold-primary-dark) !important;
    border-color: var(--gold-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3) !important;
}

.btn-product.btn-cart:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.btn-product.btn-wishlist,
.btn-product.btn-compare {
    background-color: transparent !important;
    color: #000 !important;
    border: 2px solid var(--gold-primary) !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: auto !important;
    min-width: 160px !important;
    height: 44px !important;
    margin-right: 1rem !important;
}

/* Remove blue underline from wishlist text */
.btn-product.btn-wishlist span,
.btn-product.btn-wishlist,
.btn-product.btn-wishlist * {
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-product.btn-wishlist:hover span,
.btn-product.btn-wishlist:hover,
.btn-product.btn-wishlist:hover * {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Remove blue underline from compare text */
.btn-product.btn-compare span,
.btn-product.btn-compare,
.btn-product.btn-compare * {
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-product.btn-compare:hover span,
.btn-product.btn-compare:hover,
.btn-product.btn-compare:hover * {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Ensure spacing between wishlist and compare buttons */
.details-action-wrapper {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
}

.details-action-wrapper .btn-product.btn-wishlist,
.details-action-wrapper .btn-product.btn-compare {
    margin-right: 0 !important;
}

.btn-product.btn-wishlist:hover,
.btn-product.btn-wishlist:focus,
.btn-product.btn-compare:hover,
.btn-product.btn-compare:focus {
    background-color: var(--gold-primary) !important;
    color: #fff !important;
    border-color: var(--gold-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3) !important;
}

/* Override any blue hover colors */
.btn-product.btn-wishlist:hover *,
.btn-product.btn-wishlist:focus *,
.btn-product.btn-compare:hover *,
.btn-product.btn-compare:focus *,
.btn-product.btn-wishlist:hover i,
.btn-product.btn-wishlist:focus i,
.btn-product.btn-compare:hover i,
.btn-product.btn-compare:focus i {
    color: #fff !important;
}

.btn-product.btn-wishlist.active,
.btn-product.btn-compare.active {
    background-color: var(--gold-primary) !important;
    color: #fff !important;
    border-color: var(--gold-primary) !important;
}

.btn-product.btn-wishlist.active:hover,
.btn-product.btn-compare.active:hover {
    background-color: var(--gold-primary-dark) !important;
    border-color: var(--gold-primary-dark) !important;
}

/* Ensure icons are gold by default, white on hover/active */
.btn-product.btn-wishlist i,
.btn-product.btn-compare i {
    color: var(--gold-primary) !important;
    transition: color 0.3s ease !important;
}

.btn-product.btn-wishlist:hover i,
.btn-product.btn-wishlist:focus i,
.btn-product.btn-wishlist.active i,
.btn-product.btn-compare:hover i,
.btn-product.btn-compare:focus i,
.btn-product.btn-compare.active i {
    color: #fff !important;
}

/* Product Card Icon Buttons - Fix duplicate icons */
.btn-product-icon.btn-wishlist,
.btn-product-icon.btn-compare {
    color: var(--gold-primary) !important;
    background-color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.btn-product-icon.btn-wishlist:hover,
.btn-product-icon.btn-wishlist:focus,
.btn-product-icon.btn-compare:hover,
.btn-product-icon.btn-compare:focus {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.btn-product-icon.btn-wishlist.active,
.btn-product-icon.btn-compare.active {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.btn-product-icon.btn-wishlist i,
.btn-product-icon.btn-compare i {
    color: inherit !important;
    font-size: 1.2rem !important;
}

/* Quick view button - 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;
}

/* Comprehensive Blue Color Override - All Elements */
/* Global override for all blue colors - replace with gold */

/* Override all blue hex color values in inline styles */
[style*="color: #39f"],
[style*="color:#39f"],
[style*="color: #007bff"],
[style*="color:#007bff"],
[style*="color: #0080ff"],
[style*="color:#0080ff"],
[style*="color: #0066cc"],
[style*="color:#0066cc"],
[style*="color: #1d84ea"],
[style*="color:#1d84ea"],
[style*="color: #278bf0"],
[style*="color:#278bf0"] {
    color: var(--gold-primary) !important;
}

/* Override blue borders in inline styles */
[style*="border-color: #39f"],
[style*="border-color:#39f"],
[style*="border-color: #007bff"],
[style*="border-color:#007bff"],
[style*="border:.*#39f"],
[style*="border:.*#007bff"] {
    border-color: var(--gold-primary) !important;
}

/* Override blue backgrounds in inline styles */
[style*="background-color: #39f"],
[style*="background-color:#39f"],
[style*="background: #39f"],
[style*="background:#39f"] {
    background-color: var(--gold-primary) !important;
}

/* Override blue box-shadows (underlines) in inline styles */
[style*="box-shadow:.*#39f"],
[style*="box-shadow:.*#007bff"],
[style*="box-shadow:.*#0080ff"] {
    box-shadow: 0 1px 0 0 var(--gold-primary) !important;
}

/* Product Card Icon Buttons - Fix duplicate icons */
.btn-product-icon.btn-wishlist,
.btn-product-icon.btn-compare {
    color: var(--gold-primary) !important;
    background-color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.btn-product-icon.btn-wishlist:hover,
.btn-product-icon.btn-wishlist:focus,
.btn-product-icon.btn-compare:hover,
.btn-product-icon.btn-compare:focus {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.btn-product-icon.btn-wishlist.active,
.btn-product-icon.btn-compare.active {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.btn-product-icon.btn-wishlist i,
.btn-product-icon.btn-compare i {
    color: var(--gold-primary) !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

/* Fill icon with gold on hover */
.btn-product-icon.btn-wishlist:hover i,
.btn-product-icon.btn-wishlist:focus i {
    color: var(--gold-primary) !important;
}

.btn-product-icon.btn-wishlist.active i,
.btn-product-icon.btn-wishlist.active:hover i {
    color: #fff !important;
}

.btn-product-icon.btn-compare:hover i,
.btn-product-icon.btn-compare:focus i {
    color: var(--gold-primary) !important;
}

.btn-product-icon.btn-compare.active i,
.btn-product-icon.btn-compare.active:hover i {
    color: #fff !important;
}

/* Change heart icon from outline to filled on hover */
.btn-product-icon.btn-wishlist:hover i.icon-heart-o::before {
    content: "\f004" !important; /* FontAwesome filled heart */
    color: var(--gold-primary) !important;
}

.btn-product-icon.btn-wishlist.active i.icon-heart,
.btn-product-icon.btn-wishlist.active:hover i.icon-heart {
    color: #fff !important;
}

/* Dropdown menu links - NO BLUE */
.dropdown-menu a,
.dropdown-menu a:link,
.dropdown-menu a:visited,
.dropdown-menu a:active {
    color: #000 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    color: var(--gold-primary) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Override any blue colors in dropdowns */
.dropdown-menu a[style*="color: #39f"],
.dropdown-menu a[style*="color:#39f"],
.dropdown-menu a[style*="color: #007bff"],
.dropdown-menu a[style*="color:#007bff"] {
    color: var(--gold-primary) !important;
}

/* Table links */
.table a,
.table a:link,
.table a:visited {
    color: #000 !important;
}

.table a:hover,
.table a:focus {
    color: var(--gold-primary) !important;
}

/* Card links */
.card a,
.card a:link,
.card a:visited {
    color: #000 !important;
}

.card a:hover,
.card a:focus {
    color: var(--gold-primary) !important;
}

/* Mobile menu links */
.mobile-nav a,
.mobile-menu a {
    color: #000 !important;
}

.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--gold-primary) !important;
}

/* Action links */
.action-link {
    color: #000 !important;
}

.action-link:hover,
.action-link:focus {
    color: var(--gold-primary) !important;
}

/* Modal */
.modal-header .close:hover {
    color: var(--gold-primary);
}

/* Table hover */
.table-hover tbody tr:hover {
    background-color: var(--gold-primary-rgba);
}

/* Progress bars */
.progress-bar {
    background-color: var(--gold-primary);
}

/* List group */
.list-group-item.active {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--gold-primary-rgba);
    color: var(--gold-primary-dark);
}

/* Tooltips */
.tooltip .tooltip-inner {
    background-color: var(--gold-primary);
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: var(--gold-primary);
}

.tooltip.bs-tooltip-right .arrow::before {
    border-right-color: var(--gold-primary);
}

.tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: var(--gold-primary);
}

.tooltip.bs-tooltip-left .arrow::before {
    border-left-color: var(--gold-primary);
}

/* Popovers */
.popover-header {
    background-color: var(--gold-primary);
    color: #fff;
}

.popover.bs-popover-top .arrow::after {
    border-top-color: var(--gold-primary);
}

.popover.bs-popover-right .arrow::after {
    border-right-color: var(--gold-primary);
}

.popover.bs-popover-bottom .arrow::after {
    border-bottom-color: var(--gold-primary);
}

.popover.bs-popover-left .arrow::after {
    border-left-color: var(--gold-primary);
}

/* Text colors */
.text-primary {
    color: var(--gold-primary) !important;
}

/* Border colors */
.border-primary {
    border-color: var(--gold-primary) !important;
}

/* Background colors */
.bg-primary {
    background-color: var(--gold-primary) !important;
}

/* Focus states */
*:focus {
    outline-color: var(--gold-primary);
}

/* Selection */
::selection {
    background-color: var(--gold-primary);
    color: #fff;
}

::-moz-selection {
    background-color: var(--gold-primary);
    color: #fff;
}

/* Header Search Button - Override skin-demo-4.css */
.header-search-extended .btn,
.header-search-extended .btn-primary,
.header-search .btn-primary,
.header-search-wrapper .btn-primary,
.header-search-wrapper .btn {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
    border-radius: 20px 0 0 20px !important; /* Rounded on left, square on right */
    padding: 0.75rem 1.25rem !important;
    border-right: none !important; /* Remove right border to connect with input */
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 45px !important; /* Fixed height to match input */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Prevent button from shrinking */
    order: -1 !important; /* Ensure button is first (on the left) */
    width: auto !important;
    vertical-align: top !important;
    align-self: flex-start !important;
}

/* Header Search Input Field - Light mode styling */
.header-search-wrapper .form-control,
.header-search-extended .form-control,
.header-search .form-control {
    background-color: #fff !important; /* Light background for light mode */
    border: 1px solid rgba(0, 0, 0, 0.15) !important; /* Dark border for light mode */
    border-left: none !important; /* Remove left border to connect with button */
    color: #000 !important; /* Dark text for light mode */
    border-radius: 0 20px 20px 0 !important; /* Rounded on right, square on left */
    padding: 0.75rem 1.25rem !important;
    height: 45px !important; /* Fixed height to match button */
    line-height: 1.5 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
}

.header-search-wrapper .form-control::placeholder,
.header-search-extended .form-control::placeholder,
.header-search .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5) !important; /* Dark placeholder for light mode */
}

.header-search-wrapper .form-control:focus,
.header-search-extended .form-control:focus,
.header-search .form-control:focus {
    background-color: #fff !important; /* Light background for light mode */
    border: 1px solid rgba(212, 175, 55, 0.6) !important; /* Gold border on focus */
    border-left: none !important;
    color: #000 !important; /* Dark text for light mode */
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* Ensure search wrapper displays button and input together */
.header-search-wrapper {
    display: flex !important;
    align-items: flex-start !important; /* Align from top */
    gap: 0 !important;
    height: 45px !important; /* Fixed height for consistency */
    flex-direction: row !important; /* Ensure horizontal layout */
}

/* Ensure button appears first (on the left) */
.header-search-wrapper .btn,
.header-search-wrapper .btn-primary {
    order: -1 !important;
    flex-shrink: 0 !important;
}

/* Ensure input appears second (on the right) */
.header-search-wrapper .form-control {
    order: 1 !important;
    flex: 1 !important; /* Take remaining space */
}

.header-search-extended .btn:hover,
.header-search-extended .btn:focus,
.header-search-extended .btn-primary:hover,
.header-search-extended .btn-primary:focus,
.header-search .btn-primary:hover,
.header-search .btn-primary:focus,
.header-search-wrapper .btn-primary:hover,
.header-search-wrapper .btn-primary:focus,
.header-search-wrapper .btn:hover,
.header-search-wrapper .btn:focus {
    background-color: var(--gold-primary-dark) !important;
    border-color: var(--gold-primary-dark) !important;
    color: #fff !important;
}

/* Override skin-demo-4.css specific search button styles */
.header-4 .header-search-extended .btn,
.header-3 .header-search-extended .btn,
.header-4 .header-search-wrapper .btn,
.header-3 .header-search-wrapper .btn {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.header-4 .header-search-extended .btn:hover,
.header-4 .header-search-extended .btn:focus,
.header-3 .header-search-extended .btn:hover,
.header-3 .header-search-extended .btn:focus,
.header-4 .header-search-wrapper .btn:hover,
.header-4 .header-search-wrapper .btn:focus,
.header-3 .header-search-wrapper .btn:hover,
.header-3 .header-search-wrapper .btn:focus {
    background-color: var(--gold-primary-dark) !important;
    border-color: var(--gold-primary-dark) !important;
    color: #fff !important;
}

