@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #cbc9c9;
  font-family: "Vazirmatn";
  color: #252525;
}

.page {
  width: 100%;
  min-height: auto;
  padding: 18px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #dfdede);
}

.card {
  width: min(440px, 100%);
  background: white;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
  min-height: auto;
}

.banner {
  width: 900px;
  height: auto;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 34px 34px;
  background: #f7f7f7;
  line-height: 0;
}

.logo-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 10px;
}

.logo-box img {
  width: 210px;
  max-width: 62%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


.brand-section h2 {
  margin-top: 16px;
  margin-right: 15px;
  font-size: 19px;
  font-weight: 700;
  color: #333;
}

.brand-section p {
  margin-top: 9px;
  margin-right: 25%;
  color: #777;
  font-size: 14px;
}


.about-company {
  width: calc(100% - 36px);
  margin: 12px auto 18px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 238, 238, 0.9));
  border: 1px solid rgba(197, 22, 32, 0.12);
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-align: right;
}

.about-company h3,
.services-box h3 {
  color: #ff2727;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}

.services-box img {
  background-color: none;
  color: #fa3a3a;
  width: 25px;
  height: 25px;
}

.about-company h3::before,
.about-company h3::after,
.services-box h3::before,
.services-box h3::after {
  content: "";
  width: 55px;
  height: 1px;
  background: rgba(197, 22, 32, 0.45);
  position: absolute;
  top: 50%;
}

.about-company h3::before,
.services-box h3::before {
  right: 38px;
}

.about-company h3::after,
.services-box h3::after {
  left: 38px;
}

.about-company p {
  color: #4a4a4a;
  font-size: 14px;
  line-height: 2;
}

.services-card {
  width: calc(100% - 36px);
  margin: 20px auto 30px;
  padding: 20px 25px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 238, 238, 0.9));
  border: 1px solid rgba(197, 22, 32, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: right;
  position: relative;
}

.services-card h3 {
  color: #ff2727;
  font-size: 18px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.services-card h3::before,
.services-card h3::after {
  content: "";
  width: 55px;
  height: 1px;
  background: rgba(197, 22, 32, 0.45);
  position: absolute;
  top: 50%;
}

.services-card h3::before {
  right: 38px;
}

.services-card h3::after {
  left: 38px;
}

.services-card ul {
  list-style-type: disc;
  padding-right: 18px;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 2;
}

.services-card ul li {
  margin-bottom: 8px;
}

.services-card h2 {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
}

.services-card p {
  color: #ff2727;
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  font-size: 14px;
}

.services-card .footer {
  text-align: center;
  margin-top: 8px;
  font-size: 16px;
  color: #f50f0f;
}

.slogan {
  width: calc(100% - 36px);
  margin: 20px auto 30px;
  padding: 20px 25px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 238, 238, 0.9));
  border: 1px solid rgba(197, 22, 32, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: right;
  position: relative;
}

.slogan h3 {
  color: #ff2727;
  font-size: 18px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.slogan h3::before,
.slogan h3::after {
  content: "";
  width: 55px;
  height: 1px;
  background: rgba(197, 22, 32, 0.45);
  position: absolute;
  top: 50%;
}

.slogan h3::before {
  right: 38px;
}

.slogan h3::after {
  left: 38px;
}

.slogan p {
  text-align: center;
  margin-top: 15px;
  font-size: 18px;
}

.slogan .footer {
  text-align: center;
  margin-top: 8px;
  font-size: 16px;
  color: #f50f0f;
}

.image-slider {
  width: calc(100% - 36px);
  height: auto;
  margin: 20px auto 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #f1f1f1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  line-height: 0;
}

.image-slider img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  object-position: center center !important;
  transition: opacity 0.25s ease;
  border-radius: 18px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn.prev {
  left: 0;
  border-radius: 0 16px 16px 0;
}

.slider-btn.next {
  right: 0;
  border-radius: 16px 0 0 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 18px;
}

.slider-dots button {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  background: #c7c7c7;
  cursor: pointer;
}

.slider-dots button.active {
  width: 18px;
  border-radius: 20px;
  background: #c51620;
}

.social-section {
  width: calc(100% - 36px);
  margin: 18px auto 0;
  direction: rtl;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-row {
  min-height: 58px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #222;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 239, 239, 0.9));
  border-radius: 18px;
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: 0.22s ease;
}


.social-section {
  width: calc(100% - 36px);
  margin: 18px auto 0;
  direction: rtl;
}

.social-grid,
.contact-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  direction: rtl;
}

.contact-links {
  width: calc(100% - 36px);
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  direction: rtl;
}

.contact-row {
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  color: #1c1d1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Vazirmatn";
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #ddd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.05);
  transition: 0.22s ease;
}

.contact-row:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
}

