/*
Theme Name: PC World Theme
Theme URI: 
Author: PC World
Description: Custom theme for PC World gaming peripherals store
Template: BlankSlate
Version: 1.0.0
Text Domain: pcworld-theme
*/

/* ===== PC WORLD DESIGN TOKENS ===== */
:root {
  /* Colors */
  --color-bg: #141414;
  --color-card: #1e1e1e;
  --color-logo: #213d82;
  --color-cta: #2d52ad;
  --color-hover: #4a72d4;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-surface-deep: #1a2a50;
  --color-surface-midnight: #0d1a35;

  /* Typography */
  --font-primary: 'Inter', -apple-system, sans-serif;
  --font-arabic-primary: 'Alexandria', sans-serif;
  --font-arabic-secondary: 'Lateef', serif;
  --text-h1: 32px;
  --text-h2: 22px;
  --text-body: 16px;
  --text-label: 11px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
}

/* Desktop overrides */
@media (min-width: 1024px) {
  :root {
    --text-h1: 48px;
    --text-h2: 32px;
  }
}

/* Base */
body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}

/* RTL Arabic font */
:lang(ar) {
  font-family: var(--font-arabic-secondary);
  direction: rtl;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) .pcw-btn,
:lang(ar) .pcw-heading {
  font-family: var(--font-arabic-primary);
}

/* ===== BACKGROUND GLOW ===== */
.pcw-bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
}
.pcw-bg-glow--top {
  width: 600px;
  height: 500px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(33,61,130,0.35) 0%, transparent 70%);
}
.pcw-bg-glow--bottom {
  width: 500px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(ellipse, rgba(74,114,212,0.15) 0%, transparent 70%);
}

/* ===== HEADER / NAV ===== */
.pcw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
}

.pcw-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(33, 61, 130, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 114, 212, 0.25);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.pcw-nav__hamburger {
  grid-column: 1;
  justify-self: start;
}
.pcw-nav__logo {
  grid-column: 2;
  justify-self: center;
}
.pcw-nav__links {
  grid-column: 2; /* desktop: shares center col, overridden by flex below */
}
.pcw-nav__icons {
  grid-column: 3;
  justify-self: end;
}

/* Logo */
.pcw-nav__logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pcw-nav__logo img {
  height: 32px;
  width: auto;
}

/* Desktop nav links — hidden on mobile */
.pcw-nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}
.pcw-nav__links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.pcw-nav__links a:hover,
.pcw-nav__links a.active {
  color: var(--color-text-secondary);
}

/* Right icons */
.pcw-nav__icons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.pcw-nav__icon {
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  text-decoration: none;
}
.pcw-nav__icon:hover {
  color: var(--color-text-secondary);
}

/* Cart count badge */
.pcw-nav__cart {
  position: relative;
}
.pcw-nav__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-cta);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger — mobile only */
.pcw-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.pcw-nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: 2px;
  transition: background 0.2s;
}
.pcw-nav__hamburger:hover span {
  background: var(--color-text-primary);
}

/* Mobile drawer */
.pcw-nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: linear-gradient(180deg, #1a1a1a 0%, var(--color-bg) 100%);
  border-left: 1px solid rgba(74,114,212,0.15);
  z-index: 200;
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.pcw-nav__drawer.open {
  transform: translateX(0);
}
.pcw-nav__drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pcw-nav__drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.pcw-nav__drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  direction: rtl;
}
.pcw-nav__drawer-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-family: var(--font-arabic-primary);
}
.pcw-nav__drawer-close {
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--color-text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pcw-nav__drawer-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-text-primary);
}
.pcw-nav__drawer-links {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pcw-nav__drawer-links a,
.pcw-nav__drawer-links button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-arabic-primary);
  direction: rtl;
  text-align: right;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}
.pcw-nav__drawer-links a svg,
.pcw-nav__drawer-links button svg {
  color: var(--color-hover);
  flex-shrink: 0;
}
.pcw-nav__drawer-links a:hover,
.pcw-nav__drawer-links button:hover {
  background: rgba(74,114,212,0.12);
  transform: translateX(-2px);
}
.pcw-nav__drawer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: var(--space-md) 0 var(--space-lg);
}

/* Mobile: hide search + account icons (cart stays) */
@media (max-width: 1023px) {
  .pcw-nav__search,
  .pcw-nav__account {
    display: none;
  }
}

/* Desktop nav overrides — switch back to flex for natural centering with all items visible */
@media (min-width: 1024px) {
  .pcw-nav {
    display: flex;
    justify-content: space-between;
  }
  .pcw-nav__hamburger { display: none; }
  .pcw-nav__links { display: flex; }
}

/* ===== HERO ===== */
.pcw-main {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-lg);
}

.pcw-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

/* Product card */
.pcw-hero__carousel {
  position: relative;
  flex: 1;
}
.pcw-hero__carousel-track {
  position: relative;
  height: 280px;
}
.pcw-hero__card {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  gap: 4px;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.pcw-hero__card.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pcw-hero__carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  direction: ltr;
}
.pcw-hero__carousel-arrow {
  background: rgba(74,114,212,0.15);
  border: 1px solid rgba(74,114,212,0.25);
  color: var(--color-hover);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.pcw-hero__carousel-arrow:hover {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-hover);
}
.pcw-hero__carousel-dots {
  display: flex;
  gap: 6px;
}
.pcw-hero__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.pcw-hero__carousel-dot.active {
  background: var(--color-hover);
  width: 22px;
  border-radius: 4px;
}
.pcw-hero__card-badge {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  text-align: center;
}
.pcw-hero__card-img {
  max-width: 260px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  display: block;
}
.pcw-hero__card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  text-align: center;
  text-decoration: none;
  display: block;
}
.pcw-hero__card-specs {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Tagline + CTAs */
.pcw-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: right;
}
.pcw-hero__eyebrow {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-hover);
}
.pcw-hero__tagline {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0 auto 8px;
  font-family: var(--font-arabic-primary);
  direction: rtl;
  text-align: center;
  display: block;
  width: 100%;
}
.pcw-hero__tagline-highlight {
  color: var(--color-hover);
  display: inline;
}
.pcw-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Buttons */
.pcw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-arabic-primary);
  direction: rtl;
  box-sizing: border-box;
}
.pcw-btn--primary {
  background: var(--color-cta);
  color: #fff;
}
.pcw-btn--primary:hover {
  background: var(--color-hover);
  color: #fff;
}
.pcw-btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid rgba(255,255,255,0.15);
}
.pcw-btn--ghost:hover {
  border-color: var(--color-hover);
  color: var(--color-hover);
}
.pcw-icon-directional {
  display: inline-block;
}
[dir="rtl"] .pcw-icon-directional {
  transform: scaleX(-1);
}

