/* NK Karyana — theme extensions & responsive fixes */

html {
    scroll-behavior: smooth;
}

:root {
    --site-logo-width: 280px;
    --site-logo-height: 76px;
}

body {
    overflow-x: hidden;
}

.site-brand-text {
    font-family: var(--heading-font, "Nunito", sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bs-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.site-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--site-logo-width);
    max-width: var(--site-logo-width);
    flex-shrink: 0;
}

.site-brand-link:hover .site-brand-text {
    color: var(--bs-primary);
}

.site-logo {
    display: block;
    width: var(--site-logo-width);
    height: var(--site-logo-height);
    max-width: var(--site-logo-width);
    max-height: var(--site-logo-height);
    object-fit: contain;
    object-position: left center;
}

/* Site header */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
    --site-logo-width: 300px;
    --site-logo-height: 82px;
}

.site-parent-bar {
    background: #eef2ea;
    border-bottom: 1px solid #dce5d8;
    padding: 0.4rem 0;
}

.site-parent-bar__text {
    color: #5f6f63;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
}

.site-parent-bar__text strong {
    color: #243328;
    font-weight: 700;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 96px;
    padding: 0.75rem 0;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    width: var(--site-logo-width);
    max-width: var(--site-logo-width);
    min-width: 0;
}

.site-header__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f2f4f7;
    color: #344054;
    cursor: pointer;
    touch-action: manipulation;
}

.site-header__menu-btn:hover,
.site-header__menu-btn:focus {
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
}

.site-header__menu-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(107, 178, 82, 0.35);
    outline: 0;
}

.site-header__search {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    max-width: 420px;
    min-width: 0;
    margin: 0 auto;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    margin-left: 0;
    min-width: 0;
}

.site-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f4f6f4;
    border: 1px solid #e8ece8;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(107, 178, 82, 0.15);
}

.site-search-input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    min-width: 0;
}

.site-search-input:focus {
    outline: none;
}

.site-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--bs-primary);
    color: #fff;
    width: 38px;
    height: 38px;
    margin: 3px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.site-search-btn:hover {
    background: #5a9a45;
}

.site-header__nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.site-nav-link {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav-link:hover {
    color: var(--bs-primary);
    background: rgba(107, 178, 82, 0.08);
}

.site-nav-link.is-active {
    color: var(--bs-primary);
    background: rgba(107, 178, 82, 0.12);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-right: -0.5rem;
}

.site-header__social {
    display: flex;
    align-items: center;
    padding-right: 0.35rem;
    margin-right: 0.25rem;
    border-right: 1px solid #e8ece8;
}

.site-header__shop-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: 0.15rem;
}

.site-header__social .site-header__icon-btn svg {
    width: 18px;
    height: 18px;
}

.site-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #222;
    text-decoration: none;
    border: 0;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__icon-btn:hover {
    background: #f4f6f4;
    color: var(--bs-primary);
}

.site-header__icon-btn--badged {
    position: relative;
}

.site-header__icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px #fff;
}

@media (min-width: 992px) {
    .site-header__inner {
        gap: 1.25rem;
    }

    .site-header__search {
        max-width: 440px;
    }

    .site-header__actions {
        margin-right: -0.65rem;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        --site-logo-width: 240px;
        --site-logo-height: 66px;
    }

    .site-header__inner {
        min-height: 76px;
    }

    .site-header__brand {
        width: auto;
        max-width: none;
        flex: 1;
        min-width: 0;
    }

    .site-brand-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        --site-logo-width: 210px;
        --site-logo-height: 58px;
    }

    .site-header__inner {
        gap: 0.5rem;
        min-height: 68px;
    }

    .site-header__brand {
        max-width: none;
    }

    .site-header__actions {
        margin-right: -0.65rem;
    }

    .site-header__shop-actions {
        gap: 0;
    }

    .site-header__icon-btn {
        width: 38px;
        height: 38px;
    }
}

.site-brand-text span {
    color: var(--bs-dark);
}

/* Preloader — always centered on screen */
.preloader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.preloader-wrapper.is-hiding,
.preloader-wrapper.is-hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.preloader-wrapper .preloader {
    margin: 0 !important;
    position: relative;
}

