@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
    --moss: #314a35;
    --moss-2: #1d3022;
    --sage: #aebf9e;
    --sage-2: #dfe7d6;
    --cream: #f7f5ed;
    --paper: #fffdf8;
    --ink: #24271f;
    --muted: #77796e;
    --line: #e7e4d9;
    --gold: #b9925a;
    --radius: 22px;
    --radius-sm: 13px;
    --shadow: 0 22px 60px rgba(42, 59, 39, .10);
    --max: 1240px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.85
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: linear-gradient(rgba(49, 74, 53, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 74, 53, .045) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1
}

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

button,
input,
select,
textarea {
    font-family: inherit
}

.wrap {
    max-width: var(--max);
    margin: auto;
    padding: 0 28px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 237, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(231, 228, 217, .85)
}

.site-header .wrap {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.8px;
    color: var(--moss)
}

.logo-dot {
    color: var(--gold);
    font-size: 30px
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 0;
    margin: 0;
    list-style: none
}

.main-nav a {
    font-size: 14px;
    color: #4f5449;
    position: relative;
    padding: 10px 0
}

.main-nav a:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: .25s
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--moss)
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%
}

.header-icons {
    display: flex;
    gap: 9px
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 253, 248, .72);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--moss);
    transition: .22s;
    position: relative
}

.icon-btn:hover {
    transform: translateY(-2px);
    background: var(--sage-2);
    border-color: #c9d3c1
}

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

.cart-badge {
    position: absolute;
    top: -3px;
    left: -2px;
    min-width: 17px;
    height: 17px;
    border-radius: 99px;
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    font-weight: 800
}

.menu-btn {
    display: none
}

.hero-home {
    padding: 48px 0 86px
}

.hero-home .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 65px;
    min-height: 620px
}

.hero-copy {
    position: relative
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-2);
    color: var(--moss);
    border: 1px solid #ced8c5;
    border-radius: 99px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 800
}

.eyebrow:before {
    content: "✦";
    color: var(--gold)
}

.hero-copy h1 {
    font-size: clamp(43px, 6vw, 78px);
    line-height: 1.16;
    letter-spacing: -2.8px;
    color: var(--moss-2);
    margin: 20px 0 18px;
    max-width: 650px
}

.hero-copy h1 em {
    font-style: normal;
    color: var(--gold)
}

.hero-copy p {
    font-size: 17px;
    color: var(--muted);
    max-width: 570px;
    margin: 0
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .22s
}

.btn-primary {
    background: var(--moss);
    color: #fff;
    border: 1px solid var(--moss);
    box-shadow: 0 12px 25px rgba(49, 74, 53, .16)
}

.btn-primary:hover {
    background: var(--moss-2);
    transform: translateY(-2px)
}

.btn-outline {
    border: 1px solid #d9d6ca;
    color: var(--moss);
    background: rgba(255, 253, 248, .7)
}

.btn-outline:hover {
    background: #fff;
    border-color: var(--moss);
    transform: translateY(-2px)
}

.hero-note {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    color: var(--muted);
    font-size: 12px
}

.hero-note strong {
    display: block;
    color: var(--moss);
    font-size: 18px
}

.hero-visual {
    position: relative;
    height: 610px
}

.hero-photo {
    position: absolute;
    border: 10px solid rgba(255, 253, 248, .9);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--sage-2)
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-photo.one {
    width: 62%;
    height: 73%;
    right: 0;
    top: 0;
    border-radius: 150px 150px 24px 150px;
    transform: rotate(2deg)
}

.hero-photo.two {
    width: 54%;
    height: 52%;
    left: 0;
    bottom: 4%;
    border-radius: 28px 130px 28px 130px;
    transform: rotate(-4deg)
}

.hero-sticker {
    position: absolute;
    left: 20%;
    top: 17%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f4efdf;
    border: 1px solid #ddd6c3;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--moss);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .08);
    transform: rotate(-10deg)
}

.hero-sticker span {
    font-size: 28px;
    color: var(--gold);
    display: block
}

.page-hero {
    padding: 72px 0 58px;
    background: radial-gradient(550px 240px at 15% 0, var(--sage-2), transparent 68%)
}

.page-hero h1 {
    margin: 0;
    color: var(--moss-2);
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -1.5px
}

.page-hero p {
    max-width: 650px;
    color: var(--muted);
    margin: 9px 0 0
}

.section {
    padding: 5px 0
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px
}

.section-head h2 {
    margin: 0;
    color: var(--moss-2);
    font-size: 31px;
    letter-spacing: -.8px
}

.section-head p {
    color: var(--muted);
    margin: 4px 0 0
}

.section-head>a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800
}

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

.cat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(42, 59, 39, .04);
    transition: .25s
}