/* ===== CATEGORIES ===== */
.pcw-categories {
  max-width: 1200px;
  margin: 0 auto;
}
.pcw-categories__heading {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: right;
  margin-bottom: var(--space-lg);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}
.pcw-categories__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.pcw-cat-card {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  text-decoration: none;
  transition: border-color 0.2s;
}
.pcw-cat-card:hover {
  border-color: rgba(74,114,212,0.5);
  background: linear-gradient(135deg, rgba(33,61,130,0.25) 0%, rgba(74,114,212,0.15) 100%);
}
.pcw-cat-card img {
  width: 100%;
  max-width: 160px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.pcw-cat-card--keyboard img {
  max-width: 185px;
}
.pcw-cat-card span {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
}

/* Mobile hero: centered, tighter spacing */
@media (max-width: 1023px) {
  .pcw-hero__tagline {
    font-size: 30px;
    text-align: center;
  }
  .pcw-hero__content {
    gap: 12px;
    text-align: center;
    align-items: center;
  }
  .pcw-hero__eyebrow {
    margin-bottom: 4px;
    text-align: center;
  }
  .pcw-hero__ctas {
    width: 100%;
  }
  .pcw-hero__ctas .pcw-btn {
    width: 100%;
  }
}

/* Desktop hero: side by side */
@media (min-width: 1024px) {
  .pcw-main {
    padding: var(--space-2xl) 120px;
  }
  .pcw-hero {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }
  .pcw-hero__card {
    flex: 1;
  }
  .pcw-hero__content {
    flex: 1;
    text-align: right;
    align-items: flex-start;
  }
  .pcw-hero__tagline {
    font-size: 48px;
    line-height: 1.2;
    text-align: right;
    margin: 0;
  }
  .pcw-hero__eyebrow {
    text-align: right;
  }
  .pcw-hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .pcw-hero__ctas .pcw-btn {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
  }
  .pcw-categories__grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}


/* ===== CATALOG PAGE ===== */
.pcw-catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

/* Search */
.pcw-catalog__search {
  margin-bottom: var(--space-lg);
}
.pcw-catalog__search form {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: 10px var(--space-md);
  gap: var(--space-sm);
}
.pcw-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-size: var(--text-body);
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
}
.pcw-search__input::placeholder {
  color: var(--color-text-secondary);
}
.pcw-search__btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.pcw-search__btn:hover {
  color: var(--color-text-primary);
}

/* Heading + filters */
.pcw-catalog__heading {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: right;
  margin-bottom: var(--space-md);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}
.pcw-catalog__filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  justify-content: flex-start;
  direction: rtl;
}
.pcw-filter-pill {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-arabic-primary);
  white-space: nowrap;
}
.pcw-filter-pill:hover,
.pcw-filter-pill.active {
  background: var(--color-cta);
  border-color: var(--color-hover);
  color: #fff;
}

/* Meta row */
.pcw-catalog__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  direction: rtl;
}
.pcw-catalog__count,
.pcw-catalog__sort {
  font-size: 13px;
  color: var(--color-text-secondary);
  direction: rtl;
}
.pcw-catalog__count p,
.woocommerce-result-count {
  color: var(--color-text-secondary) !important;
  font-size: 13px;
  margin: 0;
}
.woocommerce-ordering select {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* Product grid */
.pcw-product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--space-md);
  align-items: stretch;
}

/* Product card */
.pcw-product-card {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pcw-product-card:hover {
  border-color: rgba(74,114,212,0.5);
}
.pcw-product-card__img-wrap {
  display: block;
  background: #ffffff;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.pcw-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
  box-sizing: border-box;
}
.pcw-product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--color-surface-deep);
}
.pcw-product-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--color-cta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.pcw-product-card__info {
  padding: var(--space-md);
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcw-product-card__cat {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: var(--space-xs);
}
.pcw-product-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  font-family: var(--font-arabic-primary);
  line-height: 1.4;
  min-height: 2.8em;
}
.pcw-product-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  margin-top: auto;
}
.pcw-product-card__price .woocommerce-Price-amount {
  color: var(--color-text-primary);
}
.pcw-product-card__btn {
  width: 100%;
  font-size: 13px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* No products */
.pcw-no-products {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-secondary);
  padding: var(--space-2xl);
}

