/* رنگ‌ها و چیدمان برگرفته از سایت اصلی lasershaving.com */
:root {
  --purple: #29166f;       /* رنگ اصلی (پابرگ، پنل هاور، تیترها) */
  --purple-2: #351b9d;     /* لینک‌ها */
  --purple-3: #644bc2;
  --yellow: #feef00;       /* «مشاهده بیشتر» روی پنل هاور */
  --men-grad: linear-gradient(to left, #6a56b2, #29166f);
  --women-grad: linear-gradient(to left, #f289c8, #e42ea6);
  --grey-1: #ececec;       /* پس‌زمینه محصولات ویژه */
  --grey-2: #f2f2f2;       /* پس‌زمینه درباره ما */
  --grey-3: #eeeeee;       /* نوار مسیر */
  --text: #333;
  --muted: #777;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Vazirmatn", Tahoma, sans-serif; color: var(--text); background: #fff; line-height: 1.8; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
/* منو سمت راست، لوگو سمت چپ */
.header-inner { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; height: 110px; }
.logo img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 16px; font-size: 15px; color: #222; transition: color .2s; }
.nav a:hover { color: var(--purple-2); }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 220px; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12); border-top: 3px solid var(--purple); z-index: 60;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.dropdown-menu a:hover { background: var(--purple); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--purple); margin: 5px 0; border-radius: 2px; }

/* ---------- Banner slider ---------- */
.slider { position: relative; overflow: hidden; background: #dfeefa; }
.slides { display: flex; transition: transform .7s ease; }
.slide { flex: 0 0 100%; aspect-ratio: 1349 / 443; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.75); color: var(--purple); font-size: 30px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .3s;
}
.slider:hover .arrow { opacity: 1; }
.arrow.prev { right: 16px; }
.arrow.next { left: 16px; }
.dots { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); cursor: pointer; padding: 0; }
.dots button.active { background: var(--purple); }
.slider.single .arrow, .slider.single .dots { display: none; }

/* ---------- Men / Women ---------- */
.menwom { padding-block: 60px; }
.menwom .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mw {
  position: relative; display: block; border-radius: 8px; overflow: hidden; height: 190px;
  background-size: cover; background-position: center;
}
.mw.men { background-color: #29166f; }
.mw.women { background-color: #e42ea6; }
.mw img { width: 100%; height: 100%; object-fit: cover; }
.mw .overlay { position: absolute; inset: 0; opacity: .9; transition: opacity .3s; }
.mw.men .overlay { background: var(--men-grad); }
.mw.women .overlay { background: var(--women-grad); }
.mw:hover .overlay { opacity: .8; }
.mw h2 {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px;
  color: #fff; font-size: 40px; font-weight: 300;
}
.mw h2 .arr { font-size: 34px; transition: transform .3s; }
.mw:hover h2 .arr { transform: translateX(-8px); }

/* ---------- Featured products ---------- */
.featured { background: var(--grey-1); padding-block: 50px 70px; }
.sec-title { font-size: 26px; font-weight: 300; color: #333; margin-bottom: 50px; }
.sec-title b { color: var(--purple); font-weight: 700; }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fbox { position: relative; background: #fff; aspect-ratio: 325 / 390; display: grid; place-items: center; padding: 40px; overflow: hidden; }
.fbox img { max-height: 100%; width: auto; object-fit: contain; }
.hover-text {
  position: absolute; inset: 0; background: rgba(41, 22, 111, .9); color: #fff; padding: 24px 26px;
  opacity: 0; transition: opacity .35s;
}
.fbox:hover .hover-text, .fbox:focus .hover-text { opacity: 1; }
.hover-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; text-align: right; }
.hover-text ul { list-style: none; font-size: 14px; line-height: 1.7; }
.hover-text .more { display: block; text-align: left; color: var(--yellow); font-size: 16px; margin-top: 18px; }

/* ---------- About ---------- */
.about { background: var(--grey-2); padding-block: 70px; }
.about .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.about h2 { font-size: 26px; color: var(--purple); font-weight: 700; margin-bottom: 18px; }
.about h2 span { font-weight: 300; color: #333; }
.about p { margin-bottom: 14px; color: #555; text-align: justify; }
.exp-row { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.exp-row h4 { color: var(--purple-3); font-size: 26px; font-weight: 400; line-height: 1.4; }
.exp-row .num { color: var(--purple); font-size: 100px; font-weight: 800; line-height: 1; }
.about-img img { margin: 0 auto; }

/* ---------- Inner pages ---------- */
.crumb { background: var(--grey-3); color: var(--muted); padding: 14px 20px; margin: 30px 0; font-size: 14px; }
.crumb a { color: var(--purple-2); }
.page { padding-bottom: 70px; min-height: 40vh; }

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-tile { display: block; }
.cat-tile .tile-img { aspect-ratio: 300 / 283; background: var(--men-grad); overflow: hidden; }
.cat-tile.women .tile-img { background: var(--women-grad); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span { display: block; background: var(--purple); color: #fff; padding: 6px 12px; font-size: 15px; }
.cat-tile.women span { background: #e42ea6; }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
.pcard { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pcard-img { height: 190px; display: grid; place-items: center; margin-bottom: 12px; }
.pcard-img img { max-height: 190px; width: auto; }
.pcard h3 { font-size: 15px; font-weight: 400; color: #26136d; }
.pcard-pack { font-size: 13px; color: var(--muted); }
.btn-outline {
  display: inline-block; margin-top: 10px; min-width: 150px; padding: 6px 18px; font-size: 14px;
  border: 1px solid #261776; color: #261776; transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.product { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.gallery { border: 1px solid #e5e5e5; padding: 20px; display: grid; place-items: center; }
.gallery img { max-height: 480px; width: auto; }
.product-info h1 { font-size: 28px; font-weight: 400; color: #26136d; text-align: right; margin-bottom: 8px; }
.product-info .cats { font-size: 14px; margin-bottom: 18px; }
.product-info .cats a { color: var(--purple-2); }
.product-info .pack { color: var(--muted); margin-bottom: 10px; }
.product-info ul { padding-right: 20px; color: #555; }
.product-info li { margin-bottom: 6px; }
.product-info .order { display: inline-block; margin-top: 24px; background: var(--purple); color: #fff; padding: 10px 26px; }
.related-title { font-size: 22px; font-weight: 400; margin: 70px 0 30px; padding-bottom: 12px; border-bottom: 1px solid #ddd; }

/* ---------- Footer ---------- */
.footer { background: var(--purple); color: #fff; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding-bottom: 30px; }
.footer h4 { font-size: 18px; margin-bottom: 14px; }
.footer a { display: block; padding: 3px 0; opacity: .9; }
.footer a:hover { opacity: 1; }
.ico-line { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.ico-line a { display: inline; }
.copyright { border-top: 1px solid #1a0c51; text-align: center; padding: 14px; font-size: 13px; direction: ltr; opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fgrid, .pgrid, .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .about .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { height: 80px; position: relative; }
  .logo img { height: 54px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.1);
  }
  .nav-open .nav { display: flex; }
  .dropdown-menu { display: block; position: static; box-shadow: none; border: 0; padding-right: 16px; }
  .menwom .wrap, .product { grid-template-columns: 1fr; }
  .mw { height: 150px; }
  .mw h2 { font-size: 32px; }
  .fgrid, .pgrid, .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .fbox { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .arrow { display: none; }
  .exp-row .num { font-size: 72px; }
}
@media (hover: none) {
  /* روی موبایل پنل هاور نمایش داده نمی‌شود؛ با لمس به صفحه محصول می‌رود */
  .hover-text { display: none; }
}