/* Full-screen loader for form submits (e.g. checkout) */
.nk-action-loader {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
}

.nk-action-loader[hidden] {
    display: none !important;
}

body.nk-action-loading {
    overflow: hidden;
}

.nk-action-loader__panel {
    text-align: center;
    max-width: 20rem;
}

.nk-action-loader__spinner {
    margin: 0 auto 1.25rem !important;
    position: relative;
}

.nk-action-loader__text {
    font-weight: 600;
    color: var(--bs-dark);
}

/* Side menu must appear above loader/tab bar */
.offcanvas#offcanvasNavbar {
    z-index: 1060;
}

.offcanvas#offcanvasNavbar.show {
    visibility: visible;
    transform: none;
}

.offcanvas-backdrop.show {
    z-index: 1055;
}

.hero-banner {
    background-image: url('../images/banner-1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.newsletter-banner {
    background: url('../images/banner-newsletter.jpg') no-repeat center/cover;
}

.banner-ad-block-1 {
    background: url('../images/banner-ad-1.jpg') no-repeat center/cover;
}

.banner-ad-block-2 {
    background: url('../images/banner-ad-2.jpg') no-repeat center/cover;
}

.banner-ad-block-3 {
    background: url('../images/banner-ad-3.jpg') no-repeat center/cover;
}

.banner-ad {
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
}

.banner-ad.large {
    min-height: 320px;
}

.section-title {
    font-weight: 700;
    color: var(--bs-dark);
}

.btn-yellow {
    --bs-btn-color: #747474;
    --bs-btn-bg: #fcf7eb;
    --bs-btn-border-color: #fcf7eb;
    --bs-btn-hover-color: #747474;
    --bs-btn-hover-bg: #ffecbe;
    --bs-btn-hover-border-color: #ffecbe;
}

.product-item figure {
    position: relative;
    overflow: hidden;
}

/* Product cards — fixed layout, no hover overlap */
.product-card-wrap {
    display: flex;
    height: auto;
    margin-bottom: 0;
}

.product-card-wrap.swiper-slide {
    height: auto;
    display: flex;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.875rem;
    background: #fff;
    border: 1px solid #eef0ee;
    border-radius: 16px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border-color: #dfe8df;
}

.product-card__figure {
    position: relative;
    margin: 0 0 0.75rem;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faf8;
    border-radius: 12px;
    overflow: hidden;
}

.product-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
}

.product-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.7rem;
}

.product-card__overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card__icon-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

.product-card__icon-btn--active {
    background: var(--bs-primary);
    color: #fff;
}

.product-card--wishlist .product-card__overlay {
    opacity: 1;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-align: center;
    min-height: 0;
}

.product-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
    line-height: 1.35;
}

.product-card__price {
    min-height: 1.75rem;
}

.product-card__actions {
    margin-top: auto;
    padding-top: 0.75rem;
}

.product-card__actions-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
}

.product-card__qty {
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.product-card__cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    min-height: 38px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.product-grid {
    --bs-gutter-y: 1.25rem;
}

.product-grid > .product-card-wrap,
.product-grid > .col {
    display: flex;
}

.products-carousel .swiper {
    overflow: hidden;
    padding-bottom: 0.5rem;
}

.products-carousel .swiper-wrapper {
    align-items: stretch;
}

@media (hover: none) {
    .product-card__overlay {
        opacity: 1;
    }
}

/* Override theme hover overlap on legacy product-item class */
.product-item .button-area {
    display: block !important;
    position: static !important;
    width: auto !important;
    left: auto !important;
    bottom: auto !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.product-item figure img,
.product-item .tab-image {
    max-height: none !important;
}

.product-item .product-actions-overlay .btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(107, 178, 82, 0.35);
}

.product-item .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-item .product-actions-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-item:hover .product-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.product-item .product-actions-overlay .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(107, 178, 82, 0.35);
}

.search-bar .form-control:focus,
.search-bar .form-select:focus {
    box-shadow: none;
}

