﻿body {
  font-family: "Vazirmatn", "Dana", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  direction: rtl;
  overflow-x: visible !important;
}

body.ph-home {
  overflow-x: visible !important;
}

.ae-hero {
  overflow: visible !important;
}

.rr-cat-section,
.product-section,
.why-feature-steps {
  margin-left: auto;
  margin-right: auto;
}

.rr-cat-track,
.product-container {
  margin-left: auto;
  margin-right: auto;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  overflow-x: clip;
}

@media (max-width: 768px) {

  .rr-cat-section,
  .gallery4-section,
  .product-section,
  .why-feature-steps {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  background: var(--ph-bg, #FFFFFF);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--ph-pad, 64px);
  text-align: right;
  font-family: "Vazirmatn", "Dana", sans-serif;
}

.hero-title {
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: clamp(36px, 4.7vw, 52px);
  font-weight: 800;
  color: #1A3A5C;
  line-height: 1.35;
  margin-bottom: 28px;
  direction: rtl;
}

.hero-title-green {
  color: #42C0F8;
}

.hero-description {
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #627D98;
  line-height: 1.9;
  margin-bottom: 38px;
  max-width: 440px;
  direction: rtl;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background-color: #42C0F8;
  color: #ffffff;
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(22, 119, 210, 0.3);
}

.hero-btn:hover {
  background-color: #1A8AE8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22, 119, 210, 0.4);
}

/* ===== Scroll Morph Hero ===== */
.scroll-morph-spacer {
  position: relative;
  width: 100%;
}

.scroll-morph-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #fff;
}

.scroll-morph-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 50;
}

.morph-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.morph-intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.morph-intro-title {
  font-family: "Dana", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  opacity: 0;
  animation: morphFadeIn 1s ease 0.5s forwards;
}

.morph-scroll-btn {
  width: 22px;
  height: 36px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  outline: 2px solid rgb(105, 192, 255);
  box-shadow: 0px 0px 8px rgb(105, 192, 255);
  position: relative;
  margin: 20px auto 0;
  opacity: 0;
  animation: morphFadeIn 1s ease 0.8s forwards;
  cursor: pointer;
}

.morph-scroll-dot {
  width: 3px;
  height: 7px;
  border-radius: 10px;
  background-color: rgb(105, 192, 255);
  box-shadow: 0px 0px 6px rgb(105, 192, 255);
  animation: morphScrollDot 2s linear infinite;
  transform: translateY(40%);
}

.morph-scroll-btn::after {
  content: 'scroll';
  position: absolute;
  top: 140%;
  color: rgb(105, 192, 255);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.55rem;
}

@keyframes morphScrollDot {
  0% {
    transform: translateY(40%);
  }

  50% {
    transform: translateY(90%);
  }

  100% {
    transform: translateY(40%);
  }
}

@keyframes morphFadeIn {
  to {
    opacity: 1;
  }
}

.morph-arc-content {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.morph-arc-title {
  font-family: "Dana", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.morph-arc-desc {
  font-family: "Dana", sans-serif;
  font-size: 1.1rem;
  color: #1A3A5C;
  max-width: 400px;
}

@media (min-width: 769px) {
  .morph-arc-content {
    bottom: 35%;
  }
}

.morph-cards-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.morph-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 126px;
  margin-left: -45px;
  margin-top: -63px;
  cursor: pointer;
  transform-style: preserve-3d;
}

@media (min-width: 769px) {
  .morph-card {
    width: 110px;
    height: 154px;
    margin-left: -55px;
    margin-top: -77px;
  }
}

.morph-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.morph-card:hover .morph-card-inner {
  transform: rotateY(180deg);
}

.morph-card-front,
.morph-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.morph-card-front {
  background: #E8F5FC;
}

.morph-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.morph-card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.morph-card:hover .morph-card-front::after {
  background: transparent;
}

.morph-card-back {
  background: #1f2937;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #374151;
}

.morph-card-back-label {
  font-size: 6px;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.morph-card-back-text {
  font-size: 9px;
  font-weight: 500;
  color: #fff;
}

@media (max-width: 768px) {
  .scroll-morph-spacer {
    position: relative;
  }

  .scroll-morph-hero {
    min-height: 500px;
    max-height: 700px;
  }

  .morph-intro-title {
    font-size: 1.6rem;
  }

  .morph-scroll-btn {
    width: 24px;
    height: 40px;
  }

  .morph-scroll-dot {
    width: 4px;
    height: 8px;
  }

  .morph-scroll-btn::after {
    font-size: 0.55rem;
  }


  .morph-arc-title {
    font-size: 2rem;
  }

  .morph-arc-desc {
    font-size: 0.9rem;
    max-width: 280px;
  }

  .morph-card {
    width: 65px;
    height: 91px;
    margin-left: -32.5px;
    margin-top: -45.5px;
  }
}

/* ===== Categories Section – Infinite Marquee ===== */
:root {
  --cat-size: 110px;
  --cat-gap: 24px;
  --cat-brand: #42C0F8;
  --cat-fade-color: #fff;
  --marquee-speed: 40;
}

.rr-cat-section {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: -48px auto 60px;
  background: transparent;
}

.rr-cat-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rr-cat-header {
  text-align: center;
  margin-bottom: 28px;
}

.rr-cat-title {
  font-family: "Dana", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #222222;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rr-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(66, 192, 248, 0.1);
  border-radius: 10px;
  color: var(--cat-brand);
  font-size: 1.2rem;
}

/* -- viewport: MUST be direction: ltr to prevent RTL empty-side bug -- */
.rr-cat-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr;
}

/* fade edges */
.rr-cat-viewport::before,
.rr-cat-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.rr-cat-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--cat-fade-color) 0%, transparent 100%);
}

