:root {
    --green: #4a7c59;
    --green-d: #3d6b4a;
    --green-l: #e8f0e8;
    --red: #e63946;
    --ink: #1c1c1c;
    --ink-2: #424242;
    --muted: #757575;
    --muted-2: #9e9e9e;
    --line: #e5e5e5;
    --line-2: #d0d0d0;
    --bg: #ffffff;
    --bg-soft: #f8f8f6;
    --bg-warm: #faf8f3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

/* Utility */
.utility {
    background: #2a2a2a;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    padding: 8px 0;
}

.utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.utility-right svg {
    width: 14px;
    height: 14px;
    color: #8eb89a;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.utility-left a {
    transition: color .15s;
}

.utility-left a:hover {
    color: #fff;
}

.utility-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .15);
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-fa {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}

.logo-en {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .08em;
    direction: ltr;
}

.search-form {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-form input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--bg-soft);
    font-size: 13px;
    transition: .15s;
}

.search-form input::placeholder {
    color: var(--muted-2);
}

.search-form input:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
}

.search-form button {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 40px;
    border: none;
    background: var(--green);
    color: #fff;
    border-radius: 6px;
    display: grid;
    place-items: center;
    transition: .15s;
}

.search-form button:hover {
    background: var(--green-d);
}

.search-form button svg {
    width: 17px;
    height: 17px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    transition: .15s;
    white-space: nowrap;
}

.action-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.action-btn.cart {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.action-btn.cart:hover {
    background: var(--green-d);
    border-color: var(--green-d);
    color: #fff;
}

.action-btn.cart .count {
    background: rgba(255, 255, 255, .22);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    direction: ltr;
}

/* Nav */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
}

.cat-menu {
    position: relative;
}

.cat-menu>summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid transparent;
    transition: .15s;
}

.cat-menu>summary::-webkit-details-marker {
    display: none;
}

.cat-menu>summary::marker {
    content: "";
}

.cat-menu>summary:hover,
.cat-menu[open]>summary {
    color: var(--green);
    border-bottom-color: var(--green);
}

.cat-menu>summary svg {
    width: 16px;
    height: 16px;
}

.cat-menu>summary .chev {
    width: 12px;
    height: 12px;
    color: var(--muted);
    transition: transform .2s;
}

.cat-menu[open]>summary .chev {
    transform: rotate(180deg);
}

.cat-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    padding: 6px;
    z-index: 50;
}

.cat-panel a {
    display: block;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--ink-2);
    border-radius: 6px;
    transition: .12s;
}

.cat-panel a:hover {
    background: var(--green-l);
    color: var(--green-d);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-links a {
    display: block;
    padding: 0 14px;
    height: 52px;
    line-height: 52px;
    font-size: 13.5px;
    color: var(--ink-2);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: .15s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

.nav-links a.hot {
    color: var(--red);
    font-weight: 700;
}

.nav-links a.hot:hover {
    border-bottom-color: var(--red);
}

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    transition: color .15s;
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb svg {
    width: 12px;
    height: 12px;
    opacity: .5;
    flex-shrink: 0;
}

.breadcrumb .current {
    color: var(--ink-2);
    font-weight: 500;
}

/* Product main */
.product-main {
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
}

/* Gallery */
.gallery {
    position: relative;
    position: sticky;
    top: 80px;
}

.gallery>input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-warm);
    border: 1px solid var(--line);
}

.gallery-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#g1:checked~.gallery-main .img1,
#g2:checked~.gallery-main .img2,
#g3:checked~.gallery-main .img3,
#g4:checked~.gallery-main .img4,
#g5:checked~.gallery-main .img5 {
    opacity: 1;
    z-index: 2;
}

.gallery-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    direction: ltr;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.g-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-warm);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .65;
    transition: .15s;
    box-shadow: 0 0 0 1px var(--line);
}

.g-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g-thumb:hover {
    opacity: 1;
}

