/* Shreegeeta Storefront & Popup Styles */
.sg-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f2937;
}

.sg-hero {
    background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 28px 28px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 12px 30px rgba(4, 120, 87, 0.22);
}

.sg-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.2;
}

.sg-hero-sub {
    margin: 0 0 14px 0;
    font-size: 15px;
    color: #d1fae5;
    max-width: 680px;
}

.sg-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.sg-pill {
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.sg-pill:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.sg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sg-btn:hover {
    transform: translateY(-1px);
}

.sg-btn-wa {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.sg-btn-wa:hover {
    background: #1ebe5b;
    color: #ffffff;
}

.sg-btn-light {
    background: #ffffff;
    color: #064e3b;
}

.sg-btn-light:hover {
    background: #ecfdf5;
    color: #064e3b;
}

/* Allow position:sticky inside XStore's .template-container */
.template-container,
.page-wrapper {
    overflow: visible !important;
    overflow-x: clip !important;
}

.sg-toolbar {
    position: sticky;
    top: 108px;
    z-index: 9970;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sg-search {
    flex: 1 1 260px;
    max-width: 420px;
    position: relative;
}

.sg-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.sg-search input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.sg-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.sg-cat-btn {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sg-cat-btn:hover {
    border-color: #059669;
    color: #059669;
}

.sg-cat-btn.active {
    background: #047857;
    color: #ffffff;
    border-color: #047857;
}

.sg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 16px;
}

.sg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #a7f3d0;
}

.sg-img-box {
    background: radial-gradient(circle at center, #f0fdf4 0%, #f9fafb 100%);
    border-radius: 12px;
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    margin-bottom: 10px;
}

.sg-img-box img {
    max-height: 145px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
}

.sg-badge-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(6, 78, 59, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.sg-badge-off {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.sg-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.35;
    min-height: 38px;
    color: #111827;
}

.sg-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.sg-price {
    font-size: 18px;
    font-weight: 800;
    color: #047857;
}

.sg-mrp {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.sg-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sg-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sg-qty button {
    background: #f3f4f6;
    border: none;
    width: 28px !important;
    min-width: 28px !important;
    height: 36px;
    font-weight: 700;
    cursor: pointer;
    color: #111827;
    padding: 0 !important;
}

.sg-qty input {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 36px;
    border: none !important;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff;
}

.sg-add-btn {
    flex: 1;
    height: 36px;
    background: #047857;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 10px;
    transition: background 0.15s ease;
}

.sg-add-btn:hover {
    background: #065f46;
}

.sg-add-btn.added {
    background: #16a34a;
}

/* Floating Cart Bar */
.sg-cart-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    background: #111827;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 9990;
    max-width: calc(100vw - 96px);
    flex-wrap: wrap;
}

.sg-cart-bar a {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.sg-cart-link {
    background: #374151;
    color: #ffffff;
}

.sg-checkout-link {
    background: #10b981;
    color: #ffffff;
}

/* Floating Direct WhatsApp Icon Button (Compact 52x52, Zero Overlap) */
.sg-wa-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.sg-wa-float:hover {
    transform: scale(1.06);
    background: #1ebe5b;
}

.sg-wa-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}

.sg-wa-modal-bg.open {
    display: flex;
}

.sg-wa-modal {
    background: #ffffff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.sg-wa-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.sg-wa-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.sg-wa-preset {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sg-wa-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Unified Login Card */
.sg-login-card {
    max-width: 440px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.sg-role-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sg-role-badge {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Clean Shreegeeta Header & Footer — Hide XStore Demo Header/Footer on All Pages */
header.site-header,
header.header-wrapper,
.et-headers-wrapper,
.et_b_header-wrapper,
[data-elementor-type="header"],
.elementor-location-header,
footer.footer,
.et-footers-wrapper,
.copyrights-wrapper,
[data-elementor-type="footer"],
.elementor-location-footer {
    display: none !important;
}

.sg-site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 9980;
}

.sg-header-top {
    background: #064e3b;
    color: #d1fae5;
    font-size: 12px;
}

.sg-header-top-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    gap: 8px;
}

.sg-header-top a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.sg-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
}

.sg-brand-link img {
    height: 44px;
    width: auto;
    display: block;
}

.sg-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sg-main-nav a {
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.sg-main-nav a:hover {
    background: #ecfdf5;
    color: #047857;
}

.sg-header-utils {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sg-util-btn {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: #f3f4f6;
    color: #111827;
}

.sg-util-cod {
    background: #047857;
    color: #ffffff !important;
}

/* Remove header on mobile screens & keep tab section compact */
@media (max-width: 768px) {
    .sg-site-header {
        display: none !important;
    }

    /* Allow position:sticky inside XStore's .template-container */
.template-container,
.page-wrapper {
    overflow: visible !important;
    overflow-x: clip !important;
}

.sg-toolbar {
        top: 6px;
        padding: 8px 12px;
        gap: 8px;
    }

    .sg-cats {
        gap: 5px;
        margin-bottom: 10px;
    }

    .sg-cat-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.sg-clean-footer {
    background: #064e3b;
    color: #ffffff;
    margin-top: 36px;
    padding-bottom: 84px;
}

.sg-clean-footer .sg-wrap {
    padding-right: 76px;
}

/* Fix COD Payment Radio & Alignment on Checkout */
.woocommerce-checkout #payment ul.payment_methods li {
    text-align: left !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    display: inline-block !important;
    opacity: 1 !important;
    position: static !important;
    margin-right: 8px !important;
    width: auto !important;
    height: auto !important;
}