.cat-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow)
}

.cat-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .45s
}

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

.cat-body {
    padding: 17px 19px 20px
}

.cat-body h3 {
    margin: 0;
    font-size: 16px;
    color: var(--moss-2)
}

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

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    transition: .25s;
    position: relative;
    box-shadow: 0 8px 30px rgba(42, 59, 39, .035)
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow)
}

.product-thumb {
    height: 320px;
    background: var(--sage-2);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden
}

.product-thumb:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(28, 45, 30, .08));
    pointer-events: none
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s
}

.product-card:hover .product-thumb img {
    transform: scale(1.035)
}

.product-thumb .placeholder {
    font-size: 42px;
    color: var(--moss);
    opacity: .45
}

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f5ead7;
    color: #76552d;
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    z-index: 2
}

.wish-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(231, 228, 217, .9);
    background: rgba(255, 253, 248, .9);
    cursor: pointer;
    z-index: 3;
    font-size: 18px;
    color: var(--moss);
    transition: .2s
}

.wish-btn:hover {
    transform: scale(1.06)
}

.wish-btn.active {
    background: var(--moss);
    color: #fff
}

.product-info {
    padding: 17px 18px 19px
}

.cat-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800
}

.product-info h3 {
    font-size: 15px;
    margin: 5px 0 8px;
    line-height: 1.6
}

.price {
    font-weight: 900;
    color: var(--moss);
    font-size: 15px
}

.old-price {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 8px
}

.product-info .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.quick-add {
    border: 0;
    background: var(--sage-2);
    color: var(--moss);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 14px;
    background: rgba(255, 253, 248, .65);
    border: 1px solid var(--line);
    border-radius: 16px
}

.filters select,
.filters input,
.field {
    border: 1px solid var(--line);
    background: #fffdf9;
    border-radius: 11px;
    padding: 11px 14px;
    color: var(--ink);
    outline: none;
    transition: .2s
}

.filters input {
    min-width: 250px
}

.filters input:focus,
.filters select:focus,
.field:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 4px rgba(174, 191, 158, .16)
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start
}

.detail-image {
    height: 620px;
    border-radius: 30px;
    overflow: hidden;
    background: var(--sage-2);
    box-shadow: var(--shadow)
}

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

.detail-info {
    padding-top: 25px
}

.detail-info h1 {
    font-size: 40px;
    line-height: 1.35;
    color: var(--moss-2);
    margin: 8px 0 12px
}

.detail-price {
    font-size: 27px;
    font-weight: 900;
    color: var(--moss);
    margin: 20px 0
}

.muted {
    color: var(--muted)
}

.choice {
    margin: 22px 0
}

.choice label {
    display: block;
    font-weight: 800;
    margin-bottom: 9px
}

.choice button {
    padding: 9px 18px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-left: 7px;
    cursor: pointer
}

.choice button.selected {
    background: var(--moss);
    color: #fff;
    border-color: var(--moss)
}

.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    width: max-content;
    border-radius: 11px;
    overflow: hidden;
    margin: 20px 0;
    background: #fffdf9
}

.qty button {
    border: 0;
    background: transparent;
    width: 40px;
    height: 42px;
    cursor: pointer
}

.qty span {
    min-width: 40px;
    text-align: center;
    font-weight: 800
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 24px
}

.cart-list,
.summary,
.info-card,
.form-card {
    background: rgba(255, 253, 248, .9);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(42, 59, 39, .04)
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

.cart-item:last-child {
    border: 0
}

.cart-item img {
    width: 90px;
    height: 105px;
    object-fit: cover;
    border-radius: 13px;
    background: var(--sage-2)
}

.summary {
    height: max-content;
    position: sticky;
    top: 100px
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 14px 0
}

.summary-total {
    font-weight: 900;
    font-size: 19px;
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.summary .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 15px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.field-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px
}

.field {
    width: 100%
}

textarea.field {
    min-height: 130px;
    resize: vertical
}

.full {
    grid-column: 1/-1
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center
}

.about-box {
    background: linear-gradient(145deg, var(--sage-2), #eef1e9);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #d6dfcd;
    box-shadow: var(--shadow)
}

.about-box h2 {
    color: var(--moss-2)
}

.faq {
    max-width: 900px;
    margin: auto
}

.faq-item {
    background: rgba(255, 253, 248, .9);
    border: 1px solid var(--line);
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden
}

.faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: right;
    padding: 18px 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--moss-2)
}

.faq-a {
    display: none;
    padding: 0 20px 20px;
    color: var(--muted)
}

.faq-item.open .faq-a {
    display: block
}

.promo {
    background: var(--moss-2);
    color: #fff;
    position: relative;
    overflow: hidden
}

