/* ==========================================================================
   GemsFarm theme: shell
   Header, nav, drawers, mini cart, footer, mobile bar, floating helpers
   ========================================================================== */

/* ---------- Logo ---------- */
.gf-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gf-ink);
}

.gf-logo__mark {
    width: 30px;
    height: 30px;
    flex: none;
}

.gf-logo__word {
    font-family: var(--gf-display);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.gf-logo__word b {
    font-weight: 600;
    color: var(--gf-gold-700);
}

.gf-logo__img {
    max-height: 68px;
    width: auto;
}

.header-logo {
    margin: 0;
    line-height: 1;
}

.tf-footer .gf-logo,
.tf-footer .gf-logo:hover {
    color: #fff;
}

.tf-footer .gf-logo__word b {
    color: var(--gf-gold-300);
}

/* ---------- Header ---------- */
header.tf-header {
    background: var(--gf-ivory);
    border-bottom: 1px solid var(--gf-line);
}

/* The header never hides and never changes size. Omniva's main.js writes an inline "top: -Npx"
   on scroll-down, so the !important below is what keeps it pinned. */
header.tf-header {
    top: 0 !important;
    z-index: 1030;
}

/* Omniva sizes the bar through the nav links' 32px top/bottom padding. Tie it to the variable instead. */
.tf-header .header-inner_wrap {
    min-height: var(--gf-header-h);
}

.tf-header .menu-item .item-link {
    display: inline-flex;
    align-items: center;
    height: var(--gf-header-h);
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 1199px) {
    .tf-header .header-inner {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Sticky page elements (product gallery) sit just under the header */
.sticky-top,
.sticky-md-top {
    top: calc(var(--gf-header-h) + 16px) !important;
}

.tf-header .box-nav-menu {
    gap: 28px;
}

.tf-header .menu-item .item-link,
.tf-header .menu-item .item-link .text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gf-ink);
}

.tf-header .menu-item .item-link:hover,
.tf-header .menu-item .item-link:hover .text {
    color: var(--gf-gold-700);
}

.tf-header .nav-icon-item {
    color: var(--gf-ink);
}

.tf-header .nav-icon-item:hover {
    color: var(--gf-gold-700);
}

/* Omniva hard-codes #9D0101 here with a long selector, so this one matches its specificity */
.nav-icon-item .number-order,
.nav-icon-list .nav-icon-item.has-number .number-order,
.toolbar-count,
.bg-red {
    background: var(--gf-gold-700);
    color: #fff;
    font-weight: 600;
}

/* ---------- Drawers (offcanvas) ---------- */
.offcanvas {
    background: var(--gf-ivory);
    color: var(--gf-ink-2);
}

.offcanvas .title,
.offcanvas .heading .title,
.popup-header .title {
    font-family: var(--gf-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gf-ink);
}

.popup-header {
    border-bottom: 1px solid var(--gf-line);
}

.popup-search .form-search input {
    border: 1px solid var(--gf-line);
    border-radius: var(--gf-radius);
    background: #fff;
}

.popup-search .btn-action_submit {
    color: var(--gf-ink);
}

.popular-item {
    padding: 6px 14px;
    color: var(--gf-ink-2);
    background: #fff;
    border: 1px solid var(--gf-line);
    border-radius: 999px;
}

.popular-item:hover {
    color: #fff;
    background: var(--gf-ink);
    border-color: var(--gf-ink);
}

.canvas-mb .mb-menu-link,
.canvas-mb .sub-nav-link {
    font-family: var(--gf-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gf-ink);
}

.canvas-mb .nav-mb-item {
    border-bottom: 1px solid var(--gf-line-2);
}

/* ---------- Mini cart ---------- */
.tf-mini-cart-item {
    border-bottom: 1px solid var(--gf-line-2);
}

.tf-mini-cart-image img {
    border-radius: var(--gf-radius);
    background: var(--gf-linen);
    object-fit: cover;
}

.tf-mini-cart-info .name {
    font-family: var(--gf-display);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gf-ink);
}

.tf-mini-cart-bottom {
    background: #fff;
    border-top: 1px solid var(--gf-line);
}

.tf-progress-bar {
    background: var(--gf-line);
}

.tf-progress-bar .value {
    background: var(--gf-gold-500);
}

.wg-quantity {
    border: 1px solid var(--gf-line);
    border-radius: var(--gf-radius);
    background: #fff;
}

.wg-quantity .btn-quantity:hover {
    color: var(--gf-gold-700);
}

/* ---------- Legacy footer (.tf-footer), no longer rendered; kept for old markup ---------- */
.tf-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #d9d6ce;
    background: var(--gf-night);
}

.tf-footer .br-line {
    background: var(--gf-night-line);
}

.tf-footer a,
.tf-footer .text-caption,
.tf-footer .cl-text-main,
.tf-footer .link-black {
    color: rgba(233, 230, 222, 0.78);
}

