/* ==========================================================================
   kasuwa Header Styles — hdr- prefix
   Replaces Bootstrap CSS classes in topbar, header, dropdowns, mobile menu
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
    --hdr-primary: #10A5BB;
    --hdr-primary-hover: #0d8a9c;
    --hdr-primary-light: #E6F7F9;
    --hdr-max-width: 1190px;
    --hdr-font: inherit;
    --hdr-border: #dee2e6;
    --hdr-shadow: 0 2px 4px rgba(0,0,0,.08);
    --hdr-mobile-panel-width: 300px;
    --hdr-transition: .2s ease;
}

/* --------------------------------------------------------------------------
   Reset focus outline for all header interactive elements
   -------------------------------------------------------------------------- */
.hdr-topbar a:focus,
.hdr-topbar button:focus,
.hdr-header-inner a:focus,
.hdr-header-inner button:focus,
.hdr-mobile-panel a:focus,
.hdr-mobile-panel button:focus,
.hdr-dropdown-toggle:focus,
.hdr-btn:focus,
.hdr-nav-link:focus,
.hdr-hamburger:focus,
.hdr-mobile-menu-arrow:focus,
.hdr-mobile-close:focus,
.hdr-nav-icon:focus,
.hdr-input-btn:focus {
    outline: none;
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.hdr-topbar {
    border-bottom: 1px solid var(--hdr-border);
    background: #fff;
    font-size: 14px;
    position: relative;
    z-index: 1031;
}

.hdr-topbar-inner {
    max-width: var(--hdr-max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-height: 42px;
}

.hdr-topbar-switcher {
    display: none;
}

@media (min-width: 768px) {
    .hdr-topbar-switcher {
        display: flex;
        align-items: center;
        background: #f0f0f0;
        border-radius: 20px;
        padding: 3px;
        gap: 2px;
    }
}

.hdr-topbar-switcher-btn {
    padding: 5px 14px;
    border-radius: 17px;
    background: transparent;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.hdr-topbar-switcher-btn:hover {
    background: #e4e4e4;
    text-decoration: none;
    color: #555;
}

.hdr-topbar-switcher-btn--handmade.active {
    background: #10A5BB;
    color: #fff;
}

.hdr-topbar-switcher-btn--make.active {
    background: #ff6600;
    color: #fff;
}

.hdr-topbar-mobile-tagline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 10px;
    font-size: 14px;
    color: #555;
}

.hdr-topbar-mobile-tagline svg {
    color: var(--hdr-primary);
    flex-shrink: 0;
}
.hdr-heartbeat {
    display: inline-flex;
    animation: hdr-heartbeat 1.2s ease-in-out infinite;
}
@keyframes hdr-heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.25); }
    56% { transform: scale(1); }
}

@media (min-width: 768px) {
    .hdr-topbar-mobile-tagline {
        display: none;
    }
}

.hdr-topbar-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
    flex-wrap: nowrap;
}

.hdr-topbar-link {
    display: none;
    padding: 8px 11px 8px 3px;
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
    gap: 2px;
}

.hdr-topbar-link:hover {
    color: var(--hdr-primary);
    text-decoration: none;
}

.hdr-topbar-link--make {
    color: #ff6600;
}

.hdr-topbar-link--make:hover {
    color: #e55c00;
}

.hdr-topbar-link--plain {
    font-weight: 400;
}

@media (min-width: 992px) {
    .hdr-topbar-link {
        display: flex;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.hdr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.5;
    transition: background var(--hdr-transition), border-color var(--hdr-transition);
}

.hdr-btn:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #333;
}

.hdr-btn--primary {
    background: var(--hdr-primary);
    border-color: var(--hdr-primary);
    color: #fff;
}

.hdr-btn--primary:hover {
    background: var(--hdr-primary-hover);
    border-color: var(--hdr-primary-hover);
    color: #fff;
}

.hdr-btn--primary-outline {
    background: transparent;
    border-color: var(--hdr-primary);
    color: var(--hdr-primary);
}