/* Desktop */
@media (min-width: 1024px) {
  .pcw-product-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce a,
.woocommerce-page a,
.pcw-product-card__name,
.pcw-product-card__name:hover,
.pcw-filter-pill,
.pcw-catalog__meta a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.pcw-product-card__name:hover {
  color: var(--color-hover);
}

.pcw-filter-pill {
  color: var(--color-text-secondary);
}

.pcw-filter-pill.active,
.pcw-filter-pill:hover {
  color: #fff;
}

/* Kill WooCommerce default blue links globally */
a {
  color: var(--color-text-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-hover);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.pcw-product {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery */
.pcw-product__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.pcw-product__img-main {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcw-product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
}
.pcw-product__img-counter {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.pcw-product__thumbnails {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
}
.pcw-product__thumb {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.1);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.pcw-product__thumb.active,
.pcw-product__thumb:hover {
  border-color: var(--color-hover);
}
.pcw-product__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Product info */
.pcw-product__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  direction: rtl;
  text-align: right;
}
.pcw-product__cat {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-hover);
}
.pcw-product__name {
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  font-family: var(--font-arabic-primary);
  line-height: 1.2;
}
.pcw-product__specs {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Stock + price row */
.pcw-product__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  margin-bottom: var(--space-lg);
}
.pcw-product__stock {
  background: rgba(33,61,130,0.2);
  border: 1px solid rgba(74,114,212,0.3);
  color: var(--color-hover);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pcw-product__stock--out {
  background: rgba(180,50,50,0.2);
  border-color: rgba(180,50,50,0.3);
  color: #e05555;
}
.pcw-product__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.pcw-product__price .woocommerce-Price-amount {
  color: var(--color-text-primary);
}

/* Specs table */
.pcw-product__specs-table {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pcw-product__specs-table p {
  display: flex;
  justify-content: space-between;
  padding: 10px var(--space-md);
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.pcw-product__specs-table p:last-child {
  border-bottom: none;
}

/* Add to cart */
.pcw-product__add-to-cart {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
  position: sticky;
  bottom: var(--space-md);
}

/* Desktop: side by side — row-reverse puts gallery (first in DOM) on RIGHT, info on LEFT */
@media (min-width: 1024px) {
  .pcw-product {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: var(--space-2xl);
  }
  .pcw-product__gallery {
    flex: 1;
    position: sticky;
    top: 100px;
  }
  .pcw-product__info {
    flex: 1;
  }
  .pcw-product__add-to-cart {
    position: static;
  }
}

/* ===== ABOUT PAGE ===== */
.pcw-about {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* Hero */
.pcw-about__hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-lg);
}
.pcw-about__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: var(--space-md);
  font-family: var(--font-arabic-primary);
}
.pcw-about__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-lg);
  font-family: var(--font-arabic-primary);
  direction: rtl;
  line-height: 1.3;
}
.pcw-about__title-highlight {
  color: var(--color-hover);
}
.pcw-about__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
  direction: rtl;
  font-family: var(--font-arabic-primary);
}

/* Stats */
.pcw-about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.pcw-about__stat {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}
.pcw-about__stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  font-family: var(--font-arabic-primary);
}
.pcw-about__stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-arabic-primary);
}

/* Why us */
.pcw-about__why-title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}
.pcw-about__why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.pcw-about__why-card {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  direction: rtl;
  transition: border-color 0.2s;
}
.pcw-about__why-card:hover {
  border-color: rgba(74,114,212,0.5);
}
.pcw-about__why-icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
}
.pcw-about__why-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-arabic-primary);
}
.pcw-about__why-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-family: var(--font-arabic-primary);
}

/* CTA */
.pcw-about__cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(33,61,130,0.2) 0%, rgba(74,114,212,0.1) 100%);
  border: 1px solid rgba(74,114,212,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}
.pcw-about__cta-title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}
.pcw-about__cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}

/* Desktop */
@media (min-width: 1024px) {
  .pcw-about__stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .pcw-about__why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pcw-omr-symbol {
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
  margin-left: 0;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.pcw-product-card__price .pcw-omr-symbol {
  height: 11px;
  margin-right: 3px;
}

.woocommerce-ordering select {
  direction: rtl;
  text-align: right;
}

.pcw-nav__links a.current-menu-item,
.pcw-nav__links a.current_page_item,
.pcw-nav__links a[aria-current="page"] {
  color: var(--color-text-secondary);
}

.pcw-nav__links li.current-menu-item a {
  color: var(--color-text-secondary);
}

/* ===== CART PAGE ===== */
.pcw-cart {
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}

/* Header */
.pcw-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  direction: rtl;
}
.pcw-cart__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  font-family: var(--font-arabic-primary);
}
.pcw-cart__continue {
  font-size: 13px;
  color: var(--color-hover);
  text-decoration: none;
  transition: color 0.2s;
}
.pcw-cart__continue:hover {
  color: var(--color-text-primary);
}

/* Empty cart */
.pcw-cart__empty {
  text-align: center;
  padding: var(--space-2xl);
  direction: rtl;
}
.pcw-cart__empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
}
.pcw-cart__empty h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-arabic-primary);
}
.pcw-cart__empty p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  font-family: var(--font-arabic-secondary);
}

/* Layout */
.pcw-cart__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Items section */
.pcw-cart__items-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  text-align: right;
  direction: rtl;
}

/* Cart item */
.pcw-cart__item {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.pcw-cart__item-img-wrap {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcw-cart__item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.pcw-cart__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
}
.pcw-cart__item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  direction: rtl;
  flex-direction: row;
}
.pcw-cart__item-remove {
  color: var(--color-text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
.pcw-cart__item-remove:hover {
  color: #e05555;
}
.pcw-cart__item-details {
  text-align: right;
  direction: rtl;
}
.pcw-cart__item-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 2px;
  direction: rtl;
  text-align: right;
}
.pcw-cart__item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: var(--font-arabic-primary);
  direction: rtl;
  text-align: right;
  display: block;
}
.pcw-cart__item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
}
.pcw-cart__item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  direction: rtl;
}
.pcw-cart__item-price .woocommerce-Price-amount {
  color: var(--color-text-primary);
}

/* Qty stepper */
.pcw-cart__qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-sm);
  direction: ltr;
}
.pcw-cart__qty-btn {
  color: var(--color-hover);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.pcw-cart__qty-btn:hover {
  color: var(--color-text-primary);
}
.pcw-cart__qty-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  width: 28px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.pcw-cart__qty-num::-webkit-outer-spin-button,
.pcw-cart__qty-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pcw-cart__qty-num:focus {
  outline: none;
}

/* Order summary */
.pcw-cart__summary {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.pcw-cart__summary-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  text-align: right;
  direction: rtl;
  display: block;
}
.pcw-cart__summary-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.pcw-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
  flex-direction: row;
}
.pcw-cart__summary-key {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: right;
}
.pcw-cart__summary-value {
  font-size: 13px;
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: left;
}
.pcw-cart__summary-value .woocommerce-Price-amount {
  color: var(--color-text-primary);
}
.pcw-color-blue {
  color: var(--color-hover) !important;
  font-weight: 600;
}
.pcw-cart__summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--space-sm) 0;
}
.pcw-cart__summary-total {
  direction: rtl;
  flex-direction: row;
}
.pcw-cart__summary-total .pcw-cart__summary-key {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.pcw-cart__summary-total .pcw-cart__summary-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.pcw-cart__summary-total .woocommerce-Price-amount {
  color: var(--color-text-primary);
  font-size: 20px;
  font-weight: 800;
}

/* Checkout button */
.pcw-cart__checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  display: block;
  text-align: center;
}

