/* Yamin Shop BD — storefront polish (logo orange CTAs, larger type, cart above nav) */

:root {
    --primary-color: #005a1e !important;
    --secondary-color: #0a5028 !important;
    --accent-color: #fa821e !important;
    --accent-dark: #f06e14;
    --leaf-green: #6eb43c;
    --border-color: #c8e0c8 !important;
    --title-color: #1f1f1f !important;
    --paragraph-color: #3f4a42 !important;
    --ys-orange: #fa821e;
    --ys-orange-dark: #e07012;
    --ys-green: #005a1e;
    --ys-font-base: 17px;
}

html {
    font-size: 16px;
}

body.home,
body {
    background: #fff !important;
    font-family: "Hind Siliguri", "Open Sans", sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6;
    color: #3f4a42 !important;
}

/* ——— Header / logo (larger) ——— */
.header.style-7 .logo img {
    height: 72px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
}

@media (min-width: 992px) {
    .header.style-7 .logo img {
        height: 88px !important;
        max-width: 260px !important;
    }
}

.header.style-7 .header-bottom {
    background: #005a1e !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.header.style-7 .menu > li > a,
.header.style-7 .menu > li > a.category-link,
.header.style-7 .main-nav .menu a {
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    opacity: 1 !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}

.header.style-7 .menu > li.active > a,
.header.style-7 .menu > li:hover > a,
.header.style-7 .menu > li > a.is-active,
.header.style-7 .menu > li > a:focus,
.header.style-7 .menu > li > a:hover,
.header.style-7 .menu > li > a.category-link:hover,
.header.style-7 .menu > li > a.category-link.is-active {
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.header.style-7 .header-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
    width: 100%;
}

.header.style-7 .header-search {
    width: 100% !important;
}

.header.style-7 .header-search input.form-control {
    font-size: 0.95rem !important;
    min-height: 46px;
    border-radius: 12px;
    border: 1.5px solid #c8e0c8;
}

.header.style-7 .header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 1rem;
}

.header.style-7 .header-search input.form-control:focus {
    border-color: #005a1e !important;
}

.header.style-7 .cart-count {
    background: #fa821e !important;
    color: #fff !important;
    font-size: 0.7rem;
}

.header.style-7 .header-action-label {
    font-size: 0.82rem !important;
}

.header.style-7 .header-right .label-down.link:hover i,
.header.style-7 .cart-toggle:hover i,
.header.style-7 .header-right .label-down.link:hover .header-action-label,
.header.style-7 .cart-toggle:hover .header-action-label {
    color: #fa821e !important;
}

/* ——— Home cards (restore compact sizing) ——— */
#categoryTitle,
.ys-section-head h2 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
}

.gb-product-grid .product.card-2 .body h3,
.gb-product-grid .product.card-2 .body h3 a {
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1f1f1f !important;
}

.gb-product-grid .product.card-2 .price ins {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #fa821e !important;
}

.gb-product-grid .product.card-2 .price del {
    font-size: 0.85rem !important;
}

.gb-product-grid .product[class*="card-"] .save-label {
    background: #fa821e !important;
    font-size: 0.72rem !important;
}

.gb-product-grid .product[class*="card-"] .badge {
    background: color-mix(in srgb, #fa821e 18%, white);
    color: #9a4e0a;
    font-size: 0.75rem;
}

.gb-product-grid .product.card-2 .img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f6f7f5;
}

/* Home card buttons — half size + green */
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: #005a1e !important;
    border-color: #005a1e !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    min-height: 28px !important;
    padding: 0.22rem 0.5rem !important;
    border-radius: 7px !important;
    line-height: 1.2 !important;
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .gb-card-btn--1:hover {
    background: #0a5028 !important;
    border-color: #0a5028 !important;
}

/* Details CTAs — green */
.gb-pd-info__add-btn,
.gb-co-submit,
.ys-drawer .btn,
.ys-cart-checkout,
.ys-btn--primary,
a.ys-btn-orange,
button.ys-btn-orange {
    background: #005a1e !important;
    border-color: #005a1e !important;
    color: #fff !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    min-height: 44px;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
}

.gb-pd-info__add-btn:hover,
.gb-co-submit:hover,
.ys-btn--primary:hover {
    background: #0a5028 !important;
    border-color: #0a5028 !important;
}

.gb-pd-info__buy-btn {
    border: 2px solid #005a1e !important;
    color: #005a1e !important;
    background: #fff !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    min-height: 44px;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    width: 100%;
}

