/**
 * Custom Header Stylesheet
 * Replicates the Gift Saga header layout and aesthetics
 */

/* Reset parent theme wrappers */
#masthead,
header#masthead.site-header {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* CSS Variables for design tokens */
:root {
    --gh-bg: #ffffff;
    --gh-text-dark: #0f172a;
    --gh-text-medium: #475569;
    --gh-text-light: #64748b;
    --gh-primary: #00a0e9;
    --gh-primary-hover: #0081be;
    --gh-border-color: #e2e8f0;
    --gh-bg-alt: #f8fafc;
    --gh-font-main: "Jost", sans-serif;
    --gh-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --gh-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --gh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --gh-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --gh-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & layout wrapper */
.gift-custom-header-wrapper {
    width: 100%;
    background-color: var(--gh-bg);
    font-family: var(--gh-font-main);
    z-index: 9999;
}

/* Top Announcement Bar */
.gh-announcement-bar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10002;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gh-announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.gh-truck-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Primary Header Row */
.gh-main-bar {
    display: block !important;
    height: 88px;
    border-bottom: 1px solid var(--gh-border-color);
    position: relative;
    background-color: var(--gh-bg);
}

.gh-main-bar-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Central Search Bar */
.gh-search-center {
    flex: 1;
    max-width: 480px;
    margin: 0 32px;
}

.gh-search-form-inline {
    display: flex;
    align-items: center;
    background-color: var(--gh-bg-alt);
    border: 1px solid var(--gh-border-color);
    border-radius: 9999px;
    padding: 0 18px;
    height: 44px;
    transition: var(--gh-transition);
}

.gh-search-form-inline:focus-within {
    border-color: var(--gh-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.15);
}

.gh-search-form-inline .search-icon-left {
    font-size: 13px !important;
    color: var(--gh-text-light);
    margin-right: 10px;
    pointer-events: none;
}

.gh-search-form-inline input[type="search"] {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--gh-text-dark);
    outline: none;
    padding: 0;
}

.gh-search-form-inline input[type="search"]::placeholder {
    color: var(--gh-text-light);
}

/* AJAX Live Search Dropdown Styles */
.gh-search-center {
    position: relative;
}

.gh-live-search-spinner {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 160, 233, 0.2);
    border-top-color: var(--gh-primary);
    border-radius: 50%;
    animation: gh-spin 0.6s linear infinite;
    display: none;
}

@keyframes gh-spin {
    to {
        transform: rotate(360deg);
    }
}

.gh-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--gh-border-color);
    border-radius: 12px;
    box-shadow: var(--gh-shadow-lg);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    padding: 8px 0;
}

.gh-live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--gh-text-dark);
    transition: var(--gh-transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gh-live-search-item:last-child {
    border-bottom: none;
}

.gh-live-search-item:hover {
    background-color: var(--gh-bg-alt);
    color: var(--gh-primary);
}

.gh-live-search-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gh-border-color);
    background-color: var(--gh-bg-alt);
}

.gh-live-search-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.gh-live-search-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gh-text-dark);
    margin: 0;
}

.gh-live-search-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gh-primary);
}

.gh-live-search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--gh-text-light);
    font-size: 13.5px;
}

/* Logo Section */
.gh-logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.gh-logo-container a {
    text-decoration: none;
    color: var(--gh-text-dark);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
    transition: var(--gh-transition);
}

.gh-logo-container a:hover {
    color: var(--gh-primary);
}

.gh-logo-container img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* Navigation Links */
.gh-nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.gh-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 30px;
}

.gh-nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.gh-nav-link {
    text-decoration: none;
    color: var(--gh-text-dark);
    font-size: 14.5px;
    font-weight: 600;
    padding: 0 4px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--gh-transition);
    text-transform: capitalize;
}

.gh-nav-link:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gh-primary);
    transition: var(--gh-transition);
}

.gh-nav-link:hover {
    color: var(--gh-primary);
}

.gh-nav-link:hover:after,
.gh-nav-item.current-menu-item .gh-nav-link:after {
    width: 100%;
}

.gh-nav-item.current-menu-item .gh-nav-link {
    color: var(--gh-primary);
}

/* Right Utilities Group */
.gh-utilities {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-utilities .gh-search-toggle {
    display: none;
}

.gh-utilities .gh-account-btn {
    width: auto;
    height: 40px;
    border-radius: 9999px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid transparent;
}

.gh-utilities .gh-account-btn:hover {
    background-color: var(--gh-bg-alt);
    border-color: var(--gh-border-color);
}

.gh-utilities .gh-account-btn .gh-util-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gh-text-dark);
}

.gh-utilities .gh-account-btn:hover .gh-util-text {
    color: var(--gh-primary);
}

.gh-util-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-text-dark);
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--gh-transition);
}

