/*
Theme Name: Parinhall
Theme URI: https://parinhall.ir
Author: Parinhall Studio
Author URI: https://parinhall.ir
Description: قالب اختصاصی آتلیه زیبایی پرین‌هال - فارسی راست به چپ با ووکامرس
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: parinhall
Domain Path: /languages
Tags: rtl-language, woocommerce, e-commerce, beauty
*/

/* =====================================================
   CSS CUSTOM PROPERTIES — PARINHALL DESIGN TOKENS
   ===================================================== */
:root {
  /* Brand Colors */
  --ph-dark:        #20261F;
  --ph-orange:      #E2734A;
  --ph-orange-dark: #C9541F;
  --ph-teal:        #1B7A8C;
  --ph-teal-dark:   #125868;
  --ph-mid-green:   #5B6358;
  --ph-bg:          #FBF9F5;
  --ph-olive:       #8A9382;
  --ph-border:      #D8D2C8;
  --ph-white:       #ffffff;

  /* Derived / Surface Colors */
  --ph-bg-warm:     #F4EEE4;
  --ph-bg-card:     #F7F4EF;
  --ph-teal-light:  #E0F2F5;
  --ph-orange-light:#FFF3EE;
  --ph-gold:        #C7B27A;
  --ph-text-muted:  #A6AC9E;

  /* Typography */
  --font-body:    'Vazirmatn', sans-serif;
  --font-heading: 'Markazi Text', serif;

  /* Spacing */
  --ph-max-width: 1440px;
  --ph-gutter:    32px;
  --ph-gutter-sm: 16px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  13px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 22px;
  --radius-pill: 26px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 24px -12px rgba(32,38,31,0.18);
  --shadow-hover: 0 22px 40px -18px rgba(32,38,31,0.4);
  --shadow-header: 0 4px 20px -8px rgba(32,38,31,0.12);

  /* Transitions */
  --transition: all 0.25s ease;
  --transition-slow: all 0.4s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Alpine.js cloak: hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* WordPress screen-reader-text utility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  /* direction:ltr on the ROOT ELEMENT prevents Chrome from creating a negative
     RTL horizontal scroll range. Without this, Chrome auto-scrolls to scrollX=-N
     whenever any element overflows in RTL, which offsets position:fixed elements
     (breaking the bottom nav). Content inside body is still RTL via body{direction:rtl}.
     overflow-x:clip (not hidden) prevents children from extending the document
     scrollWidth, which is the root cause of the RTL white-space shift on mobile. */
  direction: ltr;
  overflow-x: hidden; /* fallback for browsers that don't support clip */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ph-dark);
  background-color: var(--ph-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  max-width: 100vw;
  /* NO overflow set — body is not a scroll container.
     Avoids the two-scroll-layer bug that breaks position:fixed on mobile.
     max-width:100vw prevents body from exceeding viewport width. */
}

::selection {
  background: var(--ph-teal);
  color: var(--ph-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font-family: var(--font-body);
}

ul, ol {
  list-style: none;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ph-dark);
}

