/* =========================================================
   عطر بامبو — Main Theme
   RTL / Responsive / Light & Dark Theme
   ========================================================= */

/* ---------------------------------------------------------
   Fonts
   --------------------------------------------------------- */
@font-face {
  font-family: Vazirmatn;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* ---------------------------------------------------------
   Design Tokens
   --------------------------------------------------------- */
:root {
  --bg: #232622;
  --fg: #f0ece1;
  --card: #2b2f2a;
  --card2: #262a25;

  --primary: #d4af37;
  --primary-fg: #231f14;

  --muted: #3a3f38;
  --muted-fg: #a8a79d;

  --accent: #3d5c40;
  --accent-fg: #dcead6;

  --border: rgba(240, 236, 225, .12);
  --input: rgba(240, 236, 225, .15);

  --gold: #d4af37;
  --gold-soft: #e6cf7a;
  --gold-deep: #a98a4e;

  --bamboo: #7fae72;
  --bamboo-soft: #9cc98d;
  --danger: #e0654f;

  --radius: 1rem;
  --radius-sm: .65rem;
  --shadow: 0 18px 40px -24px rgba(212, 175, 55, .25);
}

/* ---------------------------------------------------------
   Base / Reset
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  font-family: Vazirmatn, system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  background-image:
    radial-gradient(42rem 28rem at 85% -6%, rgba(61, 92, 64, .28), transparent 65%),
    radial-gradient(38rem 26rem at 8% 12%, rgba(169, 138, 78, .14), transparent 60%);
  background-attachment: fixed;
  color-scheme: dark;
}

button:not([disabled]),
a.btn {
  cursor: pointer;
}

::selection {
  background: rgba(212, 175, 55, .3);
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */
.gold-gradient {
  background: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold-soft) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-line {
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(212, 175, 55, .55), transparent);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.hide-sm {
  display: inline;
}

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

.center {
  text-align: center;
}

/* ---------------------------------------------------------
   Buttons / Badges / Forms
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(212, 175, 55, .55);
}

.btn-outline {
  border-color: rgba(212, 175, 55, .3);
  background: transparent;
  color: var(--fg);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, .08);
  border-color: rgba(212, 175, 55, .55);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-fg);
}

.btn-ghost:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, .06);
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  border-color: rgba(224, 101, 79, .4);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(224, 101, 79, .1);
  transform: translateY(-1px);
}

.btn-lg {
  padding: .85rem 1.6rem;
  font-size: 1rem;
  border-radius: .8rem;
}

.btn-sm {
  padding: .45rem .8rem;
  font-size: .8rem;
}

.btn-block {
  width: 100%;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .65rem;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 999px;
  color: var(--gold);
  font-size: .7rem;
}

label.fld {
  display: block;
  margin-bottom: 1rem;
}

label.fld span.lab {
  display: block;
  margin-bottom: .35rem;
  font-size: .85rem;
  font-weight: 700;
}

.hint {
  margin-top: .3rem;
  color: var(--muted-fg);
  font-size: .72rem;
}

.err {
  display: block;
  min-height: 1rem;
  margin-top: .3rem;
  color: var(--danger);
  font-size: .75rem;
}

input[type='text'],
input[type='tel'],
input[type='search'],
select,
textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: rgba(240, 236, 225, .04);
  color: var(--fg);
  font: inherit;
  transition: border .2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, .6);
}

input.invalid,
select.invalid {
  border-color: var(--danger);
}

.form-error {
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(224, 101, 79, .4);
  border-radius: var(--radius-sm);
  background: rgba(224, 101, 79, .12);
  color: var(--danger);
  font-size: .85rem;
}

.form-success {
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(127, 174, 114, .4);
  border-radius: var(--radius-sm);
  background: rgba(127, 174, 114, .12);
  color: var(--bamboo);
  font-size: .85rem;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(35, 38, 34, .85);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 82rem;
  height: 5.4rem;
  margin-inline: auto;
  padding-inline: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 4px;
  border: 2px solid rgba(212, 175, 55, .45);
  border-radius: 16px;
  background: #f1f0eb;
  box-shadow: 0 8px 22px rgba(212, 175, 55, .20);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, .24);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-inline-start: 2.4rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .38rem .72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--fg);
  font-size: .82rem;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.main-nav a:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, .08);
  border-color: rgba(212, 175, 55, .22);
  transform: translateY(-1px);
}

.main-nav a.active {
  color: var(--gold);
  background: rgba(212, 175, 55, .11);
  border-color: rgba(212, 175, 55, .35);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-inline-start: auto;
}

.header-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: .38rem .75rem;
  font-size: .8rem;
}

#themeToggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  line-height: 1;
}

/* ---------------------------------------------------------
   Layout / Footer
   --------------------------------------------------------- */
.page {
  max-width: 76rem;
  min-height: 50vh;
  margin-inline: auto;
  padding: 2rem 1rem;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: rgba(43, 47, 42, .4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  max-width: 76rem;
  margin-inline: auto;
  padding: 3.5rem 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.footer-title {
  margin-bottom: .8rem;
  font-weight: 700;
}

.footer-list li {
  margin-bottom: .5rem;
  color: var(--muted-fg);
  font-size: .85rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}

.footer-list a:hover {
  color: var(--gold);
}

.footer-list .dot {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: rgba(212, 175, 55, .6);
}

.footer-list.contact li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.footer-desc {
  color: var(--muted-fg);
  font-size: .85rem;
}

.footer-bottom {
  padding: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: .72rem;
  text-align: center;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

/* ---------------------------------------------------------
   Cards / Product Grids
   --------------------------------------------------------- */
.card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .7);
}

.grid-perfumes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .7);
  text-align: right;
  transition: all .3s;
}