.rr-cat-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--cat-fade-color) 0%, transparent 100%);
}

/* -- track -- */
.rr-cat-track {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* -- single item: RTL for Persian text -- */
.rr-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  direction: rtl;
  padding: 0 calc(var(--cat-gap) / 2);
}

.rr-cat-circle {
  width: var(--cat-size);
  height: var(--cat-size);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cat-brand);
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rr-cat-item:hover .rr-cat-circle {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(66, 192, 248, 0.25);
}

.rr-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rr-cat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7f1;
  color: var(--cat-brand);
  font-family: "Dana", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.rr-cat-name {
  font-family: "Dana", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: center;
  max-width: var(--cat-size);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.rr-cat-item:hover .rr-cat-name {
  color: var(--cat-brand);
}

.rr-cat-item:focus-visible {
  outline: 2px solid var(--cat-brand);
  outline-offset: 4px;
  border-radius: 8px;
}

/* -- responsive -- */
@media (max-width: 992px) {
  :root {
    --cat-size: 96px;
  }

  .rr-cat-section {
    margin-top: -36px;
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --cat-size: 82px;
    --cat-gap: 16px;
  }

  .rr-cat-section {
    margin-top: -28px;
    margin-bottom: 40px;
  }

  .rr-cat-container {
    padding: 0 16px;
  }

  .rr-cat-viewport::before,
  .rr-cat-viewport::after {
    width: 40px;
  }

  .rr-cat-title {
    font-size: 1.3rem;
  }

  .rr-cat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .rr-cat-name {
    font-size: 12px;
  }
}

/* ===== Product Section ===== */
margin: 80px 0;
}

.product-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.8rem;
  color: #42C0F8;
}

.section-description {
  color: #333;
  font-size: 1rem;
  margin-top: 6px;
}

.product-nav {
  display: flex;
  gap: 10px;
}

.custom-prev,
.custom-next {
  background: #42C0F8;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-prev:hover,
.custom-next:hover {
  background: #42C0F8;
  color: #fff;
}

.product-swiper {
  width: 100%;
  overflow: hidden;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}

@supports not (aspect-ratio: 1 / 1) {
  .product-card img {
    height: 250px;
  }
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 1.1rem;
  color: #42C0F8;
}

.views {
  font-size: 0.9rem;
  color: #333;
  margin: 6px 0;
}

.price-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.price-box {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: bold;
}

.price-old {
  text-decoration: line-through;
  color: #333;
}

.price-new {
  color: #42C0F8;
}

.bbtt {
  position: relative;
  width: 100%;
  padding: 1em 1em;
  height: 30px;
  outline: none;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  background-color: #42C0F8;
  border-radius: 5px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  z-index: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.bbtt:hover {
  animation: sh0 0.5s ease-in-out both;
}

@keyframes sh0 {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }

  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}

.bbtt:hover span {
  animation: storm 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

.bbtt::before,
.bbtt::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1),
    opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
  z-index: -1;
  transform: translate(100%, -25%) translate3d(0, 0, 0);
}

.bbtt:hover::before,
.bbtt:hover::after {
  opacity: 0.15;
  transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1),
    opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.bbtt:hover::before {
  transform: translate3d(50%, 0, 0) scale(0.9);
}

.bbtt:hover::after {
  transform: translate(50%, 0) scale(1.1);
}

/* ===== Why Feature Steps Section ===== */