.gh-util-btn:hover {
    background-color: var(--gh-bg-alt);
    color: var(--gh-primary);
    transform: translateY(-1px);
}

.gh-util-btn i {
    font-size: 20px;
}

/* Notification Badge */
.gh-util-btn .gh-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--gh-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--gh-bg);
    box-shadow: 0 2px 4px rgba(0, 160, 233, 0.2);
}

/* Specific Cart Icon & Badge overrides */
.gh-utilities .gh-util-btn-cart {

    color: #000 !important;
}

.gh-utilities .gh-util-btn-cart:hover {


    transform: translateY(-1px);
}

.gh-utilities .gh-cart-count {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15) !important;
}

.gh-utilities .gh-wishlist-count[data-count="0"],
.gh-utilities .gh-wishlist-count:empty {
    display: none !important;
}

/* Search Box Form Inline/Slide */
.gh-search-container {
    position: absolute;
    top: 72px;
    right: 24px;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--gh-shadow-lg);
    display: none;
    z-index: 1001;
    min-width: 320px;
}

.gh-search-container.active {
    display: block;
    animation: gh-fade-slide-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--gh-border-color);
    border-radius: 8px;
    padding: 4px 8px;
    background-color: var(--gh-bg-alt);
}

.gh-search-form input[type="search"] {
    border: none;
    background: transparent;
    padding: 6px 8px;
    width: 100%;
    outline: none;
    color: var(--gh-text-dark);
    font-size: 14px;
}

.gh-search-form button {
    border: none;
    background: transparent;
    color: var(--gh-text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-search-form button:hover {
    color: var(--gh-primary);
}

/* Mini Cart Dropdown Styles overrides */
.gh-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border-color);
    border-radius: 16px;
    width: 360px;
    box-shadow: var(--gh-shadow-xl);
    padding: 16px;
    display: none;
    z-index: 1001;
}

.gh-util-btn-cart:hover .gh-cart-dropdown,
.gh-cart-dropdown:hover {
    display: block;
}

/* Category Navigation Bar (Second Row) */
.gh-category-bar {
    display: block;
    background-color: var(--gh-bg);
    border-bottom: 1px solid var(--gh-border-color);
    height: 48px;
}

.gh-category-bar-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 32px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Shop By Category Trigger */
.gh-shop-by-cat-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gh-shop-by-cat-trigger {
    background-color: var(--gh-primary);
    color: #ffffff;
    border: none;
    height: 48px;
    padding: 0 20px;
    font-family: var(--gh-font-main);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--gh-transition);
    text-transform: none !important;
    letter-spacing: 0.5px;
}

.gh-shop-by-cat-trigger:hover,
.gh-shop-by-cat-wrapper:hover .gh-shop-by-cat-trigger,
.gh-shop-by-cat-wrapper.active .gh-shop-by-cat-trigger {
    background-color: var(--gh-primary-hover);
}

.gh-shop-by-cat-trigger svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.gh-shop-by-cat-trigger .svg-hamburger {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.gh-shop-by-cat-trigger .svg-chevron-down {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.gh-shop-by-cat-wrapper:hover .gh-shop-by-cat-trigger .svg-chevron-down,
.gh-shop-by-cat-wrapper.active .gh-shop-by-cat-trigger .svg-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu block */
.gh-shop-by-cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: #ffffff;
    border: 1px solid var(--gh-border-color);
    box-shadow: var(--gh-shadow-lg);
    display: none;
    z-index: 10000;
    padding: 8px 0;
}

.gh-shop-by-cat-wrapper:hover .gh-shop-by-cat-dropdown,
.gh-shop-by-cat-wrapper.active .gh-shop-by-cat-dropdown {
    display: block;
}

.gh-shop-by-cat-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.gh-shop-by-cat-item {
    position: static;
    display: block;
}

.gh-shop-by-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--gh-text-medium);
    font-size: 14px;
    font-weight: 500;
    transition: var(--gh-transition);
}

.gh-shop-by-cat-link:hover,
.gh-shop-by-cat-item:hover>.gh-shop-by-cat-link {
    background-color: var(--gh-bg-alt);
    color: var(--gh-primary);
}

.gh-shop-by-cat-title {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--gh-text-dark);
}

.gh-shop-by-cat-item:hover .gh-shop-by-cat-title {
    color: var(--gh-primary);
}

.gh-shop-by-cat-chevron {
    font-size: 18px;
    color: var(--gh-text-light);
    line-height: 1;
    margin-top: -1px;
    transition: var(--gh-transition);
}

.gh-shop-by-cat-item:hover .gh-shop-by-cat-chevron {
    color: var(--gh-primary);
    transform: translateX(2px);
}

