.commerce-page {
    background:
        radial-gradient(circle at 86% 6%, rgba(21, 128, 61, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfdfb 0%, #f4f8f4 100%);
    padding: 48px 0 76px;
}

.commerce-hero {
    max-width: 920px;
    margin-bottom: 28px;
}

.commerce-hero h1 {
    margin: 8px 0 10px;
    color: #0f1f17;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: 0;
}

.commerce-hero p {
    max-width: 680px;
    margin: 0;
    color: #5f6f65;
    font-size: 18px;
    line-height: 1.65;
}

.commerce-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: start;
    gap: 24px;
}

.commerce-card {
    min-width: 0;
    border: 1px solid rgba(203, 215, 205, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 70px rgba(16, 36, 24, 0.08);
}

.commerce-form,
.commerce-summary,
.receipt-card,
.order-lookup,
.commerce-empty {
    padding: clamp(22px, 3vw, 34px);
}

.commerce-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.commerce-section-title > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #15803d, #0f6b36);
    font-weight: 900;
}

.commerce-section-title h2 {
    margin: 0;
    color: #102018;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
}

.commerce-section-title p {
    margin: 5px 0 0;
    color: #6b7b70;
    font-size: 14px;
    line-height: 1.45;
}

.commerce-form {
    display: grid;
    gap: 22px;
}

.commerce-form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.commerce-form label,
.order-lookup label {
    display: grid;
    gap: 8px;
    color: #1b2c21;
    font-size: 13px;
    font-weight: 900;
}

.commerce-form input,
.commerce-form textarea,
.commerce-form select,
.order-lookup input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8e3da;
    border-radius: 12px;
    padding: 0 15px;
    color: #12251a;
    background: #fbfdfb;
    font: inherit;
    font-weight: 700;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.commerce-form textarea {
    min-height: 112px;
    padding-top: 14px;
    resize: vertical;
}

.commerce-form input:focus,
.commerce-form textarea:focus,
.commerce-form select:focus,
.order-lookup input:focus {
    border-color: rgba(21, 128, 61, 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.08);
}

.commerce-payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.commerce-payment-options legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.commerce-payment-options label {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 16px;
    border: 1px solid #d8e3da;
    border-radius: 14px;
    background: #fbfdfb;
    cursor: pointer;
}

.commerce-payment-options input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: #15803d;
}

.commerce-payment-options strong,
.commerce-payment-options small {
    display: block;
}

.commerce-payment-options strong {
    color: #13251a;
    font-size: 14px;
}

.commerce-payment-options small {
    margin-top: 3px;
    color: #66776c;
    font-size: 12px;
    line-height: 1.35;
}

.commerce-submit {
    min-height: 56px;
    width: 100%;
    font-size: 16px;
}

.commerce-summary {
    position: sticky;
    top: 112px;
}

.commerce-summary-items {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.commerce-summary-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.commerce-summary-item img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: #edf5ed;
}

.commerce-summary-item strong,
.commerce-summary-item span {
    display: block;
}

.commerce-summary-item strong {
    color: #14261b;
    font-size: 14px;
    line-height: 1.25;
}

.commerce-summary-item span {
    margin-top: 4px;
    color: #718074;
    font-size: 12px;
}

.commerce-summary-item b {
    color: #12251a;
    white-space: nowrap;
}

.commerce-totals {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #e2ebe4;
}

.commerce-totals div,
.receipt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.commerce-totals span,
.receipt-item span {
    color: #66776c;
    font-weight: 800;
}

.commerce-totals strong,
.receipt-item strong {
    color: #12251a;
    font-weight: 900;
}

.commerce-totals .is-grand {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2ebe4;
}

.commerce-totals .is-grand strong {
    color: #15803d;
    font-size: 28px;
}

.commerce-note {
    margin: 18px 0 0;
    color: #66776c;
    font-size: 13px;
    line-height: 1.5;
}

.commerce-empty {
    grid-column: 1 / -1;
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
}

.commerce-empty h2 {
    margin: 12px 0 6px;
    color: #12251a;
    font-size: 30px;
}

.commerce-empty p {
    max-width: 460px;
    margin: 0 0 18px;
    color: #66776c;
}

.commerce-icon {
    width: 68px;
    height: 68px;
    display: block;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(21, 128, 61, 0.12), rgba(245, 158, 11, 0.14)),
        #fff;
    box-shadow: inset 0 0 0 1px #d8e3da;
}

.receipt-card {
    display: grid;
    gap: 24px;
}

.receipt-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2ebe4;
}

.receipt-topline h2 {
    margin: 12px 0 6px;
    color: #102018;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1;
}

.receipt-topline p {
    margin: 0;
    color: #66776c;
}

.receipt-topline > strong {
    color: #15803d;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    white-space: nowrap;
}

.receipt-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.receipt-badge.is-success {
    color: #076331;
    background: #e5f7eb;
}

.receipt-badge.is-pending {
    color: #92400e;
    background: #fff7ed;
}

.receipt-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.receipt-detail-grid div {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e2ebe4;
    border-radius: 14px;
    background: #fbfdfb;
}

.receipt-detail-grid span,
.receipt-detail-grid strong,
.receipt-detail-grid p {
    display: block;
}

.receipt-detail-grid span {
    color: #718074;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-detail-grid strong {
    margin-top: 8px;
    color: #12251a;
}

.receipt-detail-grid p {
    margin: 5px 0 0;
    color: #66776c;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.receipt-items {
    display: grid;
    gap: 12px;
}

.receipt-item {
    padding: 14px 0;
    border-bottom: 1px solid #edf2ee;
}

.receipt-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.orders-shell {
    display: grid;
    gap: 20px;
}

.order-lookup label span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.orders-table-card {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2ebe4;
    text-align: left;
    vertical-align: middle;
}

.orders-table th {
    color: #445548;
    background: #f7faf7;
    font-size: 12px;
    text-transform: uppercase;
}

.orders-table td strong,
.orders-table td span {
    display: block;
}

.orders-table td span {
    margin-top: 3px;
    color: #718074;
    font-size: 13px;
}

.auth-commerce-page {
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
}

.auth-commerce-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

.auth-commerce-aside {
    min-width: 0;
}

.auth-commerce-aside h1 {
    max-width: 680px;
    margin: 12px 0 16px;
    color: #0f1f17;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-commerce-aside p {
    max-width: 610px;
    margin: 0;
    color: #5f6f65;
    font-size: 18px;
    line-height: 1.65;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.auth-benefits span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #0c6b35;
    background: #eaf7ee;
    font-size: 13px;
    font-weight: 900;
}

.auth-card {
    display: grid;
    gap: 18px;
}

.auth-card label {
    display: grid;
    gap: 8px;
    color: #1b2c21;
    font-size: 13px;
    font-weight: 900;
}

.auth-card input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8e3da;
    border-radius: 12px;
    padding: 0 15px;
    color: #12251a;
    background: #fbfdfb;
    font: inherit;
    font-weight: 700;
    outline: 0;
}

.auth-card input:focus {
    border-color: rgba(21, 128, 61, 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.08);
}

.auth-switch {
    margin: 0;
    color: #66776c;
    font-weight: 800;
    text-align: center;
}

