/* =====================================================
   MOUNTAINHIKER.MN — custom.css
   RULE: Never change :root variables — the admin panel
   injects them after this file and overwrites them.
   Only use direct property overrides with !important.
   ===================================================== */

/* =====================================================
   1. HTML / BODY SCROLL FIX
   ===================================================== */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   2. HEADER TOP BAR (announcement strip)
   ===================================================== */
header .header-top {
    background: transparent !important; /* Forces it to drop the solid black */
    font-size: 12px;
    border-bottom: 1px solid rgba(184, 165, 90, 0.2) !important;
}

header .header-top .btn:hover {
    background: #b8a55a !important;
    color: #ffffff !important;
}

/* THE ABSOLUTE TOP BAR TEXT FORCER — KILLS INVISIBLE TEXT */
header .header-top,
header .header-top *,
header .header-top a,
header .header-top span,
header .header-top li,
header .header-top div,
header .header-top .dropdown-toggle,
header .header-top .btn-link,
.header-top .list-inline-item a,
.header-top a.dropdown-toggle {
    color: #2a2415 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    background: transparent !important; /* Kills hidden nested black backgrounds */
}

/* Force all FontAwesome icon shapes to show up dark bronze */
header .header-top i,
header .header-top .fa,
header .header-container i,
header .header-container .fa,
.header-top .fa-phone,
.header-top .fa-envelope,
.header-top .fa-user {
    color: #2a2415 !important;
}

/* Fix for standard OpenCart menu drop items (Currency selector, Language selector links) */
header .header-top .dropdown-menu a,
header .header-top .dropdown-menu span,
header .header-top .dropdown-menu li {
    color: #2a2415 !important;
    background-color: #fdfbf7 !important; /* Premium light cream backdrop for drop blocks */
}

/* Hover settings */
header .header-top a:hover,
header .header-top a:hover i {
    color: #b8a55a !important;
}


/* =====================================================
   3. HEADER CONTAINER — FORCE GOLDEN GLASSMORPHISM
   ===================================================== */
header .header-container {
    /* Safe Fallback: If glass/rgba fails, default to solid warm beige */
    background-color: #f4ede0 !important; 
    
    /* Modern Glass: Overrides the fallback on smart browsers */
    background: rgba(184, 165, 90, 0.22) !important; 
    
    /* The Glass Blur effect */
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    
    /* Border trims for depth */
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(140, 120, 60, 0.3) !important;
    
    /* Contrast details */
    color: #2a2415 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Force interactive link colors to stay dark burnished gold over glass */
header .header-container a,
header .header-container .btn-header,
header .header-container i {
    color: #2a2415 !important;
}

header .header-container a:hover i {
    color: #b8a55a !important;
}

/* Logo — show natural colors on white bg, no inversion */
header .header-logo img {
    filter: none !important;
    max-height: 52px;
    width: auto;
}

/* Account/interface pill stays gold */
header .header-interface {
    background: #dac884 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

header .header-interface a,
header .header-interface span,
header .header-interface li {
    color: #ffffff !important;
}

/* Cart badge */
.cart-count-badge {
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =====================================================
   4. NAVIGATION MENU — BEIGE & GLASSY STACK
   ===================================================== */
#menu {
    background-color: #f4ede0 !important; 
    background: rgba(184, 165, 90, 0.15) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(184, 165, 90, 0.2) !important;
    border-bottom: 1px solid rgba(184, 165, 90, 0.2) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#menu.fixed {
    background-color: #f4ede0 !important;
    background: rgba(184, 165, 90, 0.9) !important; 
    box-shadow: 0 4px 20px rgba(42, 36, 21, 0.15) !important;
    border-bottom: 1px solid #b8a55a !important;
}

#menu a.nav-link {
    color: #2a2415 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 12px 14px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.25s ease !important;
    background: none !important;
}

#menu a.nav-link:hover,
#menu a.nav-link:focus,
#menu li.active > a.nav-link {
    color: #b8a55a !important; 
    background: none !important;
    border-bottom-color: #b8a55a !important;
}