/* Coupon */
.pcw-coupon-form {
  display: flex;
  gap: var(--space-sm);
  direction: rtl;
}
.pcw-coupon-input {
  flex: 1;
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-md);
  color: var(--color-text-primary);
  font-size: 13px;
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
}
.pcw-coupon-input::placeholder {
  color: var(--color-text-secondary);
}
.pcw-coupon-btn {
  padding: 10px var(--space-lg);
  font-size: 13px;
  white-space: nowrap;
}

/* Desktop: side by side */
@media (min-width: 1024px) {
  .pcw-cart__layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .pcw-cart__items {
    flex: 1.5;
  }
  .pcw-cart__summary {
    flex: 1;
    position: sticky;
    top: 100px;
  }
}

/* ===== CHECKOUT GATE ===== */
.pcw-gate {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Header */
.pcw-gate__header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}
.pcw-gate__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 12px;
}
.pcw-gate__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 12px;
  font-family: var(--font-arabic-primary);
  direction: rtl;
  line-height: 1.1;
}
.pcw-gate__subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 8px 0 0;
  font-family: var(--font-arabic-primary);
}

/* Options */
.pcw-gate__option {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  margin-bottom: 4px;
}
.pcw-gate__option:hover {
  border-color: var(--color-hover);
  background: linear-gradient(135deg, rgba(33,61,130,0.25) 0%, rgba(74,114,212,0.15) 100%);
}
.pcw-gate__option--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.1);
}
.pcw-gate__option--ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

/* Option icon */
.pcw-gate__option-icon {
  width: 48px;
  height: 48px;
  background: rgba(33,61,130,0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-hover);
  flex-shrink: 0;
}
.pcw-gate__option-icon--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-secondary);
}

/* Option text */
.pcw-gate__option-text {
  flex: 1;
  text-align: right;
  direction: rtl;
}
.pcw-gate__option-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  font-family: var(--font-arabic-primary);
  direction: rtl;
}
.pcw-gate__option-title--ghost {
  color: var(--color-text-secondary);
}
.pcw-gate__option-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}

/* Arrow */
.pcw-gate__option-arrow {
  color: var(--color-hover);
  font-size: 20px;
  flex-shrink: 0;
}
.pcw-gate__option-arrow--ghost {
  color: var(--color-text-secondary);
}

/* Divider */
.pcw-gate__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 16px 0;
}
.pcw-gate__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.pcw-gate__divider-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-family: var(--font-arabic-secondary);
  padding: 0 12px;
}

/* Order summary */
.pcw-gate__summary {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 16px;
  direction: rtl;
}
.pcw-gate__summary-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  text-align: right;
}
.pcw-gate__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  direction: rtl;
  flex-direction: row;
}
.pcw-gate__summary-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: right;
  direction: rtl;
}
.pcw-gate__summary-price {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 600;
}
.pcw-gate__summary-price .woocommerce-Price-amount {
  color: var(--color-text-primary);
}
.pcw-gate__summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--space-sm) 0;
}
.pcw-gate__summary-total-row .pcw-gate__summary-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.pcw-gate__summary-total-row .pcw-gate__summary-price {
  font-size: 22px;
  font-weight: 800;
}
.pcw-gate__summary-total-row .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* ===== AUTH PAGES (Login + Register) — matches .pcw-gate exactly ===== */
.pcw-auth {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pcw-auth__header {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 40px;
}
.pcw-auth__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 12px;
}
.pcw-auth__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 12px;
  font-family: var(--font-arabic-primary);
  direction: rtl;
  line-height: 1.1;
}

.pcw-auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pcw-auth__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  direction: rtl;
}
.pcw-auth__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: right;
  font-family: var(--font-arabic-primary);
  padding-right: 2px;
}
.pcw-auth__input {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px !important;
  padding: 13px var(--space-md);
  font-size: 15px;
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.pcw-auth__input:focus {
  outline: none;
  border-color: var(--color-hover);
}
.pcw-auth__input--error {
  border-color: #e05555 !important;
  background: rgba(180,50,50,0.08);
}
.pcw-auth__input::placeholder {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* Phone number stays LTR so digits read correctly, but right-aligned */
.pcw-auth__input--ltr {
  direction: ltr;
  text-align: right;
}

.pcw-auth__input[type="password"] {
  font-size: 20px;
  letter-spacing: 4px;
}

.pcw-auth__forgot {
  text-align: left;
  margin-top: -8px;
}
.pcw-auth__forgot a {
  font-size: 12px;
  color: var(--color-hover);
  text-decoration: none;
  font-family: var(--font-arabic-primary);
}
.pcw-auth__forgot a:hover {
  color: var(--color-text-primary);
}

.pcw-auth__submit {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-top: var(--space-sm);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic-primary);
}

.pcw-auth__switch {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  font-family: var(--font-arabic-primary);
  direction: rtl;
}
.pcw-auth__switch a {
  color: var(--color-hover);
  font-weight: 600;
  text-decoration: none;
  margin-right: 4px;
}
.pcw-auth__switch a:hover {
  color: var(--color-text-primary);
}

/* Order summary — identical to .pcw-gate__summary */
.pcw-auth__summary {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: var(--space-sm);
  direction: rtl;
}
.pcw-auth__summary-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-align: right;
  margin-bottom: var(--space-md);
  font-family: var(--font-arabic-primary);
}
.pcw-auth__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  direction: rtl;
}
.pcw-auth__summary-name {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: right;
}
.pcw-auth__summary-price {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
}
.pcw-auth__summary-price .woocommerce-Price-amount {
  color: var(--color-text-primary);
}
.pcw-auth__summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--space-sm) 0;
}
.pcw-auth__summary-total .pcw-auth__summary-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.pcw-auth__summary-total .pcw-auth__summary-price {
  font-size: 22px;
  font-weight: 800;
}
.pcw-auth__summary-total .woocommerce-Price-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Hide WooCommerce's English privacy text — replaced by .pcw-auth__privacy-custom */
.pcw-auth__form .woocommerce-privacy-policy-text p {
  display: none;
}