.hdr-btn--primary-outline:hover {
    background: var(--hdr-primary);
    border-color: var(--hdr-primary);
    color: #fff;
}

.hdr-btn--light {
    background: #f8f9fa;
    border-color: #ddd;
    color: #333;
}

.hdr-btn--small {
    padding: 6px 10px;
    font-size: 13px;
}

.hdr-btn--rounded-left {
    border-radius: 4px 0 0 4px;
}

.hdr-btn--rounded-right {
    border-radius: 0 4px 4px 0;
    border-left: 0;
    margin-left: -10px;
}

.hdr-btn--inactive {
    cursor: default;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.hdr-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.hdr-badge--primary {
    background: var(--hdr-primary);
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-left: 4px;
}

.hdr-badge--make {
    background: #ff6600;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-left: 4px;
}

.hdr-badge--success {
    background: #28a745;
    color: #fff;
    border: 2px solid #fff;
}

/* --------------------------------------------------------------------------
   Dropdowns
   -------------------------------------------------------------------------- */
.hdr-dropdown {
    position: relative;
}

.hdr-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.hdr-dropdown-toggle--topbar {
    padding: 8px 0;
}

.hdr-btn.hdr-dropdown-toggle {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    font-size: 13px;
}

.hdr-btn.hdr-dropdown-toggle:hover {
    background: #e9ecef;
}

.hdr-dropdown-toggle:hover {
    text-decoration: none;
    color: inherit;
}

.hdr-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 200px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.hdr-dropdown-menu--right {
    left: auto;
    right: 0;
}

.hdr-dropdown--open > .hdr-dropdown-menu {
    display: block;
}

/* Hover on desktop (lg+) */
@media (min-width: 992px) {
    .hdr-dropdown--hover:hover > .hdr-dropdown-menu {
        display: block;
    }
}

.hdr-dropdown-item {
    display: block;
    padding: 6px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.hdr-dropdown-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.hdr-dropdown-item strong {
    font-weight: 700;
}

.hdr-dropdown-item--icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hdr-dropdown-item--icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hdr-dropdown-item--danger {
    color: #dc3545;
}

.hdr-dropdown-item--danger:hover {
    color: #dc3545;
}

.hdr-dropdown-item--warning {
    color: #ffc107;
}

.hdr-dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--hdr-border);
}

/* --------------------------------------------------------------------------
   User Card (in dropdown)
   -------------------------------------------------------------------------- */
.hdr-user-card {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 8px;
    gap: 8px;
}

.hdr-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hdr-border);
}

/* --------------------------------------------------------------------------
   Header Bar
   -------------------------------------------------------------------------- */
.hdr-header {
    background: #fff;
    box-shadow: var(--hdr-shadow);
    position: relative;
    z-index: 1000;
}

.hdr-header-inner {
    max-width: var(--hdr-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-height: 65px;
    box-sizing: border-box;
}

/* Hamburger */
.hdr-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: 4px;
    margin-left: -8px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.hdr-hamburger svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 992px) {
    .hdr-hamburger {
        display: none;
    }
}

/* Logo */
.hdr-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
    flex-shrink: 0;
}

.hdr-logo-desktop {
    display: none;
}

.hdr-logo-mobile {
    display: block;
    cursor: pointer;
}

@media (min-width: 992px) {
    .hdr-logo-desktop {
        display: block;
    }
    .hdr-logo-mobile {
        display: none;
    }
}

/* Main navigation */
.hdr-nav-main {
    display: none;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hdr-nav-main {
        display: flex;
        margin-left: 24px;
    }
}

.hdr-nav-item {
    position: relative;
}

.hdr-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.hdr-nav-link:hover {
    color: var(--hdr-primary);
    text-decoration: none;
}

.hdr-nav-link svg {
    width: 16px;
    height: 16px;
}

.hdr-nav-link--accent {
    color: var(--hdr-primary);
}

.hdr-nav-link--xl-only {
    display: none;
}