/* --- Scroll-Pinned Layout (JS enables via .js-pin) --- */
.why-feature-steps {
  --steps: 4;
  --step-scroll: 70vh;
  --header-h: 76px;
  --progress-line: 0%;
  width: 100%;
  background-color: #fff;
  position: relative;
}

/* Without JS: normal flow, no pin */
.why-feature-steps .why-feature-steps-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px;
}

/* With JS: sticky pin */
.why-feature-steps.js-pin {
  height: calc(100vh + (var(--steps) - 1) * var(--step-scroll));
}

.why-feature-steps.js-pin .why-feature-steps-inner {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.why-feature-steps-title {
  font-family: "Dana", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #222222;
  text-align: center;
  direction: rtl;
  margin-bottom: 50px;
  flex-shrink: 0;
}

.why-feature-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  flex: 1;
  min-height: 0;
}

/* --- Steps list with progress line --- */
.why-feature-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-right: 22px;
}

/* Vertical progress line behind circles */
.why-feature-steps-list::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 21px;
  width: 2px;
  height: calc(100% - 44px);
  background: #d4e2f0;
  border-radius: 1px;
  z-index: 0;
}

.why-feature-steps-list::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 21px;
  width: 2px;
  height: calc((100% - 44px) * var(--progress-line));
  background: #42C0F8;
  border-radius: 1px;
  z-index: 1;
  transition: height 0.1s linear;
}

.why-feature-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: opacity 0.4s ease, background-color 0.3s ease;
  opacity: 0.35;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.why-feature-step.done {
  opacity: 0.7;
}

.why-feature-step.active {
  opacity: 1;
  background-color: rgba(66, 192, 248, 0.04);
}

.why-feature-step:hover {
  opacity: 0.85;
}

.why-feature-step.active:hover,
.why-feature-step.done:hover {
  opacity: 1;
}

/* --- Circle --- */
.why-feature-step-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid #B8E2F8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Dana", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #888;
  transition: all 0.4s ease;
  position: relative;
  flex-shrink: 0;
}

.why-feature-step-circle.active {
  border-color: #42C0F8;
  background-color: #42C0F8;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(66, 192, 248, 0.3);
}

.why-feature-step-circle.done {
  border-color: #22c55e;
  background-color: #22c55e;
  color: #fff;
}

.why-feature-step-check {
  display: none;
}

.why-feature-step-circle.active .why-feature-step-num,
.why-feature-step-circle.done .why-feature-step-num {
  display: none;
}

.why-feature-step-circle.active .why-feature-step-check,
.why-feature-step-circle.done .why-feature-step-check {
  display: block;
  font-size: 18px;
}

/* --- Step content --- */
.why-feature-step-content h3 {
  font-family: "Dana", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0;
  direction: rtl;
  transition: color 0.3s ease;
}

.why-feature-step.active .why-feature-step-content h3 {
  color: #42C0F8;
  margin-bottom: 6px;
}

.why-feature-step-content p {
  font-family: "Dana", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #777;
  line-height: 1.8;
  direction: rtl;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  margin: 0;
}

.js-pin .why-feature-step.active .why-feature-step-content p {
  max-height: 200px;
  opacity: 1;
  margin-top: 6px;
}

/* Non-pin mode: all paragraphs visible */
.why-feature-steps:not(.js-pin) .why-feature-step-content p {
  max-height: none;
  opacity: 1;
  margin-top: 6px;
}

/* --- Image --- */
.why-feature-steps-image {
  position: relative;
  width: 100%;
}

.why-feature-step-img-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.why-feature-step-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.why-feature-step-img.active {
  opacity: 1;
  transform: scale(1);
}



/* Progress bar under image */
.why-feature-step-img-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--bar-width, 0%);
  background-color: #42C0F8;
  border-radius: 0 0 16px 16px;
  transition: width 0.05s linear;
  z-index: 2;
}