.pcw-auth__form p.pcw-auth__privacy-custom {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--color-text-secondary) !important;
  text-align: right;
  direction: rtl;
  font-family: var(--font-arabic-secondary);
  margin: 4px 0;
}

.pcw-auth__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
  font-family: var(--font-arabic-secondary);
}

/* ===== VERIFY EMAIL PAGE ===== */
.pcw-auth__email-highlight {
  color: var(--color-hover);
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}

.pcw-otp__boxes {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.pcw-otp__box {
  width: 56px;
  height: 64px;
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  transition: border-color 0.2s;
}
.pcw-otp__box:focus {
  outline: none;
  border-color: var(--color-hover);
}

.pcw-auth__error {
  background: rgba(180,50,50,0.15);
  border: 1px solid rgba(180,50,50,0.3);
  color: #e05555;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 8px;
}

.pcw-auth__errors {
  margin-bottom: var(--space-md);
}
.pcw-auth__error-msg {
  background: rgba(180,50,50,0.15) !important;
  border: 1px solid rgba(180,50,50,0.3) !important;
  color: #ff9999 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 16px 18px !important;
  border-radius: var(--radius-md) !important;
  text-align: right !important;
  direction: rtl !important;
  margin-bottom: var(--space-md) !important;
  font-family: var(--font-arabic-primary) !important;
  line-height: 1.7 !important;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pcw-auth__error-icon {
  flex-shrink: 0;
}
.pcw-auth__error-text {
  flex: 1;
  min-width: 0;
}
.pcw-auth__error-msg a {
  color: #ffaaaa !important;
  text-decoration: underline;
}

/* ===== ADDRESS SELECT PAGE ===== */
.pcw-addr__saved-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-align: right;
  direction: rtl;
  margin-bottom: 12px;
}
.pcw-addr__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pcw-addr__card {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
  direction: rtl;
}
.pcw-addr__card:has(.pcw-addr__radio:checked) {
  border-color: var(--color-hover);
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
}
.pcw-addr__radio {
  accent-color: var(--color-hover);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.pcw-addr__card-content {
  flex: 1;
  text-align: right;
}
.pcw-addr__card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.pcw-addr__card-location {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.pcw-addr__card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pcw-addr__card-tag {
  font-size: 11px;
  color: var(--color-hover);
  background: rgba(33,61,130,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.pcw-addr__card-phone {
  font-size: 12px;
  color: var(--color-text-secondary);
  direction: ltr;
}
.pcw-addr__new-btn {
  width: 100%;
  margin-bottom: 12px;
}
.pcw-addr__error {
  font-size: 13px;
  color: #e05555;
  text-align: right;
  direction: rtl;
  background: rgba(224,85,85,0.1);
  border: 1px solid rgba(224,85,85,0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  font-family: var(--font-arabic-secondary);
}

.pcw-addr__no-office-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: right;
  direction: rtl;
  margin: -8px 0 8px;
  font-family: var(--font-arabic-secondary);
}

.pcw-addr__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  direction: rtl;
}
.pcw-addr__toggle-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-family: var(--font-arabic-primary);
}
.pcw-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.pcw-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.pcw-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  transition: 0.2s;
}
.pcw-toggle__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}
.pcw-toggle input:checked + .pcw-toggle__slider {
  background: var(--color-cta);
}
.pcw-toggle input:checked + .pcw-toggle__slider:before {
  transform: translateX(20px);
}

.pcw-auth__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a72d4' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

.pcw-auth__textarea {
  min-height: 70px;
  resize: vertical;
  font-family: var(--font-arabic-secondary);
}

/* ===== CHECKOUT CONFIRMATION PAGE ===== */
.pcw-checkout__addr-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  direction: rtl;
}
.pcw-checkout__addr-edit {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-hover);
  text-decoration: none;
}
.pcw-checkout__addr-info {
  text-align: right;
}
.pcw-checkout__addr-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.pcw-checkout__addr-location {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.pcw-checkout__payment {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
}
.pcw-checkout__payment-icon {
  font-size: 24px;
}
.pcw-checkout__payment-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
}
/* Real WooCommerce payment block inside our checkout form */
.pcw-checkout-form #payment {
  background: none;
  border: none;
  padding: 0;
}
.pcw-checkout-form .payment_methods {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 var(--space-md);
}
.pcw-checkout-form .payment_methods li {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  direction: rtl;
  text-align: right;
}
.pcw-checkout-form .payment_methods label {
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
  font-size: 14px;
  cursor: pointer;
}
.pcw-checkout-form #place_order {
  width: 100%;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-arabic-primary);
  margin-top: var(--space-md);
  transition: background 0.2s;
  display: block;
}
.pcw-checkout-form #place_order:hover {
  background: var(--color-hover);
}
.pcw-checkout-form .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: var(--space-md);
  direction: rtl;
  text-align: right;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.pcw-checkout-form .payment_box {
  background: none;
  padding: var(--space-sm) 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  direction: rtl;
  text-align: right;
}
/* ===== THANK YOU PAGE ===== */
.pcw-thankyou {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.pcw-thankyou__header {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}
.pcw-thankyou__icon {
  width: 64px;
  height: 64px;
  background: rgba(60,160,90,0.15);
  border: 2px solid rgba(93,214,138,0.4);
  color: #5dd68a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}
.pcw-thankyou__eyebrow {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-hover);
  margin-bottom: 8px;
}
.pcw-thankyou__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 8px;
  font-family: var(--font-arabic-primary);
}
.pcw-thankyou__subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  font-family: var(--font-arabic-secondary);
}
.pcw-thankyou__order-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(33,61,130,0.2) 0%, rgba(74,114,212,0.1) 100%);
  border: 1px solid rgba(74,114,212,0.3);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  direction: rtl;
}
.pcw-thankyou__order-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.pcw-thankyou__order-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-hover);
  direction: ltr;
}
.pcw-thankyou__delivery-info {
  direction: rtl;
  text-align: right;
}
.pcw-thankyou__delivery-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.pcw-thankyou__delivery-phone {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  text-align: right;
}
.pcw-thankyou__delivery-address {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.pcw-thankyou__payment {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  font-size: 14px;
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
}
.pcw-thankyou__payment-icon {
  font-size: 20px;
}
.pcw-thankyou__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-md);
}
.pcw-thankyou__actions .pcw-btn {
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  .pcw-thankyou__actions {
    flex-direction: row;
  }
  .pcw-thankyou__actions .pcw-btn {
    flex: 1;
  }
}

