@font-face {
  font-family: 'Noto Sans Arabic Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../assets/fonts/noto-sans-arabic-arabic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Sans Arabic Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../assets/fonts/noto-sans-arabic-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
    font-size: 14px;
    --bg: #fcfbf9;
    --surface: #fff;
    --text: #322e2d;
    --muted: #736a67;
    --dark: #553f48;
    --rose: #936574;
    --sage: #536b5c;
    --border: #e9e3de;
    --shadow: 0 10px 35px #44322c07;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.7; overflow-wrap: break-word; }
[dir="rtl"] body { font-family: "Noto Sans Arabic Variable", Tahoma, "Segoe UI", Arial, sans-serif; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 43px; padding: .7rem 1.3rem; border: 1px solid transparent; border-radius: 5px; background: var(--dark); color: #fff; font-size: .94rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; text-align: center; }
button:hover, .btn:hover { background: #705160; }
button:active, .btn:active { transform: translateY(1px); }
button:disabled, .btn[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
input, select, textarea { min-width: 0; max-width: 100%; color: var(--text); border: 1px solid #d8cfca; border-radius: 5px; background: #fff; padding: .7rem .85rem; }
input:focus, textarea:focus, select:focus { border-color: var(--rose); }
input[type="email"], input[type="tel"] { direction: ltr; text-align: start; }
input[type="checkbox"] { accent-color: var(--dark); }
input[type="search"] { appearance: none; }
textarea { resize: vertical; }
img { display: block; max-width: 100%; }
svg.icon { flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.5; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: .9rem; letter-spacing: -.03em; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
small, .small { font-size: .86rem; color: var(--muted); }
.secondary { background: transparent; color: var(--dark); border: 1px solid #d5c5c9; }
.secondary:hover { background: #f3eeef; }
.text-link { color: var(--dark); text-decoration: underline; text-decoration-color: #c9b9bc; text-underline-offset: 5px; font-size: .92rem; }
.text-link:hover { text-decoration-color: var(--dark); }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .13em; color: var(--rose); margin-bottom: .45rem; }
[dir="rtl"] .eyebrow:not([dir="ltr"]) { letter-spacing: 0; font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 200; background: #fff; padding: .8rem 1.2rem; border: 2px solid var(--dark); }
.skip-link:focus { top: .5rem; }
.announcement { text-align: center; background: #eee8e3; color: #64514f; font-size: .78rem; padding: .45rem 1rem; }
.announcement span { display: inline-block; font-size: .7rem; letter-spacing: .16em; margin-inline-start: 1rem; }
.header { position: sticky; top: 0; z-index: 40; background: #fffffffa; border-bottom: 1px solid var(--border); }
.header-main { display: grid; grid-template-columns: 1fr minmax(240px, 460px) 1fr; align-items: center; gap: 2.5rem; width: min(1280px, 92%); margin: auto; padding-block: 1.1rem; }
.logo { display: inline-block; font-family: Georgia, "Times New Roman", serif; color: var(--dark); font-size: 2.55rem; line-height: 1; white-space: nowrap; letter-spacing: -2px; width: fit-content; }
.logo em { font-style: normal; }
.logo small { display: block; font: 500 .54rem "Segoe UI", sans-serif; letter-spacing: .28em; text-align: center; margin-top: .75rem; color: #90757b; }
.search-wrap { position: relative; min-width: 0; }
.search { display: flex; align-items: center; border: 1px solid var(--border); background: #faf8f6; border-radius: 5px; }
.search:focus-within { border-color: #b79fa6; }
.search input { width: 100%; border: 0; background: none; padding: .8rem 1rem; font-size: .9rem; outline-offset: 0; }
.search button { min-width: 43px; padding: .5rem; color: var(--dark); background: none; border: 0; }
.search-results { position: absolute; inset-inline: 0; top: calc(100% + 8px); padding: .5rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: 0 14px 40px #34252917; z-index: 60; max-height: min(65vh, 480px); overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: .8rem; padding: .6rem; border-radius: 4px; }
.search-results a:hover, .search-results a:focus { background: #f6f1ee; }
.search-results img { width: 46px; height: 53px; object-fit: contain; background: #f5f1ed; border-radius: 3px; }
.search-results strong { display: block; font-size: .9rem; font-weight: 500; }
.search-results small { display: block; font-size: .76rem; }
.search-results bdi { margin-inline-start: auto; font-size: .85rem; white-space: nowrap; }
.search-results p { padding: 1rem; margin: 0; font-size: .9rem; }
.search-results .search-all { justify-content: center; color: var(--rose); border-top: 1px solid var(--border); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; }
.header-actions a, .account-menu > summary { display: inline-flex; gap: .55rem; align-items: center; font-size: .9rem; min-height: 44px; }
.account-menu { position: relative; }
.account-menu > summary { cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-links { position: absolute; inset-inline-end: 0; top: 100%; min-width: 185px; padding: .6rem; border: 1px solid var(--border); background: #fff; border-radius: 5px; box-shadow: 0 10px 30px #3d2e3314; }
.header-actions .account-links a, .account-links button { display: flex; width: 100%; text-align: start; padding: .5rem .75rem; color: var(--text); border: 0; border-radius: 3px; background: none; font-size: .9rem; font-weight: 400; justify-content: flex-start; }
.account-links a:hover, .account-links button:hover { background: #f4efec; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; background: #eee5e8; color: var(--dark); border-radius: 50%; min-width: 21px; height: 21px; padding-inline: 4px; font-size: .73rem; }
.header-bottom { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid #f2eeeb; width: min(1280px, 92%); margin: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2.25rem; }
.main-nav a { display: inline-flex; align-items: center; min-height: 45px; font-size: .9rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--rose); color: var(--dark); }
.langs { display: flex; gap: .8rem; font-size: .74rem; direction: ltr; }
.langs a { display: inline-flex; align-items: center; min-height: 40px; }
.langs a[aria-current="true"] { color: var(--dark); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.shell { width: min(1280px, 92%); margin: auto; padding-block: 2.2rem 5rem; min-height: 63vh; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 435px; overflow: hidden; border-radius: 7px; background: #f1e9e3; position: relative; }
.hero-copy { padding: 3.5rem clamp(2rem, 5vw, 5rem); z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 3.8vw, 3.35rem); line-height: 1.5; max-width: 550px; margin-block: .65rem 1.2rem; }
.hero p { color: #71605f; max-width: 420px; font-size: 1rem; margin-bottom: 1.25rem; }
.hero-product-name { display: block; color: var(--dark); font-size: 1rem; margin-bottom: 1rem; }
.hero .btn { min-width: 175px; }
[dir="rtl"] .hero .btn .icon, [dir="rtl"] .checkout-button .icon { transform: rotate(180deg); }
.hero-visual { position: relative; display: grid; align-items: center; justify-items: center; align-self: stretch; background: linear-gradient(135deg, #e9dbd3, #eee5dd); isolation: isolate; padding: 2rem; }
.hero-visual > a { display: block; width: min(100%, 390px); z-index: 1; }
.hero-visual img { width: 100%; height: 370px; object-fit: contain; mix-blend-mode: multiply; }
.hero-orbit { position: absolute; width: 80%; aspect-ratio: 1; border: 1px solid #f7f3ef; border-radius: 50%; z-index: -1; }
.hero-orbit::after { content: ""; position: absolute; inset: 9%; border: 1px solid #f7f3ef; border-radius: 50%; }
.hero-caption { color: #7e6565; font-size: .76rem; position: absolute; bottom: 1.4rem; }
.hero-caption span { letter-spacing: .2em; }
.hero-controls { display: flex; align-items: center; gap: .4rem; margin-top: 1.9rem; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .hero-controls { justify-content: flex-end; }
.hero-controls button { min-width: 32px; min-height: 32px; border: 1px solid #d5c6c1; background: transparent; color: #76555d; padding: .1rem .55rem; font-size: 1.25rem; }
#heroDots { display: inline-flex; gap: 4px; }
.hero-controls #heroDots button { min-width: 18px; border: 0; padding: 0; font-size: .85rem; }
.hero-controls #heroPause { margin-left: .5rem; font-size: .76rem; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.demo-note { font-size: .78rem; color: #7c675e; padding: .6rem .9rem; background: #f8f3eb; border-inline-start: 2px solid #cdb891; margin-top: 1rem; }
.home-section { margin-top: 3.8rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: .25rem; }
.category-row { display: flex; gap: 1.35rem; overflow-x: auto; padding: .2rem .1rem 1rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d9cac3 transparent; }
.category-row a { flex: 1 0 145px; text-align: center; font-size: .92rem; scroll-snap-align: start; }
.category-row img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; background: #f4eeea; margin-bottom: .9rem; transition: transform .2s; }
.category-row a:hover img { transform: translateY(-3px); }
[data-drag-scroll].dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: border-color .25s, box-shadow .25s; min-width: 0; }
.product-card:hover { border-color: #cdbcba; box-shadow: 0 6px 24px #54394008; }
.product-media { position: relative; overflow: hidden; background: #f7f3ef; }
.product-media > a { display: block; }
.product-media img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: contain; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.035); }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.product-media .badges { position: absolute; inset-block-start: .8rem; inset-inline: .8rem; pointer-events: none; }
.badge { font-size: .7rem; padding: .2rem .5rem; border-radius: 3px; line-height: 1.6; background: #fff; color: var(--dark); }
.badge.new { background: #eaf0e8; color: #49614f; }
.badge.bestseller { color: #735341; background: #f4e7d9; }
.badge.sale { margin-inline-start: auto; background: var(--dark); color: #fff; direction: ltr; }
.product-detail-info > .badges .badge.sale { margin-inline-start: 0; }
.product-info { padding: 1.2rem; display: flex; flex: 1; flex-direction: column; }
.product-category { font-size: .75rem; color: var(--muted); }
.product-info h3 { font-size: 1rem; font-weight: 600; margin: .45rem 0 .65rem; min-height: 3em; }
.product-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.8; min-height: 2.9rem; margin-bottom: .6rem; }
.price { color: var(--dark); font-size: 1.13rem; font-weight: 600; margin-block: .25rem .45rem; }
.price del { font-size: .8rem; color: #877d7b; font-weight: 400; margin-inline-start: .45rem; }
.karma-hint { display: flex; align-items: center; gap: .3rem; color: var(--sage); font-size: .8rem; margin-block: .6rem; }
.offer-countdown { font-size: .72rem; color: #8b5360; margin: .25rem 0 .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.offer-countdown small { font-size: .65rem; width: 100%; color: #786567; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .03em; display: inline-block; }
.stock-label { font-size: .75rem; color: var(--sage); margin-block: .3rem .7rem; }
.stock-label.out { color: #8f5761; }
.cart-control { margin-top: auto; padding-top: .5rem; }
.cart-add { display: flex; gap: .75rem; align-items: end; }
.add-button { width: 100%; font-size: .86rem; gap: .45rem; padding: .65rem .5rem; }
.cart-quantity { display: flex; gap: .5rem; align-items: center; }
.quantity-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid #cdbfc1; border-radius: 4px; flex: 1; direction: ltr; }
.quantity-stepper button { min-width: 38px; min-height: 40px; padding: .25rem .65rem; font-size: 1.2rem; background: transparent; color: var(--dark); border: 0; }
.quantity-stepper button:hover { background: #f4eeee; }
.quantity-stepper output { padding: .1rem .5rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.remove-product { background: transparent; color: #8a6972; min-width: 38px; min-height: 40px; padding: .3rem; border: 1px solid var(--border); }
.remove-product:hover { background: #f6eeee; }
.control-error { color: #993d4b; display: block; font-size: .78rem; }
.control-error:empty { display: none; }
.cart-control[aria-busy="true"] { opacity: .6; pointer-events: none; }
.needs-section { border: 1px solid #e4e6dd; background: #f1f3ee; border-radius: 6px; padding: 2.5rem; text-align: center; }
.needs-section p { color: #647062; font-size: .9rem; }
.need-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.7rem; }
.need-links a { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid #d9e0d4; border-radius: 4px; padding: .8rem 1.2rem; color: #4c604d; font-size: .9rem; }
.need-links a:hover { border-color: #7c937c; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--muted); font-size: .8rem; margin-bottom: 1.7rem; }
.breadcrumbs a:hover { color: var(--dark); text-decoration: underline; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.page-heading h1 { margin-bottom: 0; }
.category-pills { display: flex; overflow-x: auto; gap: .65rem; padding: .2rem .1rem 1rem; scrollbar-width: thin; }
.category-pills a { flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: .55rem 1.1rem; font-size: .87rem; }
.category-pills a[aria-current="page"], .category-pills a:hover { color: #fff; background: var(--dark); border-color: var(--dark); }
.filter { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; padding: 1.2rem 0 1.8rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.filter label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; flex: 1; min-width: 125px; }
.filter .filter-search { flex: 1.3; min-width: 190px; }
.filter input, .filter select { width: 100%; height: 43px; font-size: .87rem; }
.filter .text-link { min-height: 43px; display: inline-flex; align-items: center; white-space: nowrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.4rem; margin-top: 2.5rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.gallery { min-width: 0; }
.gallery-stage { position: relative; overflow: hidden; background: #f2ece7; border: 1px solid #eae1db; border-radius: 6px; aspect-ratio: 1; }
.gallery-stage > img, .gallery-stage > video { width: 100%; height: 100%; object-fit: contain; }
.gallery-stage > img { cursor: crosshair; }
.gallery-stage > video { background: #211e1d; }
.gallery-prev, .gallery-next { position: absolute; top: calc(50% - 20px); z-index: 3; width: 36px; min-height: 40px; padding: .2rem; border: 1px solid #e1d5cf; background: #ffffffdf; color: var(--dark); font-size: 1.65rem; }
.gallery-prev { left: .65rem; }
.gallery-next { right: .65rem; }
.gallery-prev:hover, .gallery-next:hover { background: #fff; }
.zoom-lens { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 3px 20px #37242735; overflow: hidden; pointer-events: none; z-index: 2; background: #f2ece7; }
.zoom-lens img { position: absolute; max-width: none; object-fit: fill; }
.gallery-help { display: flex; justify-content: space-between; gap: .6rem; font-size: .75rem; color: var(--muted); margin: .7rem 0; }
.thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding: .2rem .1rem .7rem; }
.thumbnails button { flex: 0 0 70px; height: 76px; padding: .25rem; border: 1px solid var(--border); background: #f9f5f1; color: var(--dark); display: flex; flex-direction: column; font-size: .68rem; gap: .15rem; }
.thumbnails button[aria-pressed="true"] { border: 2px solid var(--rose); }
.thumbnails img { width: 60px; height: 65px; object-fit: contain; }
.product-detail-info h1 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin-block: .3rem 1rem; }
.product-detail-info .lead { font-size: .96rem; color: var(--muted); margin-top: 1.2rem; }
.product-detail-info .price { font-size: 1.7rem; }
.product-detail-info .price del { font-size: 1rem; }
.product-detail-info .cart-control { max-width: 390px; margin-block: 1rem; }
.initial-quantity { display: flex; flex-direction: column; flex: 0 0 75px; gap: .25rem; font-size: .8rem; }
.initial-quantity input { width: 100%; min-height: 43px; padding: .5rem; }
.product-detail-info .quantity-stepper { max-width: 220px; }
.product-detail-info .stock-label { font-size: .86rem; }
.product-attributes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-block: 1px solid var(--border); padding-block: 1.3rem; margin-block: 1.5rem; }
.product-attributes dt { color: var(--muted); font-size: .8rem; }
.product-attributes dd { margin: .25rem 0 0; font-size: .92rem; }
.product-content details { border-bottom: 1px solid var(--border); padding-block: 1rem; }
.product-content summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; }
.product-content summary::after { content: "+"; color: var(--rose); }
.product-content details[open] summary::after { content: "−"; }
.product-content p { margin-block: .8rem .2rem; font-size: .9rem; color: #655956; white-space: pre-wrap; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tags a { font-size: .78rem; background: #f2ece7; border: 1px solid var(--border); padding: .25rem .75rem; border-radius: 3px; }
.tags a:hover { background: #e9e0da; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.8rem; box-shadow: var(--shadow); min-width: 0; }
.empty { text-align: center; padding: 5rem 1.5rem; }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--muted); }
.empty-icon { display: inline-flex; border: 1px solid var(--border); border-radius: 50%; padding: 1rem; color: var(--rose); margin-bottom: 1.5rem; }
.empty-icon .icon { width: 36px; height: 36px; }
.center { text-align: center; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 355px; align-items: start; gap: 1.7rem; }
.cart-items { padding-block: .2rem; }
.cartline { display: flex; align-items: center; gap: 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.cartline:last-of-type { border-bottom: 0; }
.cartline > a:has(img) { flex: 0 0 95px; }
.cartline img { width: 95px; height: 110px; object-fit: contain; border-radius: 4px; background: #f7f1ed; }
.cartline-copy { flex: 1; min-width: 0; }
.cartline h2 { font-size: 1rem; margin-block: .2rem .45rem; }
.cartline p { font-size: .84rem; margin-bottom: .35rem; }
.cartline-copy > small { font-size: .75rem; }
.cartline .cart-control { max-width: 210px; }
.cartline-total { font-size: .95rem; color: var(--dark); white-space: nowrap; }
.cartline > form { display: flex; gap: .5rem; }
.cartline input[type="number"] { width: 70px; }
.order-sidebar { position: sticky; top: 165px; }
.order-sidebar h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; margin-block: 1.4rem; font-size: .9rem; }
.totals dt { color: var(--muted); }
.totals dd { text-align: end; margin: 0; }
.totals .grand-total { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .3rem; font-size: 1.15rem; color: var(--dark); font-weight: 600; }
.savings-note { font-size: .8rem; color: var(--sage); padding: .55rem .75rem; background: #f2f5ef; border-radius: 4px; }
.karma-form { border-block: 1px solid var(--border); padding-block: 1rem; margin-block: 1.2rem; }
.karma-form.form-stack { gap: .7rem; }
.karma-form label { font-size: .85rem; }
.karma-form input { width: 100%; }
.karma-form p:empty, [data-points-error]:empty { display: none; }
.checkout-button { width: 100%; margin-top: .5rem; }
.checkout-note { color: var(--muted); font-size: .8rem; line-height: 1.9; margin-top: 1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 2rem; align-items: start; }
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-stack label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .9rem; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; font-weight: 400; }
.form-stack textarea { min-height: 95px; }
.form-stack label:has(input[type="checkbox"]), .form-stack label.check-label { display: flex; flex-direction: row; align-items: center; gap: .65rem; }
.form-stack input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; }
.form-stack label span.field-validation-error { font-size: .8rem; color: #9b3d4c; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { margin: 0; border: 1px solid var(--border); border-radius: 4px; padding: 1rem; min-width: 0; }
legend { font-size: .9rem; padding-inline: .4rem; }
.karma-box small { display: block; margin-top: .6rem; }
.karma-box p { margin-top: .5rem; }
.checkout-line { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid var(--border); padding-block: 1rem; font-size: .85rem; }
.checkout-line img { width: 52px; height: 65px; object-fit: contain; border-radius: 3px; background: #f7f2ee; }
.checkout-line div { flex: 1; min-width: 0; }
.checkout-line small { display: block; font-size: .73rem; margin-top: .2rem; }
.checkout-line > bdi { white-space: nowrap; }
.auth { width: min(100%, 450px); margin: 3rem auto; }
.auth h1 { font-size: 1.8rem; }
.auth a { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }
.auth .btn { color: #fff; text-decoration: none; }
.profile-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 2rem; align-items: start; }
.profile-nav { display: flex; flex-direction: column; padding: .75rem; }
.profile-nav a { padding: .8rem 1rem; font-size: .9rem; border-radius: 4px; }
.profile-nav a[aria-current="page"], .profile-nav a:hover { background: #f4eeea; color: var(--dark); }
.notice { padding: .85rem 1rem; background: #f6f1e8; border: 1px solid #ece2d2; border-radius: 4px; margin-bottom: 1rem; font-size: .9rem; }
.errors, .error-text { color: #963547; font-size: .9rem; }
.validation-summary-valid { display: none; }
.success { color: var(--sage); font-size: 3rem; }
.toast { position: fixed; bottom: 1.5rem; inset-inline-start: 50%; transform: translateX(50%); background: #3e4940; color: #fff; padding: .8rem 1.4rem; border-radius: 5px; box-shadow: 0 5px 20px #28352c24; z-index: 100; font-size: .9rem; width: max-content; max-width: calc(100vw - 30px); }
[dir="ltr"] .toast { transform: translateX(-50%); }
.toast.error { background: #783747; }
.confirmation-heading { text-align: center; max-width: 650px; margin: 1rem auto 2.5rem; }
.success-mark { display: flex; justify-content: center; align-items: center; width: 65px; height: 65px; background: #eaf0e5; color: var(--sage); border-radius: 50%; margin: 0 auto 1.25rem; }
.success-mark .icon { width: 28px; height: 28px; }
.confirmation-heading h1 { font-size: 2rem; }
.confirmation-heading p { color: var(--muted); }
.order-code { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block: 1rem; }
.order-code bdi { font-size: 1.25rem; letter-spacing: .06em; }
.order-code button { color: var(--dark); background: transparent; border-color: var(--border); font-size: .78rem; padding: .4rem .75rem; min-height: 36px; }
.confirmation-panel { max-width: 980px; margin: auto; }
.order-details-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; text-align: start; }
.order-details-grid h2 { font-size: 1.2rem; }
.order-details-grid address { font-style: normal; line-height: 2; font-size: .95rem; }
.order-lines > div { display: flex; flex-direction: column; gap: .3rem; border-bottom: 1px solid var(--border); padding-block: .8rem; font-size: .9rem; }
.order-lines bdi { color: var(--muted); font-size: .8rem; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.8rem 1rem; }
.preserve-lines { white-space: pre-wrap; }
.tracking-form { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.tracking-form label { font-size: .9rem; }
.tracking-form input { flex: 1; min-width: 180px; }
.tracking-form .errors { width: 100%; }
.tracking-detail h2 { font-size: 1.2rem; }
.status-badge { padding: .35rem .75rem; border-radius: 4px; color: var(--sage); background: #edf2e9; font-size: .85rem; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; list-style: none; padding: 0; margin: 2rem 0; }
.step { position: relative; color: #847d76; font-size: .8rem; display: flex; align-items: center; gap: .65rem; }
.step-dot { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d7d4cf; border-radius: 50%; flex: 0 0 auto; background: #f8f6f3; }
.step.done { color: var(--sage); }
.step.done .step-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.step[aria-current="step"] { font-weight: 600; }
.tracking-notice { background: #f5f2ed; padding: .85rem; border-radius: 3px; margin-bottom: 2rem; }
.store-footer { padding: 3rem max(4vw, 20px) 1.7rem; background: #f0eae5; border-top: 1px solid #e7ddd5; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.store-footer > div p { max-width: 350px; font-size: .85rem; margin-top: 1rem; color: #7d6c64; }
.store-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-content: start; justify-content: end; padding-top: .5rem; font-size: .9rem; }
.store-footer > small { grid-column: 1 / -1; border-top: 1px solid #ded4cc; padding-top: 1.2rem; font-size: .76rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.5rem; }
.article { max-width: 850px; margin: auto; }
.article-body { font-size: 1rem; line-height: 2; white-space: pre-wrap; }
.chat-toggle { position: fixed; bottom: 20px; inset-inline-end: 20px; border-radius: 30px; box-shadow: var(--shadow); z-index: 50; font-size: .86rem; }
.chat { position: fixed; bottom: 80px; inset-inline-end: 20px; width: min(365px, calc(100vw - 30px)); height: min(475px, 75vh); background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 45px #30111a25; border-radius: 8px; z-index: 51; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; }
.chat-head button { background: none; padding: .1rem .6rem; min-height: 30px; }
.transcript { flex: 1; overflow-y: auto; padding: 1rem; overflow-wrap: anywhere; font-size: .9rem; }
.transcript p { background: #f6efeb; padding: .7rem; border-radius: 5px; }
.transcript .you { background: #eef1ea; }
.transcript a { color: var(--primary, #694655); text-decoration: underline; unicode-bidi: isolate; overflow-wrap: anywhere; }
#chatForm { padding: .75rem; border-top: 1px solid var(--border); display: flex; gap: .4rem; }
#chatForm input { width: 100%; min-width: 0; padding: .55rem; }
#chatForm button { padding: .55rem; }
/* Existing administration and authentication screens share the smaller type scale. */
.adminbody { display: flex; background: #f7f5f3; min-height: 100vh; }
.sidebar { width: 220px; flex-shrink: 0; background: #3c3036; color: #fff; padding: 2rem 1rem; }
.sidebar .logo { color: #fff; font-size: 2.1rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .25rem; margin-top: 2rem; }
.sidebar nav a { padding: .7rem 1rem; border-radius: 4px; font-size: .92rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: #614a54; }
.sidebar .langs { margin-block: 1.2rem; color: #fff; }
.adminmain { padding: 2rem; width: calc(100% - 220px); min-width: 0; }
.adminmain h1 { font-size: 2rem; }
.adminmain .panel { box-shadow: none; }
.adminform { max-width: 900px; }
.editor-language { border-bottom: 1px solid var(--border); padding-block: .8rem; }
.editor-language summary { cursor: pointer; font-size: 1rem; }
.editor-language label { margin-top: 1rem; }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: start; padding: .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-weight: 600; color: var(--muted); background: #faf7f5; }
.thumb { width: 60px; height: 65px; object-fit: contain; }
.danger { background: #9b4558; }
.adminlogin { min-height: 100vh; display: grid; place-items: center; background: #ece4df; }
.adminlogin .auth { width: min(440px, 90vw); }
@media (max-width: 1050px) {
    .header-main { grid-template-columns: 1fr minmax(200px, 370px) 1fr; gap: 1.5rem; }
    .header-actions { gap: 1rem; }
    .main-nav { gap: 1.4rem; }
    .products { gap: 1rem; }
    .product-info { padding: 1rem; }
    .cart-layout { grid-template-columns: minmax(0, 1fr) 310px; }
    .cartline { gap: .8rem; flex-wrap: wrap; }
    .cartline-total { margin-inline-start: auto; }
    .hero-copy { padding: 2.6rem; }
    .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .header-actions .action-label { display: none; }
    .main-nav { gap: 1.1rem; }
    .main-nav a { font-size: .83rem; }
    .hero { min-height: 365px; }
    .hero-copy { padding: 2rem; }
    .hero h1 { font-size: 2.6rem; }
    .hero-visual img { height: 300px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cartline { flex-wrap: nowrap; }
    .order-sidebar { position: static; }
    .two-col { gap: 1.25rem; grid-template-columns: 1.1fr .9fr; }
    .form-row { grid-template-columns: 1fr; }
    .detail { gap: 2rem; }
    .steps { grid-template-columns: 1fr; }
    .step { font-size: .88rem; }
}
@media (max-width: 600px) {
    :root { font-size: 13px; }
    .announcement { font-size: .75rem; }
    .header-main { width: 92%; grid-template-columns: 1fr auto; gap: .9rem; padding-block: 1rem .75rem; }
    .header .logo { font-size: 2.3rem; }
    .header-actions { gap: 1.15rem; }
    .search-wrap { grid-row: 2; grid-column: 1 / -1; }
    .search input { min-height: 40px; padding-block: .6rem; font-size: 1rem; }
    .header-bottom { width: 92%; position: relative; padding-block: 0; border-top: 0; }
    .langs { margin-inline-start: auto; font-size: .72rem; gap: .85rem; }
    .langs a { min-height: 30px; }
    .menu-toggle { display: inline-flex; min-height: 40px; min-width: 30px; background: transparent; color: var(--dark); padding: .3rem; border: 0; }
    .menu-toggle:hover { background: #f6efec; }
    .header .main-nav { flex-wrap: wrap; width: 100%; padding-bottom: .6rem; }
    .js .header .main-nav:not(.is-open) { display: none; }
    .js .header .main-nav.is-open { position: absolute; top: 100%; inset-inline: -4.35%; width: 108.7%; background: #fff; padding: 1rem 4.35%; border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px #342e2a08; }
    .js .main-nav a { min-width: 29%; min-height: 42px; font-size: 1rem; }
    .shell { width: 92%; padding-block: 1.25rem 3rem; }
    .hero { grid-template-columns: 1fr; border-radius: 5px; }
    .hero-copy { padding: 2.2rem 1.8rem 1.5rem; text-align: center; }
    .hero h1 { font-size: 2.35rem; max-width: 370px; margin: .5rem auto .7rem; }
    .hero p { max-width: 340px; margin-inline: auto; font-size: .93rem; }
    .hero-controls, [dir="rtl"] .hero-controls { justify-content: center; margin-top: 1.2rem; }
    .hero-visual { min-height: 240px; padding: .7rem 2rem 1.5rem; }
    .hero-visual img { height: 245px; }
    .hero-visual > a { max-width: 280px; }
    .hero-orbit { width: 240px; }
    .hero-caption { bottom: .65rem; font-size: .7rem; }
    .home-section { margin-top: 2.5rem; }
    .section-heading { margin-bottom: 1.15rem; }
    .section-heading h2 { font-size: 1.4rem; }
    .section-heading .text-link { font-size: .83rem; white-space: nowrap; }
    .category-row { gap: .8rem; }
    .category-row a { flex: 0 0 110px; }
    .category-row img { height: 100px; margin-bottom: .6rem; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .product-info { padding: .85rem .75rem; }
    .product-info h3 { font-size: 1rem; margin-bottom: .4rem; }
    .product-excerpt { font-size: .8rem; }
    .badge { font-size: .67rem; padding: .2rem .45rem; }
    .product-media .badges { inset-inline: .5rem; top: .5rem; }
    .price { font-size: 1.07rem; }
    .price del { font-size: .76rem; }
    .karma-hint { font-size: .77rem; }
    .add-button { font-size: .87rem; padding-inline: .2rem; }
    .add-button .icon { width: 16px; height: 16px; }
    .quantity-stepper button { min-width: 32px; min-height: 40px; padding-inline: .35rem; }
    .quantity-stepper output { padding-inline: .2rem; }
    .remove-product { min-width: 30px; }
    .cart-quantity { gap: .3rem; }
    .needs-section { padding: 1.8rem 1.2rem; }
    .need-links { gap: .7rem; }
    .need-links a { flex: 1 1 40%; justify-content: center; padding: .7rem; gap: .5rem; }
    .need-links a span { display: none; }
    .page-heading { margin-bottom: 1.4rem; align-items: end; }
    .page-heading h1 { font-size: 1.85rem; }
    .filter { gap: .7rem; padding-top: .7rem; }
    .filter .filter-search { flex-basis: 100%; }
    .filter label { min-width: 44%; }
    .detail, .two-col, .order-details-grid, .profile-layout { grid-template-columns: 1fr; gap: 1.6rem; }
    .gallery-stage { max-height: 420px; }
    .gallery-help > span:first-child { display: none; }
    .gallery-help { justify-content: flex-end; }
    .product-detail-info h1 { font-size: 1.9rem; }
    .product-detail-info .cart-control { max-width: 100%; }
    .product-attributes { gap: 1rem .65rem; }
    .panel { padding: 1.3rem; }
    .cart-items { padding-block: .2rem; }
    .cartline { gap: .8rem; flex-wrap: wrap; }
    .cartline > a:has(img) { flex: 0 0 75px; }
    .cartline img { width: 75px; height: 95px; }
    .cartline-copy { min-width: 145px; }
    .cartline-total { margin-inline-start: auto; padding-inline-start: 85px; }
    .cartline .cart-control { max-width: 205px; }
    .form-row { gap: 1.1rem; }
    .form-stack input, .form-stack textarea, .form-stack select, .tracking-form input { font-size: 16px; }
    .karma-form input { font-size: 16px; }
    .profile-nav { flex-direction: row; flex-wrap: wrap; }
    .profile-nav a { flex: 1; white-space: nowrap; text-align: center; padding: .6rem; }
    .auth { margin-block: 1.5rem; }
    .tracking-form { gap: .75rem; }
    .tracking-form label { width: 100%; }
    .tracking-form input { min-width: 160px; }
    .tracking-detail .section-heading { flex-wrap: wrap; }
    .order-code bdi { font-size: 1rem; }
    .store-footer { grid-template-columns: 1fr; padding-block: 2rem 1.3rem; }
    .store-footer nav { justify-content: start; gap: .9rem 1.5rem; }
    .adminbody { flex-direction: column; }
    .sidebar { width: 100%; padding: 1.25rem; }
    .sidebar nav { flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
    .sidebar nav a { padding: .5rem .75rem; }
    .adminmain { width: 100%; padding: 1rem; }
    .chat-toggle { inset-inline-end: 15px; bottom: 15px; }
    .toast { bottom: 1rem; }
}
@media (max-width: 350px) {
    .products { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .header-actions { gap: .8rem; }
    .filter label { min-width: 100%; }
    .statgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.media-editor { min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.media-editor legend { padding-inline: .4rem; font-weight: 600; }
.media-dropzone { border: 2px dashed var(--border); border-radius: 8px; background: #fcf9f7; padding: 1.2rem; margin-block: .8rem; }
.media-dropzone.is-dragging { border-color: var(--rose); background: #f6e9e7; }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin-block: 1rem; }
.admin-media-card { display: flex; flex-direction: column; gap: .7rem; min-width: 0; padding: .8rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.admin-media-card.is-removed { opacity: .55; border-style: dashed; }
.admin-media-card:has([data-media-cover]:checked) { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.admin-media-preview { aspect-ratio: 1; overflow: hidden; background: #f4efeb; border-radius: 5px; }
.admin-media-preview a { display: block; width: 100%; height: 100%; }
.admin-media-preview img, .admin-media-preview video { width: 100%; height: 100%; object-fit: contain; }
.admin-media-card input[type="file"] { font-size: .75rem; padding: .4rem; min-width: 0; }
.admin-media-card label { font-size: .8rem; }
.admin-media-card input[type="radio"] { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--rose); }
.media-file-name { overflow-wrap: anywhere; font-size: .75rem; color: var(--muted); }
.media-row-actions { display: flex; align-items: flex-end; gap: .4rem; }
.media-row-actions label { flex: 1; min-width: 0; }
.media-row-actions button { min-width: 40px; padding-inline: .65rem; }
.media-upload-status { display: flex; flex-direction: column; gap: .5rem; margin-block: 1rem; }
.media-upload-status progress { width: 100%; accent-color: var(--rose); }
.thumbnails button[data-kind="video"] { position: relative; }
.thumbnails button[data-kind="video"] img { height: 48px; }
.thumbnails button[data-kind="video"] .icon { position: absolute; inset-block-start: 14px; inset-inline-start: 23px; color: #fff; filter: drop-shadow(0 1px 3px #000); }
@media (max-width: 480px) {
    .media-editor { padding: .65rem; }
    .media-dropzone { padding: .8rem; }
    .admin-media-grid { grid-template-columns: 1fr; }
}

/* Task delivery: readable administration, distinct editorial sections and account appearance. */
.adminbody { font-size: 16px; }
.adminbody table { font-size: 1rem; }
.adminbody .form-stack label, .adminbody input, .adminbody select, .adminbody textarea { font-size: 1rem; }
.adminbody .sidebar nav a { font-size: 1rem; }
.adminbody .adminform { width: 100%; max-width: none; }
.adminbody .adminmain { padding: clamp(1rem, 2.5vw, 2.4rem); }
.adminbody .text-link { font-size: 1rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-block: 1.5rem; align-items: start; }
.admin-grid > .panel { height: 100%; }
.adminbody h2 { font-size: 1.35rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.action-row button, .action-row .btn { white-space: nowrap; }
.status-actions { display: flex; flex-wrap: wrap; gap: .45rem; max-width: 350px; }
.status-actions button { min-height: 38px; font-size: .86rem; padding: .45rem .7rem; border: 1px solid currentColor; }
.status-badge { display: inline-block; white-space: nowrap; }
.status-created { background: #edf0f6; color: #405279; }
.status-awaitingcontact { background: #fff2d6; color: #7b510a; }
.status-confirmed { background: #e8f0fc; color: #23578c; }
.status-shipped { background: #eee9f7; color: #65428d; }
.status-delivered { background: #e5f1e9; color: #2b6345; }
.status-cancelled { background: #fce8e9; color: #9a3446; }
.status-button:hover { filter: brightness(.94); background: revert-layer; }
.whatsapp { background: #216c49; color: #fff; }
.whatsapp:hover { background: #174f35; }
.tracking-contact { margin-block: 0 1.5rem; }
.save-bar { position: sticky; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; z-index: 5; box-shadow: 0 5px 25px #24151f12; }
.settings-form legend { padding-inline: .5rem; font-weight: 600; }
.dashboard-stats strong { display: block; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.5; color: var(--dark); margin-block: .6rem; }
.dashboard-stats small { font-size: .95rem; }
.dashboard-stats span { font-size: .85rem; color: var(--muted); }
.revenue-chart { width: 100%; height: auto; direction: ltr; color: var(--muted); }
.revenue-chart rect { fill: #936574; }
.revenue-chart rect:hover { fill: #553f48; }
.revenue-chart text { fill: currentColor; font: 12px "Segoe UI", sans-serif; }
.status-chart { display: grid; gap: 1.1rem; }
.status-chart > div { display: grid; grid-template-columns: 140px 1fr 2rem; gap: .8rem; align-items: center; }
.status-chart meter { width: 100%; height: .9rem; accent-color: var(--rose); }
.category-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.2rem; }
.category-admin-card { display: flex; align-items: center; gap: 1.25rem; padding: 1rem; transition: border-color .2s; }
.category-admin-card:hover { border-color: var(--rose); }
.category-admin-card > img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; }
.category-admin-card h2 { margin: 0; }
.category-admin-card .status-badge { display: table; margin-top: .5rem; }
.category-admin-card > span { margin-inline-start: auto; }
.image-preview img { width: 240px; max-height: 220px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #f5f0ec; }
.blog-media-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.blog-media-editor .panel { padding: .7rem; }
.blog-media-editor img { width: 100%; height: 140px; object-fit: contain; margin-bottom: .7rem; }
.file-previews { display: flex; flex-wrap: wrap; gap: .7rem; }
.file-previews img { width: 100px; height: 100px; object-fit: contain; border: 1px solid var(--border); }
.tag-editor { display: flex; flex-wrap: wrap; gap: .6rem; padding: .7rem; border: 1px solid var(--border); border-radius: 5px; }
.tag-chips { display: contents; }
.tag-editor input { width: auto; flex: 1 1 150px; border: 0; }
.tag-editor button.tag-chip { min-height: 34px; padding: .25rem .75rem; border-radius: 30px; background: #f0e7eb; color: var(--dark); font-size: .95rem; }
.adminbody .ql-toolbar button { min-height: 28px; border-radius: 0; padding: 3px 5px; transition: none; }
.adminbody .ql-toolbar button:hover { background: #f4eeef; }
.adminbody .ql-toolbar { background: #faf8f6; border-radius: 5px 5px 0 0; }
.adminbody .ql-container { min-height: 200px; width: 100%; border-radius: 0 0 5px 5px; font: inherit; background: #fff; }
.adminbody .ql-editor { min-height: 200px; max-height: 600px; font: inherit; line-height: 1.9; }
.adminbody .ql-toolbar, .adminbody .ql-container { direction: ltr; }
.adminbody .ql-editor[dir="rtl"], .rich-editor[dir="rtl"] .ql-editor { direction: rtl; text-align: right; }
.article-body { white-space: normal; overflow-wrap: anywhere; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body blockquote { border-inline-start: 3px solid var(--rose); margin-inline: 0; padding-inline: 1.3rem; color: var(--muted); }
.article-body a { color: var(--rose); text-decoration: underline; }
.article-body pre { overflow-x: auto; direction: ltr; text-align: left; padding: 1rem; background: #f4eeea; border-radius: 5px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; margin-block: 1.5rem; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-block: 2rem; }
.article-gallery figure { margin: 0; }
.article-gallery img, .article-gallery video { width: 100%; max-height: 500px; object-fit: contain; border-radius: 5px; }
.chat-inbox { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.conversation-list { padding: .7rem; }
.conversation-list > a { display: block; padding: 1rem; border-bottom: 1px solid var(--border); border-radius: 5px; }
.conversation-list > a[aria-current="page"] { background: #f5ecef; }
.conversation-list strong, .conversation-list small { display: block; }
.conversation-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conversation-list .status-badge { font-size: .75rem; margin-top: .5rem; }
.admin-transcript { max-height: 65vh; overflow-y: auto; margin-block: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-message { max-width: 90%; padding: .8rem 1rem; border-radius: 8px; background: #f3eeeb; }
.chat-message p { white-space: pre-wrap; margin: .5rem 0 0; overflow-wrap: anywhere; }
.chat-message.role-customer { background: #edf2e9; align-self: start; }
.chat-message.role-staff { background: #e9eef9; align-self: end; }
.chat-message.role-assistant { align-self: end; }
.transcript .staff { background: #e9eef9; border-inline-start: 3px solid #52709d; }
.transcript p { white-space: pre-wrap; }
.chat-queued { font-size: .8rem; color: var(--muted); }
.initial-quantity input { font-size: 1.3rem; font-weight: 600; text-align: center; direction: ltr; padding-inline: .4rem; min-height: 46px; }
.quantity-stepper output { display: grid; place-items: center; min-width: 3rem; font-size: 1.25rem; font-weight: 600; text-align: center; }
.suggest-price { display: flex; flex-direction: column; align-items: end; gap: .1rem; }
.search-results .suggest-price strong { font-size: 1rem; font-weight: 600; }
.suggest-price del { font-size: .8rem; color: var(--muted); }
.ritual-strip { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.6rem) / 4); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: .2rem 1rem; scrollbar-width: thin; }
.product-rail > * { scroll-snap-align: start; }
.offer-editorial { display: grid; grid-template-columns: .9fr 1.3fr; gap: 2rem; align-items: stretch; }
.offer-story { position: relative; background: #eee1d7; border-radius: 8px; padding: clamp(1.5rem, 3vw, 3rem); overflow: hidden; }
.offer-story h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 340px; }
.offer-story > p { color: #725b56; max-width: 330px; }
.offer-story-image { margin: 1rem auto -3rem; width: 65%; }
.offer-story-image img { max-height: 330px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.offer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.featured-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.featured-edit > :nth-child(even) { transform: translateY(1.5rem); }
.journal-section { padding-top: 1.5rem; }
.journal-card { overflow: hidden; }
.journal-card img { width: 100%; height: 240px; object-fit: cover; border-radius: 5px; margin-bottom: 1.2rem; }
.journal-card .tags { margin-block: .8rem; }
.journal-card h3 { font-size: 1.3rem; }
.will-reveal.is-visible { animation: section-arrive .65s ease both; }
@keyframes section-arrive { from { opacity: .45; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-visual img { animation: hero-arrive .8s ease both; }
@keyframes hero-arrive { from { opacity: .5; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.preferences-panel { margin-top: 2rem; max-width: 950px; }
:root[data-font-size="large"] { font-size: 17px; }
:root[data-font="system"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
:root[data-theme="dark"] { --bg: #1e1a1d; --surface: #2a2428; --text: #f1e9ec; --muted: #c1b4ba; --dark: #d9a9bc; --rose: #e0b2c4; --sage: #a5c4ad; --border: #4d4048; color-scheme: dark; }
:root[data-theme="dark"] :is(.header,.product-card,.search-results,.account-links,.chat,.need-links a,.category-pills a,input,select,textarea,.save-bar) { background: var(--surface); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] :is(.store-footer,.announcement,.search,.needs-section,.notice,.transcript p,.profile-nav a[aria-current="page"],.tracking-notice) { background: #342c31; color: var(--text); }
:root[data-theme="dark"] :is(.hero,.hero-visual,.offer-story) { background: #44363d; }
:root[data-theme="dark"] :is(.hero p,.hero-caption,.offer-story > p,.product-content p,.totals dt,.store-footer p) { color: var(--muted); }
:root[data-theme="dark"] :is(button,.btn) { background: #82576a; color: #fff; }
:root[data-theme="dark"] .secondary { background: transparent; color: var(--text); }
:root[data-theme="dark"] .whatsapp { background: #276d4e; }
:root[data-theme="dark"] .hero-visual img { mix-blend-mode: normal; }
:root[data-theme="dark"] th { background: #342c31; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] { --bg: #1e1a1d; --surface: #2a2428; --text: #f1e9ec; --muted: #c1b4ba; --dark: #d9a9bc; --rose: #e0b2c4; --sage: #a5c4ad; --border: #4d4048; color-scheme: dark; }
    :root[data-theme="system"] :is(.header,.product-card,.search-results,.account-links,.chat,.need-links a,.category-pills a,input,select,textarea) { background: var(--surface); color: var(--text); border-color: var(--border); }
    :root[data-theme="system"] :is(.store-footer,.announcement,.search,.needs-section,.notice,.transcript p,.hero,.hero-visual,.offer-story,.profile-nav a[aria-current="page"],.tracking-notice) { background: #342c31; color: var(--text); }
    :root[data-theme="system"] :is(.hero p,.offer-story > p,.product-content p,.store-footer p) { color: var(--muted); }
    :root[data-theme="system"] :is(button,.btn) { background: #82576a; color: #fff; }
    :root[data-theme="system"] .secondary { background: transparent; color: var(--text); }
}
@media (max-width: 1100px) {
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offer-editorial { grid-template-columns: 1fr; }
    .offer-story { min-height: 270px; padding-inline-end: 45%; }
    .offer-story-image { position: absolute; inset-inline-end: 2rem; top: 1rem; width: 35%; margin: 0; }
    .adminbody .sidebar { width: 190px; }
    .adminbody .adminmain { width: calc(100% - 190px); }
    .adminbody .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .admin-grid, .chat-inbox { grid-template-columns: 1fr; }
    .adminbody { display: block; }
    .adminbody .sidebar { width: 100%; padding: 1rem; }
    .adminbody .sidebar .logo { font-size: 1.8rem; }
    .adminbody .sidebar nav { display: flex; flex-direction: row; overflow-x: auto; flex-wrap: nowrap; margin-top: 1rem; gap: .35rem; padding-bottom: .3rem; }
    .adminbody .sidebar nav a { white-space: nowrap; font-size: .94rem; padding: .5rem .75rem; }
    .adminbody .sidebar .langs { display: inline-flex; margin-block: .5rem; margin-inline-end: 1.5rem; }
    .adminbody .sidebar > form { display: inline-block; }
    .adminbody .adminmain { width: 100%; padding: 1rem; }
    .adminbody h1 { font-size: 1.6rem; }
    .section-heading { align-items: start; flex-wrap: wrap; }
    .product-rail { grid-auto-columns: 76%; gap: 1rem; }
    .featured-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .offer-products { gap: .8rem; }
    .offer-story { padding-inline-end: 1.5rem; }
    .offer-story-image { position: static; width: 60%; max-height: 200px; margin: 1rem auto -2rem; }
    .offer-story-image img { max-height: 230px; }
    .ritual-strip { font-size: .75rem; justify-content: start; gap: .5rem 1.2rem; }
    .conversation-list { max-height: 350px; overflow-y: auto; }
    .status-chart > div { grid-template-columns: 110px 1fr 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .will-reveal { opacity: 1; transform: none; }
}

.hero[data-motion="false"] img { animation: none; }

html[lang="ar"] .ql-snow .ql-picker.ql-header .ql-picker-label::before,
html[lang="ar"] .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: "عادي"; }
html[lang="ar"] .ql-snow .ql-picker.ql-header [data-value="2"]::before { content: "عنوان 2"; }
html[lang="ar"] .ql-snow .ql-picker.ql-header [data-value="3"]::before { content: "عنوان 3"; }
html[lang="ar"] .ql-snow .ql-tooltip::before { content: "الرابط:"; }
html[lang="ar"] .ql-snow .ql-tooltip a.ql-action::after { content: "حفظ"; }
html[lang="ar"] .ql-snow .ql-tooltip a.ql-remove::before { content: "حذف"; }

.bestsellers-edit { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2.5rem; border-block: 1px solid var(--border); padding-block: 2rem; align-items: center; }
.bestsellers-edit h2 { font-size: 2rem; }
.bestsellers-edit ol { display: grid; gap: .8rem; padding: 0; margin: 0; list-style: none; counter-reset: best; }
.bestsellers-edit li { counter-increment: best; }
.bestsellers-edit li a { display: flex; align-items: center; gap: 1.1rem; }
.bestsellers-edit li a::before { content: "0" counter(best); color: var(--rose); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.bestsellers-edit img { width: 76px; height: 85px; object-fit: contain; border-radius: 5px; background: #f2eae5; }
.bestsellers-edit h3 { margin: .2rem 0; }
.bestsellers-edit bdi { font-size: .9rem; color: var(--dark); }
.bestsellers-edit a > span:last-child { margin-inline-start: auto; }
.print-totals dd { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 700px) { .bestsellers-edit { grid-template-columns: 1fr; gap: 1.5rem; } }