/* --- CTA --- */
.why-feature-steps-cta {
  text-align: center;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.why-feature-steps-cta span {
  font-family: "Dana", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  direction: rtl;
}

.why-feature-steps-cta a {
  font-family: "Dana", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #42C0F8;
  text-decoration: none;
  direction: rtl;
  transition: color 0.2s ease;
}

.why-feature-steps-cta a:hover {
  color: #42C0F8;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 992px) {
  .why-feature-steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    flex: none;
    align-items: start;
  }

  .why-feature-steps-image {
    order: -1;
    flex-shrink: 0;
  }

  .why-feature-step-img-wrapper {
    height: 380px;
    min-height: 380px;
    max-height: 400px;
    aspect-ratio: auto;
  }

  .why-feature-steps-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .why-feature-steps.js-pin .why-feature-steps-inner {
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .why-feature-steps {
    --step-scroll: 55vh;
  }

  .why-feature-steps .why-feature-steps-inner {
    padding: 50px 16px;
  }

  .why-feature-steps.js-pin .why-feature-steps-inner {
    padding: 16px 16px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .why-feature-steps-grid {
    flex: none;
    gap: 20px;
  }

  .why-feature-steps-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .why-feature-step-img-wrapper {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 450px;
  }

  .why-feature-step {
    padding: 10px 12px;
    gap: 14px;
  }

  .why-feature-step-circle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 16px;
  }

  .why-feature-step-content h3 {
    font-size: 16px;
  }

  .why-feature-step-content p {
    font-size: 13px;
  }

  .why-feature-steps-cta {
    margin-top: 40px;
  }

  .why-feature-steps-list {
    padding-right: 19px;
  }

  .why-feature-steps-list::before {
    top: 19px;
    right: 18px;
  }

  .why-feature-steps-list::after {
    top: 19px;
    right: 18px;
  }
}

/* Small screens: disable pin */
@media (max-height: 600px) {
  .why-feature-steps.js-pin {
    height: auto;
  }

  .why-feature-steps.js-pin .why-feature-steps-inner {
    position: static;
    height: auto;
    overflow: visible;
  }

  .js-pin .why-feature-step-content p {
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .why-feature-steps {
    height: auto !important;
  }

  .why-feature-steps.js-pin .why-feature-steps-inner {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }

  .js-pin .why-feature-step-content p {
    max-height: none !important;
    opacity: 1 !important;
  }

  .why-feature-step-img {
    transition: none !important;
  }

  .why-feature-step,
  .why-feature-step-circle,
  .why-feature-step-content h3,
  .why-feature-step-content p {
    transition: none !important;
  }
}

/* Keyboard focus */
.why-feature-step:focus-visible {
  outline: 2px solid #42C0F8;
  outline-offset: 2px;
}

.why-feature-step:focus:not(:focus-visible) {
  outline: none;
}

.icon-eye {
  height: 18px;
  width: auto;
  margin-left: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .hero-section {
    min-height: 340px;
    max-height: 380px;
  }

  .hero-content {
    padding: 0 36px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .why-feature-steps-title {
    font-size: 26px;
  }

  .why-feature-steps.js-pin .why-feature-steps-inner {
    --header-h: 64px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 320px;
    max-height: 360px;
    background-position: center right;
  }

  .hero-section::before {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.0) 75%);
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.9rem;
    max-width: 320px;
  }

  .hero-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .product-card {
    width: 90%;
    margin: 0 auto;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 300px;
    max-height: 340px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 20px;
    max-width: 260px;
  }

  .hero-btn {
    padding: 11px 24px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
}

/* ===== Newsletter section ===== */
.nl {
  --nl-navy: #0b2a4a;
  --nl-deep: #071c33;
  --nl-cyan: #2cb5f0;
  --nl-blue: #46a3e5;
  --nl-ink: #0b2a4a;
  --nl-mute: #718096;
  --nl-ease: cubic-bezier(.65, 0, .2, 1);
  background: #fff;
  padding: clamp(48px, 8vw, 104px) 20px;
  font-family: 'Vazirmatn', 'Dana', system-ui, sans-serif;
}
.nl, .nl *, .nl *::before, .nl *::after { box-sizing: border-box; }
.nl__wrap { max-width: 1240px; margin: 0 auto; }

/* head — هم‌سان سکشن‌های وبلاگ و رویدادها */
.nl__head { max-width: 780px; }

.nl__title {
  margin: 0; color: var(--nl-ink);
  font-size: clamp(30px, 5vw, 52px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.02em;
}
.nl__sub {
  margin: 14px 0 0; color: var(--nl-mute);
  font-size: clamp(14px, 1.4vw, 16px); line-height: 1.9; max-width: 660px;
}

/* lane rope divider */
.nl__lane {
  height: 2px; width: 100%; margin-top: 26px; transform-origin: right center;
  background: repeating-linear-gradient(to left, var(--nl-navy) 0 10px, var(--nl-cyan) 10px 20px, #fff 20px 30px, var(--nl-cyan) 30px 40px);
  transform: scaleX(0);
  transition: transform 1.2s var(--nl-ease);
}
.nl.is-in .nl__lane { transform: scaleX(1); }

/* card */
.nl__card {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 34px;
  background: linear-gradient(135deg, var(--nl-navy), var(--nl-deep));
  color: #fff;
  border-radius: 32px;
  padding: clamp(30px, 5vw, 56px) clamp(22px, 4.5vw, 56px) clamp(88px, 12vw, 132px);
}
.nl__pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 30px),
    radial-gradient(85% 70% at 88% 4%, rgba(44,181,240,.30), transparent 62%);
}
.nl__glow {
  position: absolute; z-index: 0; width: 520px; height: 520px;
  right: -150px; top: -190px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(44,181,240,.28), rgba(44,181,240,.06) 45%, transparent 72%);
  filter: blur(6px);
  animation: nl-breathe 7s ease-in-out infinite;
}
@keyframes nl-breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* floating bubbles */
.nl__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.nl__bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(44,181,240,.18) 55%, rgba(44,181,240,0) 78%);
  border: 1px solid rgba(255,255,255,.14);
  animation: nl-float 9s ease-in-out infinite;
}
.nl__bubble--1 { width: 34px; height: 34px; left: 7%;  top: 14%; animation-duration: 8s; }
.nl__bubble--2 { width: 16px; height: 16px; left: 47%; top: 6%;  animation-duration: 6.5s; animation-delay: .6s; }
.nl__bubble--3 { width: 52px; height: 52px; left: 44%; top: 84%; animation-duration: 10s; animation-delay: 1.4s; }
.nl__bubble--4 { width: 12px; height: 12px; left: 14%; top: 76%; animation-duration: 7s;  animation-delay: .3s; }
.nl__bubble--5 { width: 24px; height: 24px; left: 49%; top: 46%; animation-duration: 8.5s; animation-delay: 2s; }
@keyframes nl-float { 0%, 100% { transform: translateY(0) translateX(0); opacity: .55; } 50% { transform: translateY(-22px) translateX(6px); opacity: .9; } }