/* ===== SEARCH OVERLAY ===== */
.pcw-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pcw-search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.pcw-search-overlay__box {
  width: 90%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.pcw-search-overlay__form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--color-card);
  border: 1px solid rgba(74,114,212,0.3);
  border-radius: var(--radius-md);
  padding: 14px var(--space-lg);
  gap: var(--space-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.pcw-search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-size: 16px;
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
}
.pcw-search-overlay__input::placeholder {
  color: var(--color-text-secondary);
}
.pcw-search-overlay__submit {
  background: none;
  border: none;
  color: var(--color-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pcw-search-overlay__close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.pcw-search-overlay__close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-text-primary);
}

/* ===== ACCOUNT PAGE ===== */
.pcw-account {
  max-width: 700px;
  margin: 0 auto;
}
.pcw-account__header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
}
.pcw-account__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 8px;
}
.pcw-account__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  font-family: var(--font-arabic-primary);
  direction: rtl;
}

/* Tabs */
.pcw-account__tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-xl);
  direction: rtl;
  flex-wrap: wrap;
}
.pcw-account__tab {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-arabic-primary);
}
.pcw-account__tab:hover {
  border-color: rgba(74,114,212,0.3);
  color: var(--color-text-primary);
}
.pcw-account__tab.active {
  background: var(--color-cta);
  border-color: var(--color-hover);
  color: #fff;
}

/* Panels */
.pcw-account__panel {
  display: none;
}
.pcw-account__panel.active {
  display: block;
}

/* Empty state */
.pcw-account__empty {
  text-align: center;
  padding: var(--space-2xl);
  direction: rtl;
}
.pcw-account__empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}
.pcw-account__empty p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  font-family: var(--font-arabic-secondary);
}

/* Order cards */
.pcw-account__orders {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.pcw-order-card {
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  direction: rtl;
}
.pcw-order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  direction: rtl;
}
.pcw-order-card__number {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.pcw-order-card__status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(74,114,212,0.2);
  color: var(--color-hover);
}
.pcw-order-card__status--completed {
  background: rgba(60,160,90,0.2);
  color: #5dd68a;
}
.pcw-order-card__status--cancelled,
.pcw-order-card__status--failed {
  background: rgba(180,50,50,0.2);
  color: #e05555;
}
.pcw-order-card__items {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pcw-order-card__item {
  font-size: 13px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  direction: rtl;
  text-align: right;
}
.pcw-order-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
}
.pcw-order-card__total {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.pcw-order-card__total .woocommerce-Price-amount {
  color: var(--color-text-primary);
}
.pcw-order-card__date {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Addresses tab — delete button variant */
.pcw-addr__card--static {
  cursor: default;
  align-items: flex-start;
}
.pcw-addr__delete-form {
  flex-shrink: 0;
}
.pcw-addr__delete-btn {
  background: rgba(180,50,50,0.1);
  border: 1px solid rgba(180,50,50,0.2);
  color: #e05555;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pcw-addr__delete-btn:hover {
  background: rgba(180,50,50,0.2);
  border-color: rgba(180,50,50,0.4);
}
.pcw-account__addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-lg);
}
.pcw-addr__new-btn {
  width: 100%;
}

/* Details tab */
.pcw-account__details-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--space-md) 0;
}
.pcw-account__optional {
  color: var(--color-text-secondary);
  font-weight: 400;
  font-size: 12px;
}
.pcw-auth__success-msg {
  background: rgba(60,160,90,0.15);
  border: 1px solid rgba(60,160,90,0.3);
  color: #5dd68a;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-align: right;
  direction: rtl;
  margin-bottom: var(--space-md);
  font-family: var(--font-arabic-secondary);
}
.pcw-account__logout-form {
  margin-top: var(--space-lg);
}
.pcw-account__logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(180,50,50,0.3);
  color: #e05555;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-arabic-primary);
  transition: all 0.2s;
}
.pcw-account__logout-btn:hover {
  background: rgba(180,50,50,0.1);
}

/* ===== SIDE-BY-SIDE NAME FIELDS ===== */
.pcw-auth__field-row {
  display: flex;
  gap: var(--space-md);
  direction: rtl;
}
.pcw-auth__field-row .pcw-auth__field {
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .pcw-auth__field-row {
    flex-direction: column;
  }
}

/* ===== NAV PROFILE DROPDOWN ===== */
.pcw-nav__profile {
  position: relative;
  display: inline-flex;
}
.pcw-nav__profile-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.pcw-nav__profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  background: var(--color-card);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 150;
}
.pcw-nav__profile:hover .pcw-nav__profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pcw-nav__profile-dropdown a,
.pcw-nav__profile-dropdown button {
  display: block;
  width: 100%;
  text-align: right;
  direction: rtl;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-arabic-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}
.pcw-nav__profile-dropdown a:hover,
.pcw-nav__profile-dropdown button:hover {
  background: rgba(74,114,212,0.15);
}
.pcw-nav__profile-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}
.pcw-nav__profile-logout-form button {
  color: #e05555;
}

/* ===== PERSISTENT LOGOUT BUTTON ===== */
.pcw-account__logout-form--persistent {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-md);
}
.pcw-account__logout-form--persistent .pcw-account__logout-btn {
  width: auto;
  padding: 8px 20px;
  font-size: 13px;
}
@media (max-width: 767px) {
  .pcw-account__logout-form--persistent {
    justify-content: center;
    margin-bottom: var(--space-lg);
  }
}