.page-hero {
    background: var(--bs-primary-bg-subtle);
    padding: 2.5rem 0;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
}

.fade-section {
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    border-radius: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.category-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

img[loading="lazy"] {
    background: #f5f5f5;
}

@media (max-width: 575.98px) {
    .site-brand-text {
        font-size: 1.1rem;
    }

    .display-1.ls-1 {
        font-size: calc(1.5rem + 1.5vw);
    }

    .category-thumb {
        width: 88px;
        height: 88px;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-card__title {
        font-size: 0.875rem;
        min-height: 2.5em;
    }

    .product-card__actions-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.35rem;
    }

    .product-card__cart-btn span {
        font-size: 0.75rem;
    }

    .product-card__cart-btn {
        min-height: 34px;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
}


@media (min-width: 768px) and (max-width: 991.98px) {
    .search-bar {
        margin-top: 0.5rem;
    }
}

@media (min-width: 992px) {
    .offcanvas-lg-nav {
        display: none;
    }
}

.cart-table img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.product-large-slider img,
.product-thumbnail-slider img {
    max-height: 420px;
    object-fit: contain;
}

.product-large-wrap {
    position: relative;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2a1c;
    box-shadow: 0 6px 18px rgba(20, 28, 18, 0.16);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.product-gallery-nav--prev { left: 10px; }
.product-gallery-nav--next { right: 10px; }

.product-gallery-nav:hover,
.product-gallery-nav:focus-visible {
    background: #fff;
}

.product-gallery-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.product-thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.product-zoom-frame {
    background: #f7f9f5;
    border-radius: 12px;
    overflow: hidden;
}

.product-drift-img {
    display: block;
    width: 100%;
    cursor: crosshair;
}

.product-detail-col {
    position: relative;
}

.product-zoom-pane {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: min(100%, 420px);
    height: 420px;
    pointer-events: none;
}

.product-zoom-pane .drift-zoom-pane {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid #e4e8e1;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 28, 18, 0.14);
    overflow: hidden;
}

.product-zoom-pane .drift-zoom-pane-loader {
    display: none;
}

.drift-bounding-box {
    background: rgba(107, 178, 82, 0.18);
    box-shadow: inset 0 0 0 1px rgba(107, 178, 82, 0.55);
}

.drift-zoom-pane.drift-inline {
    border-radius: 12px;
    border: 1px solid #e4e8e1;
    box-shadow: 0 12px 28px rgba(20, 28, 18, 0.16);
}

@media (max-width: 767.98px) {
    .product-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .product-gallery-nav--prev { left: 6px; }
    .product-gallery-nav--next { right: 6px; }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Checkout — Razorpay-style */
.checkout-page {
    background: #f6f7fb;
}

.checkout-shell {
    min-height: calc(100vh - 180px);
}

.checkout-title {
    font-weight: 700;
}

.checkout-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: #eef8ea;
    color: #2d6a1f;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.checkout-panel {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.checkout-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eef1f6;
    background: #fafbfc;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-panel__body {
    padding: 1.25rem;
}

.checkout-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 0.4rem;
}

.checkout-input.form-control,
.checkout-input.form-select {
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.9375rem;
    padding: 0.65rem 0.85rem;
    box-shadow: none;
}

.checkout-input.form-control:focus,
.checkout-input.form-select:focus {
    border-color: #528ff0;
    box-shadow: 0 0 0 3px rgba(82, 143, 240, 0.15);
}

.checkout-phone-group {
    display: flex;
    align-items: stretch;
}

.checkout-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #f9fafb;
    border: 1px solid #d0d5dd;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    color: #667085;
    font-size: 0.9375rem;
    font-weight: 600;
}

.checkout-phone-group .checkout-input {
    border-radius: 0 8px 8px 0;
}

.checkout-summary {
    position: sticky;
    top: 92px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.checkout-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #eef1f6;
}

.checkout-summary__item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f2f4f7;
}

.checkout-summary__item:last-child {
    border-bottom: 0;
}

.checkout-summary__item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #eef1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkout-summary__item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.checkout-summary__item-info {
    min-width: 0;
}

