/* =========================================================
   AFGHANNUTS - GLOBAL MASTER STYLES & THEME OVERRIDES
   Ensures 100% Brand Consistency, Mobile Friendliness & Contrast
   ========================================================= */

:root {
    --an-bg-dark: #2b211c;
    --an-card-bg: #33251f;
    --an-card-bg-subtle: #241a16;
    --an-border: #4a3429;
    --an-border-focus: #d6a25f;
    --an-gold: #d6a25f;
    --an-gold-hover: #e5b370;
    --an-amber: #f59e0b;
    --an-cream: #f7f0ea;
    --an-muted: #b9a99f;
    --an-green: #22c55e;
}

/* Global Link & Text Defaults - Eliminate raw browser blue links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--an-gold);
}

/* Force dark theme body standard */
body {
    background-color: var(--an-bg-dark) !important;
    color: var(--an-cream) !important;
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Top Notification Notice Bar */
.an-top-notice {
    background: #19100c !important;
    color: #f7f0ea !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #36251b !important;
    padding: 6px 12px;
}

/* =========================================================
   STICKY HEADER & NAVIGATION
   ========================================================= */
.an-header {
    width: 100%;
    background: #1f1612 !important;
    border-bottom: 1px solid #38271e !important;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.an-main-head {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.an-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2b211c;
    border: 1px solid #4a3429;
    color: #f7f0ea;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.an-menu:hover {
    background: #38271e;
    color: var(--an-gold);
    border-color: var(--an-gold);
}

.an-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #fff !important;
    flex-shrink: 0;
}

.an-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3d2b22, #211611);
    border: 1.5px solid var(--an-gold);
    color: var(--an-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.an-brand-text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ffffff;
    display: block;
    line-height: 1.1;
}

.an-brand-text small {
    font-size: 8.5px;
    letter-spacing: 2px;
    color: var(--an-gold);
    font-weight: 700;
    display: block;
    margin-top: 2px;
}

/* Header Search */
.an-search {
    display: flex;
    align-items: center;
    background: #2a1f19;
    border: 1.5px solid #4a3429;
    border-radius: 50px;
    padding: 2px 6px 2px 16px;
    transition: all 0.25s ease;
}

.an-search:focus-within {
    border-color: var(--an-gold);
    box-shadow: 0 0 0 3px rgba(214, 162, 95, 0.25);
    background: #241a16;
}

.an-search i {
    color: var(--an-muted);
    font-size: 15px;
}

.an-search input {
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #ffffff;
    width: 100%;
}

.an-search input::placeholder {
    color: #9c8a80;
}

.an-search button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--an-gold);
    color: #1a120c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.an-search button:hover {
    transform: scale(1.08);
}

.an-mobile-search-row {
    padding: 0 16px 10px;
}

/* Header Actions (Wishlist, Track, Cart) */
.an-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.an-icon-action {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2b211c;
    border: 1px solid #4a3429;
    color: #f7f0ea !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.an-icon-action:hover {
    background: #38271e;
    color: var(--an-gold) !important;
    border-color: var(--an-gold);
    transform: translateY(-2px);
}

.wishlist-count-badge, .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e11d48;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1f1612;
    line-height: 1;
}

/* =========================================================
   QUICK FILTER CATEGORY STRIP (NO BLUE LINKS, CRISP PILLS)
   ========================================================= */
.an-screenshot-info-strip {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 10px !important;
    background: #18110d !important;
    border-top: 1px solid #2d1e16 !important;
    border-bottom: 1px solid #2d1e16 !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
}

.an-screenshot-info-strip::-webkit-scrollbar {
    display: none !important;
}

.an-screenshot-info-strip .item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    background: #281d17 !important;
    border: 1px solid #3f2c22 !important;
    color: #e5d8cc !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.an-screenshot-info-strip .item:hover {
    background: #3a2b22 !important;
    color: #ffffff !important;
    border-color: var(--an-gold) !important;
    transform: translateY(-1px);
}

.an-screenshot-info-strip .item.active {
    background: linear-gradient(135deg, var(--an-gold), #b88544) !important;
    color: #1a110a !important;
    font-weight: 800 !important;
    border-color: #ffd28e !important;
    box-shadow: 0 2px 10px rgba(214, 162, 95, 0.35) !important;
}

/* =========================================================
   TRUST BADGES STRIP (FIX ALL 4 ICONS)
   ========================================================= */
.an-trust-strip, section[style*="#231914"] {
    background: #1d140f !important;
    border-top: 1px solid #36251b !important;
    border-bottom: 1px solid #36251b !important;
}

.an-trust-icon-box {
    width: 48px;
    height: 48px;
    background: #33231a !important;
    border: 1px solid #4a3429 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--an-gold) !important;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.an-trust-strip:hover .an-trust-icon-box {
    transform: scale(1.05);
}

/* =========================================================
   FORM INPUTS & CONTROLS (HIGH CONTRAST & CRISP READABILITY)
   ========================================================= */
.form-control, .form-select, textarea {
    background-color: #241a16 !important;
    border: 1.5px solid #4d372c !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus, textarea:focus {
    background-color: #1b120d !important;
    border-color: var(--an-gold) !important;
    box-shadow: 0 0 0 3px rgba(214, 162, 95, 0.25) !important;
    color: #ffffff !important;
}

.form-control::placeholder, textarea::placeholder {
    color: #9c8a80 !important;
    opacity: 1 !important;
}

label {
    color: #ede2d8 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* =========================================================
   ORDER SUMMARY & CHECKOUT ITEMS (HIGH CONTRAST FIX)
   ========================================================= */
.co-item-title, a.co-item-title {
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    display: block !important;
}

.co-item-title:hover {
    color: var(--an-gold) !important;
}

.co-item-qty {
    display: block !important;
    color: var(--an-muted) !important;
    font-size: 12.5px !important;
    margin-top: 3px !important;
}

.co-item-price {
    color: var(--an-gold) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.co-price-row {
    color: #f7f0ea !important;
}

/* =========================================================
   FOOTER LINKS & HEADINGS (CRYSTAL CLEAR CONTRAST)
   ========================================================= */
footer {
    background: #18100c !important;
    border-top: 1px solid #332218 !important;
    color: var(--an-muted) !important;
}

footer h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    font-size: 14px !important;
}

footer ul li a {
    color: #cbbab0 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    display: inline-block;
    padding: 2px 0;
}

footer ul li a:hover {
    color: var(--an-gold) !important;
    transform: translateX(3px);
}

footer .extra-small a {
    color: #9c8a80 !important;
}

footer .extra-small a:hover {
    color: var(--an-gold) !important;
}

/* =========================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1f1612 !important;
    border-top: 1px solid #3d2b22 !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b9a99f !important;
    text-decoration: none !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    gap: 3px;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--an-gold) !important;
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 75px;
    right: 18px;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none !important;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    color: #ffffff !important;
}

/* Breadcrumb Styling */
.breadcrumb-item a {
    color: var(--an-gold) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: #cbbab0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6d5547 !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .an-main-head {
        padding: 10px 14px;
    }
}