.contact-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.contact-row span {
  flex: 1;
  text-align: center;
}

.social-btn {
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  color: #1b1b1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Vazirmatn";
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: 0.22s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
}

.social-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.social-btn span {
  flex: 1;
  text-align: center;
}

.contact-row {
  border-color: #29a9eb;
}

.contact-row.email {
  border-color: #ff2727;
}

.telegram {
  border-color: #29a9eb;
}

.whatsapp,
.bale {
  border-color: #22c55e;
}

.eitaa,
.catalog {
  border-color: #f97316;
}

.instagram {
  border-color: #ec4899;
}

.rubika {
  border-color: #14b8a6;
}

.social-grid button {
  border-color: #636cc1;
}

.address-box {
  width: calc(100% - 36px);
  margin: 16px auto 18px;
  padding: 14px 14px 16px;
  direction: rtl;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255);
}

.address-box h3 {
  display: inline-block;
  color: #ff2727;

  padding: 0 14px;
  font-size: 17px;
  font-weight: 800;
  margin-top: -25px;
  margin-bottom: 8px;
  position: relative;
}

.address-box p {
  color: #252525;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
  margin-bottom: 14px;
}

.map-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  direction: rtl;
}

.map-btn {
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: 0.22s ease;
}

.map-btn:hover {
  transform: translateY(-2px);
}

.map-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.balad {
  background: #e8ddff;
}

.neshan {
  background: #ffe1e6;
}

.google {
  background: #dcf8ea;
}

.waze {
  background: #b1e3fb;
   grid-column: auto !important;
}

.bottom-actions {
  width: calc(100% - 36px);
  margin: 22px auto 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bottom-actions button {
  min-height: 58px;
  border: none;
  border-radius: 18px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: 0.22s ease;
}

.bottom-actions button:hover {
  transform: translateY(-3px);
}

.bottom-actions img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bottom-actions button {
  min-height: 58px;
  border: none;
  border-radius: 18px;
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: 0.22s ease;
}

.bottom-actions button:hover {
  transform: translateY(-3px);
}

.bottom-actions img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}