#g1:checked~.gallery-thumbs .g-thumb1,
#g2:checked~.gallery-thumbs .g-thumb2,
#g3:checked~.gallery-thumbs .g-thumb3,
#g4:checked~.gallery-thumbs .g-thumb4,
#g5:checked~.gallery-thumbs .g-thumb5 {
    opacity: 1;
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

/* Info */
.product-category {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating svg {
    width: 13px;
    height: 13px;
    color: #f5b400;
}

.product-rating b {
    color: var(--ink);
    font-weight: 700;
}

.meta-dot {
    width: 3px;
    height: 3px;
    background: var(--muted-2);
    border-radius: 50%;
}

.product-desc {
    font-size: 14px;
    line-height: 2;
    color: var(--ink-2);
    margin-bottom: 24px;
}

/* Variant */
.variants {
    margin-bottom: 24px;
}

.variants>input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.variant-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.variant-label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.variant-label small {
    font-size: 12px;
    color: var(--muted);
}

.variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
}

.variant-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

#v1:checked~.variant-options label[for="v1"],
#v2:checked~.variant-options label[for="v2"],
#v3:checked~.variant-options label[for="v3"] {
    background: var(--green);
    border-color: var(--green);
    color: white;
    font-weight: 600;
}

/* Price box */
.price-box {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.price-now {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    direction: ltr;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.price-now small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.price-old {
    font-size: 14px;
    color: var(--muted-2);
    text-decoration: line-through;
    direction: ltr;
}

.price-save {
    display: inline-block;
    background: #fff0f0;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Buy row */
.buy-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.buy-row {
    display: flex;
    gap: 10px;
}

.qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-wrap button {
    width: 40px;
    height: 46px;
    border: none;
    background: #fff;
    color: var(--ink-2);
    font-size: 18px;
    font-weight: 600;
    transition: .15s;
    display: grid;
    place-items: center;
}

.qty-wrap button:hover {
    background: var(--bg-soft);
    color: var(--green);
}

.qty-wrap input {
    width: 44px;
    height: 46px;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-wrap input::-webkit-inner-spin-button,
.qty-wrap input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .15s;
}

.btn-add:hover {
    background: var(--green-d);
}

.btn-add svg {
    width: 18px;
    height: 18px;
}

.btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--green);
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    transition: .15s;
}

.btn-buy-now:hover {
    background: var(--green-l);
}

/* Trust mini */
.trust-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.trust-mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 500;
}

.trust-mini-item svg {
    width: 16px;
    height: 16px;
    color: var(--green);
    flex-shrink: 0;
}

/* Tabs */
.product-tabs-section {
    padding: 40px 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.product-tabs {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.product-tabs>input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-headers::-webkit-scrollbar {
    display: none;
}

.tab-headers label {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: .15s;
    white-space: nowrap;
    margin-bottom: -1px;
    user-select: none;
}

.tab-headers label:hover {
    color: var(--ink);
}

#pt1:checked~.tab-headers label[for="pt1"],
#pt2:checked~.tab-headers label[for="pt2"],
#pt3:checked~.tab-headers label[for="pt3"],
#pt4:checked~.tab-headers label[for="pt4"] {
    color: var(--green);
    border-bottom-color: var(--green);
    font-weight: 700;
}

.tab-content {
    padding: 28px 24px;
}

.tab-panel {
    display: none;
    font-size: 14px;
    line-height: 2.05;
    color: var(--ink-2);
}

#pt1:checked~.tab-content .panel1,
#pt2:checked~.tab-content .panel2,
#pt3:checked~.tab-content .panel3,
#pt4:checked~.tab-content .panel4 {
    display: block;
}

.tab-panel h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    margin-top: 20px;
}

.tab-panel h3:first-child {
    margin-top: 0;
}

.tab-panel ul {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tab-panel ul li {
    position: relative;
    padding-right: 14px;
}

.tab-panel ul li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
}

.tab-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 13.5px;
}

.tab-panel table th,
.tab-panel table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--line);
}