.checkout-summary__item-info p {
    font-size: 0.875rem;
    line-height: 1.35;
}

.checkout-summary__item-price {
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-coupon {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdfb 0%, #f6faf5 100%);
    border: 1px solid #e3efe0;
}

.checkout-coupon__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: #344054;
    font-size: 0.875rem;
    font-weight: 700;
}

.checkout-coupon__head svg {
    color: var(--bs-primary);
    flex-shrink: 0;
}

.checkout-coupon__form {
    margin: 0;
}

.checkout-coupon__field {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 48px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-coupon__field:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(107, 178, 82, 0.14);
}

.checkout-coupon__field.is-invalid {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.checkout-coupon__input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.75rem 0.9rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #101828;
}

.checkout-coupon__input::placeholder {
    color: #98a2b3;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.checkout-coupon__input:focus {
    outline: none;
    box-shadow: none;
}

.checkout-coupon__apply {
    flex: 0 0 auto;
    align-self: stretch;
    border: 0;
    border-left: 1px solid #e4e7ec;
    background: var(--bs-primary);
    color: #fff;
    padding: 0 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.checkout-coupon__apply:hover {
    background: #5a9a45;
}

.checkout-coupon__error {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d92d20;
}

.checkout-coupon__applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #bbf7d0;
    box-shadow: inset 3px 0 0 var(--bs-primary);
}

.checkout-coupon__applied-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.checkout-coupon__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    flex-shrink: 0;
}

.checkout-coupon__applied-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.checkout-coupon__code {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #101828;
}

.checkout-coupon__saved {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
}

.checkout-coupon__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #fef3f2;
    color: #d92d20;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.checkout-coupon__remove:hover {
    background: #fee4e2;
    color: #b42318;
}

.checkout-summary__rows {
    margin: 1rem 0 1.25rem;
    padding-top: 0.5rem;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    color: #475467;
}

.checkout-summary__row--total {
    margin-top: 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #d0d5dd;
    font-size: 1.125rem;
    font-weight: 700;
    color: #101828;
}

