/* ============================================================================
   v0.1.69 (additive) — SABJISTORE PUBLIC SITE "MODERN HEADER" LAYER.
   NEW FILE, 100% additive. Loaded AFTER polish.css on every public page, so
   the rules below win the cascade without touching main.css, polish.css or
   any page's inline styles or logic.

   Why: the v0.1.68 polish layer repainted the navbar with a dark teal
   gradient but left the nav links / brand text at their old dark-teal
   colour (#096171) — dark text on a dark bar made the brand name and the
   whole menu (Home / Shop / Services / More / Login / Cart) nearly
   invisible. This layer gives the storefront header a genuine modern
   2026 look — glass gradients, pill links, an integrated pill search,
   a glass cart pill with an animated badge, an amber Login CTA and a
   compact on-scroll state (class toggled by the additive modern.js).

   Safety rules used while writing this layer:
     - No markup, class, id, handler or logic changes anywhere.
     - Layout changes are deliberately limited to the HEADER band only
       (ribbon + navbar paddings / gaps / radii) — the page grid, cards,
       forms and footer keep the v0.1.68 polish behaviour untouched.
     - box-shadow (inset) is used for the navbar accent line instead of a
       positioned pseudo-element so nothing about dropdown positioning
       (.dropdown is the positioned ancestor) can change.
     - Mobile drawer: main.css paints .navbar-nav WHITE at <=768px, so the
       mobile media block below re-darkens the drawer links — no white-on-white.
     - @media (prefers-reduced-motion) keeps every effect optional.
   ============================================================================ */

:root {
    --md69-ink: #05343d;                 /* deepest brand teal (text on amber) */
    --md69-bar-1: #0d7c8f;               /* gradient start */
    --md69-bar-2: #096171;               /* gradient mid (brand) */
    --md69-bar-3: #053e4a;               /* gradient end */
    --md69-accent: #f5c342;              /* amber accent */
    --md69-accent-2: #ffd977;            /* light amber (hover text) */
    --md69-glass: rgba(255, 255, 255, 0.14);
    --md69-glass-line: rgba(255, 255, 255, 0.28);
    --md69-radius-pill: 999px;
}

/* ============================================================================
   1. TOP RIBBON (announcement bar) — slimmer, richer, chip-based contacts
   ============================================================================ */
