/* =====================================================================
   THE HAKIMAN - THEME (Logo colours) + HOVER ANIMATIONS + NEW UI PARTS
   assets/css/theme.css   (header.php me load hoti hai)
   Logo ka rang: deep olive green. Website: light ivory + soft sage + olive.
   ===================================================================== */
:root {
    --hk-olive: #55703D;        /* primary (buttons, links) */
    --hk-olive-dark: #3D5229;   /* hover */
    --hk-ink: #2D3A24;          /* logo jaisa gehra hara - text / footer */
    --hk-ivory: #F6F5EE;        /* page background */
    --hk-sage: #EEF2E5;         /* light sections */
    --hk-sage-2: #E1E9D2;
    --hk-gold: #B08A3E;         /* accent (offer / badge) */
    --hk-gold-dark: #8C6A27;
    --hk-shadow: 0 10px 28px rgba(45, 58, 36, 0.10);
    --hk-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

html body { background-color: var(--hk-ivory); }
::selection { background: var(--hk-sage-2); color: var(--hk-ink); }

/* ---------------------------------------------------------------
   HEADER: logo hover, icons, wishlist badge, categories dropdown
   --------------------------------------------------------------- */
html body .site-logo { transition: transform .35s var(--hk-ease), filter .35s ease; }
html body .logo-link:hover .site-logo { transform: scale(1.04); }

html body .icon-link { position: relative; }
html body .icon-link i { transition: transform .3s var(--hk-ease); }
html body .icon-link:hover i { transform: translateY(-2px) scale(1.12); }
html body .icon-wishlist:hover i { animation: hkHeartBeat .7s ease; color: #b4434b; }

html body .wishlist-count-badge,
html body .cart-count-badge {
    background-color: var(--hk-olive);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    height: 18px;
    min-width: 18px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -8px;
    padding: 0 5px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(45, 58, 36, 0.3);
    font-family: 'Jost', sans-serif;
    line-height: 1;
}
html body .wishlist-count-badge { background-color: #b4434b; }
html body .wishlist-count-badge[hidden] { display: none !important; }
html body .wishlist-count-badge.hk-bump,
html body .cart-count-badge.hk-bump { animation: hkBump .5s var(--hk-ease); }
html body .wishlist-count-inline {
    position: static;
    display: inline-flex;
    margin-left: 8px;
    border: 0;
    box-shadow: none;
}

/* Categories dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown .nav-caret { font-size: 0.65rem; margin-left: 4px; transition: transform .3s var(--hk-ease); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(45, 58, 36, 0.16);
    border: 1px solid rgba(45, 58, 36, 0.08);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .25s ease, transform .3s var(--hk-ease), visibility .25s;
    z-index: 1100;
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--hk-ink);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background .2s ease, padding-left .25s var(--hk-ease), color .2s ease;
}
.nav-dropdown-item small {
    background: var(--hk-sage);
    color: var(--hk-olive-dark);
    border-radius: 99px;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}
.nav-dropdown-item:hover { background: var(--hk-sage); padding-left: 18px; color: var(--hk-olive-dark); }
.nav-dropdown-all { border-top: 1px dashed rgba(45, 58, 36, 0.15); margin-top: 4px; border-radius: 0 0 10px 10px; color: var(--hk-olive); font-weight: 600; }

@media (min-width: 992px) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
}
@media (max-width: 991px) {
    .nav-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
    .nav-dropdown .nav-dropdown-toggle { display: flex; justify-content: space-between; align-items: center; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 0 10px;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s var(--hk-ease);
    }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { max-height: 600px; }
    .nav-dropdown.open .nav-caret { transform: rotate(180deg); }
    .nav-dropdown-item { padding: 10px 8px; }
    /* Mobile header: search + wishlist + cart icons */
    html body .header-icons { gap: 14px; }
    html body .header-icons .icon-link { font-size: 1.2rem; }
}
@media (max-width: 380px) {
    html body .site-logo { max-height: 46px !important; }
    html body .header-icons { gap: 10px; }
    html body .header-icons .icon-link { font-size: 1.1rem; }
}

/* ---------------------------------------------------------------
   LIVE SEARCH SUGGESTIONS
   --------------------------------------------------------------- */
.hk-suggest-box {
    width: 100%;
    max-width: 800px;
    margin: 14px auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(45, 58, 36, 0.14);
    border: 1px solid rgba(45, 58, 36, 0.08);
    overflow: hidden;
    display: none;
    max-height: 62vh;
    overflow-y: auto;
    text-align: left;
}
.hk-suggest-box.show { display: block; animation: hkFadeUp .25s var(--hk-ease); }
.hk-suggest-box.hk-suggest-inline { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; z-index: 1200; max-width: none; }
.hk-suggest-group { padding: 6px 0; border-bottom: 1px solid rgba(45, 58, 36, 0.06); }
.hk-suggest-group:last-child { border-bottom: 0; }
.hk-suggest-title { font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: #8a9480; padding: 6px 16px 4px; font-weight: 600; }
.hk-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: var(--hk-ink);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    transition: background .15s ease, padding-left .2s var(--hk-ease);
    cursor: pointer;
}
.hk-suggest-item:hover, .hk-suggest-item.active { background: var(--hk-sage); padding-left: 20px; }
.hk-suggest-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--hk-sage); flex-shrink: 0; }
.hk-suggest-item .hk-s-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--hk-sage); display: flex; align-items: center; justify-content: center; color: var(--hk-olive); flex-shrink: 0; }
.hk-suggest-item .hk-s-text { flex: 1; min-width: 0; }
.hk-suggest-item .hk-s-name { display: block; font-size: 0.95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-suggest-item .hk-s-name mark { background: transparent; color: var(--hk-olive); font-weight: 700; padding: 0; }
.hk-suggest-item .hk-s-sub { display: block; font-size: 0.8rem; color: #7d8774; }
.hk-suggest-item .hk-s-price { font-weight: 600; color: var(--hk-olive-dark); white-space: nowrap; font-size: 0.95rem; }
.hk-suggest-item .hk-s-price s { color: #9aa092; font-weight: 400; font-size: 0.8rem; margin-right: 4px; }
.hk-suggest-empty, .hk-suggest-hint { padding: 16px; color: #7d8774; font-family: 'Jost', sans-serif; font-size: 0.92rem; }
.hk-suggest-hint { border-top: 1px solid rgba(45, 58, 36, 0.06); }
.hk-suggest-hint b { color: var(--hk-olive-dark); }

/* ---------------------------------------------------------------
   DISCOUNT BADGE (10% OFF) - ab saaf aur aakarshak
   --------------------------------------------------------------- */
html body .product-card .product-badge {
    background: linear-gradient(135deg, #C9A04E 0%, var(--hk-gold) 55%, var(--hk-gold-dark) 100%);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    padding: 5px 11px 5px 10px;
    border-radius: 8px 99px 99px 8px;
    box-shadow: 0 4px 12px rgba(140, 106, 39, 0.35);
    text-transform: uppercase;
    line-height: 1.1;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: hkBadgeIn .6s var(--hk-ease) both;
}
html body .product-card .product-badge::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
}
html body .product-card:hover .product-badge { animation: hkWiggle .6s ease; }
@media (max-width: 768px) {
    html body .product-card .product-badge { font-size: 0.68rem; padding: 4px 8px 4px 7px; }
}

/* Price ke paas "You save" */
.hk-save-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F4ECD9;
    color: var(--hk-gold-dark);
    border: 1px dashed rgba(176, 138, 62, 0.55);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    white-space: nowrap;
}
.hk-save-chip i { font-size: 0.7rem; }
.hk-card-save { display: block; margin-top: 4px; font-size: 0.74rem; font-weight: 600; color: var(--hk-gold-dark); font-family: 'Jost', sans-serif; }

/* ---------------------------------------------------------------
   PRODUCT TAG BADGES (Best Seller, Trending ...)
   --------------------------------------------------------------- */
.hk-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 99px;
    color: #fff;
    background: var(--hk-olive);
    box-shadow: 0 3px 10px rgba(45, 58, 36, 0.25);
    white-space: nowrap;
    line-height: 1.2;
}
.hk-tag-badge i { font-size: 0.68rem; }
.hk-tag-bestseller    { background: linear-gradient(135deg, #3D5229, #55703D); }
.hk-tag-category_best { background: linear-gradient(135deg, #6b4f1d, #B08A3E); }
.hk-tag-trending      { background: linear-gradient(135deg, #b4434b, #d46a4f); }
.hk-tag-hot_deal      { background: linear-gradient(135deg, #c25b16, #e08a2b); }
.hk-tag-new           { background: linear-gradient(135deg, #2f7d6b, #4fa38c); }
.hk-tag-featured      { background: linear-gradient(135deg, #4b4e8a, #6f72b8); }
.hk-card-tag { position: absolute; left: 10px; bottom: 10px; z-index: 3; animation: hkFadeUp .5s var(--hk-ease) both; }
@media (max-width: 768px) {
    .hk-card-tag { left: 6px; bottom: 6px; font-size: 0.62rem; padding: 3px 7px; }
}
.hk-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }

/* Home / Shop filter chips */
.hk-chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 auto 26px; }
.hk-chip-row.hk-chip-left { justify-content: flex-start; }
.hk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid rgba(85, 112, 61, 0.35);
    background: #fff;
    color: var(--hk-ink);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s var(--hk-ease);
}
.hk-chip:hover { border-color: var(--hk-olive); color: var(--hk-olive-dark); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(45, 58, 36, 0.1); }
.hk-chip.active { background: var(--hk-olive); color: #fff; border-color: var(--hk-olive); box-shadow: 0 6px 16px rgba(85, 112, 61, 0.3); }
.hk-chip i { font-size: 0.8rem; }
@media (max-width: 768px) {
    .hk-chip-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .hk-chip-row::-webkit-scrollbar { display: none; }
    .hk-chip { flex-shrink: 0; padding: 7px 14px; font-size: 0.82rem; }
}
.hk-filter-hide { display: none !important; }

/* ---------------------------------------------------------------
   WISHLIST HEART (cards) - active state
   --------------------------------------------------------------- */
html body .wishlist-btn,
html body .wishlist-btn-overlay,
html body .wishlist-btn-overlay-rp,
html body .btn-wishlist { transition: transform .25s var(--hk-ease), color .2s ease, background .2s ease; cursor: pointer; }
html body .wishlist-btn:hover,
html body .wishlist-btn-overlay:hover,
html body .wishlist-btn-overlay-rp:hover,
html body .btn-wishlist:hover { transform: scale(1.12); color: #b4434b; }
html body .is-wishlisted,
html body .is-wishlisted i,
html body .wishlist-btn.is-active i { color: #b4434b !important; }
html body .hk-heart-pop { animation: hkHeartBeat .6s ease; }
html body button.wishlist-btn { border: 0; padding: 0; }

/* ---------------------------------------------------------------
   HOVER ANIMATIONS (poori site)
   --------------------------------------------------------------- */
html body .product-card { transition: transform .35s var(--hk-ease), box-shadow .35s var(--hk-ease), border-color .35s ease; }
@media (hover: hover) {
    html body .product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(45, 58, 36, 0.12); border-color: rgba(85, 112, 61, 0.18); }
    html body .product-card:hover img { transform: scale(1.06); }
    html body .product-card img { transition: transform .7s var(--hk-ease); }
    html body .product-title:hover,
    html body .product-title-rp:hover { color: var(--hk-olive); }

    html body .btn,
    html body .btn-submit,
    html body .btn-primary,
    html body .btn-custom-action,
    html body .gm-cta-btn { position: relative; overflow: hidden; transition: transform .3s var(--hk-ease), box-shadow .3s var(--hk-ease), background .3s ease, color .3s ease; }
    html body .btn:hover,
    html body .btn-submit:hover,
    html body .btn-custom-action:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(61, 82, 41, 0.22); }
    /* chamakti line (shine) */
    html body .btn-primary::after,
    html body .btn-submit::after,
    html body .btn-custom-action::after {
        content: '';
        position: absolute;
        top: 0; left: -120%;
        width: 60%; height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
        transform: skewX(-20deg);
        transition: left .7s ease;
        pointer-events: none;
    }
    html body .btn-primary:hover::after,
    html body .btn-submit:hover::after,
    html body .btn-custom-action:hover::after { left: 130%; }

    html body .btn-grid-cart:hover,
    html body .btn-grid-cart-rp:hover { transform: scale(1.1) rotate(-6deg); }

    html body .grid-card:hover .grid-icon svg { transform: rotate(-8deg) scale(1.08); }
    html body .pill:hover { transform: translateY(-3px); }
    html body .reel-item:hover { transform: translateY(-4px) scale(1.02); }
    html body .social-icon:hover { transform: translateY(-4px) rotate(8deg); }
    html body .footer-links a:hover { transform: translateX(6px); }
    html body .payment-icons i { transition: transform .3s var(--hk-ease), opacity .3s ease; }
    html body .payment-icons i:hover { transform: translateY(-3px); opacity: 1; }
    html body .full-bleed-banner:hover img { transform: scale(1.025); }
    html body .thumb-item { transition: transform .25s var(--hk-ease), box-shadow .25s ease; }
    html body .thumb-item:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(45, 58, 36, 0.12); }
    html body .account-nav-link,
    html body .order-card,
    html body .feature-item,
    html body .blog-card,
    html body .cart-item-row,
    html body .cat-card { transition: transform .3s var(--hk-ease), box-shadow .3s ease, background .25s ease; }
    html body .order-card:hover,
    html body .feature-item:hover,
    html body .blog-card:hover,
    html body .cat-card:hover { transform: translateY(-4px); box-shadow: var(--hk-shadow); }
    html body .account-nav-link:hover { transform: translateX(4px); }
}
html body input:focus,
html body textarea:focus,
html body select:focus { transition: box-shadow .25s ease, border-color .25s ease; }

/* ---------------------------------------------------------------
   TOAST (global)
   --------------------------------------------------------------- */
.hk-gtoast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--hk-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; font-family: 'Jost', sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 10060; opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s var(--hk-ease), visibility .3s; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); width: max-content; }
.hk-gtoast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hk-gtoast.error { background: #b91c1c; }
.hk-gtoast a { color: #DCE8C8; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* ---------------------------------------------------------------
   STATE / CITY AUTOCOMPLETE (checkout)
   --------------------------------------------------------------- */
.hk-ac-wrap { position: relative; }
.hk-ac-list {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 4px);
    background: #fff;
    border: 1px solid rgba(45, 58, 36, 0.12);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(45, 58, 36, 0.14);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1300;
    display: none;
    padding: 4px;
}
.hk-ac-list.show { display: block; animation: hkFadeUp .2s var(--hk-ease); }
.hk-ac-item { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-family: 'Jost', sans-serif; font-size: 0.93rem; color: var(--hk-ink); transition: background .15s ease; }
.hk-ac-item:hover, .hk-ac-item.active { background: var(--hk-sage); }
.hk-ac-item mark { background: transparent; color: var(--hk-olive); font-weight: 700; padding: 0; }
.hk-ac-empty { padding: 10px 12px; color: #8a9480; font-size: 0.85rem; font-family: 'Jost', sans-serif; }

/* ---------------------------------------------------------------
   CATEGORIES PAGE
   --------------------------------------------------------------- */
.hk-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.cat-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    text-decoration: none;
    color: var(--hk-ink);
    border: 1px solid rgba(45, 58, 36, 0.06);
    box-shadow: 0 4px 14px rgba(45, 58, 36, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.cat-card::after { content: ''; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(circle, rgba(85,112,61,0.10), transparent 70%); transition: transform .5s var(--hk-ease); }
.cat-card:hover::after { transform: translateY(-20%); }
.cat-card .cat-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--hk-sage); display: flex; align-items: center; justify-content: center; color: var(--hk-olive); font-size: 1.6rem; overflow: hidden; transition: transform .4s var(--hk-ease); }
.cat-card .cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-card:hover .cat-icon { transform: scale(1.08) rotate(-4deg); }
.cat-card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin: 4px 0 0; color: var(--hk-ink); }
.cat-card p { margin: 0; font-size: 0.88rem; color: #6f7a66; font-family: 'Jost', sans-serif; }
.cat-card .cat-link { font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--hk-olive); display: inline-flex; gap: 6px; align-items: center; }
.cat-card:hover .cat-link i { transform: translateX(4px); }
.cat-card .cat-link i { transition: transform .3s var(--hk-ease); }
@media (max-width: 600px) {
    .hk-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-card { padding: 20px 12px; border-radius: 14px; }
    .cat-card .cat-icon { width: 56px; height: 56px; font-size: 1.25rem; }
    .cat-card h3 { font-size: 1.05rem; }
}

/* ---------------------------------------------------------------
   KEYFRAMES
   --------------------------------------------------------------- */
@keyframes hkFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hkBump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes hkHeartBeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.3); } 50% { transform: scale(0.95); } 75% { transform: scale(1.15); } }
@keyframes hkWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes hkBadgeIn { from { opacity: 0; transform: translateX(-10px) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .hk-suggest-box, .hk-ac-list, .hk-tag-badge, html body .product-card .product-badge { animation: none !important; }
}