.p-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, .4);
}

.p-card .bottle-wrap {
  width: 9rem;
  height: 11rem;
  margin-inline: auto;
  transition: transform .3s;
}

.p-card:hover .bottle-wrap {
  transform: scale(1.05);
}

.p-card h3 {
  margin-top: .8rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.p-card:hover h3 {
  color: var(--gold);
}

.p-card .latin {
  color: var(--muted-fg);
  direction: ltr;
  font-size: .72rem;
  text-align: right;
}

.p-card .tagline {
  display: -webkit-box;
  margin-top: .5rem;
  overflow: hidden;
  color: var(--muted-fg);
  font-size: .72rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.p-card .foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.p-card .price {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
}

.p-card .price small {
  color: var(--muted-fg);
  font-size: .62rem;
}

.p-card .row-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
}

.bottle-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------
   Product Images
   --------------------------------------------------------- */
.bottle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

.bottle-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-art .bottle-wrap,
.p-card .bottle-wrap {
  overflow: hidden;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 0 3.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.2rem;
  padding: .3rem .9rem;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 999px;
  color: var(--gold);
  font-size: .75rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.35;
}

.hero p.lead {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted-fg);
  font-size: 1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bottle {
  width: 16rem;
  height: 20rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.stat {
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(43, 47, 42, .5);
  text-align: center;
}

.stat b {
  display: block;
  color: var(--gold);
  font-size: 1.05rem;
}

.stat span {
  color: var(--muted-fg);
  font-size: .7rem;
}

/* ---------------------------------------------------------
   Promo Slider
   --------------------------------------------------------- */
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 8.5rem;
  padding: 1.6rem 3.2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(61, 92, 64, .25), rgba(43, 47, 42, .6));
}

.promo-slide {
  display: none;
  animation: fadeIn .5s;
}

.promo-slide.on {
  display: block;
}

.promo-slide h3 {
  margin-bottom: .4rem;
  color: var(--gold);
  font-size: 1.05rem;
}

.promo-slide p {
  color: var(--muted-fg);
  font-size: .85rem;
}

.promo-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 99px;
  background: rgba(212, 175, 55, .1);
  color: var(--gold);
  font-size: 1rem;
  transform: translateY(-50%);
  transition: all .2s;
}

.promo-arrow:hover {
  background: rgba(212, 175, 55, .25);
}

.promo-arrow.prev {
  inset-inline-start: .6rem;
}

.promo-arrow.next {
  inset-inline-end: .6rem;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
}

.promo-dots button {
  width: .5rem;
  height: .5rem;
  border-radius: 99px;
  background: rgba(212, 175, 55, .25);
  transition: all .2s;
}

.promo-dots button.on {
  width: 1.2rem;
  background: var(--gold);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------
   Sections / Categories / Offers
   --------------------------------------------------------- */
.section {
  margin-top: 3.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: 1.4rem;
  font-weight: 900;
}

.section-head .gold-line {
  flex: 1;
  margin-inline: 1.2rem;
}

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
}

.cat-tile {
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .6);
  text-align: center;
  transition: all .25s;
}

.cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, .45);
}

.cat-tile .cnt {
  color: var(--muted-fg);
  font-size: .68rem;
}

.cat-tile b {
  display: block;
  margin-top: .3rem;
  color: var(--gold);
}

.cat-tile p {
  margin-top: .3rem;
  color: var(--muted-fg);
  font-size: .7rem;
}

.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(169, 138, 78, .18), rgba(43, 47, 42, .7));
}

.offer h3 {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
}

.offer p {
  margin-top: .4rem;
  color: var(--muted-fg);
  font-size: .9rem;
}

.guarantee-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
}

.g-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(43, 47, 42, .5);
}