.promo:before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .09);
    left: -130px;
    top: -180px
}

.promo .wrap {
    padding: 58px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative
}

.promo h2 {
    margin: 0;
    color: #fff;
    font-size: 28px
}

.promo p {
    color: #c8d3c5;
    margin: 5px 0 0
}

.promo-form {
    display: flex;
    gap: 10px
}

.promo-form input {
    padding: 13px 16px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    min-width: 260px
}

.promo-form .btn-primary {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: none
}

footer {
    background: #18271b;
    color: #cbd6c9
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 65px 0 35px
}

.footer-grid h4 {
    color: #fff;
    margin: 0 0 15px
}

.footer-grid ul {
    list-style: none;
    padding: 0
}

.footer-grid li {
    margin-bottom: 9px;
    font-size: 13px
}

.footer-grid a:hover {
    color: #e4c894
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 11px
}

.notice {
    padding: 14px 18px;
    background: var(--sage-2);
    border: 1px solid #d4ddcb;
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--moss-2)
}

@media(max-width:980px) {
    .main-nav {
        display: none
    }

    .menu-btn {
        display: grid
    }

    .hero-home .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .hero-copy {
        text-align: center
    }

    .hero-copy p {
        margin-inline: auto
    }

    .hero-actions,
    .hero-note {
        justify-content: center
    }

    .hero-visual {
        height: 520px;
        max-width: 650px;
        width: 100%;
        margin: auto
    }

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

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

    .product-detail,
    .cart-layout,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .detail-image {
        height: 500px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:560px) {
    .wrap {
        padding: 0 18px
    }

    .site-header .wrap {
        height: 70px
    }

    .header-icons {
        gap: 6px
    }

    .icon-btn {
        width: 38px;
        height: 38px
    }

    .hero-home {
        padding-top: 28px
    }

    .hero-copy h1 {
        font-size: 42px;
        letter-spacing: -1.7px
    }

    .hero-visual {
        height: 390px
    }

    .hero-photo.one {
        width: 64%;
        height: 72%
    }

    .hero-photo.two {
        width: 58%;
        height: 54%
    }

    .hero-sticker {
        width: 86px;
        height: 86px;
        font-size: 9px;
        left: 12%;
        top: 17%
    }

    .hero-sticker span {
        font-size: 21px
    }

    .products-grid,
    .categories-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .product-thumb {
        height: 350px
    }

    .section {
        padding: 55px 0
    }

    .section-head {
        align-items: start;
        flex-direction: column
    }

    .page-hero {
        padding: 52px 0 40px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px
    }

    .promo-form {
        width: 100%;
        flex-direction: column
    }

    .promo-form input {
        width: 100%;
        min-width: 0
    }

    .detail-image {
        height: 390px
    }

    .detail-info h1 {
        font-size: 31px
    }

    .cart-item {
        grid-template-columns: 70px 1fr
    }

    .cart-item>strong {
        grid-column: 2
    }

    .cart-item img {
        width: 70px;
        height: 85px
    }
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    background: var(--moss-2);
    color: #fff;
    padding: 12px 17px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .25s
}

.toast.show {
    opacity: 1;
    transform: none
}

@media(max-width:980px) {
    .main-nav.mobile-open {
        display: block;
        position: absolute;
        top: 78px;
        right: 18px;
        left: 18px;
        background: rgba(255, 253, 248, .98);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
        padding: 10px
    }

    .main-nav.mobile-open ul {
        display: grid;
        gap: 2px
    }

    .main-nav.mobile-open a {
        display: block;
        padding: 11px 14px;
        border-radius: 10px
    }

    .main-nav.mobile-open a:hover {
        background: var(--sage-2)
    }

    .main-nav.mobile-open a:after {
        display: none
    }
}

@media(max-width:560px) {
    .toast {
        right: 18px;
        left: 18px;
        bottom: 18px;
        text-align: center
    }
}

.detail-image{position:relative}
.img-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;height:40px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.85);
  color:var(--moss);
  font-size:20px;
  cursor:pointer;
  display:grid;place-items:center;
  box-shadow:0 6px 18px rgba(0,0,0,.15)
}
.img-nav.prev{right:14px}
.img-nav.next{left:14px}
.img-counter{
  position:absolute;
  bottom:14px;left:14px;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:11px;
  padding:4px 10px;
  border-radius:99px
}

.out-badge{
  position:absolute;
  top:14px;right:14px;
  background:#f3d7d7;
  color:#a13d3d;
  padding:5px 10px;
  border-radius:99px;
  font-size:10px;
  font-weight:800;
  z-index:2
}
.quick-add:disabled,
.choice button.out-of-stock,
.btn-primary:disabled{
  opacity:.5;
  cursor:not-allowed
}
.choice button.out-of-stock{
  text-decoration:line-through
}