@media (min-width: 1200px) {
    .hdr-nav-link--xl-only {
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   Mega Menu
   -------------------------------------------------------------------------- */
.hdr-mega {
    position: static;
    padding-bottom: 16px;
    margin-bottom: -16px;
}

.hdr-mega > .hdr-dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 920px;
    padding: 20px;
    margin-top: -4px;
}

.hdr-mega > .hdr-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.hdr-mega-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
}

/* Category icon grid (4×3) */
.hdr-mega-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.hdr-mega-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 12.5px;
    text-align: center;
    transition: background var(--hdr-transition), color var(--hdr-transition);
}

.hdr-mega-cat-item svg {
    width: 24px;
    height: 24px;
    color: #888;
    transition: color var(--hdr-transition);
}

.hdr-mega-cat-item:hover {
    background: var(--hdr-primary-light);
    color: var(--hdr-primary);
    text-decoration: none;
}

.hdr-mega-cat-item:hover svg {
    color: var(--hdr-primary);
}

/* Sidebar highlight column */
.hdr-mega-sidebar {
    border-left: 1px solid var(--hdr-border);
    padding-left: 24px;
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 190px;
}

.hdr-mega-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: background var(--hdr-transition), color var(--hdr-transition);
}

.hdr-mega-sidebar-link:hover {
    background: var(--hdr-primary-light);
    color: var(--hdr-primary);
    text-decoration: none;
}

.hdr-mega-sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #888;
    transition: color var(--hdr-transition);
}

.hdr-mega-sidebar-link:hover svg {
    color: var(--hdr-primary);
}

.hdr-mega-sidebar-divider {
    height: 1px;
    background: var(--hdr-border);
    margin: 8px 12px;
}

.hdr-mega-sidebar-all {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    color: var(--hdr-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: background var(--hdr-transition);
}

.hdr-mega-sidebar-all:hover {
    background: var(--hdr-primary-light);
    text-decoration: none;
}

.hdr-mega-sidebar-all svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

/* Tablet search (sm to md) */
.hdr-search-bar {
    display: none;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hdr-search-bar {
        display: block;
        width: 300px;
        flex-shrink: 1;
        min-width: 0;
        margin-left: 8px;
        order: 10;
    }
}

/* Desktop search (lg+) */
.hdr-search-desktop {
    display: none;
    margin-left: 12px;
    position: relative;
}

@media (min-width: 992px) {
    .hdr-search-desktop {
        display: flex;
        width: 280px;
        flex-shrink: 1;
        min-width: 100px;
    }
    .hdr-search-desktop form {
        width: 100%;
    }
}

/* Mobile search toggler (xs only) */
.hdr-search-toggler {
    display: block;
    margin-left: 8px;
    order: 10;
}

@media (min-width: 576px) {
    .hdr-search-toggler {
        display: none;
    }
}

/* Input group */
.hdr-input-group {
    display: flex;
    align-items: stretch;
}

.hdr-input {
    border: 1px solid #bbb;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hdr-primary);
    outline: none;
    min-width: 0;
    flex: 1 1 auto;
    height: 44px;
    box-sizing: border-box;
}

.hdr-input::placeholder {
    color: #999;
    font-weight: 400;
}

.hdr-input:focus {
    border-color: var(--hdr-primary);
}

.hdr-input-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--hdr-primary);
    color: #fff;
    border: 1px solid var(--hdr-primary);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    height: 44px;
}

.hdr-input-btn:hover {
    background: var(--hdr-primary-hover);
    border-color: var(--hdr-primary-hover);
}

.hdr-input-btn svg {
    width: 18px;
    height: 18px;
}

/* Search toggler dummy button (xs) */
.hdr-search-toggler-btn {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.hdr-search-toggler-field {
    background: #fff;
    border: 1px solid #bbb;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    width: 65px;
    height: 44px;
    display: block;
}

/* Mobile search overlay — full-width inside hdr-header-inner */
.hdr-search-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: #fff;
    align-items: center;
    padding: 0 8px;
    margin: 0;
}

.hdr-search-overlay--open {
    display: flex;
}

.hdr-search-overlay .hdr-input-group {
    width: 100%;
}

.hdr-search-overlay .hdr-input {
    flex: 1;
    min-width: 0;
}