.auth-switch a {
    color: #15803d;
}

.account-hero {
    margin-bottom: 24px;
}

.account-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.account-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 16px;
    padding: 26px;
    text-align: center;
}

.account-avatar {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #15803d, #0f6b36);
    font-size: 30px;
    font-weight: 900;
}

.account-sidebar h2 {
    margin: 0;
    color: #102018;
    font-size: 22px;
}

.account-sidebar p {
    margin: -8px 0 6px;
    color: #66776c;
    overflow-wrap: anywhere;
}

.account-sidebar nav {
    display: grid;
    gap: 8px;
    text-align: left;
}

.account-sidebar nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    color: #25372b;
    background: #f7faf7;
    font-weight: 900;
}

.account-sidebar nav a:hover,
.account-sidebar nav a.is-active {
    color: #fff;
    background: #15803d;
}

.account-main {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.account-stat {
    padding: 22px;
}

.account-stat span,
.account-stat strong {
    display: block;
}

.account-stat span {
    color: #66776c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.account-stat strong {
    margin-top: 8px;
    color: #102018;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.account-profile-form,
.account-orders-preview {
    padding: clamp(22px, 3vw, 34px);
}

.account-order-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e2ebe4;
}

.account-order-row span,
.account-order-row strong,
.account-order-row small {
    display: block;
}

.account-order-row strong {
    color: #102018;
}

.account-order-row small {
    margin-top: 4px;
    color: #66776c;
}

.account-order-row b {
    color: #15803d;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .commerce-grid {
        grid-template-columns: 1fr;
    }

    .commerce-summary {
        position: static;
    }

    .auth-commerce-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .commerce-page {
        padding: 34px 0 98px;
    }

    .commerce-form-grid,
    .commerce-payment-options,
    .receipt-detail-grid,
    .account-stat-grid {
        grid-template-columns: 1fr;
    }

    .receipt-topline,
    .commerce-totals div,
    .receipt-item {
        align-items: flex-start;
    }

    .receipt-topline,
    .commerce-totals div {
        flex-direction: column;
    }

    .order-lookup label span {
        grid-template-columns: 1fr;
    }
}

/* Premium marketplace shop */
.market-shop {
    padding: 46px 0 88px;
    background:
        radial-gradient(circle at 88% 8%, rgba(21, 128, 61, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.shop-container {
    width: min(100% - 72px, 1800px);
    max-width: 1800px;
}

.market-shop-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
}

.market-shop-header h1 {
    letter-spacing: 0;
}

.shop-search-form {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    border: 1px solid #dfe7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.06);
}

.shop-search-form input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 0 0 20px;
    color: #101827;
    background: transparent;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
}

.shop-search-form button {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 0;
    color: #253343;
    background: transparent;
    cursor: pointer;
}

.shop-search-form button::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 3px solid currentColor;
    border-radius: 999px;
}

.shop-search-form button::after {
    content: "";
    width: 10px;
    height: 3px;
    margin-top: 19px;
    margin-left: -13px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.market-category-pills {
    min-width: 0;
    margin-bottom: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.market-category-pills::-webkit-scrollbar {
    display: none;
}

.market-category-pills a {
    flex: 0 0 auto;
    min-height: 46px;
    border-color: #dfe7df;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.shop-sort-form label {
    min-height: 48px;
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dfe7df;
    border-radius: 999px;
    color: #5f6b63;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.shop-sort-form select {
    border: 0;
    outline: 0;
    color: #102018;
    background: transparent;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.filter-drawer-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe7df;
    border-radius: 999px;
    padding: 0 18px;
    color: #102018;
    background: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.filter-drawer-button::before {
    content: "";
    width: 18px;
    height: 18px;
    clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%);
    background: #15803d;
}

.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.active-filter-chips a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #cfe0d1;
    border-radius: 999px;
    color: #0f6b36;
    background: #eef8ee;
    font-size: 13px;
    font-weight: 900;
}

.active-filter-chips a::after {
    content: "x";
    margin-left: 8px;
    color: #56715d;
}

.active-filter-chips .clear-filters {
    color: #334155;
    background: #fff;
}

.shop-page-grid {
    display: block;
}

.market-product-grid,
.shop-product-grid.market-product-grid,
.premium-product-grid.shop-product-grid.market-product-grid {
    display: grid;
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
}

.market-product-card {
    min-width: 0;
    border: 1px solid #e2e9e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.market-product-card:hover {
    transform: translateY(-7px);
    border-color: rgba(21, 128, 61, 0.24);
    box-shadow: 0 28px 74px rgba(17, 24, 39, 0.14);
}

.market-product-card .product-image-wrapper {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background: #f4f8f4;
}

.market-product-card .product-image {
    height: 220px;
    display: block;
    overflow: hidden;
    aspect-ratio: auto;
}

.market-product-card .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 280ms ease;
}

.market-product-card:hover .product-image img {
    transform: scale(1.05);
}

.market-product-card .product-badge {
    top: 12px;
    left: 12px;
    z-index: 2;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    background: #15803d;
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.24);
    font-size: 12px;
    text-transform: capitalize;
}

.product-floating-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    gap: 9px;
}

.product-floating-actions form {
    margin: 0;
}

.wishlist-button,
.share-button {
    position: relative;
    top: auto;
    right: auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 999px;
    color: #172033;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.1);
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.wishlist-button::before,
.wishlist-button::after {
    display: none !important;
}

.wishlist-button:hover,
.share-button:hover,
.market-product-card:hover .wishlist-button {
    transform: scale(1.08);
    color: #15803d;
}

.wishlist-button.is-active {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}

.wishlist-detail-button {
    gap: 9px;
}

.wishlist-detail-button.is-active {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.wishlist-button .bi {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.wishlist-pill {
    position: relative;
    min-width: 44px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #1d2a21;
    background: #fff;
    font-weight: 900;
}

.wishlist-pill .bi {
    font-size: 18px;
}

.wishlist-pill span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #dc2626;
    font-size: 11px;
    line-height: 1;
}

.share-button::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(45deg);
}

.share-button::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    transform: translateX(-3px);
}

.market-product-card .quick-view {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #102018;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
    font-weight: 900;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.market-product-card:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

.market-product-card .product-content {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.market-product-card .product-category {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.market-product-card .product-title {
    margin: 0;
    color: #101827;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.18;
    letter-spacing: 0;
}

.market-product-card .product-title a {
    color: inherit;
}

.market-product-card .product-card-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.product-price-stack {
    display: grid;
    gap: 7px;
}

.market-product-card .price {
    color: #075f2d;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.market-product-card .product-rating {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.market-product-card .product-rating small {
    color: #6b7280;
    font-size: 12px;
}

.market-product-card .product-actions,
.market-product-card .product-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 8px;
}

.market-product-card .product-card-actions form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.market-product-card .view-button,
.market-product-card .cart-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
}

.market-product-card .view-button {
    border: 1px solid #dfe7df;
    color: #102018;
    background: #fff;
}

.market-product-card .cart-button {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #fff;
    background: #15803d;
    box-shadow: 0 14px 28px rgba(21, 128, 61, 0.22);
    white-space: nowrap;
    cursor: pointer;
}

.cart-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cart-button .bi {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.market-product-card:hover .cart-button,
.market-product-card .cart-button:hover {
    background: #0f6b36;
    box-shadow: 0 18px 34px rgba(21, 128, 61, 0.3);
}

.market-product-card .mini-cart-button::before,
.market-product-card .mini-cart-button::after {
    display: none !important;
}

.filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 88;
    pointer-events: none;
    background: rgba(15, 23, 42, 0);
    transition: background 180ms ease;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(460px, calc(100vw - 26px));
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    color: #102018;
    background: #fff;
    box-shadow: -28px 0 80px rgba(15, 23, 42, 0.18);
    transform: translateX(105%);
    transition: transform 200ms ease;
    overflow: hidden;
}

.filter-drawer-is-open {
    overflow: hidden;
}

.filter-drawer-is-open .filter-drawer {
    transform: translateX(0);
}

.filter-drawer-is-open .filter-drawer-backdrop {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.42);
}