.share-btn {
  font-family: "Vazirmatn";
  width: 400px;
  background: linear-gradient(145deg, #e31f2b, hsl(356, 85%, 39%));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}


.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  background: #222;
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 99;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 20px;
}

.popup-overlay.hide {
  display: none;
}

.popup-box {
  width: 350px;
  max-width: 90%;
  background: white;
  border-radius: 20px;
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.popup-close {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.popup-icon {
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: popupShow 0.35s ease;
}

.popup-icon img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}

.popup-box h2 {
  font-size: 28px;
  color: #222;
  font-family: "Vazirmatn";
  margin-bottom: 12px;
  line-height: 1.35;
}

.popup-box p {
  font-size: 23px;
  margin-bottom: 8px;
  padding: 5px;
}

.popup-btn {
  border: none;
  text-decoration: none;
  font-family: "Vazirmatn";
  background: #ff1f1f;
  color: white;
  padding: 13px 24px;
  border-radius: 9px;
  font-size: 15px;
  cursor: pointer;
}

/* فقط پهن‌تر شدن کارت در دسکتاپ */
@media (min-width: 700px) {
  .card {
    width: min(700px, 100%);
  }

  .page {
    padding: 40px 20px;
  }
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .services-card {
    width: calc(100% - 20px);
    padding: 15px 15px;
  }

  .services-card h3 {
    font-size: 16px;
  }

  .services-card ul {
    font-size: 13px;
  }

  .services-card .slogan {
    font-size: 14px;
  }

  .services-card .footer {
    font-size: 12px;
  }

  .share-btn {
    max-width: 380px;
    width: 100%;
  }
}

/* =====================================================
   FINAL GLOBAL RESPONSIVE FIX
   Paste at the VERY END of persioncardstyle.css
===================================================== */

/* ---------- Base Fix ---------- */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card {
  width: min(440px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

/* ---------- Header Banner ---------- */

.banner,
.header-slider {
  width: 100%;
  height: auto !important;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: #f7f7f7;
  line-height: 0;
}

.banner img,
.header-slider img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  object-position: center center;
  background: #f7f7f7;
  transition: opacity 0.25s ease;
}

/* دکمه‌های بنر */
.banner .slider-btn,
.header-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px !important;
  height: 54px !important;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 24px !important;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner .slider-btn.prev,
.header-slider .slider-btn.prev {
  left: 0;
  right: auto;
  border-radius: 0 15px 15px 0;
}

.banner .slider-btn.next,
.header-slider .slider-btn.next {
  right: 0;
  left: auto;
  border-radius: 15px 0 0 15px;
}

/* ---------- Logo / Brand ---------- */

.brand-section {
  width: 100%;
  padding: 16px 16px 0;
  text-align: center;
}

.logo-box {
  width: 100%;
  height: auto !important;
  margin: 10px auto 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img,
.brand-logo {
  width: 180px !important;
  max-width: 55% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain;
  display: block;
}

.brand-section h2 {
  margin: 10px auto 0 !important;
  padding: 0 8px;
  text-align: center !important;
  font-size: 18px;
  line-height: 1.8;
}

.brand-section p {
  margin: 6px auto 0 !important;
  text-align: center !important;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Content Cards ---------- */

.about-company,
.services-card,
.social-section,
.address-box {
  width: calc(100% - 36px);
  margin-left: auto;
  margin-right: auto;
}

.services-card ul {
  overflow-wrap: anywhere;
}

/* ---------- Middle Slider ---------- */

.image-slider {
  width: calc(100% - 36px);
  height: auto !important;
  margin: 20px auto 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #f1f1f1;
  line-height: 0;
}

.image-slider img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  object-position: center center;
  background: #f1f1f1;
  border-radius: 20px;
}

/* ---------- Social Buttons ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-row,
.social-btn {
  width: 100%;
  min-width: 0;
}

.contact-row span,
.social-btn span {
  text-align: center;
  white-space: normal;
}

/* ---------- Map Buttons ---------- */

.map-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-btn {
  min-width: 0;
  white-space: nowrap;
}

/* ---------- Share Button ---------- */

.bottom-actions {
  width: 100% !important;
  margin: 24px auto 30px !important;
  padding: 0 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.share-btn {
  width: 100% !important;
  max-width: 380px !important;
  min-height: 58px;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  border-radius: 18px;
}

/* =====================================================
   RESPONSIVE FIX - HEADER + IMAGE SLIDER
===================================================== */

/* عکس‌های اسلایدر پایین مثل هدر */
.image-slider {
  position: relative !important;
  overflow: hidden !important;
  background: #f1f1f1 !important;
}

.image-slider img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f1f1f1 !important;
}

/* فیکس عمومی دکمه‌های همه اسلایدرها */
.banner .slider-btn,
.header-slider .slider-btn,
.image-slider .slider-btn {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;

  border: none !important;
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  z-index: 50 !important;
}

.banner .slider-btn.prev,
.header-slider .slider-btn.prev,
.image-slider .slider-btn.prev {
  left: 0 !important;
  right: auto !important;
}

.banner .slider-btn.next,
.header-slider .slider-btn.next,
.image-slider .slider-btn.next {
  right: 0 !important;
  left: auto !important;
}


/* =====================================================
   MOBILE PORTRAIT
===================================================== */

@media (max-width: 600px) and (orientation: portrait) {
  .page {
    padding: 0 !important;
  }

  .card {
    width: 100% !important;
    border-radius: 0 !important;
  }

  .banner,
  .header-slider {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 0 0 28px 28px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .banner img,
  .header-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0 0 28px 28px !important;
  }

  .banner .slider-btn,
  .header-slider .slider-btn,
  .image-slider .slider-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 21px !important;
  }

  .banner .slider-btn.prev,
  .header-slider .slider-btn.prev,
  .image-slider .slider-btn.prev {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 24px 24px 0 !important;
  }

  .banner .slider-btn.next,
  .header-slider .slider-btn.next,
  .image-slider .slider-btn.next {
    right: 0 !important;
    left: auto !important;
    border-radius: 24px 0 0 24px !important;
  }

  .logo-box img,
  .brand-logo {
    width: 145px !important;
    max-width: 52% !important;
  }

  .brand-section h2 {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }

  .brand-section p {
    font-size: 13px !important;
  }

  .about-company,
  .services-card,
  .social-section,
  .address-box {
    width: calc(100% - 24px) !important;
  }

  .services-card {
    padding: 16px 15px !important;
  }

  .services-card ul {
    font-size: 13px !important;
    line-height: 2 !important;
  }

  .services-card .slogan {
    font-size: 14px !important;
    text-align: center !important;
    font-weight: 800 !important;
  }

  .services-card .footer {
    font-size: 13px !important;
    text-align: center !important;
    font-weight: 800 !important;
  }

  .image-slider {
    width: calc(100% - 24px) !important;
    height: auto !important;
    margin: 18px auto 0 !important;
    border-radius: 18px !important;
  }

  .image-slider img {
    border-radius: 18px !important;
  }

  .social-grid,
  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .contact-row,
  .social-btn {
    min-height: 52px !important;
    font-size: 14px !important;
  }

  .map-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .map-btn {
    width: 100% !important;
    min-height: 54px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .map-btn img {
    width: 26px !important;
    height: 26px !important;
  }

  .bottom-actions {
    padding: 0 16px !important;
    margin: 22px auto 28px !important;
  }

  .share-btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    border-radius: 16px !important;
  }
}


/* =====================================================
   MOBILE LANDSCAPE
===================================================== */

@media (max-width: 900px) and (orientation: landscape) {
  .page {
    padding: 12px !important;
  }

  .card {
    width: min(720px, 100%) !important;
    border-radius: 26px !important;
  }

  .banner,
  .header-slider {
    width: calc(100% - 24px) !important;
    height: auto !important;
    margin: 14px auto 0 !important;
    border-radius: 22px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .banner img,
  .header-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 22px !important;
  }

  .banner .slider-btn,
  .header-slider .slider-btn,
  .image-slider .slider-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 23px !important;
  }

  .banner .slider-btn.prev,
  .header-slider .slider-btn.prev,
  .image-slider .slider-btn.prev {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 26px 26px 0 !important;
  }

  .banner .slider-btn.next,
  .header-slider .slider-btn.next,
  .image-slider .slider-btn.next {
    right: 0 !important;
    left: auto !important;
    border-radius: 26px 0 0 26px !important;
  }

  .logo-box img,
  .brand-logo {
    width: 160px !important;
    max-width: 42% !important;
  }

  .brand-section h2 {
    font-size: 17px !important;
  }

  .image-slider {
    width: calc(100% - 24px) !important;
    height: auto !important;
    margin: 20px auto 0 !important;
    border-radius: 20px !important;
  }

  .image-slider img {
    border-radius: 20px !important;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .bottom-actions {
    padding: 0 24px !important;
  }

  .share-btn {
    max-width: 360px !important;
  }
}


/* =====================================================
   TABLET
===================================================== */

@media (min-width: 601px) and (max-width: 899px) {
  .page {
    padding: 28px 18px !important;
  }

  .card {
    width: min(700px, 100%) !important;
    border-radius: 30px !important;
  }

  .banner,
  .header-slider {
    width: calc(100% - 36px) !important;
    height: auto !important;
    margin: 22px auto 0 !important;
    border-radius: 26px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .banner img,
  .header-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 26px !important;
  }

  .banner .slider-btn,
  .header-slider .slider-btn,
  .image-slider .slider-btn {
    width: 54px !important;
    height: 54px !important;
    font-size: 24px !important;
  }

  .banner .slider-btn.prev,
  .header-slider .slider-btn.prev,
  .image-slider .slider-btn.prev {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 28px 28px 0 !important;
  }

  .banner .slider-btn.next,
  .header-slider .slider-btn.next,
  .image-slider .slider-btn.next {
    right: 0 !important;
    left: auto !important;
    border-radius: 28px 0 0 28px !important;
  }

  .logo-box img,
  .brand-logo {
    width: 180px !important;
    max-width: 45% !important;
  }

  .brand-section h2 {
    font-size: 18px !important;
  }

  .image-slider {
    width: calc(100% - 36px) !important;
    height: auto !important;
    border-radius: 24px !important;
  }

  .image-slider img {
    border-radius: 24px !important;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .share-btn {
    max-width: 380px !important;
  }
}


/* =====================================================
   LAPTOP / DESKTOP
===================================================== */

@media (min-width: 900px) {
  .page {
    padding: 45px 20px !important;
    align-items: center !important;
  }

  .card {
    width: min(900px, 100%) !important;
    border-radius: 34px !important;
  }

  .banner,
  .header-slider {
    width: calc(100% - 70px) !important;
    height: auto !important;
    margin: 28px auto 0 !important;
    border-radius: 28px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .banner img,
  .header-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 28px !important;
  }

  .banner .slider-btn,
  .header-slider .slider-btn,
  .image-slider .slider-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 27px !important;
  }

  .banner .slider-btn.prev,
  .header-slider .slider-btn.prev,
  .image-slider .slider-btn.prev {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 30px 30px 0 !important;
  }

  .banner .slider-btn.next,
  .header-slider .slider-btn.next,
  .image-slider .slider-btn.next {
    right: 0 !important;
    left: auto !important;
    border-radius: 30px 0 0 30px !important;
  }

  .logo-box img,
  .brand-logo {
    width: 220px !important;
    max-width: 34% !important;
  }

  .brand-section h2 {
    font-size: 22px !important;
    line-height: 1.7 !important;
  }

  .image-slider {
    width: calc(100% - 70px) !important;
    height: auto !important;
    margin: 25px auto 0 !important;
    border-radius: 24px !important;
  }

  .image-slider img {
    border-radius: 24px !important;
  }

  .bottom-actions {
    padding: 0 !important;
    margin: 28px auto 34px !important;
  }

  .share-btn {
    width: 360px !important;
    max-width: 90% !important;
  }
}

/* =====================================================
   FIX SOCIAL / CONTACT / MAP ICONS RESPONSIVE
   همیشه دو ستونه + نمایش درست آیکون‌ها
===================================================== */

.social-section,
.contact-links,
.address-box {
  overflow: visible !important;
}

.social-grid,
.contact-links {
  width: calc(100% - 36px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  direction: rtl !important;
}

.contact-row,
.social-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  overflow: visible !important;
}

.contact-row img,
.social-btn img,
.map-btn img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: block !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-row span,
.social-btn span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* دکمه‌های نقشه هم همیشه دو ستونه */
.map-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  direction: rtl !important;
}

.map-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* حذف جایگذاری دستی ویز که باعث بهم‌ریختگی می‌شد */
.waze {
  grid-column: auto !important;
}

/* موبایل */
@media (max-width: 600px) and (orientation: portrait) {
  .social-grid,
  .contact-links {
    width: calc(100% - 20px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .contact-row,
  .social-btn {
    min-height: 54px !important;
    padding: 7px 8px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
  }

  .contact-row img,
  .social-btn img,
  .map-btn img {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
  }

  .contact-row span,
  .social-btn span {
    font-size: 13px !important;
  }

  .map-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .map-btn {
    min-height: 54px !important;
    font-size: 13px !important;
    padding: 7px 8px !important;
  }
}