:root {
    --brand-gold: #f8b856;
    --brand-gold-text: #f3b958;
    --brand-gold-hover: #e8a846;
    --brand-quote-btn: #1e354d;
    --brand-quote-hover: #16283b;
    --brand-cyan-icon: #0284c7;
    --brand-dark-text: #1a1a1a;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Top Slender Contact Bar */
.top-contact-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
    padding-top: 5px;
    padding-bottom: 5px;
}

.top-contact-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-contact-link:hover {
    color: var(--brand-cyan-icon);
}

.top-icon-cyan {
    color: var(--brand-cyan-icon);
    font-size: 0.88rem;
}

.top-bar-divider {
    color: #cbd5e1;
    margin-left: 14px;
    margin-right: 14px;
    font-weight: 300;
}

/* Header Logo */
.header-logo {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

@media (min-width: 992px) {
    .header-logo {
        height: 56px;
        max-width: 240px;
    }
}

/* Navbar Links */
.main-nav .nav-link {
    font-weight: 600;
    font-size: 0.94rem;
    color: #1e293b;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    transition: color 0.15s ease;
    position: relative;
}

.main-nav .nav-link:hover {
    color: #0f172a;
}

.main-nav .nav-link.active {
    color: #0f172a !important;
    font-weight: 700;
}

/* Exact Active Bar Under 'Home' */
.nav-home-indicator {
    position: absolute;
    bottom: 0px;
    left: 0.85rem;
    right: 0.85rem;
    height: 3px;
    background-color: var(--brand-gold);
    border-radius: 2px;
}

/* Custom Header Subcategory Dropdowns */
.custom-header-dropdown {
    position: relative;
}

.custom-header-dropdown .dropdown-toggle::after {
    display: none !important;
}

.nav-dropdown-arrow {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
}

.dropdown-view-all-link {
    font-size: 0.76rem;
    color: var(--brand-quote-btn);
    transition: color 0.15s ease;
    white-space: nowrap;
}

.dropdown-view-all-link:hover {
    color: var(--brand-cyan-icon);
}

.custom-dropdown-menu {
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
    padding: 0.75rem !important;
}

.dropdown-subcategories-grid {
    display: grid;
    gap: 4px;
}

.subcat-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155 !important;
    transition: all 0.15s ease;
    padding: 0.5rem 0.85rem;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
}

.subcat-text {
    white-space: nowrap;
    font-weight: 500;
    display: inline-block;
}

.subcat-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    padding-left: 1.05rem;
}

.subcat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.subcat-item:hover .subcat-dot {
    background-color: var(--brand-gold, #c59b27);
    transform: scale(1.3);
}

.text-gold {
    color: var(--brand-gold, #c59b27) !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

@media (min-width: 992px) {
    /* Desktop Hover-to-Open Behavior */
    .custom-header-dropdown:hover .nav-dropdown-arrow {
        transform: rotate(180deg);
        color: #0f172a;
    }

    .custom-header-dropdown:hover > .custom-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .custom-header-dropdown > .custom-dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
        margin-top: 6px !important;
        width: max-content !important;
        max-width: calc(100vw - 32px) !important;
    }

    .custom-header-dropdown > .custom-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
    }

    .custom-header-dropdown .gifting-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        min-width: 510px;
    }

    .custom-header-dropdown .printing-grid {
        grid-template-columns: repeat(2, minmax(270px, 1fr));
        min-width: 580px;
    }
}

@media (max-width: 991.98px) {
    .custom-header-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .custom-header-dropdown > .nav-link {
        flex: 1 1 auto;
    }

    .nav-mobile-dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        margin-right: 0.25rem;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: #64748b;
        flex-shrink: 0;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .nav-mobile-dropdown-toggle:hover,
    .nav-mobile-dropdown-toggle:focus-visible,
    .nav-mobile-dropdown-toggle[aria-expanded="true"] {
        background-color: #f1f5f9;
        color: #0f172a;
    }

    .nav-mobile-dropdown-toggle[aria-expanded="true"] .nav-dropdown-arrow {
        transform: rotate(180deg);
        color: #0f172a;
    }

    .custom-header-dropdown > .custom-dropdown-menu {
        flex: 0 0 100%;
        width: 100%;
    }

    .custom-dropdown-menu {
        box-shadow: none !important;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0 !important;
        margin-top: 6px;
        margin-bottom: 8px;
        border-radius: 12px !important;
    }

    .dropdown-subcategories-grid {
        grid-template-columns: 1fr;
    }
}