.g-item svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin-top: .2rem;
  color: var(--gold);
}

.g-item b {
  display: block;
  font-size: .85rem;
}

.g-item span {
  color: var(--muted-fg);
  font-size: .72rem;
}

/* ---------------------------------------------------------
   Shop / Filters / Search
   --------------------------------------------------------- */
.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box {
  flex: 1;
  min-width: 16rem;
  max-width: 24rem;
}

.search-box input[type='search'] {
  width: 100%;
  height: 2.7rem;
  padding: .6rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(240, 236, 225, .04);
  color: var(--fg);
  font-family: inherit;
  font-size: .85rem;
  direction: rtl;
  transition: all .2s ease;
}

.search-box input[type='search']::placeholder {
  color: var(--muted-fg);
  opacity: 1;
}

.search-box input[type='search']:focus {
  border-color: rgba(212, 175, 55, .65);
  background: rgba(240, 236, 225, .06);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .08);
}

.search-box input[type='search']::-webkit-search-cancel-button {
  appearance: none;
  width: 1rem;
  height: 1rem;
  opacity: .6;
  cursor: pointer;
}

.search-box input[type='search']::-webkit-search-cancel-button:hover {
  opacity: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.chip {
  padding: .4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-fg);
  font-size: .8rem;
  transition: all .2s;
}

.chip:hover {
  border-color: rgba(212, 175, 55, .5);
  color: var(--gold);
}

.chip.on {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .5);
}

.filter-bar .fld-inline {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.filter-bar .fld-inline > span {
  color: var(--muted-fg);
  font-size: .72rem;
}

/* ---------------------------------------------------------
   Product Detail
   --------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: 3rem;
}

.product-art {
  display: flex;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .5);
}

.product-art .bottle-wrap {
  width: 14rem;
  height: 18rem;
}

.product-art .bottle-image {
  max-width: 100%;
  max-height: 100%;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 1.2rem;
}

.note-col {
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(43, 47, 42, .5);
}

.note-col b {
  display: block;
  margin-bottom: .4rem;
  color: var(--gold);
  font-size: .75rem;
}

.note-col span {
  display: block;
  color: var(--muted-fg);
  font-size: .75rem;
}

.step {
  margin-bottom: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .55);
}

.step-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 99px;
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 900;
}

.step-head b {
  font-size: .95rem;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
}

.size-btn {
  padding: .55rem .3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: .82rem;
  transition: all .2s;
}

.size-btn:hover {
  border-color: rgba(212, 175, 55, .5);
}

.size-btn.on {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
  font-weight: 900;
}

.longevity-meter {
  margin-top: 1rem;
}

.meter-track {
  height: .45rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(240, 236, 225, .12);
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to left, var(--gold-deep), var(--gold));
  transition: width .35s;
}

.guarantee-note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, .07);
  color: var(--muted-fg);
  font-size: .75rem;
}

.guarantee-note svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: .15rem;
  color: var(--gold);
}

.price-summary {
  padding: 1.4rem;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(169, 138, 78, .12), rgba(43, 47, 42, .7));
  text-align: center;
}

.price-summary .amount {
  color: var(--gold);
  font-size: 1.7rem;
  font-weight: 900;
}

.price-summary .detail {
  margin-top: .3rem;
  color: var(--muted-fg);
  font-size: .75rem;
}

.current-tier-price {
  display: inline-block;
  min-width: 180px;
  margin-bottom: .6rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: .8rem;
  background: rgba(212, 175, 55, .08);
  box-shadow: 0 8px 20px -12px rgba(212, 175, 55, .35);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

/* ---------------------------------------------------------
   Quality Slider
   --------------------------------------------------------- */
input[type='range'].bamboo-range {
  width: 100%;
  height: .45rem;
  padding: 0;
  border: 0;
  border-radius: 99px;
  outline: none;
  appearance: none;
  background: linear-gradient(
    to left,
    var(--gold-deep),
    var(--gold) var(--fill, 50%),
    rgba(240, 236, 225, .14) var(--fill, 50%)
  );
}

input[type='range'].bamboo-range::-webkit-slider-thumb {
  width: 1.35rem;
  height: 1.35rem;
  appearance: none;
  border: 3px solid #3d3a2c;
  border-radius: 99px;
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .8), 0 6px 18px rgba(212, 175, 55, .35);
  cursor: pointer;
}

input[type='range'].bamboo-range::-moz-range-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border: 3px solid #3d3a2c;
  border-radius: 99px;
  background: var(--gold-soft);
  cursor: pointer;
}

.tier-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .4rem;
  color: var(--muted-fg);
  font-size: .65rem;
}

/* ---------------------------------------------------------
   Cart
   --------------------------------------------------------- */
.cart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .55);
}