/* =====================================================
   NAVIGATION MENU DROPCOWNS — CLEAR TEXT & BG CONTRAST
   ===================================================== */
#menu .dropdown-menu {
    background: #fdfbf7 !important; /* Premium light cream backdrop */
    border: 1px solid rgba(184, 165, 90, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(42, 36, 21, 0.15) !important;
    padding: 8px 0 !important;
}

#menu .dropdown-menu a,
#menu .dropdown-item {
    color: #2a2415 !important; 
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    background: none !important;
    transition: all 0.2s ease !important;
}

#menu .dropdown-menu a:hover,
#menu .dropdown-item:hover {
    background: #b8a55a !important;
    color: #ffffff !important;
}

#menu .header-menu-title {
    color: #b8a55a !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 8px 18px 4px !important;
    border-bottom: 1px solid rgba(184, 165, 90, 0.2) !important;
    margin-bottom: 4px !important;
}

#menu button.navbar-toggler {
    border-color: rgba(184, 165, 90, 0.5) !important;
}

#menu .navbar-toggler-icon {
    filter: brightness(0.2) contrast(1.5) !important;
}

/* =====================================================
   5. PAGE TITLE BANNER (category/product header strip)
   ===================================================== */
.header-page-title {
    background: #111111 !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.header-page-title h1 {
    color: #ffffff !important;
    font-size: clamp(22px, 4vw, 36px) !important;
    font-weight: 700 !important;
}

.header-page-title .subtitle {
    color: #dac884 !important;
}

/* =====================================================
   6. BREADCRUMBS
   ===================================================== */
ul.breadcrumb {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 10px 16px !important;
    margin: 16px 0 !important;
    font-size: 13px !important;
}

ul.breadcrumb li a {
    color: #b8a55a !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

ul.breadcrumb li a:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

ul.breadcrumb li:last-child a {
    color: #999999 !important;
    pointer-events: none !important;
}

/* =====================================================
   7. CONTENT AREA
   ===================================================== */
#content {
    background: #fbf9f5 !important; /* Matches --primary-bg */
}

.page-header h1,
#content h1 {
    font-weight: 700 !important;
    color: #111111 !important;
    border-bottom: 2px solid #dac884 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* =====================================================
   8. PRODUCT CARDS (category grid)
   ===================================================== */
.product-thumb {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.product-thumb:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12) !important;
    transform: translateY(-3px) !important;
}

.product-thumb .image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    display: block !important;
}

.product-thumb .image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.product-thumb .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    image-rendering: auto !important;
}

.product-thumb:hover .image img {
    transform: scale(1.06) !important;
}

.product-thumb .caption {
    padding: 14px !important;
    text-align: center !important;
    background: #ffffff !important;
}

.product-thumb h4,
.product-thumb .caption h4 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
}

.product-thumb h4 a {
    color: #111111 !important;
}

.product-thumb h4 a:hover {
    color: #b8a55a !important;
}

.product-thumb .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

.product-thumb .price-tax { display: none !important; }
.product-thumb .rating { display: none !important; }
.listing-inerface .btn-group { display: none !important; }

/* =====================================================
   9. PRODUCT DETAIL PAGE
   ===================================================== */
#button-cart {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 13px 32px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100%;
    transition: all 0.25s ease !important;
}

#button-cart:hover {
    background: #dac884 !important;
    border-color: #dac884 !important;
}

.gallery-thumb {
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease !important;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #dac884 !important;
}

.nav-tabs .nav-link.active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* =====================================================
   10. BUTTONS
   ===================================================== */
.btn-primary,
#content .btn-primary {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover {
    background: #dac884 !important;
    border-color: #dac884 !important;
    opacity: 1 !important;
}

