/* =============================================================
   CasaGlow Header v3.0 — Matches reference design exactly
   ============================================================= */

/* ---- Announcement bar ---- */
.cg-announce {
    background: #1B5E20;
    padding: 7px 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-family: 'Inter', sans-serif;
}
.cg-announce__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.cg-announce__list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0; padding: 0;
    flex-wrap: wrap;
}
.cg-announce__list li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.cg-announce__list svg { opacity: 0.85; flex-shrink: 0; }
.cg-announce__right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}
.cg-announce__right a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 150ms;
}
.cg-announce__right a:hover { color: #fff; }
.cg-announce__right span { color: rgba(255,255,255,0.5); }

/* ---- Header wrapper ---- */
.cg-header {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ---- Row 1 ---- */
.cg-header__r1 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---- LOGO ---- */
.cg-logo { flex-shrink: 0; }
.cg-logo__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.cg-logo__icon { flex-shrink: 0; display: flex; }
.cg-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.cg-logo__name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}
.cg-logo__name span { color: #2E7D32; }
/* Brand green name for MizanStore */
.cg-logo__name--brand { color: #2E7D32 !important; }
.cg-logo__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.cg-logo__tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #9CA3AF;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ---- SEARCH BAR ---- */
.cg-search {
    flex: 1;
    min-width: 0;
    max-width: 600px;
    position: relative;
}
.cg-search__form {
    display: flex;
    align-items: center;
    background: #F8FAF8;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 150ms, box-shadow 150ms;
    height: 46px;
}
.cg-search__form:focus-within {
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.10);
    background: #fff;
}

/* Category select inside search */
.cg-search__cat-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 8px 0 12px;
    background: transparent;
}
.cg-search__cat-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding-right: 18px;
    white-space: nowrap;
    max-width: 130px;
}
.cg-search__cat-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9CA3AF;
}
.cg-search__divider {
    width: 1px;
    height: 22px;
    background: #D1D5DB;
    flex-shrink: 0;
}
.cg-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #111;
    padding: 0 10px;
    outline: none;
    min-width: 0;
}
.cg-search__input::placeholder { color: #9CA3AF; }
.cg-search__btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: #2E7D32;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 150ms;
    border-radius: 0 8px 8px 0;
    margin: -1px;
}
.cg-search__btn:hover { background: #1B5E20; }

/* Live suggestions */
.cg-search__suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 300;
    max-height: 360px;
    overflow-y: auto;
}

/* ---- ACTION ICONS ---- */
.cg-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.cg-hdr-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    text-decoration: none;
    color: #374151;
    border-radius: 8px;
    transition: color 150ms, background 150ms;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}
.cg-hdr-btn:hover { color: #2E7D32; background: #EAF7EA; }
.cg-hdr-btn__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cg-hdr-btn__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
    color: #6B7280;
}
.cg-hdr-btn:hover .cg-hdr-btn__label { color: #2E7D32; }

/* Badges (count) */
.cg-hdr-btn__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #2E7D32;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
}
.cg-hdr-btn__badge--empty { display: none; }

/* Wishlist count */
.cg-wishlist-count { }
.cg-wishlist-count--empty { display: none; }
.cg-cart-count { }
.cg-cart-count--empty { display: none; }

/* ---- Row 2: Nav ---- */
.cg-header__row2 {
    border-top: 1px solid #F3F4F6;
}
.cg-header__r2 {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.cg-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
    flex-wrap: wrap;
}
.cg-nav__list li a {
    display: block;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 150ms, border-color 150ms;
    white-space: nowrap;
}
.cg-nav__list li a:hover,
.cg-nav__list li.current-menu-item > a,
.cg-nav__list li.current_page_item > a {
    color: #2E7D32;
    border-bottom-color: #2E7D32;
}