/* Side mega panels */
.gh-shop-by-cat-panel {
    position: absolute;
    left: 100%;
    top: 0;
    width: 760px;
    min-height: auto;
    background-color: #ffffff;
    border: 1px solid var(--gh-border-color);
    box-shadow: var(--gh-shadow-xl);
    display: none;
    z-index: 10001;
    padding: 24px 30px;
    box-sizing: border-box;
    animation: gh-fade-slide-right 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    justify-content: space-between;
}

.gh-shop-by-cat-item:hover .gh-shop-by-cat-panel {
    display: flex;
}

.gh-shop-by-cat-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gh-text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gh-border-color);
    text-transform: capitalize;
}

.gh-shop-by-cat-panel-banner {
    background-color: #fff1f2;
    /* Rose 50 background */
    border: 1px solid #ffe4e6;
    /* Rose 100 border */
    color: #be123c;
    /* Rose 700 text color */
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    display: block;
    margin-top: 20px;
}

/* View All Categories Button at bottom of list */
.gh-shop-by-cat-item-all {
    display: block;
    border-top: 1px solid var(--gh-border-color);
    margin-top: 4px;
}

.gh-shop-by-cat-link-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    text-decoration: none;
    background-color: var(--gh-primary);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--gh-transition);
}

.gh-shop-by-cat-link-all:hover {
    background-color: var(--gh-primary-hover);
}

.gh-shop-by-cat-all-chevron {
    font-size: 18px;
    color: #ffffff;
    line-height: 1;
    margin-top: -1px;
}

@keyframes gh-fade-slide-right {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Grid Layout for Dropdown Links */
.gh-cat-grid {
    display: block !important;
    width: 100% !important;
    margin-top: 16px;
}

.gh-subcat-group {
    display: block !important;
    width: 100% !important;
}

.gh-subcat-title {
    display: none !important;
}

.gh-subcat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 24px !important;
}

.gh-subcat-item a {
    text-decoration: none;
    color: var(--gh-text-medium);
    font-size: 13.5px;
    font-weight: 400;
    transition: var(--gh-transition);
    display: block;
    padding: 2px 0;
}

.gh-subcat-item a:hover {
    color: var(--gh-primary);
    transform: translateX(4px);
}

/* Sticky Header Behavior */
.gift-custom-header-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--gh-shadow);
    animation: gh-slide-down 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gift-custom-header-wrapper.sticky .gh-announcement-bar {
    display: none;
}

.gift-custom-header-wrapper.sticky .gh-main-bar {
    height: 68px;
    border-bottom: none;
}

.gift-custom-header-wrapper.sticky .gh-category-bar {
    height: 40px;
}

.gift-custom-header-wrapper.sticky .gh-shop-by-cat-trigger {
    height: 40px;
}

.gift-custom-header-wrapper.sticky .gh-search-center {
    max-width: 420px;
}

.gift-custom-header-wrapper.sticky .gh-search-form-inline {
    height: 38px;
}

/* Responsive Mobile Toggle & Hamburger Menu */
.gh-mobile-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gh-text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--gh-transition);
}

.gh-mobile-hamburger:hover {
    background-color: var(--gh-bg-alt);
    color: var(--gh-primary);
}

/* Mobile Navigation Drawer Overlay */
.gh-mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gh-mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gh-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -280px;
    width: 280px;
    background-color: var(--gh-bg);
    box-shadow: var(--gh-shadow-xl);
    z-index: 99995;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-mobile-drawer-overlay.active .gh-mobile-drawer {
    transform: translateX(280px);
}

.gh-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gh-border-color);
}

.gh-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gh-text-dark);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--gh-transition);
}

.gh-drawer-close:hover {
    background-color: var(--gh-bg-alt);
    color: var(--gh-primary);
}

.gh-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Drawer Menu Links */
.gh-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gh-drawer-menu li a {
    text-decoration: none;
    color: var(--gh-text-dark);
    font-size: 15px;
    font-weight: 600;
    display: block;
    transition: var(--gh-transition);
}

.gh-drawer-menu li a:hover {
    color: var(--gh-primary);
}

.gh-drawer-divider {
    height: 1px;
    background-color: var(--gh-border-color);
    margin: 16px 0;
}

/* Mobile Category Accordion */
.gh-drawer-cats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gh-drawer-cats-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gh-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gh-border-color);
}

.gh-mobile-cat-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--gh-border-color);
}

.gh-mobile-cat-item:last-child {
    border-bottom: none;
}

.gh-mobile-cat-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 4px;
    font-family: var(--gh-font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--gh-text-medium);
    cursor: pointer;
    text-align: left;
    transition: var(--gh-transition);
    min-height: 0;
    line-height: 1.3;
}

.gh-mobile-cat-trigger:hover,
.gh-mobile-cat-item.active>.gh-mobile-cat-trigger {
    color: var(--gh-primary);
}

/* SVG chevron icon inside trigger */
.gh-cat-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.gh-mobile-cat-item.active>.gh-mobile-cat-trigger .gh-cat-chevron {
    transform: rotate(180deg);
}