.checkout-pay-btn {
    background: #528ff0;
    border: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    min-height: 52px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.checkout-pay-btn:hover,
.checkout-pay-btn:focus {
    background: #4076d8;
    color: #fff;
}

.checkout-pay-btn:active {
    transform: translateY(1px);
}

.checkout-summary__note {
    margin-top: 0.85rem;
    font-size: 0.75rem;
    color: #667085;
}

@media (max-width: 991.98px) {
    .checkout-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .checkout-panel__body,
    .checkout-summary {
        padding: 1rem;
    }

    .checkout-secure-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ——— Mobile app shell (tablet & phone only) ——— */
@media (max-width: 991.98px) {
    :root {
        --mobile-tab-height: 62px;
        --app-action-bar-height: 68px;
        --app-header-bg: #ffffff;
    }

    .site-shell {
        padding-bottom: calc(var(--mobile-tab-height) + env(safe-area-inset-bottom, 0px));
        -webkit-tap-highlight-color: transparent;
    }

    .cart-page.site-shell,
    .checkout-page.site-shell,
    .product-page.site-shell {
        padding-bottom: calc(var(--mobile-tab-height) + var(--app-action-bar-height) + env(safe-area-inset-bottom, 0px));
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: var(--app-header-bg);
        box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
        padding-top: env(safe-area-inset-top, 0px);
    }

    .site-header__inner {
        min-height: 58px;
    }

    .site-header__search-mobile {
        padding-bottom: 0.65rem !important;
    }

    .site-search-input {
        border-radius: 12px;
        background: #f2f4f7;
        border-color: transparent;
    }

    .page-hero--app {
        padding: 0.85rem 0;
        background: #fff;
        border-bottom: 1px solid #eaecf0;
    }

    .page-hero--app h1 {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .page-hero--app p {
        font-size: 0.875rem;
    }

    #main-content > section:first-child:not(.page-hero--app) {
        padding-top: 0.25rem;
    }

    .mobile-tab-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        min-height: var(--mobile-tab-height);
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #eaecf0;
        box-shadow: 0 -4px 24px rgba(16, 24, 40, 0.06);
    }

    .mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-width: 0;
        padding: 0.2rem 0.15rem;
        border: 0;
        background: transparent;
        color: #667085;
        text-decoration: none;
        font-size: 0.625rem;
        font-weight: 600;
        line-height: 1.2;
        transition: color 0.15s ease;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 1;
    }

    .mobile-tab:hover,
    .mobile-tab:focus {
        color: var(--bs-primary);
    }

    .mobile-tab.is-active {
        color: var(--bs-primary);
    }

    .mobile-tab__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        position: relative;
    }

    .mobile-tab.is-active .mobile-tab__icon {
        transform: translateY(-1px);
    }

    .mobile-tab__badge {
        position: absolute;
        top: -2px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #f04438;
        color: #fff;
        font-size: 0.5625rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        box-shadow: 0 0 0 2px #fff;
    }

    .mobile-tab__label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-empty-state__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 88px;
        height: 88px;
        margin-bottom: 1rem;
        border-radius: 50%;
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary);
    }

    .app-cart-mobile {
        padding: 0.75rem 0 1rem;
    }

    .app-cart-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .app-cart-item {
        display: flex;
        gap: 0.75rem;
        padding: 0.85rem;
        background: #fff;
        border: 1px solid #eaecf0;
        border-radius: 14px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    }

    .app-cart-item__thumb {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        border-radius: 10px;
        overflow: hidden;
        background: #f9fafb;
    }

    .app-cart-item__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .app-cart-item__body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .app-cart-item__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .app-cart-item__title {
        display: block;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #101828;
        text-decoration: none;
        line-height: 1.35;
    }

    .app-cart-item__meta {
        font-size: 0.75rem;
        color: #667085;
        margin-top: 0.15rem;
    }

    .app-cart-item__remove {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 8px;
        background: #fef3f2;
        color: #d92d20;
    }

    .app-cart-item__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .app-cart-item__price {
        font-size: 1rem;
        font-weight: 700;
        color: #101828;
        white-space: nowrap;
    }

    .app-qty-stepper {
        display: inline-flex;
        align-items: center;
        gap: 0;
        border: 1px solid #d0d5dd;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }

    .app-qty-stepper__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 0;
        background: #f9fafb;
        color: #344054;
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1;
    }

    .app-qty-stepper__value {
        min-width: 28px;
        text-align: center;
        font-size: 0.875rem;
        font-weight: 700;
        color: #101828;
    }

    .app-cart-summary {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    }

    .app-cart-summary__row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.35rem 0;
        font-size: 0.9375rem;
        color: #475467;
    }

    .app-cart-summary__row--total {
        margin-top: 0.35rem;
        padding-top: 0.75rem;
        border-top: 1px dashed #d0d5dd;
        font-size: 1.0625rem;
        font-weight: 700;
        color: #101828;
    }

    .app-sticky-checkout {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--mobile-tab-height) + env(safe-area-inset-bottom, 0px));
        z-index: 1035;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #eaecf0;
        box-shadow: 0 -4px 20px rgba(16, 24, 40, 0.08);
    }

    .app-sticky-checkout__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.65rem 1rem;
        max-width: 720px;
        margin: 0 auto;
    }

    .app-sticky-checkout__total {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .app-sticky-checkout__label {
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #667085;
        font-weight: 600;
    }

    .app-sticky-checkout__total strong {
        font-size: 1.125rem;
        color: #101828;
    }

    .app-sticky-checkout__btn {
        flex: 0 0 auto;
        min-width: 140px;
        min-height: 46px;
        border-radius: 12px;
        font-weight: 700;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .checkout-page .checkout-topbar {
        margin-bottom: 1rem !important;
    }

    .checkout-page .checkout-title {
        font-size: 1.25rem;
    }

    .checkout-page .checkout-secure-badge {
        display: none;
    }

    .checkout-page .checkout-panel {
        border-radius: 14px;
    }

    .offcanvas#offcanvasNavbar {
        max-width: min(88vw, 320px);
    }

    .offcanvas#offcanvasNavbar .offcanvas-body {
        padding-top: 0.5rem;
    }

    .app-category-chips {
        position: sticky;
        top: calc(58px + env(safe-area-inset-top, 0px));
        z-index: 1025;
        background: #fff;
        border-bottom: 1px solid #eaecf0;
        padding: 0.65rem 0;
    }

    .app-category-chips__scroll {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .app-category-chips__scroll::-webkit-scrollbar {
        display: none;
    }

    .app-category-chip {
        flex: 0 0 auto;
        padding: 0.45rem 0.9rem;
        border-radius: 999px;
        border: 1px solid #d0d5dd;
        background: #fff;
        color: #344054;
        font-size: 0.8125rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .app-category-chip.is-active {
        background: var(--bs-primary);
        border-color: var(--bs-primary);
        color: #fff;
    }

    .hero-banner .display-1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-banner .btn {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

@media (min-width: 992px) {
    .mobile-tab-bar {
        display: none !important;
    }
}

/* ——— Performance & smooth UX ——— */
html {
    scroll-behavior: smooth;
}

img,
svg {
    max-width: 100%;
}

.product-card__image,
.category-thumb {
    content-visibility: auto;
}

.fade-section,
.products-carousel,
.category-carousel,
.hero-banner {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Site footer */
.site-footer {
    --footer-bg: #f7f9f5;
    --footer-bg-bottom: #eef2ea;
    --footer-text: #243328;
    --footer-muted: #5f6f63;
    --footer-border: #dce5d8;
    --footer-accent: #6bb252;
    margin-top: 3rem;
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
}

.site-footer__main {
    background: var(--footer-bg);
    padding: 3.5rem 0 2.75rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
    gap: 2.5rem 3rem;
    align-items: start;
}

.site-footer__brand {
    max-width: 26rem;
}

.site-footer__logo.site-brand-link {
    --site-logo-width: 220px;
    --site-logo-height: 60px;
    width: var(--site-logo-width);
    max-width: var(--site-logo-width);
    margin-bottom: 0.65rem;
}

.site-footer__parent {
    color: var(--footer-text);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.site-footer__parent strong {
    font-weight: 700;
}

.site-footer__tagline {
    color: var(--footer-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.site-footer__contact {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--footer-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.site-footer__contact-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(107, 178, 82, 0.12);
    color: var(--footer-accent);
}

.site-footer__contact-item a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact-item a:hover {
    color: var(--footer-accent);
}

.site-footer__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-border);
}

.site-footer__social-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--footer-muted);
    margin: 0;
    flex: 0 0 auto;
}

.site-footer__title {
    color: var(--footer-text);
    font-family: var(--heading-font, "Nunito", sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 1.1rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.site-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.25rem;
    height: 3px;
    border-radius: 999px;
    background: var(--footer-accent);
}

.site-footer__links {
    display: grid;
    gap: 0.65rem;
}

.site-footer__links a {
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.site-footer__links a:hover {
    color: var(--footer-accent);
    transform: translateX(3px);
}

.site-footer__social .site-social-list--footer {
    gap: 0.6rem;
    margin: 0;
}

.site-footer__social .site-social-link--footer {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--footer-border);
    background: #fff;
    color: var(--footer-text);
    box-shadow: 0 1px 2px rgba(36, 51, 40, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__social .site-social-link--footer:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(107, 178, 82, 0.25);
}

.site-footer__bottom {
    background: var(--footer-bg-bottom);
    border-top: 1px solid var(--footer-border);
    padding: 1rem 0;
}

.site-footer__copyright {
    color: var(--footer-muted);
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        margin-top: 2rem;
    }

    .site-footer__main {
        padding: 2.5rem 0 2rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Stock quantity validation */
.is-stock-invalid,
.is-stock-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

.stock-qty-error {
    color: #dc3545;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
}

.stock-qty-error[hidden] {
    display: none !important;
}

.product-card__qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.product-card__stock-available {
    margin-top: 0.35rem;
}

.product-card__stock-msg {
    text-align: center;
    padding: 0.35rem 0;
}
