/*
Theme Name: Zibazh (زیباژ)
Theme URI: https://arklin.ir/themes/zibazh
Author: WP Theme Factory
Author URI: https://arklin.ir
Description: سامانه آنلاین خدمات، محصولات مراقبتی و سالن‌های زیبایی
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zibazh
Tags: e-commerce, woocommerce, responsive-layout, rtl-language-support
*/

:root {
  /* Brand Colors - Elegant Rose, Warm Gold & Charcoal */
  --wptf-primary:              #c86b7b;
  --wptf-primary-hover:        #a84f5e;
  --wptf-primary-light:        #fcf3f5;
  --wptf-secondary:            #2d2627;
  --wptf-accent:               #c86b7b;

  /* Neutral Palette */
  --wptf-bg:                   #faf7f7;
  --wptf-surface:              #ffffff;
  --wptf-surface-2:            #f5eeee;
  --wptf-border:               #ecdada;
  --wptf-border-subtle:        #f4eaea;
  --wptf-text:                 #2d2627;
  --wptf-text-muted:           #786b6d;
  --wptf-text-subtle:          #a49799;

  /* Aliases */
  --wptf-color-primary:        var(--wptf-primary);
  --wptf-color-primary-hover:  var(--wptf-primary-hover);
  --wptf-color-secondary:      var(--wptf-secondary);
  --wptf-color-accent:         var(--wptf-accent);
  --wptf-color-text:           var(--wptf-text);
  --wptf-color-text-light:     var(--wptf-text-muted);
  --wptf-color-text-muted:     var(--wptf-text-subtle);
  --wptf-color-bg:             var(--wptf-bg);
  --wptf-color-bg-alt:         var(--wptf-surface-2);
  --wptf-color-border:         var(--wptf-border);

  /* Typography */
  --wptf-font-primary:         'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wptf-font-secondary:       'Vazirmatn', sans-serif;
  --wptf-font-size-base:       15px;
  --wptf-font-size-sm:         13px;
  --wptf-font-size-lg:         18px;
  --wptf-font-size-xl:         24px;
  --wptf-font-size-2xl:        32px;
  --wptf-font-size-3xl:        48px;
  --wptf-line-height-base:     1.75;

  /* Layout */
  --wptf-container-width:      1200px;
  --wptf-container-padding:    24px;

  /* Borders & Shadows */
  --wptf-radius-sm:            8px;
  --wptf-radius-md:            16px;
  --wptf-radius:               16px;
  --wptf-radius-lg:            24px;
  --wptf-radius-full:          9999px;
  --wptf-border-radius-sm:     var(--wptf-radius-sm);
  --wptf-border-radius:        var(--wptf-radius-md);
  --wptf-border-radius-lg:     var(--wptf-radius-lg);
  --wptf-border-radius-full:   var(--wptf-radius-full);

  --wptf-shadow-sm:            0 2px 10px rgba(45, 38, 39, 0.04);
  --wptf-shadow-md:            0 8px 24px rgba(45, 38, 39, 0.08);
  --wptf-shadow:               0 16px 40px rgba(45, 38, 39, 0.08);
  --wptf-shadow-lg:            0 24px 60px rgba(45, 38, 39, 0.12);

  /* Transitions & Animation - Apple Design Spring */
  --wptf-transition-fast:      150ms cubic-bezier(0.16, 1, 0.3, 1);
  --wptf-transition-spring:    300ms cubic-bezier(0.16, 1, 0.3, 1);
  --wptf-transition:           250ms cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background-color: var(--wptf-bg);
  color: var(--wptf-text);
  margin: 0;
  font-family: var(--wptf-font-primary);
  line-height: var(--wptf-line-height-base);
  direction: rtl;
}

.wptf-wrap, .zibazh-wrap {
  width: min(calc(100% - 48px), var(--wptf-container-width));
  margin-inline: auto;
}

@media (max-width: 768px) {
  .wptf-wrap, .zibazh-wrap {
    width: min(calc(100% - 30px), var(--wptf-container-width));
  }
}

