/* Yamin Shop BD — theme from logo colors */

:root {
    --primary-color: #006018 !important;
    --secondary-color: #0c5424 !important;
    --accent-color: #fc8424;
    --accent-dark: #f06c18;
    --leaf-green: #6cb43c;
    --border-color: #c8e0c8 !important;
    --title-color: #1f1f1f !important;
    --paragraph-color: #4b5563 !important;
}

body.home {
    background: #fff !important;
    font-family: "Hind Siliguri", "Open Sans", sans-serif !important;
}

.header.style-7 .logo img {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.header.style-7 .header-bottom {
    background: #006018 !important;
}

.header.style-7 .menu > li > a {
    color: #fff !important;
    font-weight: 500;
}

.header.style-7 .menu > li.active > a,
.header.style-7 .menu > li:hover > a,
.header.style-7 .menu > li > a.is-active {
    color: #fff !important;
    opacity: 0.95;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #fc8424;
}

.header.style-7 .header-search-wrap {
    position: relative;
    flex: 1 1 0%;
    margin-left: 1rem;
}

.header.style-7 .header-search input.form-control:focus {
    border-color: #006018 !important;
}

.header.style-7 .cart-count {
    background: #fc8424 !important;
    color: #fff !important;
}

.header.style-7 .header-right .label-down.link:hover i,
.header.style-7 .cart-toggle:hover i {
    color: #006018 !important;
}

.header.style-7 .header-right .label-down.link:hover .header-action-label,
.header.style-7 .cart-toggle:hover .header-action-label {
    color: #006018 !important;
}

/* Product cards */
.gb-product-grid .product[class*="card-"] .save-label {
    background: #fc8424 !important;
}

.gb-product-grid .product[class*="card-"] .badge {
    background: color-mix(in srgb, #6cb43c 22%, white);
    color: #006018;
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .price ins,
.gb-product-grid .product.card-2 .price ins {
    color: #006018 !important;
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .gb-card-btn--1,
.gb-product-grid .product.card-2 .gb-card-btn--1 {
    background: #006018 !important;
    border-color: #006018 !important;
    color: #fff !important;
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .gb-card-btn--1:hover {
    background: #0c5424 !important;
}

/* Footer — no background color */
.footer.style-classic,
.footer {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-top: 1px solid #c8e0c8;
    margin-top: 2rem;
}

.footer.style-classic .footer-logo img,
.footer .footer-logo img {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer .gb-footer-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer .footer-widget-title {
    color: #006018;
}

.footer .footer-bottom {
    border-top: 1px solid #c8e0c8;
    padding: 1rem 0;
    text-align: center;
    background: transparent !important;
}

/* Login */
.gb-li-submit,
[data-cms-section="login"] .gb-li-submit {
    background: #006018 !important;
}

.gb-li-submit:hover,
[data-cms-section="login"] .gb-li-submit:hover {
    background: #0c5424 !important;
}

.gb-li-logo img {
    max-height: 96px;
    width: auto;
}

.gb-li-logo h1 {
    color: #006018 !important;
}

/* Product detail CTAs */
.gb-pd-info__add-btn {
    background: #006018 !important;
}

.gb-pd-info__add-btn:hover {
    background: #0c5424 !important;
}

.gb-pd-info__buy-btn {
    border-color: #006018 !important;
    color: #006018 !important;
}

.gb-pd-info__buy-btn:hover {
    background: color-mix(in srgb, #006018 10%, white) !important;
}

.gb-pd-info__wa-btn {
    background: #25d366 !important;
}

.gb-pd-info__price {
    color: #006018 !important;
}

.gb-co-submit {
    background: #006018 !important;
}

/* Mobile nav */
@media (max-width: 991px) {
    .header.style-7 .main-nav {
        display: none;
        width: 100%;
        background: #006018;
    }
    .header.style-7 .main-nav.is-open {
        display: block;
    }
    .header.style-7 .main-nav .menu {
        flex-direction: column;
        padding: 0.5rem 0 1rem;
    }
    .footer .gb-footer-row {
        grid-template-columns: 1fr;
    }
}

/* Turbo progress — logo green → orange */
#ys-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: linear-gradient(90deg, #fc8424, #006018);
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s ease, opacity 0.2s ease;
}
#ys-progress.is-loading { opacity: 1; width: 72%; }
#ys-progress.is-loading.is-done { width: 100%; }

.ys-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0c5424;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    z-index: 2100;
    opacity: 0;
    transition: 0.25s ease;
}
.ys-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#cartDrawer,
.ys-cart-drawer {
    z-index: 2050;
}