/* grid */
.nl__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(26px, 4vw, 52px); align-items: center;
}

/* content side */
.nl__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(44,181,240,.16); border: 1px solid rgba(44,181,240,.4);
  color: #c8ecff; font-size: 12.5px; font-weight: 700;
}
.nl__ctitle {
  margin: 20px 0 12px; font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 800; line-height: 1.35; letter-spacing: -.02em;
}
.nl__cdesc { margin: 0; font-size: 15px; line-height: 2; color: rgba(255,255,255,.66); max-width: 470px; }
.nl__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.nl__points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.84); }
.nl__pt-ic {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: var(--nl-cyan); font-size: 14px;
}

/* glass form panel */
.nl__panel {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(3, 14, 28, .35), inset 0 1px 0 rgba(255,255,255,.12);
}
.nl__panel-tag {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.78); margin-bottom: 18px;
}
.nl__panel-tag i { color: var(--nl-cyan); font-size: 15px; }

/* form */
.nl__form { display: flex; flex-direction: column; gap: 14px; }
.nl__field { position: relative; }
.nl__input {
  width: 100%; height: 64px; padding: 27px 18px 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff; font: inherit; font-size: 15px;
  direction: ltr; text-align: right; outline: none; border-radius: 16px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nl__input::placeholder { color: transparent; }
.nl__input:hover { border-color: rgba(255,255,255,.32); }
.nl__input:focus {
  border-color: rgba(44,181,240,.75);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 4px rgba(44,181,240,.15);
}
.nl__label {
  position: absolute; inset-inline-start: 18px; top: 50%;
  transform: translateY(-50%); transform-origin: right top;
  font-size: 14.5px; color: rgba(255,255,255,.55);
  pointer-events: none;
  transition: top .35s var(--nl-ease), transform .35s var(--nl-ease), font-size .35s var(--nl-ease), color .3s;
}
.nl__input:focus ~ .nl__label,
.nl__input:not(:placeholder-shown) ~ .nl__label {
  top: 11px; transform: none; font-size: 11px; color: var(--nl-cyan); letter-spacing: .02em;
}
.nl__line {
  position: absolute; inset-inline: 16px; bottom: 9px; height: 2px; border-radius: 2px;
  background: var(--nl-cyan); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--nl-ease);
}
.nl__input:focus ~ .nl__line { transform: scaleX(1); }
.nl__field.has-error .nl__line { background: #ff6b81; transform: scaleX(1); }
.nl__field.has-error .nl__input {
  border-color: rgba(255,107,129,.8);
  box-shadow: 0 0 0 4px rgba(255,107,129,.14);
}

.nl__btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: flex-start;
  width: 100%; height: 48px;
  padding: 4px; padding-right: 24px; padding-left: 56px;
  border: 0; cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nl-cyan), var(--nl-blue));
  color: var(--nl-navy);
  font: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 30px rgba(44,181,240,.28);
  transition: padding .5s var(--nl-ease), box-shadow .4s, transform .3s var(--nl-ease);
}
.nl__btn:hover, .nl__btn:focus-visible { padding-right: 56px; padding-left: 24px; }
.nl__btn:hover { box-shadow: 0 18px 36px rgba(44,181,240,.36); }
.nl__btn:active { transform: scale(.98); }
.nl__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nl__btn[disabled] { opacity: .6; cursor: wait; }