/* ==========================================================================
   WPTF Core Components — Mobile Dock, Cart Drawer & Sticky Bar
   ========================================================================== */

/* Buttons */
.wptf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--wptf-radius-full, 9999px);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--wptf-transition, 0.25s ease);
}
.wptf-btn--primary {
  background: var(--wptf-primary, #c86b7b);
  color: #ffffff !important;
  box-shadow: var(--wptf-shadow-sm);
}
.wptf-btn--primary:hover {
  background: var(--wptf-primary-hover, #a84f5e);
  transform: translateY(-2px);
  box-shadow: var(--wptf-shadow-md);
}
.wptf-btn--secondary {
  background: var(--wptf-surface-2, #f5eeee);
  color: var(--wptf-text, #2d2627) !important;
  border-color: var(--wptf-border, #ecdada);
}
.wptf-btn--secondary:hover {
  border-color: var(--wptf-primary, #c86b7b);
  color: var(--wptf-primary, #c86b7b) !important;
}

/* Mobile Navigation Dock */
.wptf-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--wptf-border, #ecdada);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
@media (max-width: 768px) {
  .wptf-mobile-dock { display: block; }
  body { padding-bottom: 64px; }
}
.wptf-mobile-dock__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 12px;
}
.wptf-mobile-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--wptf-text-muted, #786b6d);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  min-width: 48px;
  min-height: 48px;
  position: relative;
  transition: all 0.2s ease;
}
.wptf-mobile-dock__item.is-active,
.wptf-mobile-dock__item:hover {
  color: var(--wptf-primary, #c86b7b);
  transform: translateY(-2px);
}
.wptf-mobile-dock__icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
.wptf-mobile-dock__icon-wrap {
  position: relative;
  display: inline-flex;
}
.wptf-mobile-dock__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--wptf-sale-badge-color, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Sliding Cart Drawer */
.wptf-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}
.wptf-cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.wptf-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wptf-cart-drawer.is-open .wptf-cart-drawer__backdrop {
  opacity: 1;
}
.wptf-cart-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 390px;
  background: var(--wptf-surface, #ffffff);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  direction: rtl;
}
.wptf-cart-drawer.is-open .wptf-cart-drawer__panel {
  transform: translateX(0);
}
.wptf-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--wptf-border, #ecdada);
}
.wptf-cart-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--wptf-text, #2d2627);
}
.wptf-cart-drawer__count {
  background: var(--wptf-primary, #c86b7b);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
}
.wptf-cart-drawer__close {
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--wptf-text-muted, #786b6d);
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
  border-radius: 6px;
}
.wptf-cart-drawer__close:hover {
  color: var(--wptf-text, #2d2627);
  background: var(--wptf-surface-2, #f5eeee);
}
.wptf-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.wptf-cart-drawer__body ul.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wptf-cart-drawer__body ul.woocommerce-mini-cart li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wptf-border, #ecdada);
}
.wptf-cart-drawer__footer {
  padding: 18px 20px;
  border-top: 1px solid var(--wptf-border, #ecdada);
  background: var(--wptf-surface-2, #f5eeee);
}
.wptf-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wptf-text, #2d2627);
}
.wptf-cart-drawer__actions {
  display: flex;
  gap: 10px;
}
.wptf-cart-drawer__actions a {
  flex: 1;
  text-align: center;
}

/* Sticky Add-to-Cart Bar */
.wptf-sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--wptf-surface, #ffffff);
  border-top: 1px solid var(--wptf-border, #ecdada);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  direction: rtl;
}
.wptf-sticky-cart-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 768px) {
  .wptf-sticky-cart-bar.is-visible { bottom: 60px; }
}
.wptf-sticky-cart-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}
.wptf-sticky-cart-bar__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wptf-sticky-cart-bar__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--wptf-radius-base, 8px);
  object-fit: cover;
  flex-shrink: 0;
}
.wptf-sticky-cart-bar__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wptf-sticky-cart-bar__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--wptf-text, #2d2627);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wptf-sticky-cart-bar__price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wptf-primary, #c86b7b);
}
.wptf-sticky-cart-bar__btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