.filter-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 38px 24px;
    border-bottom: 1px solid #edf2ee;
    background: rgba(255, 255, 255, 0.96);
}

.filter-drawer-head h2 {
    margin: 8px 0 0;
    color: #102018;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

.filter-drawer-summary {
    margin: 10px 0 0;
    color: #647067;
    font-size: 14px;
    font-weight: 800;
}

.filter-drawer-head button {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border: 1px solid #dfe7df;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    cursor: pointer;
}

.filter-drawer-head button::before,
.filter-drawer-head button::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: #102018;
}

.filter-drawer-head button::before {
    transform: rotate(45deg);
}

.filter-drawer-head button::after {
    transform: rotate(-45deg);
}

.filter-drawer-body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 26px;
    overflow-y: auto;
    padding: 26px 38px 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 128, 61, 0.42) transparent;
    overscroll-behavior: contain;
}

.filter-drawer-body::-webkit-scrollbar {
    width: 8px;
}

.filter-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.filter-drawer-body::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.42);
}

.filter-drawer-section {
    display: grid;
    gap: 14px;
    padding-bottom: 2px;
}

.filter-drawer-section h3 {
    margin: 0 0 2px;
    color: #647067;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.filter-drawer-section a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 22px;
    border: 1px solid #dfe7df;
    border-radius: 16px;
    color: #102018;
    background: #fbfdfb;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
    font-weight: 900;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-drawer-section a:hover,
.filter-drawer-section a.is-active {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
    transform: translateY(-1px);
}

.filter-drawer-section a.is-active::after {
    content: "";
    width: 10px;
    height: 16px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
}

.filter-drawer-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 38px 28px;
    border-top: 1px solid #edf2ee;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -14px 32px rgba(17, 24, 39, 0.05);
}

.filter-apply-link,
.filter-reset-link {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
}

.filter-apply-link {
    color: #fff;
    background: #15803d;
    box-shadow: 0 16px 30px rgba(21, 128, 61, 0.22);
}

.filter-reset-link {
    padding: 0 18px;
    border: 1px solid #dfe7df;
    color: #102018;
    background: #fff;
}

@media (max-width: 1700px) {
    .market-product-grid,
    .shop-product-grid.market-product-grid,
    .premium-product-grid.shop-product-grid.market-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 1500px) {
    .market-product-grid,
    .shop-product-grid.market-product-grid,
    .premium-product-grid.shop-product-grid.market-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .market-product-card .product-image-wrapper,
    .market-product-card .product-image {
        min-height: 190px;
        height: 190px;
    }

    .market-product-card .product-content {
        min-height: 214px;
        padding: 14px;
    }

    .market-product-card .product-title {
        font-size: 16px;
    }

    .market-product-card .price {
        font-size: 20px;
    }

    .market-product-card .product-actions,
    .market-product-card .product-card-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .market-product-card .view-button,
    .market-product-card .cart-button {
        min-height: 39px;
        font-size: 12px;
    }
}

@media (max-width: 1180px) {
    .market-product-grid,
    .shop-product-grid.market-product-grid,
    .premium-product-grid.shop-product-grid.market-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .market-shop-header,
    .shop-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .shop-sort-form label,
    .filter-drawer-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .market-product-grid,
    .shop-product-grid.market-product-grid,
    .premium-product-grid.shop-product-grid.market-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .shop-container {
        width: min(100% - 28px, 720px);
    }

    .market-product-grid,
    .shop-product-grid.market-product-grid,
    .premium-product-grid.shop-product-grid.market-product-grid {
        gap: 16px;
    }

    .market-product-card .product-image-wrapper,
    .market-product-card .product-image {
        min-height: 190px;
        height: 190px;
    }

    .product-floating-actions {
        top: 10px;
        right: 10px;
        gap: 7px;
    }

    .wishlist-button,
    .share-button {
        width: 38px;
        height: 38px;
    }

    .market-product-card .product-badge {
        top: 10px;
        left: 10px;
        min-height: 31px;
        padding: 0 10px;
        font-size: 11px;
    }

    .market-product-card .quick-view {
        display: none;
    }

    .market-product-card .product-content {
        min-height: 205px;
        padding: 14px;
    }

    .market-product-card .product-title {
        font-size: 17px;
    }

    .market-product-card .price {
        font-size: 20px;
    }

    .market-product-card .product-actions,
    .market-product-card .product-card-actions {
        grid-template-columns: 1fr;
    }

    .market-product-card .view-button,
    .market-product-card .cart-button {
        min-height: 42px;
        font-size: 13px;
    }

    .filter-drawer {
        width: min(100vw, 420px);
    }

    .filter-drawer-head {
        padding: 24px 22px 18px;
    }

    .filter-drawer-head h2 {
        font-size: 28px;
    }

    .filter-drawer-head button {
        width: 48px;
        height: 48px;
    }

    .filter-drawer-body {
        gap: 22px;
        padding: 22px;
    }

    .filter-drawer-section a {
        min-height: 54px;
        padding: 0 18px;
        border-radius: 14px;
    }

    .filter-drawer-footer {
        grid-template-columns: 1fr;
        padding: 16px 22px 22px;
    }

    .filter-reset-link {
        padding: 0;
    }
}

@media (max-width: 420px) {
    .market-product-grid,
    .shop-product-grid.market-product-grid,
    .premium-product-grid.shop-product-grid.market-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .market-product-card .product-image-wrapper,
    .market-product-card .product-image {
        min-height: 155px;
        height: 155px;
    }
}

/* Machinery storefront */
.machinery-page {
    padding: 0 0 88px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f6 100%);
}

.machinery-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.machinery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 19, 14, 0.86), rgba(7, 19, 14, 0.36) 58%, rgba(7, 19, 14, 0.08));
}

.machinery-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machinery-hero-copy {
    position: relative;
    z-index: 1;
    padding: 86px 0 74px;
}

.machinery-hero-copy h1 {
    
    margin: 0;
    font-size: 40px;
    line-height: 1.02;
    letter-spacing: 0;
}

.machinery-hero-copy p {
  
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.machinery-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-top: 30px;
    margin-bottom: 26px;
}

.machinery-category-strip {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.machinery-category-strip::-webkit-scrollbar {
    display: none;
}

.machinery-category-strip a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid #dbe5de;
    border-radius: 999px;
    color: #26362c;
    background: #fff;
    font-weight: 900;
}