h1 { font-size: clamp(36px, 4vw, 58px); }
h2 { font-size: clamp(32px, 3.8vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(20px, 2.4vw, 28px); }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

.ph-eyebrow {
  font-size: 13px;
  color: var(--ph-orange-dark); /* darkened for AA contrast (4.6:1 on #FBF9F5) */
  margin-bottom: 6px;
  display: block;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.ph-container {
  max-width: var(--ph-max-width);
  margin-inline: auto;
  padding-inline: var(--ph-gutter);
}

.ph-section {
  padding-block-start: 68px;
}

.ph-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.ph-section-header .ph-view-all {
  font-size: 13.5px;
  color: var(--ph-teal);
  border-bottom: 1.5px solid var(--ph-teal);
  padding-bottom: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.ph-section-header .ph-view-all:hover {
  opacity: 0.75;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.ph-btn-primary {
  background: var(--ph-orange);
  color: var(--ph-white);
  box-shadow: 0 12px 26px -12px rgba(226,115,74,0.55);
}

.ph-btn-primary:hover {
  background: var(--ph-orange-dark);
  transform: translateY(-2px);
}

.ph-btn-outline {
  background: transparent;
  color: var(--ph-dark);
  border: 1.5px solid rgba(32,38,31,0.22);
}

.ph-btn-outline:hover {
  border-color: var(--ph-teal);
  color: var(--ph-teal);
}

.ph-btn-teal {
  background: var(--ph-teal);
  color: var(--ph-white);
}

.ph-btn-teal:hover {
  background: var(--ph-teal-dark);
}

.ph-btn-dark {
  background: var(--ph-dark);
  color: var(--ph-white);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 13px;
}

.ph-btn-dark:hover {
  background: var(--ph-teal);
}

.ph-btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: var(--radius-pill);
}

/* =====================================================
   BADGE / TAG COMPONENTS
   ===================================================== */
.ph-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.ph-badge-orange {
  background: var(--ph-orange-light);
  color: var(--ph-orange);
}

.ph-badge-teal {
  background: var(--ph-teal-light);
  color: var(--ph-teal);
}

.ph-badge-discount {
  background: var(--ph-orange);
  color: var(--ph-white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 7px;
}

/* =====================================================
   PRODUCT ATTRIBUTE CHIPS (ACF fields)
   ===================================================== */
.ph-attr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ph-attr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--ph-bg-card);
  border: 1px solid rgba(32,38,31,0.08);
  font-size: 12px;
  color: var(--ph-mid-green);
  white-space: nowrap;
}

.ph-attr-chip__icon {
  font-size: 13px;
  line-height: 1;
}

/* =====================================================
   SCROLLABLE ROW (hide scrollbar)
   ===================================================== */
.ph-scroller {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  overflow-x: auto;
}

.ph-scroller::-webkit-scrollbar {
  display: none;
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.ph-product-card {
  flex: 0 0 clamp(188px, 18vw, 244px);
  cursor: pointer;
}

.ph-product-card__image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  background: linear-gradient(155deg, #B8D4D0, #7ABCC8);
  transition: box-shadow var(--transition-slow);
}

.ph-product-card__image:hover {
  box-shadow: var(--shadow-hover);
}

.ph-product-card:focus-visible {
  outline: 2.5px solid var(--ph-teal);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}
.ph-product-card__image a:focus-visible {
  outline: 2.5px solid var(--ph-teal);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.ph-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ph-product-card__image:hover img {
  transform: scale(1.05);
}

.ph-product-card__badge {
  position: absolute;
  top: 11px;
  right: 11px;
  background: rgba(251,249,245,0.92);
  font-size: 10.5px;
  color: var(--ph-teal);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-product-card__wishlist {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(251,249,245,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.ph-product-card__wishlist svg {
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.ph-product-card__wishlist:hover {
  background: var(--ph-orange);
  color: white;
}

/* Color swatches — bottom-right of card image */
.ph-product-card__swatches {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.ph-product-card__swatch {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.ph-product-card__add-btn {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 11px;
  background: rgba(32,38,31,0.92);
  color: var(--ph-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

.ph-product-card__image:hover .ph-product-card__add-btn {
  opacity: 1;
  transform: translateY(0);
}

.ph-product-card__add-btn:hover {
  background: var(--ph-orange);
}

.ph-product-card__info {
  padding: 11px 2px 0;
}

.ph-product-card__cat {
  font-size: 11px;
  color: var(--ph-mid-green); /* darkened for AA contrast (5.3:1 on #FBF9F5, was 2.8:1) */
}

.ph-product-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ph-dark);
  margin-top: 2px;
}

.ph-product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.ph-product-card__rating {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.ph-star { font-size: 12px; line-height: 1; font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif; }
.ph-star--full  { color: var(--ph-orange); }
.ph-star--empty { color: rgba(226,115,74,0.22); }
.ph-product-card__rating-count {
  font-size: 10px;
  color: var(--ph-mid-green);
  margin-inline-start: 3px;
}

.ph-product-card__price {
  font-size: 13.5px;
  color: var(--ph-teal);
  font-weight: 600;
}

/* =====================================================
   MOBILE SEARCH ICON — desktop: hidden; mobile.css shows it
   ===================================================== */
.ph-mobile-search-icon { display: none; }

/* =====================================================
   NAV ARROWS (for carousels)
   ===================================================== */
.ph-carousel-nav {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.ph-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(32,38,31,0.12);
  background: var(--ph-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ph-teal);
  transition: var(--transition);
  flex-shrink: 0;
}

.ph-nav-btn:hover {
  border-color: var(--ph-teal);
  background: var(--ph-teal);
  color: var(--ph-white);
}

/* =====================================================
   FORMS
   ===================================================== */
.ph-input {
  border: 1.5px solid rgba(32,38,31,0.12);
  background: var(--ph-white);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ph-dark);
  text-align: right;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.ph-input:focus {
  border-color: var(--ph-teal);
  box-shadow: 0 0 0 3px rgba(27,122,140,0.1);
}

.ph-input::placeholder {
  color: var(--ph-olive);
}

/* =====================================================
   TRUST BADGES ROW
   ===================================================== */
.ph-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ph-trust-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(32,38,31,0.08);
  border-radius: 11px;
  background: var(--ph-white);
}

.ph-trust-item svg {
  flex-shrink: 0;
}

.ph-trust-item__title {
  font-size: 14.5px;
  color: var(--ph-dark);
  font-weight: 500;
}

.ph-trust-item__sub {
  font-size: 12px;
  color: var(--ph-olive);
  margin-top: 2px;
  line-height: 1.6;
}

/* =====================================================
   ANNOUNCEMENT BAR
   ===================================================== */
.ph-announcement {
  background: var(--ph-orange);
  color: var(--ph-white);
  height: 40px;
  overflow: hidden;
  font-size: 13px;
}

/* Desktop: centered static content */
.ph-announcement__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 var(--ph-gutter);
  height: 100%;
  white-space: nowrap;
}

/* Duplicate items: visible on mobile (for seamless loop), hidden on desktop */
.ph-ann-dot { color: rgba(255,255,255,0.5); }
.ph-announcement__track span[aria-hidden] { display: none; }

/* =====================================================
   STORIES — nav wrapper + buttons + desktop track
   ===================================================== */
.ph-stories__wrap {
  position: relative;
}

/* Hide aria-hidden duplicate stories on desktop (used only for mobile loop) */
.ph-stories a[aria-hidden="true"] { display: none; }

/* Desktop track: LTR direction so scrollLeft=0 is the first story,
   and smooth scrolling responds to the nav buttons */
.ph-stories__track {
  direction: ltr;
  scroll-behavior: smooth;
}

/* Nav buttons */
.ph-stories__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(32,38,31,0.12);
  background: rgba(251,249,245,0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ph-teal);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.ph-stories__nav:hover {
  background: var(--ph-teal);
  border-color: var(--ph-teal);
  color: var(--ph-white);
  box-shadow: 0 4px 16px rgba(27,122,140,0.30);
}
.ph-stories__nav--right { right: 6px; }
.ph-stories__nav--left  { left: 6px; }

/* =====================================================
   AMAZING OFFERS — warm orange background
   ===================================================== */
.ph-section--offers-warm {
  background: linear-gradient(180deg, rgba(226,115,74,.28) 0%, rgba(226,115,74,.18) 100%);
  border-radius: var(--radius-xl);
  margin-inline: 0;
  margin-block-start: 48px;
  padding-block-end: 60px;
}

/* =====================================================
   MARQUEE STRIP
   ===================================================== */
.ph-marquee-strip {
  overflow: hidden;
  background: var(--ph-orange);
  margin-top: 56px;
  contain: layout paint; /* prevent wide track from extending scroll range on Chrome RTL */
}

.ph-marquee-track {
  display: flex;
  animation: phMarquee 38s linear infinite;
  direction: ltr;
}

.ph-marquee-block {
  display: flex;
  flex-shrink: 0;
}

.ph-marquee-item {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--ph-white);
  padding: 13px 28px;
  white-space: nowrap;
}

.ph-marquee-dot {
  font-size: 20px;
  color: rgba(255,255,255,0.4);
  padding: 13px 0;
}

/* =====================================================
   WOOCOMMERCE OVERRIDES
   ===================================================== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-top-color: var(--ph-teal);
  background: var(--ph-teal-light);
  color: var(--ph-dark);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.woocommerce-message::before {
  color: var(--ph-teal);
}

/* =====================================================
   WOOCOMMERCE CART PAGE OVERRIDES
   ===================================================== */
.woocommerce table.shop_table {
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--ph-bg-card);
  color: var(--ph-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ph-border);
}

.woocommerce table.shop_table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(32,38,31,0.06);
  vertical-align: middle;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes phMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes phFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phRise {
  from { opacity: 0; transform: translateY(16px) scale(.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes phSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes phUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes phPop {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* =====================================================
   BLOG / POST CARDS
   ===================================================== */
.ph-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.ph-post-card {
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-slow);
}

.ph-post-card:hover {
  box-shadow: var(--shadow-card);
}

.ph-post-card__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ph-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ph-post-card:hover .ph-post-card__thumb img {
  transform: scale(1.04);
}

.ph-post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ph-post-card__title {
  font-size: 20px;
  line-height: 1.4;
}

.ph-post-card__title a {
  color: var(--ph-dark);
}

.ph-post-card__title a:hover {
  color: var(--ph-teal);
}

.ph-post-card__excerpt {
  font-size: 14px;
  color: var(--ph-mid-green);
  line-height: 1.8;
}

.ph-page-title {
  margin-bottom: 32px;
}

.ph-page-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ph-dark);
}

.ph-page-content p { margin-bottom: 1.2em; }
.ph-page-content h2 { margin: 1.8em 0 0.6em; }
.ph-page-content h3 { margin: 1.5em 0 0.5em; }
.ph-page-content ul, .ph-page-content ol { margin: 1em 0 1em 1.5em; }
.ph-page-content li { margin-bottom: 0.4em; }
.ph-page-content a { color: var(--ph-teal); text-decoration: underline; }

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.ph-back-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 82;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--ph-dark);
    color: var(--ph-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 13px 26px -11px rgba(20,26,18,.5);
    animation: phRise .3s ease;
    transition: background .25s, transform .2s;
}
.ph-back-top:hover { background: var(--ph-orange); transform: translateY(-2px); }

/* =====================================================
   FLOATING SUPPORT WIDGET
   ===================================================== */
.ph-support-widget {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: 83;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

/* Channel list */
.ph-support-channels {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Single channel card */
.ph-support-channel {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--ph-white);
    border: 1px solid rgba(32,38,31,.08);
    border-radius: 26px;
    padding: 7px 13px 7px 8px;
    cursor: pointer;
    box-shadow: 0 11px 24px -13px rgba(32,38,31,.4);
    text-decoration: none;
    animation: phPop .25s ease both;
    transition: transform .2s;
    white-space: nowrap;
}
.ph-support-channel:hover { transform: translateX(4px); }

.ph-support-channel__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ch-color, #1B7A8C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0;
}
.ph-support-channel__name   { font-size: 13px; color: var(--ph-dark); font-weight: 500; line-height: 1.3; }
.ph-support-channel__handle { font-size: 10.5px; color: var(--ph-muted); direction: ltr; }

/* Toggle button */
.ph-support-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ph-teal);
    color: #fff;
    border: none;
    border-radius: 26px;
    padding: 11px 16px;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(27,122,140,.65);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .25s, transform .25s, box-shadow .25s;
    white-space: nowrap;
}
.ph-support-toggle:hover          { background: #125868; transform: translateY(-2px); }
.ph-support-toggle--open          { background: #125868; padding-right: 13px; }
.ph-support-toggle__label         { white-space: nowrap; }

/* Mobile floating buttons: position above bottom nav */
@media (max-width: 768px) {
    .ph-back-top {
        bottom: 96px;
        right: 14px;
        width: 42px;
        height: 42px;
    }
    .ph-support-widget {
        bottom: 96px;
        left: 14px;
    }
    /* Support toggle: icon-only on mobile (no label text) */
    .ph-support-toggle__label { display: none; }
    .ph-support-toggle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    .ph-support-toggle--open { padding-right: 0; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  :root {
    --ph-gutter: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --ph-gutter: var(--ph-gutter-sm);
  }

  .ph-product-card {
    flex: 0 0 188px;
  }

  .ph-section {
    padding-block-start: 44px;
  }
}