.ribbon {
    background-image: linear-gradient(90deg, #052f36 0%, #0a5e6e 50%, #052f36 100%);
    padding: 8px 26px;
    font-size: 13px;
    letter-spacing: 0.3px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.10);
    /* retire the old pointer-triangle pseudo element (purely decorative) */
}
.ribbon::before {
    content: none;
}
.text-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}
/* pulsing "live" dot before the tagline (decorative ::before, additive) */
.text-ribbon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7dff9b;
    box-shadow: 0 0 0 0 rgba(125, 255, 155, 0.55);
    animation: md69Pulse 2.2s ease-out infinite;
}
@keyframes md69Pulse {
    0%   { box-shadow: 0 0 0 0 rgba(125, 255, 155, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(125, 255, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 255, 155, 0); }
}
.ribbon-link {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--md69-radius-pill);
    padding: 3px 11px;
    font-size: 12.5px;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease,
                transform 0.18s ease, border-color 0.18s ease;
}
.ribbon-link:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--md69-ink);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.6);
}
.ribbon-link i {
    font-size: 12px;
}
/* social-only links (icon without text) become neat round chips */
.ribbon-right a.ribbon-link:not(:has(span)):not([id*="-text-ribbon"]) {
    width: 26px;
    height: 26px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* ============================================================================
   2. NAVBAR SHELL — premium glass gradient + amber accent underline
   ============================================================================ */
.navbar {
    background-image: linear-gradient(120deg,
        var(--md69-bar-1) 0%, var(--md69-bar-2) 55%, var(--md69-bar-3) 100%);
    padding: 13px 30px;
    gap: 20px;
    box-shadow:
        inset 0 -3px 0 rgba(245, 195, 66, 0.9),
        0 10px 30px rgba(4, 60, 72, 0.30);
    transition: padding 0.28s ease, box-shadow 0.28s ease;
}
/* compact state while scrolling (class added by additive modern.js only) */
#nav-container-to-replace.md69-scrolled .navbar {
    padding: 7px 30px;
    box-shadow:
        inset 0 -3px 0 rgba(245, 195, 66, 0.9),
        0 8px 26px rgba(4, 60, 72, 0.45);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* ---------- brand ---------- */
.navbar .logo img {
    height: 48px;
    width: 48px;
    border: 3px solid #ffffff;
    box-shadow:
        0 0 0 2px rgba(245, 195, 66, 0.75),
        0 4px 14px rgba(3, 42, 50, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.navbar .logo img:hover {
    transform: rotate(-6deg) scale(1.06);
    box-shadow:
        0 0 0 3px rgba(245, 195, 66, 0.95),
        0 8px 22px rgba(3, 42, 50, 0.55);
}
.navbar #brand-name-header,
.navbar .brand-name {
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-shadow: 0 2px 10px rgba(3, 42, 50, 0.55);
    transition: color 0.2s ease;
}
.navbar #brand-name-header:hover {
    color: var(--md69-accent-2);
}

/* ---------- nav links: white pills on the glass bar ---------- */
.navbar-nav {
    gap: 8px;
}
.navbar-nav a {
    color: #ffffff;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: var(--md69-radius-pill);
    background: transparent;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.navbar-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--md69-accent-2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 42, 50, 0.25);
}
.navbar-nav a i {
    color: inherit;
    transition: transform 0.2s ease;
}
.navbar-nav a:hover i {
    transform: scale(1.08);
}
/* dropdown chevron micro-motion */
.navbar-nav a .fa-chevron-down {
    font-size: 11px;
    opacity: 0.85;
}
.dropdown:hover a .fa-chevron-down,
.dropdown.open a .fa-chevron-down {
    transform: rotate(180deg);
}

/* ---------- dropdown cards ---------- */
.dropdown-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow:
        inset 0 3px 0 var(--md69-accent),
        0 18px 42px rgba(4, 60, 72, 0.30);
    border: 1px solid rgba(9, 97, 113, 0.12);
    overflow: hidden;
    padding: 6px;
}
.dropdown-content a {
    color: #0b4c58;
    font-weight: 500;
    border-radius: 9px;
    margin: 2px 0;
}
.dropdown-content a:hover {
    background: var(--pl68-primary-soft, #e1efed);
    color: #05343d;
}

/* ---------- search: integrated glass pill with inner round button ---------- */
.search-container {
    position: relative;
}
.search-input {
    width: 235px;
    padding: 11px 48px 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--md69-radius-pill);
    background: rgba(255, 255, 255, 0.96);
    color: #0b4c58;
    font-size: 14px;
    box-shadow: inset 0 1px 4px rgba(5, 52, 61, 0.12);
    transition: width 0.28s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-input::placeholder {
    color: #6e8f96;
}
.search-input:focus {
    border-color: rgba(245, 195, 66, 0.85);
    box-shadow:
        inset 0 1px 4px rgba(5, 52, 61, 0.10),
        0 0 0 4px rgba(245, 195, 66, 0.25);
}
.search-container:focus-within .search-input {
    width: 290px;
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background-image: linear-gradient(120deg, #ffd977, #f5a623);
    color: #05343d;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.45);
    transition: transform 0.18s ease, filter 0.18s ease,
                box-shadow 0.18s ease;
}
.search-btn:hover {
    transform: translateY(-50%) scale(1.08);
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.6);
}
.search-btn i {
    color: #05343d;
    font-size: 14px;
}

/* ---------- cart: glass pill + animated amber badge ---------- */
.cart-icon a {
    color: #ffffff;
    background: var(--md69-glass);
    border: 1px solid var(--md69-glass-line);
    border-radius: var(--md69-radius-pill);
    padding: 9px 16px;
    transition: background-color 0.2s ease, transform 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-icon a:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(3, 42, 50, 0.30);
}
.cart-icon a i,
.cart-text {
    color: #ffffff;
}
.cart-count {
    top: -7px;
    right: -7px;
    background-image: linear-gradient(120deg, #ffd977, #f5a623);
    color: #05343d;
    border: 2px solid #ffffff;
    font-size: 10px;
    padding: 2px 7px;
    box-shadow: 0 3px 10px rgba(245, 166, 35, 0.5);
}
/* badge bump (class toggled by additive modern.js when the count changes) */
.cart-count.md69-bump {
    animation: md69Bump 0.45s ease;
}
@keyframes md69Bump {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ---------- Login: amber CTA pill ---------- */
.navbar-nav #login-link {
    background-image: linear-gradient(120deg, #ffd977, #f5a623);
    color: #05343d;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(245, 166, 35, 0.42);
}
.navbar-nav #login-link:hover {
    color: #05343d;
    background-image: linear-gradient(120deg, #ffe08a, #f7ad2e);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.55);
}
.navbar-nav #login-link i {
    color: #05343d;
}

/* ---------- hamburger ---------- */
.menu-toggle {
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease;
}
.menu-toggle:hover {
    color: var(--md69-accent-2);
    transform: scale(1.1);
}

/* ============================================================================
   3. MOBILE DRAWER (<=768px) — main.css paints .navbar-nav WHITE here, so
      re-darken drawer content; keeps the existing slide logic untouched.
   ============================================================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 14px;
        gap: 10px;
    }
    #nav-container-to-replace.md69-scrolled .navbar {
        padding: 8px 14px;
    }
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        box-shadow: 0 18px 42px rgba(4, 60, 72, 0.35);
        padding: 12px;
    }
    .navbar-nav a {
        color: #0b4c58;
        font-weight: 600;
        padding: 11px 12px;
        border-radius: 10px;
    }
    .navbar-nav a:hover {
        background: #e1efed;
        color: #05343d;
        transform: none;
    }
    .navbar-nav a i {
        color: inherit;
    }
    /* the Login CTA keeps its amber pill inside the white drawer */
    .navbar-nav #login-link,
    .navbar-nav #login-link:hover {
        color: #05343d;
    }
    .dropdown-content {
        background: #eef6f5;
        box-shadow: none;
        border: none;
    }
    .dropdown-content a {
        color: #0b4c58;
    }
    .search-input {
        width: 100%;
        max-width: 100%;
    }
    .search-container:focus-within .search-input {
        width: 100%;
    }
    .search-input {
        padding: 9px 44px 9px 16px;
    }
    .search-btn {
        width: 32px;
        height: 32px;
    }
    .cart-icon a {
        padding: 8px 13px;
    }
    .ribbon {
        padding: 8px 14px;
    }
}

/* ============================================================================
   4. MOTION SAFETY
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .text-ribbon::before {
        animation: none;
    }
    .cart-count.md69-bump {
        animation: none;
    }
    .navbar,
    .navbar-nav a,
    .cart-icon a,
    .search-btn,
    .ribbon-link,
    .menu-toggle,
    .search-input {
        transition: none;
    }
}