.hdr-search-overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    background: #f8f9fa;
    border: 1px solid #bbb;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    font-size: 22px;
    color: #666;
    flex-shrink: 0;
    padding: 0;
}

.hdr-search-overlay-close:hover {
    color: #333;
    background: #eee;
}

/* --------------------------------------------------------------------------
   Nav Icons (cart, bookmarks)
   -------------------------------------------------------------------------- */
.hdr-nav-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hdr-nav-icons {
        margin-left: auto;
    }
}

@media (min-width: 992px) {
    .hdr-nav-icons {
        margin-left: auto;
        flex-shrink: 1;
        min-width: 0;
    }
}

.hdr-nav-icon {
    display: flex;
    align-items: center;
    position: relative;
    padding: 4px 8px;
    color: inherit;
    text-decoration: none;
}

.hdr-nav-icon svg {
    width: 22px;
    height: 22px;
}

.hdr-nav-icon .hdr-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 14px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
}

.hdr-nav-icon-item {
    margin-top: 0;
    margin-left: 4px;
}


/* Cart link */
.hdr-cart-link {
    position: relative;
    margin-right: 10px;
}

.hdr-badge--cart {
    display: inline-block;
    background: var(--hdr-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.3;
    min-width: 16px;
    text-align: center;
    position: absolute;
    top: -2px;
    right: -2px;
}

@media (max-width: 575.98px) {
    .hdr-badge--cart {
        margin-left: 5px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Menu (Side Panel — replaces Bootstrap Modal)
   -------------------------------------------------------------------------- */
.hdr-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 2000;
    opacity: 0;
    transition: opacity .3s ease;
}

.hdr-mobile-overlay--visible {
    display: block;
    opacity: 1;
}

.hdr-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--hdr-mobile-panel-width);
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    visibility: hidden;
    border-radius: 0 12px 12px 0;
}

.hdr-mobile-panel--open {
    transform: translateX(0);
    box-shadow: 2px 0 8px rgba(0,0,0,.15);
    visibility: visible;
}

.hdr-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    flex-shrink: 0;
}

.hdr-mobile-header img {
    height: auto;
    max-width: 100px;
}

.hdr-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 0;
    line-height: 1;
}

.hdr-mobile-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

/* Mobile menu list */
.hdr-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hdr-mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.hdr-mobile-menu-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.hdr-mobile-menu-item > a:hover {
    background: #f8f9fa;
}

.hdr-mobile-menu-item > a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Accordion arrow toggle */
.hdr-mobile-menu-arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
    gap: 8px;
}

.hdr-mobile-menu-arrow:hover {
    background: #f8f9fa;
}

.hdr-mobile-menu-arrow svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hdr-mobile-menu-arrow::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.hdr-mobile-menu-arrow--open::after {
    transform: rotate(-135deg);
}

/* Submenu accordion */
.hdr-mobile-menu-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.hdr-mobile-menu-sub--open {
    max-height: 500px;
}

.hdr-mobile-menu-sub li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 40px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.hdr-mobile-menu-sub li a:hover {
    background: #f8f9fa;
    color: var(--hdr-primary);
}

.hdr-mobile-menu-sub li a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Two-column grid for long category lists */
.hdr-mobile-menu-sub--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.hdr-mobile-menu-sub--grid.hdr-mobile-menu-sub--open {
    max-height: 300px;
}
.hdr-mobile-menu-sub--grid li a {
    padding: 8px 8px 8px 16px;
    font-size: 13px;
    gap: 5px;
}

/* --------------------------------------------------------------------------
   Brand Hint (mobile logo click overlay)
   -------------------------------------------------------------------------- */
.hdr-brand-hint {
    display: none;
    position: absolute;
    z-index: 99999;
    left: 14px;
    top: 34px;
    width: 92%;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 13px rgba(0,0,0,.3);
    padding: 20px;
}

.hdr-brand-hint--visible {
    display: block;
}

.hdr-brand-hint-inner {
    display: flex;
}

.hdr-brand-hint-option {
    width: 50%;
    padding: 0 10px;
    cursor: pointer;
}