/* ===== VARIATION SWATCHES ===== */
.pcw-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  direction: rtl;
  margin-top: 4px;
  margin-bottom: 4px;
}
.pcw-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}
.pcw-swatch:hover {
  border-color: rgba(74,114,212,0.5);
  transform: scale(1.08);
}
.pcw-swatch.active {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-hover);
}
.pcw-swatch--image {
  background-color: var(--color-card);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* مخطط — real texture image via JS backgroundImage */
.pcw-swatch--pattern {
  border: 2px solid rgba(255,255,255,0.15);
  background-color: var(--color-card);
  background-size: 250% !important;
  background-position: center !important;
  background-repeat: no-repeat;
}
/* Hide default WooCommerce variation UI */
.variations_form a.reset_variations,
.variations_form .reset_variations,
.woocommerce-variation-add-to-cart .reset_variations {
  display: none !important;
}
.variations_form table.variations th,
.variations_form table.variations td.label,
.variations_form table.variations td.label label,
.variations_form table.variations label:not(.pcw-swatch-selected-label) {
  display: none !important;
}
.variations table.variations {
  border: none;
  width: 100%;
}
.variations table.variations td.value {
  padding: 0;
}
/* Selected variant name label */
.pcw-swatch-selected-label {
  display: block;
  width: 100%;
  clear: both;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 16px;
  text-align: right;
  direction: rtl;
  font-family: var(--font-arabic-primary);
}
/* Quantity + add to cart */
.woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  direction: rtl;
  flex-wrap: wrap;
}
.variations_form .quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  order: 2;
}
.variations_form .quantity .qty {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
  width: 36px;
  text-align: center;
  font-family: var(--font-arabic-primary);
  -moz-appearance: textfield;
  appearance: textfield;
}
.variations_form .quantity .qty::-webkit-inner-spin-button,
.variations_form .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.variations_form .quantity .qty:focus {
  outline: none;
}
.variations_form .single_add_to_cart_button {
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-arabic-primary);
  transition: background 0.2s;
  order: 1;
  flex: 1;
  min-width: 140px;
}
.variations_form .single_add_to_cart_button:hover {
  background: var(--color-hover);
}
.variations_form .single_add_to_cart_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.woocommerce-variation-price {
  margin-bottom: var(--space-sm);
}
.woocommerce-variation-price .price {
  color: var(--color-text-primary);
  font-size: 20px;
  font-weight: 700;
}

/* ── Reviews + Q&A extra sections ─────────────────────────────────────────── */
.pcw-product__extra-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  direction: rtl;
  padding: var(--space-2xl) var(--space-lg) 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pcw-product__section-label {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
}
.pcw-product__empty-note {
  color: var(--color-text-secondary);
  font-size: 14px;
  text-align: right;
  padding: var(--space-lg);
  background: var(--color-card);
  border-radius: var(--radius-md);
}

/* Fix 1: hide stars only on catalog/loop cards, show inside Reviews section */
.pcw-product-card .star-rating,
.pcw-hero__card .star-rating,
.woocommerce-loop-product__rating {
  display: none !important;
}

/* Reviews */
.pcw-product__review-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
/* Review cards */
.pcw-review-card {
  background: linear-gradient(135deg, rgba(33,61,130,0.08) 0%, rgba(74,114,212,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: right;
  direction: rtl;
  transition: border-color 0.2s ease;
}
.pcw-review-card:hover {
  border-color: rgba(74,114,212,0.25);
}
.pcw-review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: nowrap;
}
.pcw-review-card__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
}
.pcw-review-card__author {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
}
.pcw-review-card__date {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: right;
  unicode-bidi: isolate;
  display: inline-block;
}
.pcw-review-card__stars {
  font-size: 15px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.pcw-review-card__stars .filled {
  color: #f5b942;
}
.pcw-review-card__text {
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 1.8;
  font-family: var(--font-arabic-primary);
  font-weight: 400;
}
/* Review form card */
.pcw-product__review-form {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  direction: rtl;
}
.pcw-product__review-form .comment-reply-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
  font-family: var(--font-arabic-primary);
  text-align: right;
}
.pcw-product__review-form input[type="text"],
.pcw-product__review-form input[type="email"],
.pcw-product__review-form input[type="url"] {
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--color-text-primary);
  font-family: var(--font-arabic-primary);
  font-size: 15px;
  margin-bottom: var(--space-sm);
  width: 100%;
  box-sizing: border-box;
}
.pcw-product__review-form label {
  color: var(--color-text-secondary);
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
  text-align: right;
}
.pcw-product__review-form .form-submit {
  margin: var(--space-md) 0 0;
  text-align: left;
}
.pcw-product__review-form .form-submit input {
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-arabic-primary);
  transition: background 0.2s;
}
.pcw-product__review-form .form-submit input:hover {
  background: var(--color-hover);
}
/* Custom radio star selector */
.pcw-rating-field {
  margin-bottom: var(--space-md);
  margin-top: var(--space-md);
  direction: rtl;
  text-align: right;
}
.pcw-rating-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  font-family: var(--font-arabic-primary);
  line-height: 1.4;
}
.pcw-stars {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.pcw-stars input {
  display: none;
}
.pcw-stars label {
  font-size: 32px;
  color: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}
/* DOM order is 1→5; use :has() to fill the hovered star AND all higher-value stars to its right */
.pcw-stars label:hover,
.pcw-stars label:has(~ label:hover),
.pcw-stars input:checked + label,
.pcw-stars label:has(~ input:checked) {
  color: #f5b942;
}
.pcw-stars label:hover {
  transform: scale(1.15);
}
.pcw-rating-hint {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 6px;
  min-height: 14px;
  font-family: var(--font-arabic-primary);
}
.comment-form-comment {
  margin-top: 0;
}
/* Textarea */
.pcw-review-textarea {
  width: 100%;
  min-height: 110px;
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.pcw-review-textarea:focus {
  outline: none;
  border-color: var(--color-hover);
}
.pcw-review-textarea::placeholder {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* Q&A Accordion */
.pcw-qa-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcw-qa-item {
  background: linear-gradient(135deg, rgba(33,61,130,0.08) 0%, rgba(74,114,212,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}
.pcw-qa-item:hover {
  border-color: rgba(74,114,212,0.25);
}
.pcw-qa-item.open {
  border-color: rgba(74,114,212,0.4);
  background: linear-gradient(135deg, rgba(33,61,130,0.15) 0%, rgba(74,114,212,0.08) 100%);
}
.pcw-qa-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
}
.pcw-qa-question::before {
  content: '؟';
  direction: rtl;
  unicode-bidi: isolate;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--color-cta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.pcw-qa-question > span {
  flex: 1;
}
.pcw-qa-icon {
  color: var(--color-hover);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.pcw-qa-item.open .pcw-qa-icon {
  transform: rotate(180deg);
}
.pcw-qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pcw-qa-item.open .pcw-qa-answer {
  max-height: 400px;
}
.pcw-qa-answer p {
  padding: 0 calc(30px + var(--space-lg) + var(--space-md)) var(--space-lg) var(--space-lg);
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.8;
  font-family: var(--font-arabic-primary);
  text-align: right;
}

/* Desktop: side by side */
@media (min-width: 1024px) {
  .pcw-product__extra-sections {
    flex-direction: row;
    align-items: flex-start;
  }
  .pcw-product__reviews,
  .pcw-product__qa {
    flex: 1;
  }
}

/* ── Auth input font size ────────────────────────────────────────────────── */

/* ── Fix 1/2: Login prompt for guests ────────────────────────────────────── */
.pcw-product__login-prompt {
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: right;
  direction: rtl;
}
.pcw-product__login-prompt p {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-md);
  font-size: 14px;
}

/* ── Fix 5: اللون label spacing ──────────────────────────────────────────── */
.pcw-product__variants-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: right;
  direction: rtl;
}

/* ── Fix 8: Arabic result count ─────────────────────────────────────────── */
.pcw-result-count {
  font-size: 13px;
  color: var(--color-text-secondary);
  direction: rtl;
}

/* ── Mobile overrides ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Fix 6: reduce gap between nav and search on catalog */
  .pcw-main {
    padding-top: var(--space-lg);
  }
  .pcw-catalog {
    padding-top: var(--space-sm);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* Fix 7: catalog product cards on mobile */
  .pcw-product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .pcw-product-card__info {
    padding: 12px;
  }
  .pcw-product-card__name {
    font-size: 14px;
    line-height: 1.4;
    min-height: 2.8em;
  }
  .pcw-product-card__cat {
    font-size: 10px;
  }
  .pcw-product-card__price {
    font-size: 16px;
  }
  .pcw-product-card__btn {
    font-size: 13px;
    padding: 10px;
  }

  /* Fix 4: specs table stacks on mobile */
  .pcw-product__specs-table p {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 12px var(--space-md);
  }
}

/* ===== FOOTER ===== */
.pcw-footer {
  background: var(--color-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-lg) 0;
  position: relative;
  z-index: 1;
}
.pcw-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  direction: rtl;
  text-align: right;
}
.pcw-footer__logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}
.pcw-footer__logo img {
  height: 32px;
  width: auto;
}
.pcw-footer__tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  font-family: var(--font-arabic-primary);
}
.pcw-footer__social {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}
.pcw-footer__social-link {
  width: 36px;
  height: 36px;
  background: rgba(74,114,212,0.1);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-hover);
  transition: all 0.2s;
}
.pcw-footer__social-link:hover {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-hover);
}
.pcw-footer__col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  font-family: var(--font-arabic-primary);
}
.pcw-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcw-footer__links a,
.pcw-footer__location {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-arabic-primary);
}
.pcw-footer__links a:hover {
  color: var(--color-hover);
}
.pcw-footer__bottom {
  max-width: 1200px;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.pcw-footer__bottom p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  font-family: var(--font-arabic-primary);
}
@media (min-width: 768px) {
  .pcw-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .pcw-footer__social {
    justify-content: flex-start;
  }
}