.gb-pd-info__buy-btn:hover {
    background: color-mix(in srgb, #005a1e 10%, white) !important;
}

.gb-pd-info__wa-btn {
    background: #25d366 !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    min-height: 44px;
    border-radius: 10px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    padding: 0.55rem 0.85rem;
}

.gb-pd-info__call-btn {
    font-size: 0.95rem !important;
    min-height: 44px;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1.5px solid #c8e0c8;
    color: #005a1e;
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    background: #fff;
}

.gb-pd-info__title {
    font-size: clamp(1.35rem, 2.5vw, 1.7rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.gb-pd-info__price {
    color: #fa821e !important;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem) !important;
    font-weight: 800 !important;
}

.gb-pd-desc,
.gb-pd-tabs__pane {
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

.gb-pd-breadcrumb {
    font-size: 0.9rem !important;
}

/* Details width — use more of the screen */
.ys-pd-container {
    max-width: 1280px !important;
    width: 100%;
}

.ys-pd-wide .gb-pd__card {
    padding: 1.5rem 1.75rem;
}

.ys-pd-wide .gb-pd__row {
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Variant radio list */
.gb-pd-info__variants .gb-pd-variants-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
    color: #1f1f1f;
}

.gb-pd-variant-radios {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
}

.gb-pd-variant-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #c8e0c8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.gb-pd-variant-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gb-pd-variant-radio__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #8fb89a;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}

.gb-pd-variant-radio.is-selected,
.gb-pd-variant-radio:has(input:checked) {
    border-color: #005a1e;
    background: color-mix(in srgb, #005a1e 7%, white);
    box-shadow: 0 0 0 1px #005a1e;
}

.gb-pd-variant-radio.is-selected .gb-pd-variant-radio__dot,
.gb-pd-variant-radio:has(input:checked) .gb-pd-variant-radio__dot {
    border-color: #005a1e;
}

.gb-pd-variant-radio.is-selected .gb-pd-variant-radio__dot::after,
.gb-pd-variant-radio:has(input:checked) .gb-pd-variant-radio__dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #005a1e;
}

.gb-pd-variant-radio__text {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.gb-pd-variant-radio__text strong {
    font-size: 0.95rem;
    font-weight: 650;
    color: #1f1f1f;
}

.gb-pd-variant-radio__text em {
    font-style: normal;
    font-weight: 800;
    color: #005a1e;
    white-space: nowrap;
}

.gb-pd-variant-list,
.gb-pd-variant-row,
.gb-pd-variant-select,
.gb-pd-variant-price {
    display: none !important;
}

/* Qty + Add to cart in one row */
.gb-pd-info__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.gb-pd-action-row {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.gb-pd-action-row .gb-pd-info__qty {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.gb-pd-action-row .gb-pd-info__add-btn {
    flex: 1;
    margin: 0;
}

.gb-pd-info__qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #c8e0c8;
    border-radius: 10px;
    overflow: hidden;
}

.gb-pd-info__qty button {
    width: 42px;
    height: 44px;
    border: 0;
    background: #f6f7f5;
    font-size: 1.2rem;
    cursor: pointer;
}

.gb-pd-info__qty input {
    width: 48px;
    height: 44px;
    border: 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.gb-pd-info__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

@media (max-width: 560px) {
    .gb-pd-action-row {
        flex-direction: column;
    }
    .gb-pd-info__contact {
        grid-template-columns: 1fr;
    }
    .ys-pd-wide .gb-pd__row {
        grid-template-columns: 1fr;
    }
}

.gb-pd-gallery__main {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #f8faf8;
    border-radius: 14px;
}

.ys-chip {
    display: inline-block;
    background: color-mix(in srgb, #fa821e 16%, white);
    color: #9a4e0a;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

/* ——— Footer ——— */
.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: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.footer .gb-footer-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer .footer-widget-title {
    color: #005a1e;
    font-size: 1rem !important;
}

.footer .footer-widget-list a,
.footer .f-about-text,
.footer .footer-contact a {
    font-size: 0.92rem !important;
}

.footer .footer-bottom {
    border-top: 1px solid #c8e0c8;
    padding: 0.65rem 0;
    text-align: center;
    background: transparent !important;
}

.footer .footer-bottom,
.footer .f-copyight-text,
.footer .footer-bottom p {
    font-size: 0.78rem !important;
    color: #6b7280 !important;
    margin: 0;
}

/* ——— Login page ——— */
.ys-login {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(250, 130, 30, 0.14), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(0, 90, 30, 0.12), transparent 40%),
        #f7faf7;
}

.ys-login__card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #d7e8d7;
    border-radius: 20px;
    padding: 2rem 1.6rem 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 90, 30, 0.08);
}

.ys-login__brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ys-login__brand img {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.ys-login__brand h1 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    color: #005a1e;
    font-weight: 800;
}

.ys-login__brand p {
    margin: 0;
    color: #5b655e;
    font-size: 1.05rem;
}

.ys-login__field {
    margin-bottom: 1rem;
}

.ys-login__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    color: #1f1f1f;
}

.ys-login__field input {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid #c8e0c8;
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    font-size: 1.08rem;
    font-family: inherit;
}

.ys-login__field input:focus {
    outline: none;
    border-color: #fa821e;
    box-shadow: 0 0 0 3px rgba(250, 130, 30, 0.18);
}

.ys-login__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 1.15rem;
    font-size: 1.02rem;
    cursor: pointer;
}

.ys-login__submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: #fa821e !important;
    color: #fff !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.ys-login__submit:hover {
    background: #e07012 !important;
}

.ys-login__back {
    display: block;
    text-align: center;
    margin-top: 1.15rem;
    color: #005a1e;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.ys-login__back:hover {
    color: #fa821e;
}

/* Legacy login hooks */
.gb-li-submit,
[data-cms-section="login"] .gb-li-submit {
    background: #fa821e !important;
    border-color: #fa821e !important;
}

.gb-li-submit:hover,
[data-cms-section="login"] .gb-li-submit:hover {
    background: #e07012 !important;
}

html.gb-theme-active [data-cms-section="login"] .gb-li-submit {
    background: #fa821e !important;
    border-color: #fa821e !important;
    color: #fff !important;
}

/* ——— Cart drawer ABOVE sticky navbar ——— */
.ys-drawer-backdrop {
    z-index: 16000 !important;
}

#cartDrawer,
.ys-drawer,
.ys-cart-drawer {
    z-index: 16010 !important;
    width: min(430px, 100%) !important;
}

.ys-drawer__head h2 {
    font-size: 1.25rem !important;
}

.ys-drawer__body {
    font-size: 1.05rem;
}

.ys-cart-line {
    font-size: 1.02rem;
}

.ys-toast {
    position: fixed;
    inset: 0;
    z-index: 16100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: transparent;
}
.ys-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.ys-toast__card {
    margin-top: 12vh;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: min(420px, 100%);
    max-width: 460px;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 18px 50px rgba(10, 80, 40, 0.22);
    border: 1px solid #c8e0c8;
    transform: translateY(-10px) scale(0.98);
    transition: transform 0.22s ease;
}
.ys-toast.is-visible .ys-toast__card {
    transform: translateY(0) scale(1);
}
.ys-toast__card--success {
    border-color: #86c59a;
}
.ys-toast__card--error {
    border-color: #fecaca;
}
.ys-toast__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    background: #005a1e;
    color: #fff;
}
.ys-toast__card--error .ys-toast__icon {
    background: #b91c1c;
}
.ys-toast__msg {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
}
.ys-toast__close {
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 0.15rem;
}

#ys-alerts .alert {
    display: none;
}

#ys-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 16200;
    background: linear-gradient(90deg, #fa821e, #005a1e);
    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%; }

/* Checkout / success readability */
.gb-co-card,
.order-success h1,
.alert {
    font-size: 1.05rem;
}

.order-success h1 {
    font-size: 1.75rem !important;
}

@media (max-width: 991px) {
    .header.style-7 .logo img {
        height: 64px !important;
        max-width: 190px !important;
    }
    .header.style-7 .sticky-content-wrapper {
        position: relative;
    }
    .header.style-7 .main-nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(300px, 86vw);
        background: #0a5028;
        z-index: 16050;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        padding: 1.25rem 0.85rem 1.5rem;
        box-shadow: 8px 0 30px rgba(0,0,0,.2);
    }
    .header.style-7 .main-nav.is-open {
        transform: translateX(0);
    }
    .header.style-7 .main-nav .menu {
        flex-direction: column;
        padding: 0.35rem 0 0.75rem;
        gap: 0.15rem;
    }
    .header.style-7 .main-nav .menu a {
        color: #fff !important;
        padding: 0.7rem 0.75rem;
        font-size: 0.98rem !important;
        border-radius: 10px;
        display: block;
    }
    .header.style-7 .main-nav .menu a:hover,
    .header.style-7 .main-nav .menu a.is-active {
        background: rgba(255,255,255,.12);
    }
    body.ys-nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(10, 30, 18, 0.45);
        z-index: 16040;
    }
    .footer .gb-footer-row {
        grid-template-columns: 1fr;
    }
    .mobile-header-search .header-search {
        width: 100%;
    }
}