/* Header 'Get a Quote ->' Button */
.btn-quote-pill {
    background-color: var(--brand-quote-btn);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-quote-pill:hover {
    background-color: var(--brand-quote-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-header-search {
    color: #1e293b;
    background: transparent;
    border: none;
    padding: 0.35rem 0.5rem;
    font-size: 1.15rem;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-header-search:hover {
    color: var(--brand-cyan-icon);
}

/* Header AJAX Search Modal */
.header-search-input-wrap {
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    background-color: #f8fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input-wrap:focus-within {
    border-color: var(--brand-quote-btn);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 53, 77, 0.12);
}

.header-search-input-wrap .form-control {
    font-size: 0.98rem;
    color: #0f172a;
}

.header-search-input-wrap .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.92rem;
}

.header-search-results {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 2px;
}

.header-search-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.header-search-item + .header-search-item {
    margin-top: 0.55rem;
}

.header-search-item:hover,
.header-search-item.is-active {
    border-color: var(--brand-quote-btn);
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    color: inherit;
}

.header-search-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.header-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.header-search-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.header-search-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e354d;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
    margin-top: 2px;
    white-space: nowrap;
}

.header-search-meta {
    font-size: 0.78rem;
    color: #64748b;
}

.header-search-excerpt {
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
    white-space: nowrap;
}

.header-search-highlight {
    background-color: rgba(248, 184, 86, 0.4);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.hover-shadow {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

.min-w-0 {
    min-width: 0 !important;
}

/* ========================================================
   FOOTER STYLES (MATCHING USER REFERENCE)
   ======================================================== */
.site-footer-custom {
    background-color: #0b1726;
    color: #cbd5e1;
    padding: 5rem 0 4.5rem;
    font-family: 'Instrument Sans', sans-serif;
}

.footer-logo-card {
    background-color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo-img {
    height: 48px;
    display: block;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.8rem;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
    letter-spacing: -0.01em;
}

.footer-follow-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-social-linkedin {
    background-color: #0077b5;
}

.btn-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-social-facebook {
    background-color: #1877f2;
}

.btn-social-youtube {
    background-color: #ff0000;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link-item a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-item a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-chevron {
    color: #64748b;
    font-size: 0.85rem;
    margin-right: 0.55rem;
    font-family: inherit;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

.footer-contact-icon {
    color: #60a5fa;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-col {
    position: relative;
}

@media (min-width: 992px) {
    .footer-col:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3.5rem;
    width: 100%;
}

.footer-copyright-text {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: left;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .footer-bottom-bar {
        text-align: center;
    }

    .footer-copyright-text {
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

.footer-legal-link {
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #ffffff;
}

.footer-legal-divider {
    color: #64748b;
    font-size: 0.8rem;
}

/* Hide native Chromium picker icon inside Bootstrap .form-select to prevent duplicate ▼ */
select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-select::picker-icon {
    display: none;
}

/* Mobile Subcategory Filter Dropdown (Public Catalog Page) */
.mobile-subcategory-dropdown .mobile-subcategory-toggle {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.68rem 1rem;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-subcategory-dropdown .mobile-subcategory-toggle:hover,
.mobile-subcategory-dropdown .mobile-subcategory-toggle:focus-visible,
.mobile-subcategory-dropdown .mobile-subcategory-toggle[aria-expanded="true"] {
    background-color: #ffffff;
    border-color: #212529;
    color: #0f172a;
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
}

.mobile-subcategory-dropdown .dropdown-toggle::after {
    display: none !important;
}

.mobile-subcategory-dropdown .mobile-subcategory-chevron {
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.2s ease, color 0.15s ease;
}

.mobile-subcategory-dropdown .mobile-subcategory-toggle[aria-expanded="true"] .mobile-subcategory-chevron {
    transform: rotate(180deg);
    color: #0f172a;
}

.mobile-subcategory-dropdown .mobile-subcategory-menu {
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    padding: 0.45rem;
    max-height: 320px;
    overflow-y: auto;
}

.mobile-subcategory-dropdown .mobile-subcategory-item {
    border-radius: 9px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    white-space: normal;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-subcategory-dropdown .mobile-subcategory-item + .mobile-subcategory-item {
    margin-top: 2px;
}

.mobile-subcategory-dropdown .mobile-subcategory-item:hover,
.mobile-subcategory-dropdown .mobile-subcategory-item:focus {
    background-color: #f1f5f9;
    color: #0f172a;
}

.mobile-subcategory-dropdown .mobile-subcategory-item.active,
.mobile-subcategory-dropdown .mobile-subcategory-item.active:hover,
.mobile-subcategory-dropdown .mobile-subcategory-item.active:focus {
    background-color: #212529;
    color: #ffffff;
    font-weight: 600;
}

/* Desktop Subcategory Filter Slider (Public Catalog Page) */
.subcategory-slider-wrapper {
    position: relative;
    width: 100%;
}

.subcategory-slider-wrapper::before,
.subcategory-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 16px;
    width: 56px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.subcategory-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 55%, rgba(248, 249, 250, 0));
}

.subcategory-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 55%, rgba(248, 249, 250, 0));
}

.subcategory-slider-wrapper.can-scroll-left::before {
    opacity: 1;
}

.subcategory-slider-wrapper.can-scroll-right::after {
    opacity: 1;
}

.subcategory-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 2px 0 10px;
}

@supports not selector(::-webkit-scrollbar) {
    .subcategory-slider-viewport {
        scrollbar-width: thin;
        scrollbar-color: #94a3b8 #e2e8f0;
    }
}

.subcategory-slider-viewport::-webkit-scrollbar {
    height: 6px;
}

.subcategory-slider-viewport::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 9999px;
}

.subcategory-slider-viewport::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 9999px;
}

.subcategory-slider-viewport::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.subcategory-slider-viewport.is-scrollable,
.subcategory-slider-viewport.is-scrollable .subcategory-slider-pill {
    cursor: grab;
}

.subcategory-slider-viewport.is-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}

.subcategory-slider-viewport.is-dragging .subcategory-slider-pill {
    cursor: grabbing;
    user-select: none;
}

.subcategory-slider-track {
    width: max-content;
    min-width: 100%;
}

.subcategory-slider-pill {
    white-space: nowrap;
}

.subcategory-slider-btn {
    position: absolute;
    top: calc(50% - 8px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 3;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.subcategory-slider-btn:hover,
.subcategory-slider-btn:focus-visible {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
}

.subcategory-slider-prev {
    left: 0;
}

.subcategory-slider-next {
    right: 0;
}

.subcategory-slider-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