.machinery-category-strip a.is-active,
.machinery-category-strip a:hover {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
}

.machinery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.machinery-card {
    overflow: hidden;
}

.machinery-card-media {
    position: relative;
    height: 240px;
    display: block;
    overflow: hidden;
    background: #e9eff0;
}

.machinery-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 240ms ease;
}

.machinery-card:hover .machinery-card-media img {
    transform: scale(1.04);
}

.machinery-card-media span {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    background: #f59e0b;
    font-size: 12px;
    font-weight: 900;
}

.machinery-card-body {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.machinery-card-topline,
.machinery-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.machinery-card-topline span,
.machinery-card-topline b {
    color: #647067;
    font-size: 12px;
    font-weight: 900;
}

.machinery-card h3 {
    margin: 10px 0 10px;
    color: #101827;
    font-size: 21px;
    line-height: 1.16;
    letter-spacing: 0;
}

.machinery-card p {
    margin: 0;
    color: #53615a;
    font-size: 14px;
    line-height: 1.55;
}

.machinery-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.machinery-card-footer strong {
    color: #075f2d;
    font-size: 15px;
    line-height: 1.25;
}

.machinery-card-footer > span {
    grid-column: 1;
    color: #66776c;
    font-size: 12px;
    font-weight: 900;
}

.machinery-card-footer .view-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    color: #fff;
    background: #15803d;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.machine-detail-page {
    padding: 52px 0 88px;
    background: linear-gradient(180deg, #fff 0%, #f5f8f6 100%);
}

.machine-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 42px;
    align-items: start;
}

.machine-gallery-main {
    overflow: hidden;
    border: 1px solid #dfe7df;
    border-radius: 18px;
    background: #e9eff0;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
}

.machine-gallery-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.machine-gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.machine-gallery-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border: 1px solid #dfe7df;
    border-radius: 12px;
    background: #eef3ef;
}

.machine-detail-copy {
    padding-top: 20px;
}

.machine-detail-copy h1 {
    margin: 0;
    color: #101827;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

.machine-detail-copy p {
    margin: 22px 0 0;
    color: #4d5b52;
    font-size: 18px;
}

.machine-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.machine-status-row strong {
    color: #075f2d;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.machine-status-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    font-size: 13px;
    font-weight: 900;
}

.machine-service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.machine-service-row div {
    padding: 16px;
    border: 1px solid #dfe7df;
    border-radius: 12px;
    background: #fff;
}

.machine-service-row span,
.machine-service-row strong {
    display: block;
}

.machine-service-row span {
    color: #66776c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.machine-service-row strong {
    margin-top: 6px;
    color: #102018;
    font-size: 15px;
    line-height: 1.3;
}

.machine-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
    gap: 24px;
    margin-top: 42px;
}

.machine-info-grid section {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #dfe7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
}

.machine-info-grid h2 {
    margin: 0 0 18px;
    color: #101827;
    font-size: 24px;
}

.machine-use-list {
    display: grid;
    gap: 12px;
}

.machine-use-list p {
    margin: 0;
    padding: 15px 16px;
    border-radius: 12px;
    color: #25372b;
    background: #f7faf7;
    font-weight: 800;
}

.machine-specs {
    display: grid;
    gap: 12px;
    margin: 0;
}

.machine-specs div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2ee;
}

.machine-specs div:last-child {
    border-bottom: 0;
}

.machine-specs dt {
    color: #647067;
    font-weight: 900;
}

.machine-specs dd {
    margin: 0;
    color: #101827;
    font-weight: 900;
}

.machine-video-section {
    margin-top: 42px;
}

.machine-video-section section {
    overflow: hidden;
    border: 1px solid #dfe7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
}

.machine-video-section section > div {
    padding: 24px 28px 18px;
}

.machine-video-section h2 {
    margin: 6px 0 0;
    color: #101827;
    font-size: 26px;
    line-height: 1.15;
}

.machine-video-section video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #111827;
}

/* Wishlist */
.wishlist-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
}

.wishlist-list {
    display: grid;
    gap: 16px;
}

.wishlist-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
}

.wishlist-item-image {
    overflow: hidden;
    border-radius: 14px;
    background: #edf5ed;
}

.wishlist-item-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.wishlist-item-copy {
    min-width: 0;
}

.wishlist-item-copy span,
.wishlist-summary .commerce-section-title p {
    color: #66776c;
    font-size: 13px;
    font-weight: 900;
}

.wishlist-item-copy h2 {
    margin: 6px 0 7px;
    color: #102018;
    font-size: 22px;
    line-height: 1.15;
}

.wishlist-item-copy p {
    max-width: 620px;
    margin: 0;
    color: #53615a;
    font-size: 14px;
    line-height: 1.5;
}

.wishlist-item-copy strong {
    display: block;
    margin-top: 10px;
    color: #075f2d;
    font-size: 20px;
    line-height: 1;
}

.wishlist-item-actions {
    display: grid;
    gap: 10px;
    min-width: 150px;
}

.wishlist-item-actions form,
.wishlist-item-actions button,
.wishlist-summary .btn {
    width: 100%;
}

.wishlist-item-actions .btn,
.wishlist-summary .btn {
    gap: 9px;
}

.wishlist-remove-button {
    color: #991b1b;
    border-color: #fecaca;
    background: #fff5f5;
}

.wishlist-summary {
    position: sticky;
    top: 112px;
    padding: clamp(22px, 3vw, 30px);
}

@media (max-width: 1380px) {
    .machinery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .machinery-hero {
        min-height: 360px;
    }

    .machinery-hero-copy {
        padding: 64px 0 52px;
    }

    .machinery-toolbar,
    .wishlist-layout,
    .machine-detail-grid,
    .machine-info-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-summary {
        position: static;
    }

    .wishlist-item {
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: start;
    }

    .wishlist-item-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .machinery-category-strip {
        justify-content: flex-start;
    }

    .machinery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .machinery-card-media {
        height: 190px;
    }

    .machine-detail-page {
        padding-bottom: 104px;
    }
}

@media (max-width: 520px) {
    .machinery-hero {
        min-height: 330px;
    }

    .machinery-hero img {
        object-position: 32% center;
    }

    .machinery-grid {
        grid-template-columns: 1fr;
    }

    .machine-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .machine-service-row {
        grid-template-columns: 1fr;
    }

    .machine-gallery-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .machine-specs div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .wishlist-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        padding: 13px;
    }

    .wishlist-item-copy h2 {
        font-size: 18px;
    }

    .wishlist-item-copy p {
        display: none;
    }

    .wishlist-item-actions {
        grid-template-columns: 1fr;
    }
}

/* Mobile featured products rail */
.featured-products-section,
.featured-products-scroll-shell {
    min-width: 0;
}

.featured-products-section {
    overflow-x: hidden;
}

.featured-products-content {
    min-width: 0;
}