.nl__btn-text {
  position: relative; z-index: 1;
  transition: transform .5s var(--nl-ease);
}
.nl__btn:hover .nl__btn-text, .nl__btn:focus-visible .nl__btn-text { transform: translateX(-6px); }

.nl__btn-icon {
  position: absolute; top: 4px; left: 4px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--nl-navy);
  transition: left .5s var(--nl-ease), transform .5s var(--nl-ease);
}
.nl__btn-icon svg { display: block; width: 16px; height: 16px; }
.nl__btn:hover .nl__btn-icon, .nl__btn:focus-visible .nl__btn-icon {
  left: calc(100% - 44px);
  transform: rotate(-45deg);
}

.nl__btn-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.nl__btn-loading i { animation: nl-spin 1s linear infinite; font-size: 18px; }
.nl__btn.is-loading .nl__btn-text, .nl__btn.is-loading .nl__btn-icon { display: none; }
.nl__btn.is-loading .nl__btn-loading { display: flex; }
@keyframes nl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.nl__msg { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: #ff9aa8; }

/* trust chips */
.nl__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 9px 16px;
  margin: 18px 0 0; padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.nl__trust li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.62); }
.nl__trust i { color: var(--nl-cyan); font-size: 13px; }

.nl__note { margin: 14px 0 0; font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.45); }

/* success */
.nl__ok { display: none; align-items: center; gap: 16px; padding: 6px 0; }
.nl.is-done .nl__form, .nl.is-done .nl__msg { display: none; }
.nl.is-done .nl__ok { display: flex; }
.nl__check {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--nl-cyan); color: var(--nl-navy);
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(44,181,240,.3);
}
.nl__check svg { width: 26px; height: 26px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.nl.is-done .nl__check svg { animation: nl-draw .7s .15s var(--nl-ease) forwards; }
@keyframes nl-draw { to { stroke-dashoffset: 0; } }
.nl__ok strong { display: block; font-size: 19px; font-weight: 800; margin-bottom: 2px; }
.nl__ok span { font-size: 13.5px; color: rgba(255,255,255,.68); }

/* waves */
.nl__wave {
  position: absolute; z-index: 1; bottom: -2px; left: 0;
  width: 200%; height: clamp(76px, 11vw, 128px);
  pointer-events: none;
}
.nl__wave--back { animation: nl-wave 22s linear infinite; }
.nl__wave--front { animation: nl-wave 14s linear infinite; }
@keyframes nl-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* reveal */
.nl__card { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--nl-ease), transform .8s var(--nl-ease); }
.nl.is-in .nl__card { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .nl__grid { grid-template-columns: 1fr; gap: 26px; }
  .nl__cdesc { max-width: none; }
  .nl__points { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 620px) {
  .nl__card { border-radius: 24px; padding: 26px 18px 92px; }
  .nl__bubbles { opacity: .5; }
  .nl__wave { height: 84px; }
  .nl__points { grid-template-columns: 1fr; }
  .nl__trust { gap: 8px 12px; }
  .nl__ok { flex-direction: row; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl__wave, .nl__glow, .nl__bubble { animation: none; }
  .nl__lane { transition: none; transform: scaleX(1); }
  .nl__card { transition: none; transform: none; opacity: 1; }
  .nl__label, .nl__line, .nl__input, .nl__btn, .nl__btn-text, .nl__btn-icon { transition: none; }
  .nl.is-done .nl__check svg { animation: none; stroke-dashoffset: 0; }
}

/* =========================================
 Gallery 4 - پیشنهاد ویژه
 ========================================= */
.gallery4-section {
  padding: 5rem 0 2rem;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.gallery4-container {
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery4-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0;
}

.gallery4-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery4-title {
  font-size: 25px;
  font-weight: 500;
  margin: 0;
}

@media (min-width: 768px) {
  .gallery4-title {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .gallery4-title {
    font-size: 25px;
  }
}

.gallery4-nav {
  display: flex;
  gap: 0.5rem;
}

.gallery4-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
  color: inherit;
}

.gallery4-nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.gallery4-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery4-nav-btn i {
  font-size: 1.25rem;
}

.gallery4-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 1.5rem;
}

.gallery4-carousel-wrapper::before,
.gallery4-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.gallery4-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.gallery4-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

@media (max-width: 640px) {

  .gallery4-carousel-wrapper::before,
  .gallery4-carousel-wrapper::after {
    width: 30px;
  }
}

.gallery4-carousel-wrapper .swiper {
  overflow: visible;
}

.gallery4-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.gallery4-card-inner {
  position: relative;
  height: 14rem;
  overflow: hidden;
  border-radius: 15px;
  mask-repeat: no-repeat;
}

@media (min-width: 480px) {
  .gallery4-card-inner {
    height: 18rem;
  }
}

@media (min-width: 640px) {
  .gallery4-card-inner {
    height: 22rem;
  }
}

@media (min-width: 1024px) {
  .gallery4-card-inner {
    height: 26rem;
  }
}

.gallery4-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery4-card-link-area {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.gallery4-card:hover .gallery4-card-img {
  transform: scale(1.05);
}

.gallery4-card-gradient {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.gallery4-card-bottom {
  position: absolute;
  bottom: -20px;
  left: 2px;
  right: 2px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.gallery4-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .gallery4-card-bottom {
    bottom: 3px;
    left: 3px;
    right: 3px;
    padding: 1rem 1.25rem;
    border-radius: 16px;
  }

  .gallery4-card-info {
    gap: 0.35rem;
  }
}

.gallery4-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .gallery4-card-title {
    font-size: 1.25rem;
  }
}

.gallery4-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
}

.gallery4-old-price {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

.gallery4-current-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .gallery4-current-price {
    font-size: 1.05rem;
  }
}

.gallery4-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.gallery4-cart-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gallery4-cart-btn:active {
  transform: translateY(0) scale(0.98);
}

@media (min-width: 768px) {
  .gallery4-cart-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
  }
}

.gallery4-cart-btn--preorder {
  background: linear-gradient(135deg, rgba(66, 192, 248), 0.9), rgba(66, 192, 248), 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
}

.gallery4-cart-btn--preorder:hover {
  background: linear-gradient(135deg, rgba(66, 192, 248), 0.95), rgba(180, 83, 9, 0.95));
}