.tf-footer a:hover {
    color: var(--gf-gold-300);
}

.tf-footer .footer-heading {
    font-family: var(--gf-body);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gf-gold-300);
}

.tf-footer .footer-inner {
    padding-top: clamp(34px, 5vw, 56px);
    padding-bottom: clamp(24px, 3vw, 36px);
}

.tf-footer .footer-menu-list li {
    margin-bottom: 7px;
}

.tf-footer .ic-w {
    color: var(--gf-gold-300);
}

.tf-footer .social-list a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--gf-gold-300);
    border: 1px solid var(--gf-night-line);
    border-radius: 50%;
    background: transparent;
}

.tf-footer .social-list a:hover {
    color: var(--gf-night);
    background: var(--gf-gold-300);
    border-color: var(--gf-gold-300);
}

.tf-footer .footer-bottom {
    border-top: 1px solid var(--gf-night-line) !important;
}

.tf-footer .footer-bottom .text-muted,
.tf-footer .text-muted {
    color: rgba(233, 230, 222, 0.55) !important;
}

.footer-subscribe-box {
    position: relative;
    display: flex;
    align-items: center;
}

.footer-subscribe-input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 14px;
    font-size: 13px;
    color: var(--gf-ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--gf-radius);
}

.footer-subscribe-input:focus {
    border-color: var(--gf-gold-300);
    box-shadow: 0 0 0 3px rgba(217, 188, 116, 0.25);
}

.footer-subscribe-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--gf-night);
    background: var(--gf-gold-300);
    border: 0;
    border-radius: var(--gf-radius);
    transition: background 0.25s var(--gf-ease);
}

.footer-subscribe-btn:hover {
    background: var(--gf-gold-100);
}

/* ---------- Mobile bottom bar ---------- */
.tf-toolbar-bottom {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--gf-line);
    box-shadow: 0 -8px 24px rgba(20, 22, 28, 0.06);
}

.tf-toolbar-bottom .toolbar-label {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gf-ink-2);
}

/* ---------- Floating helpers & preloader ---------- */
#whatsappChat {
    right: 18px;
    bottom: 22px;
    z-index: 99;
}

#whatsappChat img {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 8px 16px rgba(37, 211, 102, 0.35));
}

@media (max-width: 767px) {
    #whatsappChat {
        bottom: 82px;
    }
}

/* Omniva's back-to-top is a square progress button: keep its progress ring, round it, and lift it clear of the WhatsApp button */
#goTop,
#goTop .border-progress {
    border-radius: 50%;
}

#goTop {
    right: 20px;
    bottom: 88px;
    color: var(--gf-ink);
    background: #fff;
}

@media (max-width: 991px) {
    #goTop {
        bottom: 142px;
    }
}

.preload-container {
    background: var(--gf-ivory);
}

.preload-logo .spinner {
    border-color: var(--gf-line);
    border-top-color: var(--gf-gold-500);
}

/* ---------- Ported from the old layout <style> (now on tokens, no !important pile-up) ---------- */
@keyframes gf-pulse-gold {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(253, 68, 0, 0.6);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(253, 68, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(253, 68, 0, 0);
    }
}

.offer-badge-animated {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gf-gold-300);
    background: var(--gf-night);
    border: 1px solid var(--gf-gold-500);
    border-radius: 2px;
    pointer-events: none;
    animation: gf-pulse-gold 2s infinite;
}

@keyframes gf-wa {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

#whatsappChat {
    position: fixed;
    animation: gf-wa 0.9s infinite alternate;
}

#whatsappChat img {
    display: block;
}

@media (max-width: 767px) {
    #whatsappChat {
        right: 14px;
    }
    #whatsappChat img {
        width: 46px;
        height: 46px;
    }
}

/* Gold on night: text-primary is dark gold (for light backgrounds), so lift it inside the footer */
.tf-footer .text-primary,
.tf-footer .ic-w,
.tf-footer .ic-w i,
.tf-footer .ic-w .icon {
    color: var(--gf-gold-300) !important;
}

.tf-footer .ic-w {
    border-color: var(--gf-night-line);
}

/* Omniva hard-codes #BA1717 on the mobile bar badge with this exact selector */
.tf-toolbar-bottom .toolbar-count {
    background-color: var(--gf-gold-700);
    font-weight: 600;
}

/* Phone-width header: the wordmark must leave room for the icons */
@media (max-width: 575.98px) {
    .gf-logo {
        gap: 7px;
    }
    .gf-logo__mark {
        width: 22px;
        height: 22px;
    }
    .gf-logo__word {
        font-size: 1.12rem;
        letter-spacing: 0.07em;
    }
    .tf-header .header-inner_wrap {
        gap: 6px;
    }
    .tf-header .nav-icon-list {
        gap: 12px;
    }
}
