/*
 * Header and page width, after a quantity-priced printing shop's storefront:
 *
 *   slim bar  ->  dark bar (logo, quote, search, login, cart)  ->  white menu bar
 *
 * Colours follow the Art Media Zone brand kit: #003135 and white. This file
 * loads last, after style.css / mobile-header.css / main.css, and only
 * overrides them -- markup is in frontEnd/layouts/master.blade.php.
 */

:root {
    --shop-bg: #fff;
    --hd-teal: #003135;
    --hd-teal-dark: #00282b;
    --hd-tint: #e6f0f0;
    --hd-mute: #d2e2e3;
}

/* -- full width instead of the 1400px box, 1504px of content -------------------- */
@media (min-width: 992px) {
    html { background: #fff; }
    body { max-width: none; box-shadow: none; background: #fff; }
    body .whatsapp-float { right: 18px; }
    body .scroll-top-btn { right: 18px; }
}
.container { max-width: 1536px; padding-left: 16px; padding-right: 16px; }
.sp-wrap { max-width: 1536px; padding: 0 16px; }

/* -- slim bar ------------------------------------------------------------------------ */
.top-barhead { background: var(--hd-teal-dark); color: #fff; font-size: 14px; padding: 0; }
.top-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
.top-barhead a { color: #fff; text-decoration: none; }
.top-barhead a:hover { color: var(--hd-mute); }
.top-bar-notice { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar-links { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; font-size: 13px; }
.top-bar-links i { margin-right: 7px; font-size: 12px; opacity: .85; }

/* -- dark bar ------------------------------------------------------------------------------ */
.main-header { background: var(--hd-teal); box-shadow: none; }
.logo-header { display: flex; align-items: center; gap: 32px; padding: 0; min-height: 92px; }
.main-logo img { height: 32px; max-height: none; width: auto; }

.hdr-quote { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: #fff; text-decoration: none; }
.hdr-quote i { font-size: 34px; color: #25d366; }
.hdr-quote span { display: flex; flex-direction: column; line-height: 1.25; }
.hdr-quote small { font-size: 12px; color: var(--hd-mute); }
.hdr-quote strong { font-size: 12px; font-weight: 600; color: #fff; }
.hdr-quote:hover { color: #fff; opacity: .9; }

.main-search { flex: 1 1 auto; max-width: none; }
.main-search form, .main-search .input-group {
    height: 44px; padding: 0 18px 0 46px; gap: 0;
    background: #fafafa; border: 0; border-radius: 999px;
}
.main-search form:focus-within { border: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.main-search .search-lead { left: 18px; font-size: 16px; color: #98a2b3; }
.main-search input[type="text"], .main-search input[type="search"], .search_keyword { height: 44px; font-size: 16px; color: #101828; }
.search_keyword::placeholder { color: #667085; }
.main-search button { display: none; }

.header-list-items { margin-left: 0; }
.header-list-items > ul { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.hdr-btn, .hdr-btn-cart, .hdr-btn-account {
    border: 0; background: transparent; box-shadow: none; padding: 0; gap: 12px; border-radius: 0; color: #fff;
}
.hdr-btn:hover, .hdr-btn-cart:hover { background: transparent; box-shadow: none; color: #fff; opacity: .92; }
.hdr-btn > i, .hdr-cart-icon i { font-size: 28px; color: #fff; }
.hdr-btn-text { line-height: 1.3; }
.hdr-btn-text small { font-size: 12px; color: var(--hd-mute); }
.hdr-btn-text strong { font-size: 14px; font-weight: 600; color: #fff; }
.hdr-avatar { background: #fff; color: var(--hd-teal); }
.hdr-cart-count { background: #ffe600; color: var(--hd-teal); border: 2px solid var(--hd-teal); }

/* -- white menu bar ------------------------------------------------------------------------- */
.cat-nav, .cat-nav[style*="--mh-green"] { background: #fff; color: #475467; border-bottom: 1px solid #eaecf0; box-shadow: none; }
.cat-nav-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }

.cat-drop-btn {
    height: 44px; min-width: 232px; padding: 0 16px; gap: 12px;
    background: var(--hd-teal); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 700;
}
.cat-drop-btn .cat-caret { margin-left: auto; }
.cat-drop-menu { top: calc(100% + 8px); border-radius: 12px; }

.cat-nav-links { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0 0 0 24px; list-style: none; border-left: 1px solid #e4e7ec; }
.cat-nav-links a, .cat-nav-links a:hover {
    height: auto; padding: 18px 0; background: transparent; color: #475467; font-size: 14px; font-weight: 600;
}
.cat-nav-links a:hover { color: var(--hd-teal); }
.cat-nav-links > li:first-child > a { color: var(--hd-teal); font-weight: 700; }
.cat-nav-caret { font-size: 10px; }
.cat-nav-dropdown { top: calc(100% - 6px); min-width: 250px; border-radius: 12px; padding: 8px; border: 1px solid #e4e7ec; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.cat-nav-dropdown a, .cat-nav-dropdown a:hover { padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.cat-nav-dropdown a { color: #344054; }
.cat-nav-dropdown a:hover { background: var(--hd-tint); color: var(--hd-teal); }

.cat-nav-quote {
    margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    background: var(--hd-tint); color: var(--hd-teal); font-size: 14px; font-weight: 700;
    padding: 11px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.cat-nav-quote:hover { background: #d3e5e5; color: var(--hd-teal); }

/* Font Awesome swaps every <i> for an <svg> that keeps its classes, so an icon
   rule has to name the svg as well as the <i>. */
.top-bar-links svg { margin-right: 7px; font-size: 12px; opacity: .85; }
.hdr-quote svg, .hdr-quote i { font-size: 34px; color: #25d366; }
.hdr-btn > svg, .hdr-btn > i, .hdr-cart-icon svg, .hdr-cart-icon i { font-size: 28px; color: #fff; }
.cat-drop-btn svg { color: #fff; }
.cat-nav-quote svg { font-size: 13px; }

/* Menu entries are plain text here: no category picture or icon in front. */
.cat-nav-links .menu-glyph, .cat-nav-links .menu-glyph-img, .cat-nav-dropdown .menu-glyph, .cat-nav-dropdown .menu-glyph-img { display: none; }

/* Hero: air under the menu bar, and the small box slider is a picture, not a control. */
.hb.hb-slider:first-child { padding-top: 28px; }
.hb-hero .hb-slider-box .hb-nav, .hb-hero .hb-slider-box .hb-dots { display: none; }

/* Slim bar, right side: hours | language | currency, separated by thin lines. */
.top-bar-links { gap: 0; font-size: 13px; }
.top-bar-links > * { display: inline-flex; align-items: center; padding: 0 14px; line-height: 16px; }
.top-bar-links > * + * { border-left: 1px solid rgba(255, 255, 255, .35); }
.top-bar-links > *:last-child { padding-right: 0; }
.top-bar-hours svg { margin-right: 7px; }
.top-bar-hours b { margin-left: 5px; font-weight: 700; }

/* Footer logo: the same wordmark, smaller than the theme's 52px. */
.footer-about > a img { max-height: 40px; }

/* -- the dark bar stays at the top while the page scrolls -------------------------------------------
   #navbar_top holds the slim bar and the dark bar. A negative top offset equal to the slim bar's
   height lets the slim bar scroll away and pins only the dark bar (92px), as in the reference shop.
   The white menu bar is no longer sticky, so the two never fight for the same spot. */
@media (min-width: 992px) {
    #navbar_top { position: sticky; top: -36px; z-index: 800; }
    .main-header { box-shadow: 0 2px 12px rgba(0, 20, 22, .22); }
    .cat-nav, .cat-nav[style*="--mh-green"] { position: relative; top: auto; z-index: 60; }
}

/* The last two menu items sit at the right edge: their dropdown opens towards the left, so it never sticks out of the screen. */
.cat-nav-links > li.has-dropdown:last-child .cat-nav-dropdown, .cat-nav-links > li.has-dropdown:nth-last-child(2) .cat-nav-dropdown { left: auto; right: 0; }
