/*
Theme Name: Famed
Theme URI: https://shopfamed.ir/
Author: Famed
Description: قالب مدرن و داینامیک فروشگاهی Famed، یکپارچه‌شده با ووکامرس و المنتور.
Version: 2.0.0
Text Domain: famed
*/

:root {
  --p: #d90049;
  --p-hover: #b5003d;
  --pl: #fff0f5;
  --i: #232027;
  --m: #78727c;
  --l: #eeeaf0;
  --s: #f7f6f8;
  --bg: #fdfcfd;
  --card-bg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

@font-face {
  font-family: Vazir;
  src: url('./fonts/vazir-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazir;
  src: url('./fonts/vazir-bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--i);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(1200px, 94vw);
  margin-inline: auto;
}

/* 1. Top Announcement Bar */
.famed-announcement-bar {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 100;
}
.famed-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.famed-announcement-close {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* 2. Header & Navigation */
.head-wrap {
  background: #fff;
  border-bottom: 1px solid var(--l);
  position: sticky;
  top: 0;
  z-index: 50;
}
.head-top {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
}
.brand {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--i);
  display: inline-block;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--m);
  font-weight: 700;
  text-align: center;
}
.search-form {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.search-input {
  width: 100%;
  height: 44px;
  background: var(--s);
  border: 1px solid var(--l);
  border-radius: 12px;
  padding: 0 46px 0 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--i);
  outline: none;
  transition: .2s;
}
.search-input:focus {
  border-color: var(--p);
  background: #fff;
  box-shadow: 0 0 0 3px var(--pl);
}
.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--m);
  cursor: pointer;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.act-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--l);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: .2s;
}
.act-btn:hover {
  background: var(--pl);
  border-color: var(--p);
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--p);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.head-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f6f3f6;
  font-size: 13px;
}
.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
}
.nav-list a {
  color: var(--i);
  font-weight: 700;
  transition: .2s;
}
.nav-list a:hover, .nav-list .pink-link {
  color: var(--p);
}
.promo-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--m);
}
.promo-text:hover {
  color: var(--p);
}

/* 3. Hero Section */
.hero-wrap {
  margin-top: 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.hero-main {
  background: linear-gradient(135deg, #fcebf2 0%, #fff1f6 50%, #eee8fc 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 480px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--p);
  margin-bottom: 8px;
}
.hero-h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.hero-desc {
  font-size: 14px;
  color: #5d5661;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border: 0;
  transition: .2s;
}
.btn.dark {
  background: #252027;
  color: #fff;
}
.btn.dark:hover {
  background: #110e13;
  transform: translateY(-2px);
}
.btn.pink {
  background: var(--p);
  color: #fff;
}
.btn.pink:hover {
  background: var(--p-hover);
  transform: translateY(-2px);
}
.side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.mini {
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: .2s;
}
.mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(35,32,39,.06);
}
.mini-purple {
  background: #ebe5ff;
}
.mini-peach {
  background: #ffe8dc;
}
.mini small {
  font-size: 11px;
  font-weight: 700;
  color: var(--m);
  margin-bottom: 4px;
}
.mini b {
  font-size: 20px;
  font-weight: 900;
  color: var(--i);
  margin-bottom: 8px;
}
.mini-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--p);
}

/* Features / Trust Badges */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--l);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 18px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-left: 1px solid var(--l);
}
.feature:last-child {
  border-left: 0;
}
.feature i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pl);
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-style: normal;
}
.feature b {
  display: block;
  font-size: 12px;
  font-weight: 800;
}
.feature span {
  font-size: 10px;
  color: var(--m);
}

/* 4. Popular Categories */
.section {
  margin: 44px auto;
}
.title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.title h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}
.title p {
  font-size: 12px;
  color: var(--m);
}
.more {
  font-size: 12px;
  font-weight: 800;
  color: var(--p);
}
.cats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  text-align: center;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: .2s;
}
.cat:hover {
  transform: translateY(-4px);
}
.cat div {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(35,32,39,.1);
  margin-bottom: 8px;
  background: #f4eff5;
}
.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat b {
  font-size: 12px;
  font-weight: 800;
  color: var(--i);
}

/* 5. Special Offers (Flash Sale) */
.sale-section {
  background: var(--p);
  padding: 32px 0;
  margin: 44px 0;
  color: #fff;
}
.sale-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.sale-head h2 {
  font-size: 24px;
  font-weight: 900;
}
.sale-head span {
  font-size: 12px;
  opacity: .9;
}
.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.timer-box {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--i);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}

/* 6. Product Cards & Grids */
.grid {
  display: grid;
  gap: 14px;
}
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--l);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .2s;
  color: var(--i);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(35,32,39,.08);
}
.photo {
  aspect-ratio: 3/3.6;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--s);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.off {
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--p);
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}
.heart {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--m);
  transition: .2s;
}
.heart:hover, .heart.active {
  color: var(--p);
}
.info {
  padding: 10px 4px 6px;
}
.name {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stars {
  color: #f5a623;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.prices {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.old {
  display: block;
  font-size: 10px;
  color: #a8a0a9;
  text-decoration: line-through;
}
.price {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--i);
  text-decoration: none;
}
.add {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pl);
  color: var(--p);
  border: 0;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .2s;
}
.add:hover {
  background: var(--p);
  color: #fff;
}
.install {
  display: inline-block;
  margin-top: 8px;
  background: #f4efff;
  color: #683bb5;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
}
.card-action {
  margin-top: 10px;
}
.card-buy-btn {
  width: 100%;
  height: 38px;
  padding: 0;
  font-size: 12px;
  border-radius: 10px;
}