@media (max-width: 980px) {
    .featured-products-content .section-row-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .featured-products-content .section-row-title h2 {
        min-width: 0;
        flex: 1 1 auto;
        font-size: clamp(24px, 7vw, 30px);
    }

    .featured-products-content .section-row-title a {
        flex: 0 0 auto;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    .featured-products-section .featured-products-scroll-shell {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .featured-products-section .featured-products-scroll-shell::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 14px;
        width: 38px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(250, 250, 245, 0), #fafaf5 88%);
    }

    .featured-products-section .featured-products-rail {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: clamp(176px, 47vw, 224px) !important;
        grid-template-columns: none !important;
        gap: 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 24px 18px 0 !important;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(21, 128, 61, 0.42) transparent;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .featured-products-section .featured-products-rail::-webkit-scrollbar {
        height: 5px;
    }

    .featured-products-section .featured-products-rail::-webkit-scrollbar-track {
        background: transparent;
    }

    .featured-products-section .featured-products-rail::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(21, 128, 61, 0.36);
    }

    .featured-products-section .featured-products-rail .market-product-card {
        width: 100%;
        scroll-snap-align: start;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
    }

    .featured-products-section .featured-products-rail .product-image-wrapper,
    .featured-products-section .featured-products-rail .product-image {
        min-height: 142px;
        height: 142px;
    }

    .featured-products-section .featured-products-rail .product-floating-actions {
        top: 10px;
        right: 10px;
    }

    .featured-products-section .featured-products-rail .share-button,
    .featured-products-section .featured-products-rail .quick-view {
        display: none;
    }

    .featured-products-section .featured-products-rail .wishlist-button {
        width: 36px;
        height: 36px;
    }

    .featured-products-section .featured-products-rail .wishlist-button .bi,
    .featured-products-section .featured-products-rail .cart-button .bi {
        font-size: 18px;
    }

    .featured-products-section .featured-products-rail .product-badge {
        top: 10px;
        left: 10px;
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .featured-products-section .featured-products-rail .product-content {
        min-height: 210px;
        padding: 12px;
    }

    .featured-products-section .featured-products-rail .product-category {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .featured-products-section .featured-products-rail .product-title {
        font-size: 15px;
        line-height: 1.2;
    }

    .featured-products-section .featured-products-rail .price {
        font-size: 18px;
    }

    .featured-products-section .featured-products-rail .product-rating {
        font-size: 11px;
    }

    .featured-products-section .featured-products-rail .product-rating small {
        font-size: 10px;
    }

    .featured-products-section .featured-products-rail .product-card-footer {
        gap: 12px;
    }

    .featured-products-section .featured-products-rail .product-actions,
    .featured-products-section .featured-products-rail .product-card-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .featured-products-section .featured-products-rail .view-button,
    .featured-products-section .featured-products-rail .cart-button {
        min-height: 38px;
        border-radius: 9px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .featured-products-content .section-row-title a {
        display: none;
    }

    .featured-products-section .featured-products-rail {
        grid-auto-columns: clamp(164px, 47vw, 190px) !important;
        gap: 14px !important;
    }

    .featured-products-section .featured-products-rail .product-image-wrapper,
    .featured-products-section .featured-products-rail .product-image {
        min-height: 132px;
        height: 132px;
    }
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.market-product-card {
    --card-green: #2f7d46;
    --card-green-dark: #25683a;
    --card-green-light: #eaf5ed;
    --card-gold: #f5b51b;
    --card-text: #171b24;
    --card-muted: #68707d;
    --card-border: #e7e9ec;
    --card-background: #ffffff;

    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow:
        0 16px 34px rgba(24, 35, 28, 0.075),
        0 4px 12px rgba(24, 35, 28, 0.035);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.market-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 125, 70, 0.22);
    box-shadow:
        0 24px 48px rgba(24, 35, 28, 0.12),
        0 7px 18px rgba(24, 35, 28, 0.055);
}

/* =========================================================
   IMAGE AREA
   ========================================================= */

.market-product-card .product-image-wrapper {
    position: relative;
    min-height: 0;
    height: auto;
    margin: 10px 10px 0;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    background: #f1f2ed;
    border-radius: 14px;
}

.market-product-card .product-image {
    display: block;
    width: 100%;
    min-height: 0;
    height: 100%;
}

.market-product-card .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.55s ease;
}

.market-product-card:hover .product-image img {
    transform: scale(1.045);
}

/* =========================================================
   PRODUCT BADGE
   ========================================================= */

.market-product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    background: var(--card-green);
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(47, 125, 70, 0.24);
}

/* =========================================================
   WISHLIST BUTTON
   ========================================================= */

.market-product-card .product-floating-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.market-product-card .product-floating-actions form {
    margin: 0;
}

.market-product-card .wishlist-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #e35858;
    font-size: 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(20, 28, 23, 0.16);
    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.market-product-card .wishlist-button:hover {
    color: #c93f3f;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(20, 28, 23, 0.2);
}

.market-product-card .wishlist-button.is-active {
    color: #ffffff;
    background: #e35858;
}

.market-product-card .wishlist-button:focus-visible {
    outline: 3px solid rgba(47, 125, 70, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   QUICK VIEW
   ========================================================= */

.market-product-card .quick-view {
    position: absolute;
    right: 50%;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(58%, 150px);
    min-height: 34px;
    padding: 7px 14px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: rgba(24, 24, 24, 0.77);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transform: translateX(50%);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.market-product-card .quick-view:hover {
    background: rgba(18, 18, 18, 0.9);
    transform: translateX(50%) translateY(-2px);
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.market-product-card .product-content {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 14px 16px;
}

.market-product-card .product-category {
    display: block;
    margin-bottom: 5px;
    color: var(--card-green);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.market-product-card .product-title {
    margin: 0;
    color: var(--card-text);
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: 0;
}

.market-product-card .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.market-product-card .product-title a:hover {
    color: var(--card-green);
}

/* =========================================================
   FOOTER
   ========================================================= */

.market-product-card .product-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.market-product-card .product-price-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.market-product-card .price {
    display: block;
    color: var(--card-green);
    font-size: 1.28rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.market-product-card .product-rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--card-gold);
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0;
}

.market-product-card .product-rating small {
    margin-left: 4px;
    color: var(--card-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.market-product-card .product-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 8px;
    align-items: stretch;
}

.market-product-card .product-card-actions form {
    display: flex;
    min-width: 0;
    margin: 0;
}

.market-product-card .view-button,
.market-product-card .cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border-radius: 9px;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.market-product-card .view-button {
    color: var(--card-green);
    background: #ffffff;
    border: 2px solid var(--card-green);
}

.market-product-card .view-button:hover {
    color: #ffffff;
    background: var(--card-green);
    transform: translateY(-2px);
}

.market-product-card .cart-button {
    width: 100%;
    gap: 7px;
    color: #ffffff;
    cursor: pointer;
    background: var(--card-green);
    border: 2px solid var(--card-green);
    box-shadow: 0 8px 18px rgba(47, 125, 70, 0.18);
}

.market-product-card .cart-button:hover {
    background: var(--card-green-dark);
    border-color: var(--card-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(47, 125, 70, 0.25);
}

.market-product-card .cart-button i {
    font-size: 1rem;
}

.market-product-card .view-button i {
    font-size: 0.95rem;
}

.market-product-card .cart-button span,
.market-product-card .view-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-product-card .view-button:focus-visible,
.market-product-card .cart-button:focus-visible,
.market-product-card .quick-view:focus-visible,
.market-product-card .product-title a:focus-visible,
.market-product-card .product-image:focus-visible {
    outline: 3px solid rgba(47, 125, 70, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   PRODUCT GRID
   Apply this class to the parent holding multiple cards.
   ========================================================= */

.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.products-grid .market-product-card,
.product-grid .market-product-card {
    max-width: none;
    height: 100%;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 850px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (max-width: 1500px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 1250px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .market-product-card {
        border-radius: 16px;
        box-shadow:
            0 14px 32px rgba(24, 35, 28, 0.07),
            0 3px 10px rgba(24, 35, 28, 0.03);
    }

    .market-product-card .product-content {
        padding: 12px 12px 14px;
    }

    .market-product-card .product-card-footer {
        gap: 10px;
        margin-top: 12px;
    }

    .market-product-card .price {
        font-size: 1.08rem;
        font-weight: 650;
        line-height: 1.08;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .market-product-card {
        max-width: 100%;
        border-radius: 15px;
        box-shadow:
            0 12px 28px rgba(24, 35, 28, 0.07),
            0 2px 8px rgba(24, 35, 28, 0.03);
    }

    .market-product-card .product-image-wrapper {
        margin: 7px 7px 0;
        border-radius: 12px;
    }

    .market-product-card .product-content {
        padding: 10px 10px 12px;
    }

    .market-product-card .product-badge {
        min-height: 25px;
        padding: 6px 8px;
        font-size: 0.62rem;
    }

    .market-product-card .wishlist-button {
        width: 30px;
        height: 30px;
        font-size: 0.86rem;
    }

    .market-product-card .quick-view {
        display: none;
    }

    .market-product-card .product-category {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }

    .market-product-card .product-title {
        font-size: 0.86rem;
        line-height: 1.2;
    }

    .market-product-card .price {
        font-size: 0.95rem;
        font-weight: 650;
        letter-spacing: 0;
    }

    .market-product-card .product-rating {
        font-size: 0.64rem;
    }

    .market-product-card .product-rating small {
        font-size: 0.62rem;
        margin-left: 2px;
    }

    .market-product-card .product-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .market-product-card .view-button,
    .market-product-card .cart-button {
        min-height: 34px;
        padding: 8px 7px;
        font-size: 0.68rem;
        border-radius: 8px;
    }

    .market-product-card .cart-button i {
        font-size: 0.9rem;
    }

    .market-product-card .view-button i {
        font-size: 0.9rem;
    }

    .market-product-card .cart-button span,
    .market-product-card .view-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 390px) {
    .products-grid,
    .product-grid {
        gap: 10px;
    }

    .market-product-card .cart-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .market-product-card,
    .market-product-card *,
    .market-product-card *::before,
    .market-product-card *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Bootstrap icon cleanup */
.header-search button,
.mobile-search button,
.shop-search-form button,
.filter-drawer-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-search button::before,
.header-search button::after,
.mobile-search button::before,
.mobile-search button::after,
.shop-search-form button::before,
.shop-search-form button::after,
.filter-drawer-button::before,
.filter-drawer-head button::before,
.filter-drawer-head button::after,
.mobile-bottom-nav span::before,
.mobile-bottom-nav span::after {
    display: none !important;
    content: none !important;
}

.header-search button .bi,
.mobile-search button .bi,
.shop-search-form button .bi {
    display: block;
    color: #253343;
    font-size: 28px;
    line-height: 1;
}

.filter-drawer-button {
    justify-content: center;
}

.filter-drawer-button .bi {
    color: #15803d;
    font-size: 19px;
    line-height: 1;
}

.filter-drawer-button span {
    line-height: 1;
}

.filter-drawer-head button .bi {
    display: block;
    color: #102018;
    font-size: 22px;
    line-height: 1;
}

.cart-pill {
    gap: 10px;
}

.cart-pill .bi {
    color: currentColor;
    font-size: 21px;
    line-height: 1;
}

.cart-pill strong {
    font: inherit;
}

.mobile-bottom-nav a {
    gap: 5px;
}

.mobile-bottom-nav a > .bi {
    display: block;
    height: 26px;
    color: currentColor;
    font-size: 24px;
    line-height: 1;
}

.mobile-bottom-nav a.is-active > .bi {
    color: var(--primary-color);
}

/* Header cart alignment */
.premium-header .header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.premium-header .site-logo {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #102018;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.premium-header .site-logo img {
    width: 42px;
    max-width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: contain;
}

.premium-header .site-logo span {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    color: #102018;
    font-size: 20px;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.premium-header .cart-pill::before,
.premium-header .cart-pill::after {
    display: none !important;
    content: none !important;
}

.premium-header .cart-pill {
    position: relative;
    min-width: 118px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid #e2e8e3;
    border-radius: 14px;
    color: #172033;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.premium-header .cart-pill .bi {
    flex: 0 0 auto;
    font-size: 21px;
    line-height: 1;
}

.premium-header .cart-pill strong {
    display: inline-block;
    font: inherit;
    line-height: 1;
}

.premium-header .cart-pill span {
    position: static;
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 980px) {
    .premium-header .header-actions {
        gap: 8px;
    }

    .premium-header .site-logo {
        max-width: min(44vw, 210px);
        gap: 7px;
    }

    .premium-header .site-logo img {
        width: 32px;
        max-width: 32px;
        height: 32px;
    }

    .premium-header .site-logo span {
        max-width: 144px;
        font-size: 16px;
    }

    .premium-header .cart-pill {
        min-width: 56px;
        width: 56px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        border: 1px solid #e2e8e3;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
        font-size: 0;
    }

    .premium-header .cart-pill strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .premium-header .cart-pill .bi {
        font-size: 25px;
    }

    .premium-header .cart-pill span {
        position: absolute;
        top: -8px;
        right: -8px;
        min-width: 24px;
        height: 24px;
        border: 2px solid #ffffff;
        font-size: 12px;
    }
}

/* Mobile menu toggle and dropdown alignment */
.premium-header .nav-toggle .bi {
    display: block;
    line-height: 1;
}

.premium-header .nav-toggle-close {
    display: none !important;
}

.premium-header .nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none !important;
}

.premium-header .nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: block !important;
}

@media (max-width: 980px) {
    .premium-header .nav-toggle {
        position: relative;
        z-index: 101;
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        padding: 0;
        border: 1px solid #e2e8e3;
        border-radius: 14px;
        color: #172033;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    }

    .premium-header .nav-toggle .bi {
        color: currentColor;
        font-size: 27px;
    }

    .premium-header .nav-toggle[aria-expanded="true"] {
        color: #ffffff;
        border-color: var(--primary-color);
        background: var(--primary-color);
        box-shadow: 0 16px 34px rgba(21, 128, 61, 0.22);
    }

    .premium-header .site-nav {
        top: 92px;
        left: 50%;
        right: auto;
        z-index: 100;
        width: min(calc(100vw - 44px), 760px);
        padding: 14px;
        border: 1px solid #e2e8e3;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
        transform: translateX(-50%);
    }

    .premium-header .site-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .premium-header .site-nav li {
        min-width: 0;
    }

    .premium-header .site-nav a {
        min-height: 58px;
        width: 100%;
        justify-content: center;
        padding: 0 14px;
        border: 1px solid #edf2ee;
        border-radius: 14px;
        color: #172033;
        background: #fbfdfb;
        font-size: 15px;
        font-weight: 900;
        text-align: center;
        box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
    }

    .premium-header .site-nav li.is-active a,
    .premium-header .site-nav a:hover {
        color: #ffffff;
        border-color: var(--primary-color);
        background: var(--primary-color);
    }
}

@media (max-width: 420px) {
    .premium-header .site-nav {
        width: min(calc(100vw - 28px), 420px);
        padding: 12px;
        border-radius: 18px;
    }

    .premium-header .site-nav ul {
        gap: 8px;
    }

    .premium-header .site-nav a {
        min-height: 54px;
        padding: 0 10px;
        font-size: 14px;
    }
}

/* Professional topbar dropdown */
.mobile-menu-assist {
    display: none;
}

body.mobile-nav-is-open {
    overflow-x: hidden;
}

@media (max-width: 980px) {
    .premium-header {
        z-index: 80;
    }

    .premium-header .nav-toggle {
        transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    }

    .premium-header .nav-toggle:active {
        transform: scale(0.96);
    }

    .premium-header .site-nav {
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        z-index: 120;
        width: auto;
        max-height: min(70vh, 560px);
        display: block;
        overflow-y: auto;
        padding: 14px;
        border: 1px solid rgba(216, 227, 218, 0.96);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow:
            0 28px 70px rgba(15, 23, 42, 0.16),
            0 6px 18px rgba(15, 23, 42, 0.06);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transform-origin: top center;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .premium-header .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .premium-header .site-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .premium-header .site-nav a {
        min-height: 54px;
        justify-content: center;
        border-radius: 14px;
    }

    .premium-header .site-nav li.is-active a {
        color: #ffffff;
        border-color: var(--primary-color);
        background: var(--primary-color);
        box-shadow: 0 12px 24px rgba(21, 128, 61, 0.18);
    }

    .mobile-menu-assist {
        display: grid;
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #edf2ee;
    }

    .mobile-menu-payments {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 12px;
        border: 1px solid #edf2ee;
        border-radius: 16px;
        background: #fbfdfb;
    }

    .mobile-menu-payments span {
        flex: 1 0 100%;
        color: #64756b;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .mobile-menu-payments strong {
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        border: 1px solid #dfe9e1;
        border-radius: 999px;
        padding: 0 12px;
        color: #0e2518;
        background: #ffffff;
        font-size: 12px;
        font-weight: 900;
    }

    .mobile-menu-service-grid {
        display: grid;
        gap: 10px;
    }

    .mobile-menu-service-grid a {
        min-height: 72px;
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr);
        justify-content: stretch !important;
        align-items: center;
        gap: 12px;
        padding: 12px;
        text-align: left !important;
    }

    .mobile-menu-service-grid i {
        width: 42px;
        height: 42px;
        display: inline-grid;
        place-items: center;
        border-radius: 14px;
        color: var(--primary-color);
        background: #eaf7ee;
        font-size: 19px;
    }

    .mobile-menu-service-grid strong,
    .mobile-menu-service-grid small {
        display: block;
    }

    .mobile-menu-service-grid strong {
        color: #0f1d15;
        font-size: 14px;
        line-height: 1.2;
    }

    .mobile-menu-service-grid small {
        margin-top: 4px;
        color: #66776c;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 700;
    }
}

@media (max-width: 430px) {
    .premium-header .site-nav {
        left: 12px;
        right: 12px;
        padding: 12px;
        border-radius: 20px;
    }

    .premium-header .site-nav ul {
        gap: 8px;
    }

    .premium-header .site-nav a {
        min-height: 50px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* Checkout full-page flow */
.checkout-page {
    padding: 42px 0 92px;
    background:
        radial-gradient(circle at 82% 0%, rgba(21, 128, 61, 0.08), transparent 26%),
        linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
}

.checkout-header {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.checkout-header h1 {
    max-width: 760px;
    margin: 8px 0 10px;
    color: #0d1b13;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.checkout-header p {
    max-width: 720px;
    margin: 0;
    color: #627267;
    font-size: 17px;
    line-height: 1.65;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-steps a,
.checkout-steps span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #dfe8e2;
    border-radius: 999px;
    color: #26372c;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.checkout-steps .is-active {
    color: #ffffff;
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.18);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: start;
    gap: 24px;
}

.checkout-form-panel,
.checkout-summary-panel,
.checkout-panel {
    min-width: 0;
}

.checkout-form-panel {
    display: grid;
    gap: 18px;
}

.checkout-panel,
.checkout-summary-panel {
    border: 1px solid rgba(203, 215, 205, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 70px rgba(16, 36, 24, 0.08);
}

.checkout-panel {
    padding: clamp(20px, 3vw, 30px);
}

.checkout-summary-panel {
    position: sticky;
    top: 110px;
    padding: 24px;
}

.checkout-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.checkout-panel-heading > span {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #15803d, #0f6b36);
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.18);
}

.checkout-panel-heading .bi {
    font-size: 20px;
    line-height: 1;
}

.checkout-panel-heading h2 {
    margin: 0;
    color: #102018;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
}

.checkout-panel-heading p {
    margin: 5px 0 0;
    color: #66776c;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-form-panel label {
    display: grid;
    gap: 8px;
    color: #1b2c21;
    font-size: 13px;
    font-weight: 900;
}

.checkout-form-panel input,
.checkout-form-panel textarea,
.checkout-form-panel select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8e3da;
    border-radius: 12px;
    padding: 0 15px;
    color: #12251a;
    background: #fbfdfb;
    font: inherit;
    font-weight: 700;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.checkout-form-panel textarea {
    min-height: 112px;
    padding-top: 14px;
    resize: vertical;
}

.checkout-address-field {
    margin-top: 14px;
}

.checkout-region-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #cce7d5;
    border-radius: 14px;
    color: #0f5d31;
    background: #eef8f1;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.checkout-region-note .bi {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary-color);
    background: #ffffff;
    font-size: 16px;
}

.checkout-form-panel input:focus,
.checkout-form-panel textarea:focus,
.checkout-form-panel select:focus {
    border-color: rgba(21, 128, 61, 0.48);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.08);
}

.checkout-payment-options {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-payment-options legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.checkout-payment-options label {
    position: relative;
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #d8e3da;
    border-radius: 16px;
    background: #fbfdfb;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.checkout-payment-options label:hover,
.checkout-payment-options label:has(input:checked) {
    border-color: rgba(21, 128, 61, 0.48);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(21, 128, 61, 0.1);
}

.checkout-payment-options label:has(input:checked) {
    transform: translateY(-1px);
}

.checkout-payment-options input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.payment-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #0f6b36;
    background: #eaf7ee;
}

.payment-icon .bi {
    font-size: 21px;
}

.checkout-payment-options strong,
.checkout-payment-options small {
    display: block;
}

.checkout-payment-options strong {
    color: #13251a;
    font-size: 15px;
}

.checkout-payment-options small {
    margin-top: 4px;
    color: #66776c;
    font-size: 12px;
    line-height: 1.35;
}

.checkout-payment-options em {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #0f6b36;
    background: #eaf7ee;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.checkout-submit-button {
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #15803d, #0f6b36);
    box-shadow: 0 18px 38px rgba(21, 128, 61, 0.24);
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.checkout-summary-items {
    display: grid;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2ee;
}

.checkout-summary-item img {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
    background: #edf5ed;
}

.checkout-summary-item strong,
.checkout-summary-item span {
    display: block;
}

.checkout-summary-item strong {
    color: #13251a;
    font-size: 14px;
    line-height: 1.25;
}

.checkout-summary-item span {
    margin-top: 4px;
    color: #718074;
    font-size: 12px;
    font-weight: 800;
}

.checkout-summary-item b {
    color: #102018;
    font-size: 13px;
    white-space: nowrap;
}

.checkout-totals {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2ebe4;
}

.checkout-totals div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkout-totals span {
    color: #66776c;
    font-weight: 800;
}

.checkout-totals strong {
    color: #102018;
    font-weight: 900;
}

.checkout-totals .is-grand {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2ebe4;
}

.checkout-totals .is-grand strong {
    color: var(--primary-color);
    font-size: 28px;
}

.checkout-payment-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    color: #24402c;
    background: #eef8f0;
}

.checkout-payment-note .bi {
    margin-top: 2px;
    color: var(--primary-color);
}

.checkout-payment-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-back-cart {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    border: 1px solid #d8e3da;
    border-radius: 14px;
    color: #172033;
    background: #ffffff;
    font-weight: 900;
}

.wishlist-card-grid {
    width: 100%;
}

.commerce-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.commerce-icon .bi {
    color: var(--primary-color);
    font-size: 30px;
}

@media (max-width: 1080px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .checkout-page {
        padding: 30px 0 112px;
    }

    .checkout-form-grid,
    .checkout-payment-options label {
        grid-template-columns: 1fr;
    }

    .checkout-payment-options label {
        align-items: start;
    }

    .checkout-payment-options input {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .checkout-summary-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .checkout-summary-item b {
        grid-column: 2;
    }
}

/* Shop spacing alignment polish */
.market-shop {
    padding-top: 18px;
}

.market-shop-header {
    grid-template-columns: minmax(260px, .72fr) minmax(360px, 780px);
    align-items: center;
    margin-bottom: 14px;
}

.market-shop-header h4 {
    margin: 14px 0 0;
    color: #08111f;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: 0;
}

.market-shop-header .premium-kicker {
    margin: 0;
}

.market-shop .shop-search-form {
    align-self: center;
    min-height: 58px;
    margin-top: 0;
}

.market-shop .shop-toolbar {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
    margin-bottom: 14px;
}

.market-shop .shop-sort-form {
    grid-column: 1;
}

.market-shop .filter-drawer-button {
    grid-column: 3;
}

.market-shop .filter-drawer-button::before {
    display: none;
}

.market-shop .products-grid {
    margin-top: 0;
}

.market-shop .market-product-card .product-image-wrapper {
    margin: 8px 8px 0;
    border-radius: 14px;
}

@media (max-width: 1080px) {
    .market-shop {
        padding-top: 22px;
    }

    .market-shop-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .market-shop-header h4,
    .market-shop-header .premium-kicker,
    .market-shop .shop-search-form {
        margin-top: 0;
    }

    .market-shop .shop-toolbar {
        grid-template-columns: 1fr auto;
        gap: 12px;
        margin-bottom: 16px;
    }

    .market-shop .shop-sort-form {
        grid-column: 1;
    }

    .market-shop .filter-drawer-button {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    .market-shop {
        padding-top: 16px;
        padding-bottom: 72px;
    }

    .market-shop-header {
        gap: 14px;
        margin-bottom: 14px;
    }

    .market-shop-header h4 {
        font-size: 21px;
    }

    .market-shop .shop-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 34%);
        align-items: center;
        gap: 10px;
    }

    .market-shop .shop-sort-form {
        grid-column: 1;
        min-width: 0;
    }

    .market-shop .filter-drawer-button {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        gap: 7px;
        padding: 0 10px;
        font-size: 14px;
    }

    .market-shop .shop-sort-form label {
        width: 100%;
        min-height: 52px;
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: initial;
        padding: 0 12px;
        font-size: 13px;
    }

    .market-shop .shop-sort-form select {
        min-width: 0;
        width: 100%;
        font-size: 13px;
        text-overflow: ellipsis;
    }

    .market-shop .market-product-card .product-image-wrapper {
        margin: 8px 8px 0;
    }
}

/* Customer account access */
.premium-header .customer-menu {
    position: relative;
}

.premium-header .customer-menu summary {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 7px;
    border: 1px solid rgba(209, 222, 212, 0.95);
    border-radius: 16px;
    color: #102018;
    background: #fff;
    box-shadow: 0 16px 42px rgba(16, 36, 24, 0.08);
    cursor: pointer;
    list-style: none;
}

.premium-header .customer-menu summary::-webkit-details-marker {
    display: none;
}

.customer-menu-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #15803d, #0a6a35);
    font-size: 15px;
    font-weight: 900;
}

.customer-menu-label {
    min-width: 0;
    display: grid;
    line-height: 1.1;
}

.customer-menu-label small {
    color: #718074;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-menu-label strong {
    color: #102018;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-header .customer-menu[open] summary {
    border-color: rgba(21, 128, 61, 0.34);
    box-shadow: 0 18px 52px rgba(21, 128, 61, 0.14);
}

.premium-header .customer-menu summary .bi-chevron-down {
    color: #64736a;
    transition: transform 160ms ease;
}

.premium-header .customer-menu[open] summary .bi-chevron-down {
    transform: rotate(180deg);
}

.customer-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 140;
    width: 260px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(209, 222, 212, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(16, 36, 24, 0.18);
}

.customer-menu-panel p {
    margin: 0 0 4px;
    padding: 0 6px;
    color: #718074;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-menu-panel a,
.customer-menu-panel button {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    color: #14241a;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.customer-menu-panel a:hover,
.customer-menu-panel button:hover {
    color: #0f6b36;
    background: #edf8f0;
}

.customer-menu-panel .bi {
    color: #15803d;
    font-size: 17px;
}

.customer-menu-panel .header-logout-form {
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px solid #edf2ee;
}

.auth-access-list {
    max-width: 620px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(209, 222, 212, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 58px rgba(16, 36, 24, 0.07);
}

.auth-access-list h2 {
    margin: 0 0 12px;
    color: #102018;
    font-size: 15px;
    font-weight: 900;
}

.auth-access-list div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.auth-access-list span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    color: #123421;
    background: #f4faf5;
    font-size: 12px;
    font-weight: 900;
}

.auth-access-list .bi {
    color: #15803d;
}

@media (max-width: 1180px) {
    .premium-header .customer-menu-label {
        display: none;
    }

    .premium-header .customer-menu summary {
        grid-template-columns: auto auto;
        min-width: 58px;
    }
}

@media (max-width: 760px) {
    .premium-header .auth-text-link,
    .premium-header .customer-menu {
        display: none;
    }

    .auth-access-list {
        padding: 15px;
    }
}