.cart-item .bottle-wrap {
  width: 4rem;
  height: 5rem;
  flex: none;
}

.cart-item .info {
  flex: 1;
}

.cart-item .info b {
  display: block;
  font-size: .9rem;
}

.cart-item .meta {
  margin-top: .2rem;
  color: var(--muted-fg);
  font-size: .72rem;
}

.cart-item .line-price {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 900;
  white-space: nowrap;
}

.cart-item .rm {
  padding: .3rem;
  background: none;
  color: var(--danger);
  opacity: .7;
}

.cart-item .rm:hover {
  opacity: 1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
  font-size: .85rem;
}

.summary-row.total {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 900;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin: .8rem 0;
}

.pay-method {
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: .8rem;
  text-align: center;
  transition: all .2s;
}

.pay-method.on {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .12);
  color: var(--gold);
  font-weight: 700;
}

.pay-method small {
  display: block;
  margin-top: .2rem;
  color: var(--muted-fg);
  font-size: .65rem;
}

.empty-cart {
  padding: 4rem 1rem;
  color: var(--muted-fg);
  text-align: center;
}

.empty-cart svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  opacity: .4;
}

/* ---------------------------------------------------------
   Auth Pages
   --------------------------------------------------------- */
.auth-wrap {
  max-width: 26rem;
  margin-inline: auto;
  padding-top: 2rem;
}

.auth-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .75);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

/* =========================
   AUTH LOGO
   ========================= */

.auth-logo img{
  width:5.5rem;
  height:5.5rem;

  object-fit:contain;
  display:block;

  border-radius:1.2rem;
  border:2px solid rgba(212,175,55,.45);

  /* تم شب: سفید ملایم */
  background:#f1f0eb;

  box-shadow:
    0 12px 40px -12px rgba(212,175,55,.28);

  padding:4px;

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

/* تم روز: مشکی / زغالی ملایم */
body.light-theme .auth-logo img{
  background:#242622;
  border-color:rgba(169,138,78,.55);

  box-shadow:
    0 12px 40px -12px rgba(0,0,0,.14);
}

.auth-card h1 {
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
}

.auth-card .sub {
  margin: .4rem 0 1.5rem;
  color: var(--muted-fg);
  font-size: .8rem;
  text-align: center;
}

.auth-alt {
  margin-top: 1.2rem;
  color: var(--muted-fg);
  font-size: .8rem;
  text-align: center;
}

.auth-alt a {
  color: var(--gold);
  font-weight: 700;
}

/* ---------------------------------------------------------
   Dashboard / Orders
   --------------------------------------------------------- */
.order-card {
  margin-bottom: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .55);
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .8rem;
}

.status {
  padding: .2rem .8rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}

.status.confirmed {
  border: 1px solid rgba(127, 174, 114, .4);
  background: rgba(127, 174, 114, .15);
  color: var(--bamboo);
}

.status.awaiting-payment {
  border: 1px solid rgba(212, 175, 55, .4);
  background: rgba(212, 175, 55, .12);
  color: var(--gold);
}

.status.cancelled {
  border: 1px solid rgba(224, 101, 79, .4);
  background: rgba(224, 101, 79, .12);
  color: var(--danger);
}

.order-items {
  color: var(--muted-fg);
  font-size: .78rem;
}

.order-items li {
  padding: .25rem 0;
  border-bottom: 1px dashed var(--border);
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-action {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 47, 42, .55);
  text-align: center;
  transition: all .25s;
}

.dash-action:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, .45);
}

.dash-action svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: .5rem;
  color: var(--gold);
}

.dash-action b {
  display: block;
  font-size: .85rem;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fact {
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(43, 47, 42, .5);
}

.fact span {
  display: block;
  color: var(--muted-fg);
  font-size: .68rem;
}

.fact b {
  font-size: .88rem;
}

/* ---------------------------------------------------------
   Payment Result
   --------------------------------------------------------- */
.pay-result {
  max-width: 30rem;
  margin-inline: auto;
  padding: 3rem 1rem;
  text-align: center;
}

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.2rem;
  border-radius: 99px;
}

.pay-icon.ok {
  border: 1px solid rgba(127, 174, 114, .45);
  background: rgba(127, 174, 114, .15);
  color: var(--bamboo);
}

.pay-icon.bad {
  border: 1px solid rgba(224, 101, 79, .45);
  background: rgba(224, 101, 79, .12);
  color: var(--danger);
}

.pay-icon svg {
  width: 2rem;
  height: 2rem;
}

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */
#toast {
  position: fixed;
  bottom: 1.2rem;
  inset-inline-start: 50%;
  z-index: 100;
  padding: .7rem 1.3rem;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--fg);
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(50%);
  transition: opacity .3s;
  box-shadow: var(--shadow);
}