/* 7. Editorial Banners */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ed {
  height: 220px;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ed-model {
  background: #fef0f4;
}
.ed-knit {
  background: #f4f0f8;
}
.ed img {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
}
.ed-copy {
  max-width: 50%;
  position: relative;
  z-index: 2;
}
.ed .tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--p);
}
.ed h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 4px 0 8px;
}
.ed p {
  font-size: 12px;
  color: var(--m);
  margin-bottom: 14px;
}

/* 8. Payments Box */
.payments {
  background: #28232d;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.payments h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}
.payments p {
  font-size: 12px;
  color: #b7b0bc;
}
.paylist {
  display: flex;
  gap: 10px;
}
.pay {
  background: #fff;
  color: #232027;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
}

/* 9. Footer */
.footer {
  background: var(--s);
  border-top: 1px solid var(--l);
  padding: 44px 0 100px;
  margin-top: 60px;
}
.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}
.foot-brand b {
  font-size: 22px;
  letter-spacing: 4px;
  display: block;
}
.foot-brand small {
  font-size: 8px;
  color: var(--m);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.foot-brand p {
  font-size: 12px;
  color: var(--m);
  max-width: 320px;
}
.foot-col h4 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 12px;
  color: var(--m);
  margin-bottom: 10px;
  transition: .2s;
}
.foot-col a:hover {
  color: var(--p);
}
.foot-social {
  font-size: 12px;
  color: var(--m);
}

/* 10. Mobile Bottom Bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--l);
  height: 60px;
  z-index: 60;
  align-items: center;
  justify-content: space-around;
}
.m-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  font-family: inherit;
  color: var(--m);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.m-item i {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}
.m-item:hover {
  color: var(--p);
}

/* 11. Cart Drawer & Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 32, 39, .55);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  backdrop-filter: blur(2px);
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cart {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 94vw);
  transform: translateX(105%);
  background: #fff;
  z-index: 80;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 45px rgba(35, 32, 39, .18);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  direction: rtl;
}
.cart.show {
  transform: none;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--l);
  background: #fff;
}
.sheet-head b {
  font-size: 18px;
  font-weight: 900;
}
.sheet-head .close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--s);
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}
.sheet-head .close:hover {
  background: var(--pl);
  color: var(--p);
}
.cart .items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
  scrollbar-width: thin;
}
.cart .empty {
  display: grid;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--m);
  font-size: 13px;
}
.cart .empty:before {
  content: "🛍";
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--pl);
  font-size: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.cartitem {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--l);
}
.cartitem img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--s);
}
.cartitem b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cartitem span {
  display: block;
  font-size: 11px;
  color: var(--m);
  margin-bottom: 4px;
}
.cartitem strong {
  display: block;
  font-size: 12px;
  color: var(--p);
  font-weight: 900;
}
.cartitem .remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--s);
  border: 0;
  color: var(--m);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}
.cartitem .remove:hover {
  background: var(--pl);
  color: var(--p);
}
#cartFoot {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--l);
  background: #fff;
  box-shadow: 0 -8px 20px rgba(35, 32, 39, .04);
}
#cartFoot .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
}
#cartFoot .total span:last-child {
  font-size: 18px;
  color: var(--p);
  font-weight: 900;
}
#cartFoot .checkout {
  width: 100%;
  height: 48px;
}

/* 12. Quick Size Picker Modal */
.quick {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(580px, 96vw);
  transform: translate(-50%, 105%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 80;
  padding: 24px;
  box-shadow: 0 -18px 50px rgba(35,32,39,.18);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  direction: rtl;
}
.quick.show {
  transform: translate(-50%, 0);
}
.qbody {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  margin-top: 16px;
}
.qbody img {
  width: 100px;
  height: 125px;
  object-fit: cover;
  border-radius: 12px;
}
.qbody h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}
.qbody b {
  font-size: 15px;
  color: var(--p);
  display: block;
  margin-bottom: 12px;
}
.sizes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.size {
  border: 1px solid var(--l);
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.size.on, .size:hover {
  border-color: var(--p);
  background: var(--pl);
  color: var(--p);
}
.qactions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

/* 13. Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: #252027;
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cats {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .head-top {
    grid-template-columns: 1fr auto;
  }
  .head-search-area {
    grid-column: 1 / -1;
    order: 3;
  }
  .head-sub {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .feature:nth-child(2) {
    border-left: 0;
  }
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial {
    grid-template-columns: 1fr;
  }
  .ed {
    height: 190px;
  }
  .payments {
    flex-direction: column;
    text-align: center;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-bar {
    display: flex;
  }
  .hide-mobile {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .hero-h1 {
    font-size: 28px;
  }
  .cats {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot {
    grid-template-columns: 1fr;
  }
}