.btn-listing {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.btn-listing:hover {
    background: #dac884 !important;
    border-color: #dac884 !important;
}

/* =====================================================
   11. PAGINATION
   ===================================================== */
.pagination > li.active > a,
.pagination > li.active > span {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.pagination li a:hover {
    background: #f5f0e0 !important;
    border-color: #dac884 !important;
}

/* =====================================================
   12. FOOTER — MATCHING GOLDEN GLASSMORPHISM
   ===================================================== */
footer {
    /* Safe solid fallback */
    background-color: #f4ede0 !important; 
    
    /* Translucent gold glass effect */
    background: rgba(184, 165, 90, 0.22) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    
    /* Dark burnished gold text color for contrast */
    color: #2a2415 !important;
    
    /* Keep your existing layout properties */
    border-top: 3px solid #dac884 !important;
    padding-top: 50px !important;
    padding-bottom: 30px !important;
    margin-top: 40px !important;
}

/* Update footer headers, lists, and links to be legible over the gold glass */
footer h5, footer h4, footer b, footer strong {
    color: #2a2415 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(184, 165, 90, 0.4) !important;
}

footer ul li a, footer a, footer p {
    color: #4a3f28 !important; /* Slightly softer dark bronze for body text */
}

footer ul li a:hover, footer a:hover {
    color: #ffffff !important; /* High contrast white hover effect */
    background: #b8a55a !important; /* Subtle gold backing highlight on hover */
}

/* =====================================================
   13. SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #dac884; }

/* =====================================================
   THE NUCLEAR OVERRIDE — EXACT LIGHT CREAM FOOTER MATCH
   ===================================================== */
html body header, 
html body header .header-container,
#header,
.header-container,
header[id], 
div[class*="header"],
header .header-top {
    /* Exact match to the light sand/cream footer background in 1000022167.jpg */
    background-color: #eae5d8 !important; 
    background: #eae5d8 !important; 
    background-image: none !important;
    
    /* Remove any leftover dark blurs or shadows */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* =====================================================
   HEADER TEXT & ICON DARK CONTRAST (MATCHING FOOTER TEXT)
   ===================================================== */
/* Force all text, links, and search/cart labels to match the crisp dark text in your footer */
header, 
header a, 
header span, 
header i,
header div,
header .header-contact-phone .header-contact-label,
header .header-contact-phone .header-contact-value a,
header h1 a,
header .header-shipping-info,
header .ms-auto a {
    color: #25221c !important; /* Deep earth charcoal for maximum legibility */
}

/* Style the small mobile icon buttons cleanly for the light background */
header .header-contact-mobile .btn-outline-secondary {
    color: #25221c !important;
    border-color: rgba(37, 34, 28, 0.25) !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
}

header .header-contact-mobile .btn-outline-secondary:hover {
    background-color: #25221c !important;
    color: #eae5d8 !important;
}

/* =====================================================
   GLOBAL DROPDOWN FRAME FIX (Account, Nav, Utilities)
   ===================================================== */
/* 1. Force all dropdown panel boxes to use a unified premium light cream backdrop */
header .dropdown-menu,
.header-top .dropdown-menu,
#top .dropdown-menu,
.header-contact-mobile .dropdown-menu {
    background-color: #fdfbf7 !important;
    background: #fdfbf7 !important;
    border: 1px solid rgba(184, 165, 90, 0.3) !important;
    box-shadow: 0 8px 24px rgba(42, 36, 21, 0.15) !important;
}

/* 2. Force dropdown list links (Login, Register, Accounts) to stay dark bronze */
header .dropdown-item,
header .dropdown-menu a,
.header-top .dropdown-item,
#top .dropdown-item {
    color: #2a2415 !important;
    background: transparent !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    display: block !important;
}

/* 3. Global Dropdown Hover State */
header .dropdown-item:hover,
header .dropdown-menu a:hover,
.header-top .dropdown-item:hover {
    background-color: #b8a55a !important;
    background: #b8a55a !important;
    color: #ffffff !important;
}

/* =====================================================
   MOBILE & UTILITY CONTACT DROPBOX FIX (Sleek Compact Version)
   ===================================================== */
/* Force the container parent to align correctly */
header .dropdown.header-contact-mobile {
    position: relative !important;
}

/* Transform the giant awkward box into a compact, perfectly framed dropdown */
header .header-contact-mobile .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important; /* Disables problematic JS translate offsets */
    margin-top: 6px !important;
    
    /* Sleek Box Formatting */
    min-width: 160px !important; /* Shrinks the massive width so it frames the text tightly */
    width: auto !important;
    padding: 10px 14px !important; /* Tightens up internal padding */
    background-color: #fdfbf7 !important; /* Clean light cream surface */
    border: 1px solid rgba(184, 165, 90, 0.4) !important; /* Fine golden-bronze border */
    box-shadow: 0 6px 16px rgba(42, 36, 21, 0.12) !important; /* Premium soft shadow */
    border-radius: 6px !important;
    display: none;
    z-index: 99999 !important;
}

/* Force show state when dropdown toggles active */
header .header-contact-mobile .dropdown-menu.show {
    display: block !important;
}

/* Offset positioning adjustment for the email dropdown icon so it stays on grid */
header .dropdown.header-contact-mobile:nth-of-type(2) .dropdown-menu {
    left: -10px !important;
}

/* Format internal content fields cleanly */
header .header-contact-mobile .header-contact-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

/* Stylize labels and values cleanly */
header .header-contact-mobile .header-contact-label {
    font-size: 11px !important;
    color: #b8a55a !important; /* Soft gold tone for headers */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

header .header-contact-mobile .header-contact-value,
header .header-contact-mobile .header-contact-value a {
    font-size: 14px !important;
    color: #2a2415 !important; /* Clear deep bronze for phone/email text */
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Ensure mobile contact toggle button boundaries remain clean */
header .header-contact-mobile .btn-outline-secondary {
    color: #2a2415 !important;
    border-color: rgba(184, 165, 90, 0.3) !important;
    padding: 6px 12px !important;
}
header .header-contact-mobile .btn-outline-secondary:hover {
    background-color: #b8a55a !important;
    color: #ffffff !important;
}

/* =====================================================
   ADJUST DROPDOWN CONTRAST FOR THE SUNSET THEME
   ===================================================== */
/* Force the tiny contact popovers to look clean and legible against the new color */
header .header-contact-mobile .dropdown-menu,
header .dropdown-menu {
    background-color: #fffbf5 !important; /* Soft cream so text pops */
    border: 1px solid #c59b5f !important; /* Border matching the deeper sand highlights */
    box-shadow: 0 8px 24px rgba(50, 40, 30, 0.15) !important;
}

/* Ensure the utility icons stand out sharply */
header .header-contact-mobile .btn-outline-secondary {
    color: #2a2415 !important;
    border-color: rgba(42, 36, 21, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

header .header-contact-mobile .btn-outline-secondary:hover {
    background-color: #2a2415 !important; /* Deep charcoal hover from the shadows */
    color: #ffffff !important;
}
/* =====================================================
   DESKTOP: INVERT WHITE PNG LOGOS TO SHARP BLACK
   ===================================================== */
@media (min-width: 992px) {
    /* Targets the inner image wrappers for phone and email graphics */
    header .header-contact-phone .header-contact-icon img,
    header .header-contact-email .header-contact-icon img {
        /* Inverts brightness from white (100) down to black (0) */
        filter: invert(1) brightness(0) !important;
        -webkit-filter: invert(1) brightness(0) !important;
        
        opacity: 0.95 !important;
        transition: filter 0.2s ease !important;
    }
}

/* =====================================================
   MOBILE: LIGHTEN THE HOVER STATE ON UTILITY LOGOS
   ===================================================== */
/* Base mobile resting states */
header .header-contact-mobile .btn-outline-secondary {
    color: #25221c !important;
    border-color: rgba(37, 34, 28, 0.25) !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Lightened Hover: Switched from heavy black to a smooth, soft warm gray-sand */
header .header-contact-mobile .btn-outline-secondary:hover,
header .header-contact-mobile .dropdown.show .btn-outline-secondary {
    background-color: #dcd7ca !important; /* Soft, premium sand tone instead of dark charcoal */
    color: #25221c !important; /* Keeps the text/icon easily readable */
    border-color: rgba(37, 34, 28, 0.4) !important;
}