.gh-mobile-subcat-list {
    list-style: none;
    padding: 4px 0 8px 12px;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    border-left: 1.5px solid var(--gh-border-color);
}

.gh-mobile-cat-item.active .gh-mobile-subcat-list {
    display: flex;
}

.gh-mobile-subcat-list li a {
    text-decoration: none;
    color: var(--gh-text-medium);
    font-size: 13.5px;
    font-weight: 400;
    display: block;
    padding: 2px 0;
    transition: var(--gh-transition);
}

.gh-mobile-subcat-list li a:hover {
    color: var(--gh-primary);
}

/* Animations */
@keyframes gh-fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gh-fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gh-slide-down {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ============================================================
   Responsive Media Queries
   ============================================================ */

/* Tablet & below: ≤1024px */
@media (max-width: 1024px) {

    /* Hide desktop-only elements */
    .gh-search-center {
        display: none !important;
    }

    .gh-nav-container {
        display: none !important;
    }

    /* Force hide the category bar — override desktop display:block */
    .gh-category-bar {
        display: none !important;
    }

    /* Main bar adjustments */
    .gh-main-bar {
        height: 64px;
        padding: 0;
    }

    .gh-main-bar-container {
        padding: 0 16px;
        justify-content: space-between;
    }

    /* Logo — centered feel with auto margin */
    .gh-logo-container {
        margin-right: auto;
        margin-left: 4px;
    }

    .gh-logo-container img {
        max-height: 38px;
    }

    /* Show hamburger */
    .gh-mobile-hamburger {
        display: flex;
        order: -1;
        /* hamburger first in flex row */
    }

    /* Utilities spacing */
    .gh-utilities {
        gap: 2px;
    }

    /* Hide all utility icons at tablet — they move to bottom nav or drawer */
    .gh-utilities .gh-search-toggle,
    .gh-utilities .gh-account-btn {
        display: none !important;
    }

    /* Utility button sizes */
    .gh-util-btn {
        width: 40px;
        height: 40px;
    }

    .gh-util-btn i {
        font-size: 18px;
    }
}

/* Mobile: ≤768px — clean minimal header */
@media (max-width: 768px) {
    .gh-announcement-bar {
        font-size: 11.5px;
        padding: 6px 16px;
    }

    .gh-truck-icon {
        display: none;
    }

    /* Header bar height */
    .gh-main-bar {
        height: 60px;
        border-bottom: 1px solid var(--gh-border-color);
    }

    /* 2-column layout: [logo left] [hamburger right] */
    .gh-main-bar-container {
        display: grid;
        grid-template-columns: 1fr 44px;
        grid-template-areas: "logo utilities";
        align-items: center;
        padding: 0 12px;
        gap: 0;
    }

    /* .gh-utilities stays VISIBLE — it holds the hamburger */
    .gh-utilities {
        grid-area: utilities;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }

    /* Show only the hamburger; hide everything else */
    .gh-mobile-hamburger {
        display: flex !important;
        width: 40px;
        height: 40px;
        order: unset;
    }

    .gh-utilities .gh-search-toggle,
    .gh-utilities .gh-wishlist-btn,
    .gh-utilities .gh-util-btn-cart-wrapper,
    .gh-utilities .gh-account-btn {
        display: none !important;
    }

    /* Logo left-aligned */
    .gh-logo-container {
        grid-area: logo;
        margin: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-left: 8px;
    }

    .gh-logo-container img {
        max-height: 46px;
    }

    /* Hide desktop search center */
    .gh-search-center {
        display: none !important;
    }
}

/* Mobile: ≤640px */
@media (max-width: 640px) {
    .gh-announcement-bar {
        font-size: 11px;
        padding: 5px 12px;
    }

    .gh-announcement-container span {
        /* Truncate very long strings on tiny screens */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        max-width: 100%;
    }

    .gh-main-bar {
        height: 56px;
    }

    .gh-main-bar-container {
        padding: 0 10px;
        gap: 6px;
    }

    .gh-logo-container img {
        max-height: 30px;
    }

    .gh-search-container {
        min-width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
        top: 58px;
    }

    .gh-util-btn {
        width: 34px;
        height: 34px;
    }

    .gh-util-btn i {
        font-size: 17px;
    }

    /* Badge position tweak on small screens */
    .gh-util-btn .gh-badge {
        top: 0px;
        right: 0px;
        min-width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* Extra small: ≤400px */
@media (max-width: 400px) {
    .gh-announcement-bar {
        font-size: 10.5px;
    }

    .gh-main-bar {
        height: 52px;
    }

    .gh-logo-container img {
        max-height: 28px;
    }

    .gh-util-btn {
        width: 32px;
        height: 32px;
    }

    .gh-util-btn i {
        font-size: 16px;
    }
}