#toast.show {
  opacity: 1;
}

/* ---------------------------------------------------------
   Social Icons
   --------------------------------------------------------- */
.footer-social .social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.footer-social .social-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(240, 236, 225, .04);
  transition: all .2s ease;
}

.footer-social .social-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, .5);
  background: rgba(212, 175, 55, .08);
}

.footer-social .social-links a img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ---------------------------------------------------------
   Select / Option
   --------------------------------------------------------- */
select,
option,
optgroup {
  color: #f0ece1;
  background: #2b2f2a;
}

body.light-theme {
  color-scheme: light;
}

body.light-theme select,
body.light-theme option,
body.light-theme optgroup {
  color: #222;
  background: #fff;
}

select {
  color: var(--fg);
  background-color: var(--card);
}

body.light-theme select {
  color: #222;
  background-color: #fff;
}

/* ---------------------------------------------------------
   Light Theme
   --------------------------------------------------------- */
body.light-theme {
  --bg: #f8f6f1;
  --fg: #222;
  --card: #fff;
  --card2: #f3f3f3;
  --muted: #ddd;
  --muted-fg: #555;
  --border: rgba(0, 0, 0, .10);
  --input: rgba(0, 0, 0, .15);

  background-color: var(--bg);
  background-image:
    radial-gradient(42rem 28rem at 85% -6%, rgba(61, 92, 64, .08), transparent 65%),
    radial-gradient(38rem 26rem at 8% 12%, rgba(169, 138, 78, .07), transparent 60%);
}