/* Checkout */
.checkout-layout{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:24px
}
.checkout-summary{
  height:max-content;
  position:sticky;
  top:100px
}

/* Admin */
.admin-login-box{
  max-width:420px;
  margin:60px auto;
  background:rgba(255,253,248,.9);
  border:1px solid var(--line);
  border-radius:22px;
  padding:32px;
  box-shadow:var(--shadow)
}
.admin-login-box h1{
  color:var(--moss-2);
  font-size:24px;
  margin:0 0 6px
}
.admin-login-box p{
  color:var(--muted);
  font-size:13px;
  margin:0 0 24px
}
.admin-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px
}
.admin-topbar h1{
  margin:0;
  color:var(--moss-2);
  font-size:26px
}
.btn-logout{
  border:1px solid var(--line);
  background:#fff;
  color:var(--moss);
  padding:9px 16px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700
}
.admin-stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-bottom:26px
}
.admin-stat{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  text-align:center
}
.admin-stat b{
  display:block;
  font-size:24px;
  color:var(--moss);
  margin-bottom:4px
}
.admin-stat span{
  font-size:12px;
  color:var(--muted)
}
.order-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px;
  margin-bottom:14px
}
.order-head{
  display:flex;
  justify-content:space-between;
  font-weight:800;
  color:var(--moss-2);
  margin-bottom:8px;
  font-size:13px
}
.order-customer{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
  line-height:1.9
}
.order-items{
  font-size:13px;
  border-top:1px dashed var(--line);
  border-bottom:1px dashed var(--line);
  padding:10px 0;
  margin-bottom:10px
}
.order-total{
  font-weight:800;
  color:var(--moss)
}

@media(max-width:900px){
  .checkout-layout{grid-template-columns:1fr}
  .admin-stats{grid-template-columns:1fr}
}

.products-scroll{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:14px;
  scrollbar-width:thin;
  scrollbar-color:var(--sage) transparent
}
.products-scroll::-webkit-scrollbar{
  height:8px
}
.products-scroll::-webkit-scrollbar-track{
  background:var(--sage-2);
  border-radius:99px
}
.products-scroll::-webkit-scrollbar-thumb{
  background:var(--sage);
  border-radius:99px
}
.products-scroll .product-card{
  flex:0 0 250px;
  scroll-snap-align:start
}
@media(max-width:560px){
  .products-scroll .product-card{
    flex:0 0 210px
  }
}

.products-dual-scroll{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:14px;
  scrollbar-width:thin;
  scrollbar-color:var(--sage) transparent
}
.products-dual-scroll::-webkit-scrollbar{
  height:8px
}
.products-dual-scroll::-webkit-scrollbar-track{
  background:var(--sage-2);
  border-radius:99px
}
.products-dual-scroll::-webkit-scrollbar-thumb{
  background:var(--sage);
  border-radius:99px
}
.products-scroll-row{
  display:flex;
  gap:18px;
  margin-bottom:18px
}
.products-scroll-row:last-child{
  margin-bottom:0
}
.products-scroll-row .product-card{
  flex:0 0 250px;
  scroll-snap-align:start
}
@media(max-width:560px){
  .products-scroll-row .product-card{
    flex:0 0 210px
  }
}

.products-grid-scroll{
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:repeat(2,auto);
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:14px;
  scrollbar-width:thin;
  scrollbar-color:var(--sage) transparent
}
.products-grid-scroll::-webkit-scrollbar{
  height:8px
}
.products-grid-scroll::-webkit-scrollbar-track{
  background:var(--sage-2);
  border-radius:99px
}
.products-grid-scroll::-webkit-scrollbar-thumb{
  background:var(--sage);
  border-radius:99px
}
.products-grid-scroll .product-card{
  width:250px;
  scroll-snap-align:start
}
@media(max-width:560px){
  .products-grid-scroll .product-card{
    width:210px
  }
}

/* ===== FIX: mobile product cards (added at end of file) ===== */

/* 1) Image always fills its box -> no empty green area (all pages) */
.product-thumb {
    display: block;
}
.product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-thumb .placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

@media (max-width: 560px) {
    .product-thumb {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    /* 2) Home page: ONE row, ONE card visible at a time, horizontal swipe */
    .products-scroll,
    .products-grid-scroll {
        display: flex;
        grid-auto-flow: unset;
        grid-template-rows: none;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .products-scroll .product-card,
    .products-grid-scroll .product-card,
    .products-scroll-row .product-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

/* two independent scrolling rows (desktop) */
.products-rows {
    display: grid;
    gap: 18px;
}