.tab-panel table th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--ink);
    width: 200px;
    font-size: 13px;
}

/* Reviews in tab */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.review-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-l);
    color: var(--green);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
}

.review-author-name b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.review-author-name span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars svg {
    width: 13px;
    height: 13px;
    color: #f5b400;
}

.review-item p {
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--ink-2);
}

/* Related products */
.related-section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--green);
    border-radius: 2px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color .15s;
}

.section-link:hover {
    color: var(--green);
}

.section-link svg {
    width: 14px;
    height: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .18s;
}

.product-card:hover {
    border-color: var(--line-2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.product-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-warm);
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card-cat {
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
}

.product-card-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-card-price {
    margin-top: auto;
    padding-top: 10px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 4px;
    direction: ltr;
    justify-content: flex-end;
}

.product-card-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.product-card-add {
    margin-top: 10px;
    height: 36px;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: #fff;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
}

.product-card-add:hover {
    background: var(--green);
    color: #fff;
}

/* Footer */
.footer {
    background: #222222;
    color: rgba(255, 255, 255, .65);
    padding: 48px 0 0;
    font-size: 12.5px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-about .logo {
    margin-bottom: 14px;
}

.footer-about .logo-fa {
    color: #fff;
}

.footer-about .logo-en {
    color: rgba(255, 255, 255, .5);
}

.footer-about p {
    font-size: 12px;
    line-height: 2;
    color: rgba(255, 255, 255, .5);
    max-width: 260px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
    line-height: 2.1;
    transition: color .15s;
}

.footer-col a:hover {
    color: #8eb89a;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .4);
}

.footer-bottom .heart {
    color: #e63946;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-inner {
        gap: 20px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gallery {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        width: calc(100% - 24px);
    }

    .utility-inner {
        justify-content: center;
    }

    .utility-left {
        display: none;
    }

    .header {
        padding: 12px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-right: auto;
    }

    .search-form {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .action-btn {
        padding: 0 12px;
        font-size: 12px;
    }

    .action-btn .label {
        display: none;
    }

    .action-btn.cart {
        padding: 0 14px;
    }

    .action-btn.cart .label {
        display: inline;
    }

    .nav-inner {
        overflow-x: auto;
    }

    .nav-links a {
        padding: 0 12px;
        font-size: 12.5px;
    }

    .product-main {
        padding: 24px 0;
    }

    .product-title {
        font-size: 20px;
    }

    .product-desc {
        font-size: 13px;
    }

    .price-now {
        font-size: 20px;
    }

    .tab-headers label {
        padding: 14px 18px;
        font-size: 13px;
    }

    .tab-content {
        padding: 22px 18px;
    }

    .trust-mini {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-name {
        font-size: 12.5px;
        min-height: 38px;
    }

    .product-card-price {
        font-size: 14px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .logo-fa {
        font-size: 14px;
    }

    .logo-en {
        font-size: 9px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .search-form input {
        height: 42px;
    }

    .action-btn {
        height: 42px;
    }

    .buy-row {
        flex-wrap: wrap;
    }

    .qty-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .btn-add {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-info {
        padding: 10px 10px 12px;
    }

    .product-card-name {
        font-size: 12px;
    }

    .product-card-price {
        font-size: 13px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {

    /* Navigation and categories */
    .nav {
        position: sticky;
        top: 0;
        z-index: 100;
        overflow: visible;
    }

    .nav-inner {
        height: auto;
        min-height: 48px;
        overflow: visible;
        gap: 0;
    }

    .cat-menu {
        position: static;
        flex-shrink: 0;
    }

    .cat-menu>summary {
        height: 48px;
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .cat-panel {
        position: absolute;
        top: 100%;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
        z-index: 101;
    }

    .cat-panel a {
        padding: 12px;
        font-size: 14px;
    }

    .nav-links {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        height: 48px;
        line-height: 48px;
        padding: 0 10px;
        font-size: 12px;
    }

    /* Compact footer */
    .footer {
        padding-top: 28px;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
        padding-bottom: 24px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-about .logo {
        margin-bottom: 8px;
    }

    .footer-about p {
        font-size: 12px;
        line-height: 1.8;
        max-width: 100%;
    }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .footer-col a,
    .footer-col span {
        font-size: 12px;
        line-height: 2;
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        padding: 14px 0;
        gap: 8px;
        font-size: 10px;
    }
}

/* Extra-small screens */
@media (max-width: 380px) {
    .cat-menu>summary {
        gap: 5px;
        padding: 0 6px;
        font-size: 12px;
    }

    .nav-links a {
        padding: 0 8px;
        font-size: 11px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Dynamic Razor storefront state */
.store-message {
    margin: 14px 0;
    padding: 12px 16px;
    border: 1px solid #ead7a5;
    border-radius: 10px;
    background: #fff9e9;
    color: #72551b;
}

.empty-cart,
.empty-state {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: 16px;
}

.empty-cart h2,
.empty-state strong {
    display: block;
    margin: 10px 0;
    font-size: 20px;
}

.empty-cart p,
.empty-state span {
    color: var(--muted, #757575);
    display: block;
    margin: 8px auto 18px;
    max-width: 520px;
}

.qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-form .qty-input {
    width: 70px;
    text-align: center;
    border: 1px solid var(--line, #ddd);
    border-radius: 8px;
    padding: 7px;
}

.checkout-note {
    color: var(--muted, #757575);
    font-size: 12px;
    line-height: 1.9;
    margin: 12px 0;
}

.btn-checkout:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line, #ddd);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.sort-inline {
    display: inline-flex;
}


/* Product detail refresh: responsive gallery, usable details tabs and stock-aware controls */
.product-page {
    --product-green: #4a7c59;
    --product-green-dark: #3d6b4a;
    --product-green-soft: #e8f0e8;
    color: var(--ink, #1c1c1c);
}

.product-page .product-main {
    padding-block: clamp(24px, 4vw, 48px);
}

.product-page .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.product-page .gallery {
    position: relative;
    top: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.product-page .gallery-main {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 340px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: 16px;
    background: #f8f8f6;
}

.product-page .gallery-main>img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    padding: clamp(12px, 2vw, 28px);
    object-fit: contain;
    object-position: center;
}

.product-page .gallery-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.product-page .gallery-thumbs .g-thumb {
    display: block;
    width: clamp(58px, 10vw, 84px);
    height: clamp(58px, 10vw, 84px);
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f6;
    opacity: .72;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--line, #e5e5e5);
    transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.product-page .gallery-thumbs .g-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.product-page .gallery-thumbs .g-thumb.is-active {
    opacity: 1;
    border-color: var(--product-green);
    box-shadow: 0 0 0 1px var(--product-green);
}

.product-page .gallery-thumbs .g-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-page .product-info {
    min-width: 0;
}

.product-page .product-title {
    overflow-wrap: anywhere;
    margin-bottom: 14px;
}

.product-page .product-meta {
    gap: 10px 14px;
    font-size: 12px;
}

.product-page .stock-status {
    font-weight: 700;
}

.product-page .stock-status.is-available {
    color: var(--product-green-dark);
}

.product-page .stock-status.is-unavailable,
.product-page .quantity-hint.is-unavailable {
    color: #b42318;
}

.product-page .quick-specs {
    padding: 18px;
    margin: 0 0 22px;
    border: 1px solid #e1e9e2;
    border-radius: 14px;
    background: #fbfcfb;
}

.product-page .quick-specs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.product-page .quick-specs-head h2 {
    margin: 0;
    color: var(--ink, #1c1c1c);
    font-size: 14px;
    font-weight: 800;
}

.product-page .text-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--product-green-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-page .text-link:hover {
    text-decoration: underline;
}

.product-page .quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.product-page .quick-spec-item {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f0f5f1;
}

.product-page .quick-spec-item dt {
    margin: 0 0 4px;
    color: #78847b;
    font-size: 11px;
}

.product-page .quick-spec-item dd {
    margin: 0;
    color: #263b2d;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.product-page .quick-specs-empty,
.product-page .panel-empty {
    margin: 0;
    color: var(--muted, #757575);
    font-size: 13px;
}

.product-page .price-box {
    margin-bottom: 14px;
}

.product-page .carted-stock-note {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #eef5ef;
    color: #315d3e;
    font-size: 12px;
}

.product-page .buy-form {
    gap: 8px;
    margin-bottom: 18px;
}

.product-page .buy-row {
    display: grid;
    grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
}

.product-page .qty-wrap {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    border: 1px solid var(--line-2, #d0d0d0);
    border-radius: 10px;
    background: #fff;
}

.product-page .qty-wrap button {
    width: 100%;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--product-green-dark);
    font-size: 22px;
    font-weight: 700;
}

.product-page .qty-wrap button:disabled {
    color: #aab4ac;
    cursor: not-allowed;
    opacity: .55;
}

.product-page .qty-wrap input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 4px;
    border: 0;
    border-inline: 1px solid var(--line, #e5e5e5);
    border-radius: 0;
    background: #fff;
    color: var(--ink, #1c1c1c);
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    direction: ltr;
    -moz-appearance: textfield;
}

.product-page .qty-wrap input::-webkit-inner-spin-button,
.product-page .qty-wrap input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-page .btn-add {
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--product-green);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.product-page .btn-add:hover:not(:disabled) {
    background: var(--product-green-dark);
}

.product-page .btn-add:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.product-page .quantity-hint {
    color: var(--muted, #757575);
    font-size: 11px;
}

.product-page .btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--product-green);
    border-radius: 10px;
    color: var(--product-green-dark);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease;
}

.product-page .btn-buy-now:hover {
    background: var(--product-green-soft);
}

.product-page .product-tabs-section {
    padding: clamp(24px, 4vw, 44px) 0;
    background: var(--bg-soft, #f8f8f6);
}

.product-page .product-tabs {
    overflow: hidden;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: 16px;
    background: #fff;
}

.product-page .product-tabs-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line, #e5e5e5);
    scrollbar-width: none;
}

.product-page .product-tabs-nav::-webkit-scrollbar {
    display: none;
}

.product-page .product-tab-button {
    position: relative;
    flex: 1 0 auto;
    min-width: 112px;
    min-height: 58px;
    padding: 12px 20px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: #fff;
    color: #737d75;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.product-page .product-tab-button:hover {
    color: var(--product-green-dark);
    background: #fbfcfb;
}

.product-page .product-tab-button.is-active {
    color: var(--product-green-dark);
    border-bottom-color: var(--product-green);
    background: #f7faf7;
}

.product-page .product-tabs-content {
    padding: clamp(18px, 3vw, 30px);
}

.product-page .tab-panel:not([hidden]) {
    display: block !important;
}

.product-page .tab-panel[hidden] {
    display: none !important;
}

.product-page .tab-panel h2 {
    margin: 0 0 18px;
    color: var(--ink, #1c1c1c);
    font-size: 17px;
    font-weight: 800;
}

.product-page .description-body {
    margin: 0;
    color: var(--ink-2, #424242);
    font-size: 14px;
    line-height: 2.15;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-page .specifications-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.product-page .specifications-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.product-page .specifications-table th,
.product-page .specifications-table td {
    width: 50%;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line, #e5e5e5);
    text-align: right;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.product-page .specifications-table tr:last-child th,
.product-page .specifications-table tr:last-child td {
    border-bottom: 0;
}

.product-page .specifications-table th {
    color: #59665d;
    background: #f7faf7;
    font-weight: 700;
}

.product-page .specifications-table td {
    color: var(--ink-2, #424242);
}

.product-page .comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.product-page .comments-heading h2 {
    margin-bottom: 4px;
}

.product-page .comments-heading p {
    margin: 0;
    color: var(--muted, #757575);
    font-size: 12px;
}

.product-page .reviews-list {
    display: grid;
    gap: 0;
}

.product-page .review-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line, #e5e5e5);
}

.product-page .review-item:first-child {
    padding-top: 0;
}

.product-page .review-item:last-child {
    border-bottom: 0;
}

.product-page .review-head {
    margin-bottom: 10px;
}

.product-page .review-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: var(--product-green-soft);
    color: var(--product-green-dark);
}

.product-page .review-author-name b {
    color: var(--ink, #1c1c1c);
}

.product-page .review-author-name time {
    display: block;
    margin-top: 3px;
    color: var(--muted, #757575);
    font-size: 11px;
}

.product-page .review-text {
    margin: 0;
    color: var(--ink-2, #424242);
    font-size: 13px;
    line-height: 2;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-page .comments-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 30px 18px;
    border: 1px dashed #d8e2d9;
    border-radius: 12px;
    background: #fbfcfb;
    text-align: center;
}

.product-page .comments-empty-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--product-green-soft);
    color: var(--product-green-dark);
    font-size: 20px;
}

.product-page .comments-empty strong {
    color: var(--ink, #1c1c1c);
    font-size: 14px;
}

.product-page .comments-empty p {
    margin: 0;
    color: var(--muted, #757575);
    font-size: 12px;
}

.product-page .comment-compose {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e1e9e2;
    border-radius: 12px;
    background: #fbfcfb;
}

.product-page .comment-compose h3 {
    margin: 0 0 14px;
    color: var(--ink, #1c1c1c);
    font-size: 15px;
    font-weight: 800;
}

.product-page .comment-form {
    display: grid;
    gap: 10px;
    margin: 0;
}

.product-page .comment-form label {
    color: #536157;
    font-size: 12px;
    font-weight: 700;
}

.product-page .comment-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid #dce5dd;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    padding: 13px 14px;
    color: var(--ink, #1c1c1c);
    font: inherit;
    font-size: 13px;
    line-height: 1.9;
}

.product-page .comment-form textarea:focus {
    border-color: var(--product-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, .1);
}

.product-page .comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.product-page .comment-form-footer small {
    color: var(--muted, #757575);
    font-size: 11px;
}

.product-page .comment-form-footer .btn-add {
    min-width: 140px;
}

.product-page .comment-login-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.product-page .comment-login-prompt strong {
    color: var(--ink, #1c1c1c);
    font-size: 13px;
}

.product-page .comment-login-prompt p {
    margin: 5px 0 0;
    color: var(--muted, #757575);
    font-size: 12px;
}

.product-page .comment-login-prompt .btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    text-decoration: none;
}

.product-page .related-section {
    padding-block: clamp(28px, 4vw, 48px);
}

@media (max-width: 1024px) {
    .product-page .product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .product-page .gallery {
        width: min(100%, 680px);
        margin-inline: auto;
    }

    .product-page .gallery-main,
    .product-page .gallery-main>img {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .product-page .product-main {
        padding-block: 20px 28px;
    }

    .product-page .gallery {
        width: 100%;
        max-width: none;
    }

    .product-page .gallery-main {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-radius: 14px;
    }

    .product-page .gallery-main>img {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 10px;
        object-fit: contain;
    }

    .product-page .gallery-thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .product-page .gallery-thumbs .g-thumb {
        width: 64px;
        height: 64px;
        border-radius: 9px;
    }

    .product-page .product-info {
        width: 100%;
    }

    .product-page .product-title {
        font-size: clamp(20px, 5vw, 25px);
    }

    .product-page .quick-specs {
        padding: 14px;
        margin-bottom: 16px;
    }

    .product-page .quick-specs-grid {
        gap: 8px;
    }

    .product-page .quick-spec-item {
        padding: 9px 10px;
    }

    .product-page .buy-row {
        grid-template-columns: 1fr;
    }

    .product-page .qty-wrap {
        grid-template-columns: 54px minmax(0, 1fr) 54px;
    }

    .product-page .btn-add,
    .product-page .btn-buy-now {
        min-height: 50px;
        width: 100%;
    }

    .product-page .product-tabs-section {
        padding-block: 22px;
    }

    .product-page .product-tabs {
        border-radius: 13px;
    }

    .product-page .product-tab-button {
        min-width: 100px;
        min-height: 52px;
        padding-inline: 13px;
        font-size: 12px;
    }

    .product-page .product-tabs-content {
        padding: 18px 15px;
    }

    .product-page .specifications-table th,
    .product-page .specifications-table td {
        padding: 11px 10px;
        font-size: 12px;
    }

    .product-page .comment-compose {
        padding: 15px;
    }
}

@media (max-width: 420px) {
    .product-page .quick-specs-grid {
        grid-template-columns: 1fr;
    }

    .product-page .product-meta {
        gap: 8px;
        font-size: 11px;
    }

    .product-page .price-box {
        padding: 16px;
    }

    .product-page .price-now {
        font-size: 22px;
    }

    .product-page .comment-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .product-page .comment-form-footer .btn-add {
        width: 100%;
    }
}

/* =========================================================
   Product purchase controls refinement
   Compact quantity selector + balanced price typography
   ========================================================= */
.product-page .price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-height: 76px;
    padding: 14px 18px;
}

.product-page .price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
}

.product-page .price-now {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: #202a23;
    font-family: "Vazirmatn", sans-serif;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.035em;
    font-variant-numeric: lining-nums tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
}

.product-page .price-now small {
    direction: rtl;
    unicode-bidi: isolate;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 7px;
    background: #edf3ee;
    color: #68786d;
    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0;
}

.product-page .price-old {
    color: #929b94;
    font-size: 13px;
    font-weight: 500;
}

.product-page .price-save {
    margin-inline-start: auto;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
}

.product-page .qty-wrap {
    width: 136px;
    min-width: 136px;
    height: 44px;
    display: grid;
    grid-template-columns: 38px 60px 38px;
    align-items: stretch;
    justify-self: start;
    border: 1px solid #d9e0da;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.product-page .qty-wrap button {
    width: 38px;
    height: 44px;
    min-width: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: #f8faf8;
    color: #397653;
    font-family: "Vazirmatn", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}

.product-page .qty-wrap button:hover:not(:disabled) {
    background: #eaf2ec;
    color: #285c3b;
}

.product-page .qty-wrap button:active:not(:disabled) {
    background: #dfece2;
}

.product-page .qty-wrap button:disabled {
    background: #fafbfa;
    color: #c3ccc5;
    opacity: 1;
}

.product-page .qty-wrap input {
    width: 60px;
    min-width: 60px;
    height: 44px;
    padding: 0 3px;
    border: 0;
    border-inline: 1px solid #e7ece8;
    border-radius: 0;
    background: #fff;
    color: #263b2d;
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: lining-nums tabular-nums;
}

.product-page .qty-wrap input:focus {
    outline: 0;
    background: #fbfdfb;
}

@media (max-width: 768px) {
    .product-page .buy-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .product-page .qty-wrap {
        width: 136px;
        min-width: 136px;
        height: 42px;
        grid-template-columns: 38px 60px 38px;
        justify-self: start;
    }

    .product-page .qty-wrap button {
        width: 38px;
        min-width: 38px;
        height: 42px;
        font-size: 17px;
    }

    .product-page .qty-wrap input {
        width: 60px;
        min-width: 60px;
        height: 42px;
        font-size: 14px;
    }

    .product-page .price-box {
        min-height: 66px;
        padding: 12px 14px;
        gap: 6px 10px;
    }

    .product-page .price-now {
        font-size: 23px;
        gap: 6px;
    }

    .product-page .price-now small {
        padding: 2px 7px;
        font-size: 11px;
    }

    .product-page .price-save {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .product-page .price-now {
        font-size: 21px;
    }

    .product-page .price-now small {
        font-size: 10px;
    }
}