.hdr-brand-hint-option:first-child {
    border-right: 1px dotted #999;
    padding-top: 5px;
}

.hdr-brand-hint-option:last-child {
    padding-left: 20px;
}

.hdr-brand-hint-option img {
    max-width: 105px;
    height: auto;
}

.hdr-brand-hint-option div {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Utility: hidden on various breakpoints
   -------------------------------------------------------------------------- */
.hdr-hidden-xs {
    display: none !important;
}

@media (min-width: 576px) {
    .hdr-hidden-xs {
        display: flex !important;
    }
    .hdr-visible-xs {
        display: none !important;
    }
}

.hdr-hidden-below-sm {
    display: none !important;
}

@media (min-width: 576px) {
    .hdr-hidden-below-sm {
        display: block !important;
    }
}

.hdr-hidden-below-md {
    display: none !important;
}

@media (min-width: 768px) {
    .hdr-hidden-below-md {
        display: block !important;
    }
}

.hdr-hidden-below-lg {
    display: none !important;
}

@media (min-width: 992px) {
    .hdr-hidden-below-lg {
        display: block !important;
    }
}

.hdr-hidden-below-sm {
    display: none !important;
}

@media (min-width: 576px) {
    .hdr-hidden-below-sm {
        display: inline !important;
    }
}

.hdr-hidden-lg-up {
    display: block !important;
}

@media (min-width: 992px) {
    .hdr-hidden-lg-up {
        display: none !important;
    }
}

.hdr-hidden-md-up {
    display: block !important;
}

@media (min-width: 768px) {
    .hdr-hidden-md-up {
        display: none !important;
    }
}

/* Body scroll lock when mobile menu is open */
body.hdr-no-scroll {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Make-specific color overrides
   -------------------------------------------------------------------------- */
.hdr-color-make {
    color: #ff6600;
}

.hdr-btn--make {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

.hdr-btn--make:hover {
    background: #e55c00;
    border-color: #e55c00;
    color: #fff;
}

.hdr-btn--make-outline {
    background: transparent;
    border-color: #ff6600;
    color: #ff6600;
}
.hdr-btn--make-outline:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

.hdr-color-handmade {
    color: #11aabb;
}

/* --------------------------------------------------------------------------
   General text utilities used in header
   -------------------------------------------------------------------------- */
.hdr-bold {
    font-weight: 700;
}

.hdr-text-danger {
    color: #dc3545;
}

.hdr-text-primary {
    color: var(--hdr-primary);
}

.hdr-mr-1 {
    margin-right: 8px;
}

.hdr-ml-1 {
    margin-left: 4px;
}

.hdr-mt-1 {
    margin-top: 4px;
}

.hdr-mt-2 {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Cart Flyout
   -------------------------------------------------------------------------- */
.hdr-flyout-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 2000;
    opacity: 0;
    transition: opacity .3s ease;
}

.hdr-flyout-overlay--visible {
    display: block;
    opacity: 1;
}

.hdr-flyout-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    visibility: hidden;
    border-radius: 12px 0 0 12px;
}

.hdr-flyout-panel--open {
    transform: translateX(0);
    box-shadow: -2px 0 8px rgba(0,0,0,.15);
    visibility: visible;
}

.hdr-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hdr-border);
    flex-shrink: 0;
}

.hdr-flyout-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdr-flyout-header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hdr-flyout-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    transition: color .15s;
}

.hdr-flyout-clear:hover {
    color: #d9534f;
}

.hdr-flyout-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    color: #555;
}

.hdr-flyout-close:hover {
    color: #000;
}

.hdr-flyout-added {
    display: none;
    padding: 10px 16px;
    background: #d4edda;
    color: #155724;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hdr-flyout-added--visible {
    display: flex;
}

.hdr-flyout-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.hdr-flyout-empty {
    text-align: center;
    padding: 48px 16px;
}

.hdr-flyout-empty-icon {
    margin-bottom: 16px;
    color: #ccc;
}