/* ---- HERO SECTION ---- */
.cg-hero {
    position: relative;
    min-height: 420px;
    max-height: 460px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-color: #F5F3EE;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.cg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(245,243,238,0.94) 0%,
        rgba(245,243,238,0.85) 25%,
        rgba(245,243,238,0.42) 48%,
        rgba(245,243,238,0.06) 65%,
        transparent 80%
    );
    z-index: 1;
}
.cg-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
/* LEFT */
.cg-hero__content { max-width: 500px; flex: 1; }
.cg-hero__badge {
    display: inline-block;
    background: transparent;
    border: none;
    color: #2E7D32;
    padding: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
}
.cg-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: #111;
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 3px rgba(245,243,238,0.6);
}
.cg-hero__title-accent { color: #2E7D32; }
.cg-hero__desc {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 400px;
    text-shadow: 0 1px 2px rgba(245,243,238,0.5);
}
.cg-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cg-btn--hero-outline {
    background: rgba(255,255,255,0.75);
    border: 2px solid #2E7D32;
    color: #2E7D32;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.cg-btn--hero-outline:hover { background: #2E7D32; color: #fff; transform: translateY(-1px); }

/* RIGHT: discount card — square compact */
.cg-hero__right { flex-shrink: 0; display: flex; align-items: center; }
.cg-hero__discount-card {
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.14);
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    width: 178px;
    border: 1px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    transition: transform 200ms, box-shadow 200ms;
}
.cg-hero__discount-card:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(0,0,0,0.18); }
.cg-hero__discount-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.cg-hero__discount-card__label  { font-size: 0.7rem; color: #6B7280; margin: 0 0 1px; font-family:'Inter',sans-serif; }
.cg-hero__discount-card__pct    { margin: 0; }
.cg-hero__discount-card__pct strong { font-size: 1.7rem; font-weight: 900; color: #111; line-height: 1; font-family:'Poppins',sans-serif; display: block; }
.cg-hero__discount-card__sub    { font-size: 0.7rem; color: #6B7280; margin: 0 0 12px; font-family:'Inter',sans-serif; }
.cg-hero__discount-card__btn    { display: block; background: #2E7D32; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; text-align: center; font-family:'Poppins',sans-serif; margin-bottom: 8px; }
.cg-hero__discount-card__note  { display: flex; align-items: center; gap: 4px; font-size: 0.65rem; color: #9CA3AF; margin: 0; font-family:'Inter',sans-serif; }
.cg-hero__discount-card__badge { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#F59E0B,#D97706); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cg-hero__discount-card__badge span { font-family:'Poppins',sans-serif; font-size: 0.68rem; font-weight: 800; color: #fff; }

/* Trust bar spacing */
.cg-trust-bar { margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cg-hero__inner { padding: 44px 28px; }
    .cg-hero__title { font-size: 2.4rem; }
}
@media (max-width: 768px) {
    .cg-hero { min-height: 400px; max-height: none; background-position: 65% 30%; }
    .cg-hero__overlay {
        background: linear-gradient(105deg,
            rgba(245,243,238,0.96) 0%,
            rgba(245,243,238,0.90) 35%,
            rgba(245,243,238,0.35) 60%,
            transparent 80%);
    }
    .cg-hero__inner { flex-direction: column; align-items: flex-start; padding: 40px 20px 36px; gap: 20px; }
    .cg-hero__content { max-width: 100%; }
    .cg-hero__right { width: 100%; }
    .cg-hero__discount-card { width: 100%; max-width: 260px; flex-direction: row; align-items: center; gap: 12px; }
    .cg-hero__discount-card__top { flex-direction: column; gap: 0; }
    .cg-hero__title { font-size: 1.9rem; }
}
@media (max-width: 480px) {
    .cg-hero { min-height: 440px; background-position: 70% center; }
    .cg-hero__inner { padding: 36px 16px 32px; }
    .cg-hero__title { font-size: 1.75rem; }
    .cg-hero__actions { flex-direction: column; }
    .cg-hero__actions .cg-btn { justify-content: center; }
}
/* RESPONSIVE */
@media (max-width: 1024px) {
    .cg-hero__inner { padding: 60px 20px; gap: 28px; }
    .cg-hero__title { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .cg-hero { min-height: 480px; }
    .cg-hero__overlay {
        background: linear-gradient(
            105deg,
            rgba(245,243,238,0.95) 0%,
            rgba(245,243,238,0.88) 40%,
            rgba(245,243,238,0.30) 70%,
            transparent 100%
        );
    }
    .cg-hero__inner { flex-direction: column; align-items: flex-start; padding: 44px 16px 40px; gap: 24px; }
    .cg-hero__content { max-width: 100%; }
    .cg-hero__right { width: 100%; justify-content: flex-start; }
    .cg-hero__discount-card { width: 200px; }
    .cg-hero__title { font-size: 2rem; }
}
@media (max-width: 480px) {
    .cg-hero { min-height: 520px; background-position: 70% center; }
    .cg-hero__actions { flex-direction: column; }
    .cg-hero__actions .cg-btn { justify-content: center; }
    .cg-hero__title { font-size: 1.85rem; }
}
/* ---- PRODUCT CARD STARS (fix) ---- */
.woocommerce .star-rating,
.bytora-product-card__rating .bytora-stars-wrap,
.cg-product-card__rating .bytora-stars-wrap {
    display: inline-flex;
    gap: 2px;
}
.bytora-star--filled, .cg-product-card__rating .bytora-star--filled { color: #F59E0B; }
.bytora-star--empty, .cg-product-card__rating .bytora-star--empty { color: #D1D5DB; }

/* ---- MOBILE hamburger ---- */
.cg-hamburger-btn {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #374151;
    border-radius: 8px;
}
.cg-hamburger-btn:hover { background: #EAF7EA; color: #2E7D32; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .cg-search { max-width: 400px; }
    .cg-hero__content { padding: 48px 32px 48px 24px; }
}
@media (max-width: 900px) {
    .cg-hero__inner { grid-template-columns: 1fr; min-height: auto; }
    .cg-hero__content { padding: 48px 24px 32px; max-width: 100%; }
    .cg-hero__media { min-height: 320px; }
    .cg-hero__img { min-height: 320px; }
    .cg-hero__discount-card { top: 16px; right: 16px; max-width: 180px; }
    .cg-hero__discount-card__pct strong { font-size: 1.2rem; }
    .cg-header__row2 { display: none; }
    .cg-hamburger-btn { display: flex; align-items: center; justify-content: center; }
    .cg-search { max-width: none; flex: 1; }
}
@media (max-width: 768px) {
    .cg-header__r1 { gap: 10px; padding: 12px 16px; }
    .cg-logo__tag { display: none; }
    .cg-search__cat-wrap { display: none; }
    .cg-search__divider { display: none; }
    .cg-announce__hide-sm { display: none; }
    .cg-announce__right { display: none; }
    .cg-hdr-btn__label { display: none; }
    .cg-hero__actions { flex-direction: column; }
    .cg-hero__actions .cg-btn { justify-content: center; }
}
@media (max-width: 480px) {
    .cg-hero__discount-card { position: static; margin: 0 16px 24px; max-width: 100%; }
    .cg-hero__media { overflow: visible; }
    .cg-hero__img { min-height: 240px; }
}

/* ================================================================
   FIXES — Announcement / Gap / Nav Center / Hero Full Background
   ================================================================ */

/* Announcement bar — only show 2 items on mobile */
@media (max-width: 768px) {
    .cg-announce__list li:nth-child(n+3) { display: none !important; }
    .cg-announce__right { display: none; }
}
@media (max-width: 480px) {
    .cg-announce__list li:nth-child(n+2) { display: none !important; }
}

/* Remove ALL gap between header and hero section */
.cg-header { margin-bottom: 0 !important; }
.cg-header + #cg-header-spacer { display: none !important; }
#cg-header-spacer { height: 0 !important; margin: 0 !important; padding: 0 !important; }
.bytora-homepage { margin-top: 0 !important; padding-top: 0 !important; }
.cg-hero { margin-top: 0 !important; }

/* Center nav links in row 2 */
.cg-header__r2 { justify-content: center; }
.cg-nav { width: 100%; }
.cg-nav__list { justify-content: center; }

/* Header spacer height auto-set by JS — override to 0 on homepage */
body.home #cg-header-spacer,
body.page-template-page-home #cg-header-spacer { display: none !important; }

/* ================================================================
   HERO — Full background image, text overlay
   ================================================================ */
.cg-hero {
    position: relative;
    background: #F0F0EC;
    overflow: hidden;
    padding: 0 !important;
    min-height: 540px;
}
.cg-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 540px;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Make the hero image take full right column as background */
.cg-hero__media {
    position: relative;
    overflow: hidden;
    min-height: 540px;
}
/* cg-hero__media ke andar img — background cover style */
.cg-hero__media .cg-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
}
/* cg-hero__image ke andar img — product image, contain style */
.cg-hero__image .cg-hero__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-height: 350px;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    position: static;
}

/* Left content panel */
.cg-hero__content {
    padding: 60px 48px 60px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FAFAF8;
    position: relative;
    z-index: 2;
}

/* Discount card stays top-right of image — desktop only */
@media (min-width: 901px) {
    .cg-hero__discount-card {
        position: absolute;
        top: 24px;
        right: 20px;
        z-index: 10;
        max-width: 200px;
    }
}

/* Mobile: discount card inline below content */
@media (max-width: 900px) {
    .cg-hero__discount-card {
        position: relative;
        top: auto;
        right: auto;
        z-index: 1;
        max-width: 240px;
        margin: 16px 0 0 0;
    }
}

/* MOBILE: full-width background hero */
@media (max-width: 900px) {
    .cg-hero {
        min-height: 460px;
    }
    .cg-hero__inner {
        grid-template-columns: 1fr;
        min-height: 460px;
        position: relative;
    }
    /* Image becomes full background on mobile */
    .cg-hero__media {
        position: absolute !important;
        inset: 0;
        min-height: 460px;
        z-index: 0;
    }
    .cg-hero__img {
        min-height: 460px;
    }
    /* Overlay for readability */
    .cg-hero__media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            105deg,
            rgba(255,255,255,0.92) 0%,
            rgba(255,255,255,0.75) 45%,
            rgba(255,255,255,0.10) 100%
        );
        z-index: 1;
    }
    .cg-hero__content {
        position: relative;
        z-index: 2;
        padding: 48px 24px 180px;
        background: transparent;
    }
    .cg-hero__discount-card {
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        left: auto;
        max-width: 220px;
        z-index: 2;
        margin: 12px 0 0 16px;
    }
}

@media (max-width: 540px) {
    .cg-hero { min-height: 400px; }
    .cg-hero__media { min-height: 400px; }
    .cg-hero__img { min-height: 400px; }
    .cg-hero__content { padding: 36px 16px 20px; }
    .cg-hero__title { font-size: 1.8rem; }
    .cg-hero__discount-card {
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        left: auto;
        max-width: 200px;
        margin: 12px 0 16px 16px;
    }
    .cg-hero__discount-card__pct strong { font-size: 1.1rem; }

    /* Search bar mobile — hide category select for space */
    .cg-search__cat-wrap,
    .cg-search__divider { display: none; }
    .cg-search__form { border-radius: 8px; }
    .cg-search__input { font-size: 0.8rem; }
}

/* ================================================================
   MOBILE: Hide announcement bar completely
   ================================================================ */
@media (max-width: 768px) {
    .cg-announce { display: none !important; }
}

/* Mobile search bar full width fix */
@media (max-width: 768px) {
    .cg-header__r1 {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .cg-logo { flex-shrink: 0; }
    .cg-logo__tag { display: none; }
    .cg-search {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    .cg-search__form {
        height: 40px;
    }
    .cg-search__cat-wrap,
    .cg-search__divider { display: none; }
    .cg-search__input {
        font-size: 0.82rem;
        padding: 0 8px;
    }
    .cg-search__btn {
        width: 40px;
        height: 40px;
        border-radius: 0 7px 7px 0;
    }
    /* Hide wishlist/account/cart labels + only show icons */
    .cg-hdr-btn__label { display: none; }
    .cg-hdr-btn { padding: 6px 7px; }
    /* Header actions compact */
    .cg-header__actions { gap: 0; }
}

/* ================================================================
   OFFCANVAS DRAWER — Mobile left-side menu
   ================================================================ */

/* Show/hide desktop vs mobile actions */
.cg-header__actions--desktop { display: flex; align-items: center; gap: 4px; }
.cg-header__actions--mobile  { display: none; align-items: center; gap: 4px; }
.cg-hamburger-btn {
    background: none; border: none; cursor: pointer;
    color: #374151; padding: 6px; border-radius: 8px;
    display: flex; align-items: center;
    transition: background 150ms;
}
.cg-hamburger-btn:hover { background: #EAF7EA; color: #2E7D32; }

@media (max-width: 900px) {
    .cg-header__actions--desktop { display: none !important; }
    .cg-header__actions--mobile  { display: flex !important; }
    .cg-header__row2 { display: none; }
}

/* Overlay */
.cg-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    backdrop-filter: blur(2px);
}
.cg-offcanvas-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Offcanvas panel */
.cg-offcanvas {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.cg-offcanvas.is-open {
    transform: translateX(0);
}

/* Header row */
.cg-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    flex-shrink: 0;
}
.cg-offcanvas__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.cg-offcanvas__logo-icon { display: flex; flex-shrink: 0; }
.cg-offcanvas__logo-text {
    display: flex; flex-direction: column; line-height: 1.2;
}
.cg-offcanvas__logo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem; font-weight: 800; color: #111;
    letter-spacing: -0.02em;
}
.cg-offcanvas__logo-tag {
    font-size: 0.62rem; color: #9CA3AF;
    font-family: 'Inter', sans-serif;
}
.cg-offcanvas__close {
    background: none; border: none; cursor: pointer;
    padding: 6px; color: #6B7280; border-radius: 8px;
    display: flex; align-items: center;
    transition: background 150ms;
    flex-shrink: 0;
}
.cg-offcanvas__close:hover { background: #F3F4F6; color: #111; }

/* Search */
.cg-offcanvas__search {
    padding: 14px 20px;
    border-bottom: 1px solid #F3F4F6;
    flex-shrink: 0;
}
.cg-offcanvas__search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAF8;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 12px;
    transition: border-color 150ms;
}
.cg-offcanvas__search-wrap:focus-within {
    border-color: #2E7D32;
    background: #fff;
}
.cg-offcanvas__search-wrap svg { color: #9CA3AF; flex-shrink: 0; }
.cg-offcanvas__search-wrap input {
    border: none; background: transparent;
    font-size: 0.875rem; outline: none;
    width: 100%; color: #111;
}
.cg-offcanvas__search-wrap input::placeholder { color: #9CA3AF; }

/* Quick links: Wishlist / Account / Cart */
.cg-offcanvas__quick {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid #F3F4F6;
    flex-shrink: 0;
}
.cg-offcanvas__quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    font-family: 'Inter', sans-serif;
    transition: background 150ms, color 150ms;
    position: relative;
}
.cg-offcanvas__quick-btn:hover { background: #EAF7EA; color: #2E7D32; }
.cg-offcanvas__badge {
    margin-left: auto;
    background: #2E7D32; color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 10px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
.cg-offcanvas__nav {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
}
.cg-offcanvas__nav-list {
    list-style: none; margin: 0; padding: 0;
}
.cg-offcanvas__nav-list li a {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: background 150ms, color 150ms;
}
.cg-offcanvas__nav-list li a:hover,
.cg-offcanvas__nav-list li.current-menu-item > a {
    background: #EAF7EA; color: #2E7D32;
}
/* Sub-menu */
.cg-offcanvas__nav-list .sub-menu {
    list-style: none; margin: 0; padding: 0 0 0 20px;
}
.cg-offcanvas__nav-list .sub-menu li a {
    font-size: 0.82rem; padding: 8px 12px;
    color: #6B7280;
}

/* Footer */
.cg-offcanvas__footer {
    padding: 16px 20px;
    border-top: 1px solid #F3F4F6;
    flex-shrink: 0;
}
.cg-offcanvas__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #6B7280;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.cg-offcanvas__contact:hover { color: #2E7D32; }

/* ================================================================
   SEARCH BAR FIX — ensure input fills space correctly
   ================================================================ */
.cg-search__form {
    width: 100%;
    display: flex;
    align-items: center;
}
.cg-search__input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}
/* Show search icon text inside button properly */
.cg-search__btn svg {
    display: block;
    flex-shrink: 0;
}


/* ================================================================
   ACCOUNT PAGE — hide search bar, clean header
   ================================================================ */
.woocommerce-account .cg-search,
.woocommerce-account .cg-search__form { display: none !important; }

/* Account page header shows logo + actions only */
.woocommerce-account .cg-header__r1 { justify-content: space-between; }

/* Auth page — no search in header */
.woocommerce-account:not(.logged-in) .cg-search { display: none !important; }