body.light-theme .brand-logo {
  background: #242622;
  border-color: rgba(169, 138, 78, .55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

body.light-theme .product-art {
  border-color: rgba(0, 0, 0, .09);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}

body.light-theme .site-header {
  border-bottom-color: rgba(0, 0, 0, .08);
  background: rgba(248, 246, 241, .88);
}

body.light-theme .card,
body.light-theme .p-card,
body.light-theme .stat,
body.light-theme .cat-tile,
body.light-theme .g-item,
body.light-theme .step,
body.light-theme .note-col,
body.light-theme .cart-item,
body.light-theme .order-card,
body.light-theme .dash-action,
body.light-theme .auth-card {
  border-color: rgba(0, 0, 0, .09);
  background: #fff;
}

body.light-theme .site-footer {
  background: #f1efe9;
}

body.light-theme input[type='text'],
body.light-theme input[type='tel'],
body.light-theme input[type='search'],
body.light-theme select,
body.light-theme textarea {
  border-color: rgba(0, 0, 0, .15);
  background: #fff;
  color: #222;
}

body.light-theme .filter-bar {
  background: #fff;
}

body.light-theme .promo {
  background: linear-gradient(135deg, rgba(61, 92, 64, .08), rgba(255, 255, 255, .9));
}

body.light-theme .offer {
  background: linear-gradient(120deg, rgba(169, 138, 78, .10), #fff);
}

body.light-theme .price-summary {
  background: linear-gradient(135deg, rgba(169, 138, 78, .08), #fff);
}

body.light-theme .muted,
body.light-theme .footer-desc,
body.light-theme .footer-list li {
  color: #555;
}

body.light-theme .btn-outline {
  border-color: rgba(169, 138, 78, .45);
  color: #222;
}

body.light-theme .pay-method {
  color: #222;
}

body.light-theme .fact {
  border-color: rgba(212, 175, 55, .35);
  background: #fffdf7;
}

body.light-theme .fact span {
  color: #8b6f2f;
}

body.light-theme .fact b {
  color: #222;
}

body.light-theme .btn-primary {
  background: #d4af37;
  color: #222;
}

body.light-theme ::selection {
  background: rgba(212, 175, 55, .25);
}

/* ---------------------------------------------------------
   Mobile Header / Hamburger
   --------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.mobile-menu-toggle:hover {
  border-color: rgba(212, 175, 55, .55);
  background: rgba(212, 175, 55, .08);
  color: var(--gold);
}

.mobile-menu {
  display: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 56rem) {
  /* General layout */
  .page {
    padding: 1.5rem .75rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    max-width: 28rem;
    margin-inline: auto;
  }

  .product-grid,
  .cart-grid {
    grid-template-columns: 1fr;
  }

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

  .sizes {
    grid-template-columns: repeat(4, 1fr);
  }

  .notes {
    grid-template-columns: 1fr;
  }

  /* Mobile header */
  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
    height: 5rem;
    padding-inline: .35rem;
    gap: .4rem;
  }

  .main-nav {
    display: none !important;
  }

  .brand {
    gap: .45rem;
  }

  .brand-logo {
    width: 4.5rem;
    height: 4.5rem;
    margin-inline-end: -.15rem;
    padding: 4px;
    border-radius: 14px;
  }

  .brand-text {
    display: flex;
  }

  .brand-name {
    font-size: .82rem;
    white-space: nowrap;
  }

  .header-actions {
    gap: .3rem;
    flex-shrink: 0;
  }

  .header-actions .btn,
  #themeToggle,
  .cart-btn,
  .account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .header-actions .hide-sm {
    display: none !important;
  }

  .header-actions .icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
    flex-shrink: 0;
  }

  /* Mobile dropdown */
  .mobile-menu {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .7rem;
    border-bottom: 1px solid var(--border);
    background: rgba(35, 38, 34, .97);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity .2s ease,
      transform .2s ease,
      visibility .2s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: .9rem;
    text-decoration: none;
    transition:
      background .2s ease,
      color .2s ease,
      border-color .2s ease;
  }

  .mobile-menu a:hover {
    border-color: rgba(212, 175, 55, .25);
    background: rgba(212, 175, 55, .08);
    color: var(--gold);
  }

  .mobile-menu a.active {
    border-color: rgba(212, 175, 55, .4);
    background: rgba(212, 175, 55, .12);
    color: var(--gold);
    font-weight: 700;
  }

  body.light-theme .mobile-menu {
    border-color: rgba(0, 0, 0, .08);
    background: rgba(248, 246, 241, .98);
  }

  body.light-theme .mobile-menu a {
    color: #222;
  }

  body.light-theme .mobile-menu a:hover {
    background: rgba(212, 175, 55, .08);
    color: #8b6f2f;
  }

  body.light-theme .mobile-menu a.active {
    background: rgba(212, 175, 55, .12);
    color: #8b6f2f;
  }
}
/* =========================================
   HERO PERFUME FAN CAROUSEL
   ========================================= */

.hero-art{
  min-height:24rem;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

.hero-carousel{
  position:relative;
  width:100%;
  max-width:38rem;
  height:24rem;

  display:flex;
  align-items:center;
  justify-content:center;

  perspective:1200px;
}

/* کارت عطر */

.hero-perfume-card{
  position:absolute;
  top:50%;
  left:50%;

  width:10rem;
  height:15rem;

  transform:
    translate(-50%,-50%)
    scale(.72);

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;

  padding:1rem .8rem;

  border:1px solid rgba(212,175,55,.16);
  border-radius:1.2rem;

  background:
    linear-gradient(
      180deg,
      rgba(43,47,42,.78),
      rgba(35,38,34,.92)
    );

  box-shadow:
    0 20px 35px rgba(0,0,0,.20);

  opacity:.35;

  transition:
    transform .8s cubic-bezier(.22,.61,.36,1),
    opacity .6s ease,
    box-shadow .5s ease,
    border-color .5s ease,
    filter .5s ease;

  z-index:1;
}

/* عکس */

.hero-perfume-image{
  width:100%;
  height:11.5rem;

  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-perfume-img{
  display:block;

  width:auto;
  height:auto;

  max-width:100%;
  max-height:100%;

  object-fit:contain;

  filter:drop-shadow(0 14px 12px rgba(0,0,0,.22));

  transition:
    transform .8s cubic-bezier(.22,.61,.36,1),
    filter .5s ease;
}

/* اسم */

.hero-perfume-name{
  width:100%;

  margin-top:.55rem;

  text-align:center;

  font-size:.72rem;
  font-weight:700;

  color:var(--muted-fg);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* -----------------------------
   جایگاه کارت‌ها
   ----------------------------- */

.hero-perfume-card.pos-0{
  transform:
    translate(-50%,-50%)
    translateX(0)
    scale(1.05);

  opacity:1;

  z-index:10;

  border-color:rgba(212,175,55,.55);

  box-shadow:
    0 28px 55px rgba(0,0,0,.28),
    0 0 35px rgba(212,175,55,.10);

  filter:none;
}

.hero-perfume-card.pos-0 .hero-perfume-img{
  transform:scale(1.04);

  filter:
    drop-shadow(0 18px 15px rgba(0,0,0,.26))
    drop-shadow(0 0 16px rgba(212,175,55,.10));
}

/* چپ نزدیک */

.hero-perfume-card.pos-minus-1{
  transform:
    translate(-50%,-50%)
    translateX(-7rem)
    translateY(.8rem)
    rotateY(10deg)
    rotateZ(-7deg)
    scale(.83);

  opacity:.78;

  z-index:6;
}

/* راست نزدیک */

.hero-perfume-card.pos-1{
  transform:
    translate(-50%,-50%)
    translateX(7rem)
    translateY(.8rem)
    rotateY(-10deg)
    rotateZ(7deg)
    scale(.83);

  opacity:.78;

  z-index:6;
}

/* چپ دور */

.hero-perfume-card.pos-minus-2{
  transform:
    translate(-50%,-50%)
    translateX(-12.5rem)
    translateY(1.8rem)
    rotateY(16deg)
    rotateZ(-13deg)
    scale(.67);

  opacity:.4;

  z-index:3;
}

/* راست دور */

.hero-perfume-card.pos-2{
  transform:
    translate(-50%,-50%)
    translateX(12.5rem)
    translateY(1.8rem)
    rotateY(-16deg)
    rotateZ(13deg)
    scale(.67);

  opacity:.4;

  z-index:3;
}

/* خارج از محدوده */

.hero-perfume-card.is-hidden{
  transform:
    translate(-50%,-50%)
    scale(.45);

  opacity:0;

  pointer-events:none;

  z-index:0;
}

/* نور پشت عطر */

.hero-carousel-glow{
  position:absolute;

  left:50%;
  top:50%;

  width:12rem;
  height:12rem;

  transform:translate(-50%,-50%);

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(212,175,55,.15) 0%,
      rgba(127,174,114,.08) 35%,
      transparent 72%
    );

  filter:blur(18px);

  pointer-events:none;

  z-index:0;

  animation:
    heroGlow 3.2s ease-in-out infinite;
}

@keyframes heroGlow{
  0%,100%{
    transform:translate(-50%,-50%) scale(.9);
    opacity:.55;
  }

  50%{
    transform:translate(-50%,-50%) scale(1.15);
    opacity:.85;
  }
}

/* حالت فعال کمی نفس می‌کشد */

.hero-perfume-card.pos-0{
  animation:heroFocus 3.2s ease-in-out infinite;
}

@keyframes heroFocus{
  0%,100%{
    margin-top:0;
  }

  50%{
    margin-top:-5px;
  }
}

/* تم روشن */

body.light-theme .hero-perfume-card{
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.96),
      rgba(248,246,241,.98)
    );

  border-color:rgba(0,0,0,.08);

  box-shadow:
    0 20px 40px rgba(0,0,0,.08);
}

body.light-theme .hero-perfume-card.pos-0{
  border-color:rgba(169,138,78,.45);

  box-shadow:
    0 28px 50px rgba(0,0,0,.11),
    0 0 30px rgba(212,175,55,.08);
}

/* =========================
   HERO MOBILE
   ========================= */

@media (max-width:56rem){

  .hero-art{
    min-height:21rem;
    margin-top:1rem;
  }

  .hero-carousel{
    width:100%;
    height:21rem;
    max-width:23rem;
  }

  .hero-perfume-card{
    width:8rem;
    height:12.5rem;
    padding:.7rem .55rem;
    border-radius:1rem;
  }

  .hero-perfume-image{
    height:9.5rem;
  }

  .hero-perfume-name{
    font-size:.62rem;
  }

  .hero-perfume-card.pos-minus-1{
    transform:
      translate(-50%,-50%)
      translateX(-5.1rem)
      translateY(.6rem)
      rotateZ(-6deg)
      scale(.78);
  }

  .hero-perfume-card.pos-1{
    transform:
      translate(-50%,-50%)
      translateX(5.1rem)
      translateY(.6rem)
      rotateZ(6deg)
      scale(.78);
  }

  .hero-perfume-card.pos-minus-2{
    transform:
      translate(-50%,-50%)
      translateX(-8.6rem)
      translateY(1.4rem)
      rotateZ(-11deg)
      scale(.62);
  }

  .hero-perfume-card.pos-2{
    transform:
      translate(-50%,-50%)
      translateX(8.6rem)
      translateY(1.4rem)
      rotateZ(11deg)
      scale(.62);
  }

  .hero-perfume-card.pos-0{
    transform:
      translate(-50%,-50%)
      scale(.98);
  }

}

.filter-menu-toggle{
  height:36px;
  min-height:36px;
  padding:.35rem .65rem;
  font-size:.78rem;
  white-space:nowrap;
}

@media(max-width:56rem){

  .filter-menu-toggle{
    width:auto;
    min-width:0;
    height:34px;
    min-height:34px;
    padding:.28rem .52rem;
    font-size:.74rem;
    line-height:1;
    flex:0 0 auto;
  }

}
.profile-edit-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}