/* ===== STATIC PAGE (Privacy / Terms / etc.) ===== */
.pcw-page {
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}
.pcw-page__inner {
  max-width: 900px;
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}
.pcw-page__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xl);
  font-family: var(--font-arabic-primary);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pcw-page__content,
.pcw-page__content p,
.pcw-page__content li {
  font-size: 18px !important;
  font-family: var(--font-arabic-primary) !important;
}
.pcw-page__content {
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
.pcw-page__content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: var(--space-2xl) 0 var(--space-md);
  font-family: var(--font-arabic-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcw-page__content h2::before {
  content: '';
  width: 5px;
  height: 24px;
  background: var(--color-hover);
  border-radius: 2px;
  flex-shrink: 0;
}
.pcw-page__content h2:first-child {
  margin-top: 0;
}
.pcw-page__content p {
  margin: 0 0 var(--space-md);
}
.pcw-page__content strong {
  color: var(--color-text-primary);
  font-weight: 700;
}
.pcw-page__content ul,
.pcw-page__content ol {
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}
.pcw-page__content li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 14px;
}
.pcw-page__content ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-hover);
}
.pcw-page__content ol {
  counter-reset: pcw-list;
}
.pcw-page__content ol li {
  counter-increment: pcw-list;
}
.pcw-page__content ol li::before {
  content: counter(pcw-list) '.';
  position: absolute;
  right: 0;
  color: var(--color-hover);
  font-weight: 700;
}
.pcw-page__content a {
  color: var(--color-hover);
  text-decoration: underline;
}
.pcw-page__content a:hover {
  color: var(--color-text-primary);
}

/* ===== 404 PAGE ===== */
.pcw-404 {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl) 0;
  direction: rtl;
}
.pcw-404__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}
.pcw-404__code {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-hover);
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-family: var(--font-arabic-primary);
}
.pcw-404__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
  font-family: var(--font-arabic-primary);
}
.pcw-404__subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-xl);
  font-family: var(--font-arabic-primary);
}
.pcw-404__search {
  display: flex;
  align-items: center;
  background: var(--color-card);
  border: 1px solid rgba(74,114,212,0.2);
  border-radius: var(--radius-md);
  padding: 12px var(--space-md);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.pcw-404__search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: var(--font-arabic-primary);
  text-align: right;
  direction: rtl;
}
.pcw-404__search-input::placeholder {
  color: var(--color-text-secondary);
}
.pcw-404__search-btn {
  background: none;
  border: none;
  color: var(--color-hover);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
}
.pcw-404__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcw-404__actions .pcw-btn {
  width: 100%;
}
@media (min-width: 768px) {
  .pcw-404__actions {
    flex-direction: row;
    justify-content: center;
  }
  .pcw-404__actions .pcw-btn {
    width: auto;
    min-width: 160px;
  }
}