.gallery4-cart-btn--outofstock {
  background: linear-gradient(135deg, rgba(66, 192, 248), 0.9), rgba(66, 192, 248), 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
}

.gallery4-cart-btn--outofstock:hover {
  background: linear-gradient(135deg, rgba(66, 192, 248), 0.95), rgba(185, 28, 28, 0.95));
}

.gallery4-cart-icon {
  font-size: 1.2rem;
}

.gallery4-cart-btn i {
  font-size: 1.25rem;
}

.gallery4-cart-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.gallery4-like-btn {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s;
  color: #555;
}

@media (min-width: 768px) {
  .gallery4-like-btn {
    top: 1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.gallery4-like-btn:hover {
  background: #fff;
}

.gallery4-like-btn.active {
  color: #42C0F8;
}

.gallery4-like-btn.active i {
  color: #42C0F8;
}

.gallery4-like-btn i {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .gallery4-like-btn i {
    font-size: 1.25rem;
  }
}

.gallery4-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.gallery4-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
  font-size: 1rem;
}

/* ---------- Preorder Badge ---------- */
.preorder-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #42C0F8, #d97706);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(66, 192, 248), 0.4);
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Out of Stock Badge ---------- */
.outofstock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #42C0F8, #dc2626);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(66, 192, 248), 0.4);
  pointer-events: none;
  white-space: nowrap;
}

.gallery4-card-inner {
  position: relative;
}

.product-media {
  position: relative;
}

.product-media .preorder-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

/* =========================================
  Deals Carousel - Deals of the Day
  ========================================= */
.deals-carousel-section {
  padding: 4rem 0 3rem;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.deals-carousel-container {
  margin: 0 auto;
  padding: 0 1.5rem;
}

.deals-carousel-header {
  margin-bottom: 2rem;
}

.deals-carousel-title {
  font-size: 25px;
  font-weight: 700;
  color: #1a262e;
  margin: 0;
}

@media (min-width: 768px) {
  .deals-carousel-title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .deals-carousel-title {
    font-size: 32px;
  }
}

.deals-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.deals-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1.5rem;
  padding: 0.5rem 0 1.5rem;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.deals-carousel-track::-webkit-scrollbar {
  display: none;
}

.deal-card {
  flex-shrink: 0;
  width: 300px;
  min-height: 460px;
  border-radius: 27px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
  background: transparent;
  display: flex;
  flex-direction: column;
  border: 1px solid #10273f56;
}

.deal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.deal-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
  border-radius: 25px;
}