.profile-edit-card{
  margin-bottom:1.2rem;
}

@media(max-width:56rem){

  .profile-edit-grid{
    grid-template-columns:1fr;
  }

}
/* =========================================================
   SHOP SEARCH + FILTER SAME SIZE
   ========================================================= */

.shop-toolbar{
  display:flex;
  align-items:stretch;
  gap:.5rem;
  width:min(100%,34rem);
}

.shop-toolbar .search-box{
  flex:1 1 auto;
  min-width:0;
  max-width:none;
}

.shop-toolbar .search-box input[type="search"],
.shop-toolbar .shop-sort{
  width:100%;
  height:2.7rem;
  min-height:2.7rem;
  box-sizing:border-box;
}

.shop-toolbar .shop-sort{
  flex:0 0 10rem;
  width:10rem;
  min-width:10rem;
  padding:.55rem .8rem;
}

@media(max-width:56rem){

  .shop-head > form,
  .shop-toolbar{
    width:100%;
  }

  .shop-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) 8.5rem;
    gap:.45rem;
  }

  .shop-toolbar .search-box{
    width:100%;
  }

  .shop-toolbar .search-box input[type="search"],
  .shop-toolbar .shop-sort{
    width:100%;
    height:36px;
    min-height:36px;
  }

  .shop-toolbar .shop-sort{
    min-width:0;
    flex:none;
    padding:.35rem .55rem;
    font-size:.76rem;
  }

}
/* =========================================================
   MOBILE BUTTONS — COMPACT
   ========================================================= */