.hdr-flyout-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hdr-flyout-empty-text {
    color: #666;
    font-size: 14px;
}

.hdr-flyout-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.hdr-flyout-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.hdr-flyout-item-body {
    flex: 1;
    min-width: 0;
}

.hdr-flyout-item-title {
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hdr-flyout-item-title svg {
    vertical-align: -2px;
    flex-shrink: 0;
    color: #ff6600;
}
.hdr-flyout-item-title:hover {
    color: var(--hdr-primary);
}

.hdr-flyout-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-top: 4px;
}

.hdr-flyout-item-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, background .2s ease;
}

.hdr-flyout-item-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

.hdr-flyout-item--removing {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: opacity .2s ease, max-height .3s ease .1s, padding .3s ease .1s;
}

.hdr-flyout-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--hdr-border);
    padding: 14px 16px;
    background: #fafafa;
}

.hdr-flyout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.hdr-flyout-total strong {
    font-size: 16px;
    color: var(--hdr-primary);
}

.hdr-flyout-actions {
    display: flex;
    gap: 8px;
}

.hdr-flyout-actions .hdr-btn {
    flex: 1;
    text-align: center;
}

.hdr-flyout-freeship {
    margin: 0;
    padding: 10px 16px;
    background: #F0FDF4;
    border-bottom: 1px solid #c3e6cb;
    font-size: 13px;
    color: #333;
}

.hdr-flyout-freeship-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdr-flyout-freeship-text svg {
    flex-shrink: 0;
    color: #28a745;
}

.hdr-flyout-freeship-text strong {
    color: #28a745;
}

.hdr-flyout-freeship-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.hdr-flyout-freeship-bar {
    flex: 1;
    height: 5px;
    background: #d4edda;
    border-radius: 3px;
    overflow: hidden;
}

.hdr-flyout-freeship-bar-fill {
    height: 100%;
    background: #28a745;
    border-radius: 3px;
    transition: width .3s ease;
}

.hdr-flyout-freeship-target {
    font-size: 12px;
    color: #28a745;
    white-space: nowrap;
}

.hdr-flyout-freeship--done .hdr-flyout-freeship-text {
    color: #28a745;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Flyout Suggestions
   -------------------------------------------------------------------------- */
.hdr-flyout-suggest {
    padding: 12px 16px;
    border-top: 1px solid var(--hdr-border);
}

.hdr-flyout-suggest-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.hdr-flyout-suggest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}


.hdr-flyout-suggest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
}

.hdr-flyout-suggest-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.hdr-flyout-suggest-body {
    flex: 1;
    min-width: 0;
}

.hdr-flyout-suggest-name {
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.hdr-flyout-suggest-name svg {
    vertical-align: -2px;
    flex-shrink: 0;
    color: #ff6600;
}
.hdr-flyout-suggest-name:hover {
    color: var(--hdr-primary);
}

.hdr-flyout-suggest-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}
.hdr-flyout-suggest-oldprice {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
}

.hdr-flyout-suggest-add {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--hdr-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

.hdr-flyout-suggest-add:hover {
    background: var(--hdr-primary-hover);
}
.hdr-flyout-suggest-add--view {
    background: #e9ecef;
    text-decoration: none;
}
.hdr-flyout-suggest-add--view svg {
    stroke: #666;
}
.hdr-flyout-suggest-add--view:hover {
    background: #ddd;
}

.hdr-flyout-suggest-add svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
}

.hdr-flyout-data {
    display: none;
}

/* Sticker lottery container */
.hdr-sticker-cont {
    display: none;
    position: absolute;
    z-index: 999;
}

.hdr-sticker-link {
    cursor: pointer;
}

/* Editor toggle buttons (btn-setting) — formerly in add.css */
.btn-setting {
    color: #666;
    background-color: #f6f6f6;
    border-color: #f6f6f6;
}
.btn-setting:hover {
    color: #fff;
    background-color: #999;
    border-color: #999;
}
.btn-setting:focus, .btn-setting.focus {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5);
}
.btn-setting.active {
    color: #fff;
    background-color: #ffc107;
    border-color: #efb100;
}