.deal-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.deal-card:hover .deal-card-image {
  transform: scale(1.08);
}

/* Like Button on Image */
.deal-card-like {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
}

.deal-card-like:hover {
  background: #fff;
  color: #42C0F8;
  transform: scale(1.1);
}

.deal-card-like i {
  font-size: 1.2rem;
}

.deal-card-like.active i {
  color: #42C0F8;
}

/* Tag Badge on Image */
.deal-card-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.deal-tag--پیش‌فروش,
.deal-tag--preorder {
  background: linear-gradient(135deg, #42C0F8, #d97706);
}

.deal-tag--ناموجود,
.deal-tag--outofstock {
  background: linear-gradient(135deg, #42C0F8, #dc2626);
}

.deal-tag--تخفیف,
.deal-tag--discount {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.deal-tag--جدید,
.deal-tag--new {
  background: linear-gradient(135deg, #42C0F8, #2563eb);
}

.deal-card-content {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.deal-card-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1a262e;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

/* Variant Badges */
.deal-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.deal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #E8F5FC;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.deal-badge:hover {
  background: #E8F5FC;
  border-color: #d1d5db;
}

.deal-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  width: 100%;
}

/* Price */
.deal-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.deal-old-price {
  font-size: 0.8rem;
  color: #1A3A5C;
  text-decoration: line-through;
}

.deal-current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a262e;
}

/* Product Link Button - Full Width (Tactile WebGL Liquid Button) */
.deal-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  background: transparent;
  color: #feffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  background-image:
    linear-gradient(#050b11, #050b11),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.3), rgba(30, 41, 59, 0.2), rgba(8, 59, 74, 0.4));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 22px 44px rgba(4, 24, 36, 0.35),
    0 3px 9px rgba(5, 10, 15, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.deal-card-cta>* {
  position: relative;
  z-index: 1;
}

.deal-card-cta .tactile-canvas {
  z-index: 0;
}

.deal-card-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 28px 56px rgba(6, 182, 212, 0.25),
    0 4px 11px rgba(5, 10, 15, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.deal-card-cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 12px 24px rgba(4, 24, 36, 0.35),
    0 2px 5px rgba(5, 10, 15, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.deal-card-cta:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 5px;
}

0 4px 11px rgba(5, 10, 15, 0.45),
inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.deal-card-cta:hover::before {
  animation-duration: 2s;
  opacity: 1;
}

.deal-card-cta:hover::after {
  animation-duration: 1.5s;
}

.deal-card-cta:hover i {
  transform: translateX(4px);
}

.deal-card-cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 12px 24px rgba(4, 24, 36, 0.35),
    0 2px 5px rgba(5, 10, 15, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.deal-card-cta:active::before {
  animation-duration: 6s;
}

.deal-card-cta:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 5px;
}

/* Like button */
.deal-card-like {
  font-family: inherit;
}

.deal-card-placeholder {
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  background: #E8F5FC;
  border-radius: 20px;
}

/* Navigation Buttons */
.deals-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
}

.deals-carousel-wrapper:hover .deals-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.deals-nav-btn:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.deals-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.deals-nav-btn i {
  font-size: 1.5rem;
}

.deals-nav-btn--prev {
  left: -1.5rem;
}

.deals-nav-btn--next {
  right: -1.5rem;
}

@media (max-width: 1024px) {
  .deals-nav-btn {
    opacity: 1;
    pointer-events: auto;
  }

  .deals-nav-btn--prev {
    left: -1rem;
  }

  .deals-nav-btn--next {
    right: -1rem;
  }
}

@media (max-width: 768px) {
  .deal-card {
    width: 280px;
  }

  .deal-card-title {
    font-size: 1.1rem;
  }

  .deals-nav-btn {
    width: 40px;
    height: 40px;
  }

  .deals-nav-btn--prev {
    left: -0.5rem;
  }

  .deals-nav-btn--next {
    right: -0.5rem;
  }
}

@media (max-width: 480px) {
  .deal-card {
    width: 260px;
  }

  .deal-card-title {
    font-size: 1rem;
  }
}

/* =========================================
  👨‍💻 Developer Information
  company: Rahe Roshd
  website : es-rahroshd.ir
  Instagram: @raheroshd55
  Tel: 09011267602 , 09030428445
  ========================================= */