@media (max-width:56rem){

  .btn,
  .btn-sm,
  .btn-lg{
    min-height:36px;
    padding:.38rem .68rem;
    font-size:.77rem;
    border-radius:.55rem;
  }

  .btn-lg{
    min-height:38px;
    padding:.42rem .75rem;
    font-size:.81rem;
  }

  .hero-ctas .btn,
  .offer .btn,
  .empty-cart .btn{
    min-height:38px;
    padding:.42rem .75rem;
    font-size:.81rem;
  }

}
/* =========================================================
   PROFILE EDIT COLLAPSE
   ========================================================= */

.profile-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}

.profile-title{
  font-size:1.1rem;
  font-weight:900;
}

.profile-subtitle{
  margin-top:.2rem;
  font-size:.72rem;
}

.profile-edit-collapse{
  margin-top:1.2rem;
}

.profile-edit-box{
  padding:1.1rem;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:rgba(240,236,225,.03);
}

.profile-edit-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}

.profile-edit-actions{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-top:.4rem;
}

body.light-theme .profile-edit-box{
  background:#fafafa;
}

@media(max-width:56rem){

  .profile-card-head{
    align-items:flex-start;
  }

  .profile-edit-grid{
    grid-template-columns:1fr;
  }

  .profile-edit-actions{
    flex-wrap:wrap;
  }

}
/* ---------------------------------------------------------
   تأیید عملیات حساس
   --------------------------------------------------------- */

.bamboo-confirm[hidden]{
  display:none !important;
}

.bamboo-confirm{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:1rem;
}

.bamboo-confirm-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,17,20,.58);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.bamboo-confirm-dialog{
  position:relative;
  z-index:1;
  width:min(420px,100%);
  padding:1.4rem;
  border:1px solid rgba(212,175,55,.28);
  border-radius:22px;
  background:var(--card);
  color:var(--fg);
  text-align:right;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
  animation:bambooConfirmIn .18s ease-out;
}

.bamboo-confirm-icon{
  display:grid;
  place-items:center;
  width:3rem;
  height:3rem;
  margin-bottom:.8rem;
  border:1px solid rgba(224,101,79,.35);
  border-radius:50%;
  background:rgba(224,101,79,.10);
  color:var(--danger);
  font-size:1.35rem;
  font-weight:900;
}

.bamboo-confirm-dialog h3{
  margin:0;
  font-size:1.08rem;
  font-weight:900;
}

.bamboo-confirm-dialog p{
  margin:.55rem 0 1.15rem;
  color:var(--muted-fg);
  font-size:.88rem;
  line-height:1.9;
}

.bamboo-confirm-actions{
  display:flex;
  gap:.55rem;
}

.bamboo-confirm-actions button{
  flex:1;
  min-height:42px;
  padding:.65rem .9rem;
  border-radius:12px;
  border:1px solid transparent;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}

.bamboo-confirm-cancel{
  border-color:var(--border) !important;
  background:transparent;
  color:var(--fg);
}

.bamboo-confirm-cancel:hover{
  background:rgba(127,127,127,.08);
}

.bamboo-confirm-ok{
  border-color:rgba(224,101,79,.28) !important;
  background:var(--danger);
  color:#fff;
}

.bamboo-confirm-ok:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

@keyframes bambooConfirmIn{
  from{
    opacity:0;
    transform:translateY(8px) scale(.98);
  }

  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media(max-width:56rem){

  .bamboo-confirm-dialog{
    width:min(100%,360px);
    padding:1.15rem;
    border-radius:18px;
  }

  .bamboo-confirm-actions button{
    min-height:40px;
    font-size:.78rem;
  }

}