/* ==========================================================
   Beauty & Cosmetics Hub - Luxury Green & Cream Aesthetic
   Supports Kurdish (RTL) & English (LTR)
   Mobile Optimized + WhatsApp Order + Hidden Admin Security
   ========================================================== */

:root {
  --primary: #173f2d;
  --primary-hover: #102e21;
  --primary-light: #245840;
  --accent: #c99352;
  --accent-light: #dfb279;
  --accent-soft: #fcf6ee;
  --bg-cream: #faf7f2;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-color: #ede7dc;
  --danger: #dc2626;
  --success: #15803d;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(19, 56, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(19, 56, 38, 0.08);
  --shadow-lg: 0 16px 36px rgba(19, 56, 38, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ku: 'Vazirmatn', 'Noto Kufi Arabic', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl-mode {
  font-family: var(--font-ku);
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 48px);
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-bar {
  background-color: var(--primary);
  color: #e5efe9;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.promo-highlight {
  color: #ffdda1;
  font-weight: 600;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--accent);
  color: #fff;
}

.admin-lock-btn {
  background: transparent;
  color: #a3c4b5;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.admin-lock-btn:hover {
  color: #ffd89b;
}

/* ================= ADMIN LOGOUT BUTTON IN HEADER ================= */
.admin-logout-header-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.admin-logout-header-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}

/* ================= MAIN HEADER ================= */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  user-select: none;
}

.logo-badge {
  background: var(--primary);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4b5563;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.gender-tag-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  font-weight: 700;
}

body.rtl-mode .gender-tag-pill {
  margin-left: 0;
  margin-right: 4px;
}

.pill-women {
  background: #ffe4e6;
  color: #be123c;
}

.pill-men {
  background: #e0f2fe;
  color: #0369a1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* USER AUTH TRIGGER BUTTON IN HEADER */
.user-auth-btn {
  background: var(--bg-cream);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.user-auth-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.user-auth-btn.logged-in {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.user-auth-btn.admin-in {
  background: linear-gradient(135deg, #102e21, #1e4f37);
  color: #ffd89b;
  border: 1.5px solid #dfb279;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 46, 33, 0.25);
}

.user-auth-btn.admin-in:hover {
  background: linear-gradient(135deg, #173f2d, #255d43);
  color: #ffffff;
  transform: translateY(-1px);
}

/* AUTH MODAL TABS & FORMS */
.auth-nav-tabs {
  display: flex;
  background: #f1ede4;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn.active.tab-admin-active {
  background: var(--primary);
  color: #ffd89b;
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* CUSTOMER PROFILE STYLES */
.customer-profile-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.customer-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.customer-order-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.header-action-btn {
  background: var(--bg-cream);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  font-size: 1.1rem;
}

.header-action-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.header-action-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= GREEN STRIP NAVIGATION ================= */
.category-strip {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  white-space: nowrap;
}

.strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.strip-item {
  color: #d1e3d9;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.strip-item:hover, .strip-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 40px 0 60px;
  background: radial-gradient(circle at 80% 20%, #f4ede0 0%, var(--bg-cream) 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(23, 63, 45, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 63, 45, 0.28);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #d4a373, #b88653);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #c4915f, #a57442);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.hero-trust-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(237, 231, 220, 0.8);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-main-img-box {
  width: 100%;
  max-width: 440px;
  height: 480px;
  border-radius: 40px 40px 180px 180px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #ffffff;
  position: relative;
  background: #ecdccb;
}

.hero-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  border: 1px solid var(--border-color);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 40px;
  right: -10px;
}

body.rtl-mode .badge-top-right {
  right: auto;
  left: -10px;
}

.badge-bottom-left {
  bottom: 50px;
  left: -15px;
}

body.rtl-mode .badge-bottom-left {
  left: auto;
  right: -15px;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ================= SECTION HEADINGS ================= */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* ================= GENDER SWITCHER SECTION ================= */
.gender-switch-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.gender-switch-tabs {
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.gender-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.gender-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 63, 45, 0.2);
}

.gender-tab-btn.active.tab-women {
  background: #be123c;
}

.gender-tab-btn.active.tab-men {
  background: #0369a1;
}

/* ================= CATEGORIES CIRCULAR ROW ================= */
.categories-section {
  padding: 50px 0;
}

.categories-carousel {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.category-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-circle-card:hover {
  transform: translateY(-5px);
}

.circle-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  background: #e9e0d1;
  position: relative;
}

.circle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-circle-card:hover .circle-img-wrap img {
  transform: scale(1.1);
}

.cat-circle-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.cat-circle-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= PROMOTIONAL BANNERS ================= */
.promo-banners-section {
  padding: 20px 0 50px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 30px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.promo-card-women {
  background: linear-gradient(135deg, #1d4332 0%, #2d6a4f 100%);
}

.promo-card-men {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.promo-card-skincare {
  background: linear-gradient(135deg, #78350f 0%, #b45309 100%);
}

.promo-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.promo-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffedd5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

.promo-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}

.promo-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 14px;
}

.promo-btn {
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.promo-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.promo-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  object-fit: cover;
  opacity: 0.85;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}

body.rtl-mode .promo-bg-img {
  right: auto;
  left: 0;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}

/* ================= PRODUCT SHOP SECTION ================= */
.shop-section {
  padding: 50px 0 80px;
}

.shop-filter-bar {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.filter-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-pill-btn:hover,
.filter-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.filter-group-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding: 8px 16px 8px 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-size: 0.88rem;
  width: 220px;
  transition: var(--transition);
}

body.rtl-mode .search-input-wrap input {
  padding: 8px 36px 8px 16px;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  width: 260px;
}

.search-icon-pos {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

body.rtl-mode .search-icon-pos {
  left: auto;
  right: 12px;
}

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* ================= PRODUCT CARDS GRID ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #d1dfd6;
}

.product-card-top {
  position: relative;
  height: 260px;
  background: #f4ede3;
  overflow: hidden;
}

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

.product-card:hover .product-card-top img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.rtl-mode .product-badge {
  left: auto;
  right: 14px;
}

.wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

body.rtl-mode .wishlist-btn {
  right: auto;
  left: 14px;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #e11d48;
  background: #ffe4e6;
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: rgba(23, 63, 45, 0.9);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.product-card:hover .quick-view-overlay-btn {
  bottom: 0;
}

.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 600;
}

.card-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 42px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.star-gold {
  color: #f59e0b;
}

.card-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3efe6;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.add-cart-btn {
  background: var(--bg-cream);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.add-cart-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ================= CART DRAWER ================= */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 101;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.rtl-mode .cart-drawer {
  right: auto;
  left: -420px;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

body.rtl-mode .cart-drawer.open {
  left: 0;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-drawer-btn {
  background: transparent;
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-drawer-btn:hover {
  background: var(--bg-cream);
  color: var(--danger);
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f0ebe1;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-cream);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.qty-val {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-remove-item {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 6px;
  transition: var(--transition);
}

.cart-remove-item:hover {
  color: var(--danger);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #fdfcf9;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(23, 63, 45, 0.25);
}

.checkout-btn:hover {
  background: var(--primary-hover);
}

/* ================= MODAL BASE STYLES ================= */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-wrapper.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-wrapper.open .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f3efe6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  z-index: 10;
  transition: var(--transition);
}

body.rtl-mode .modal-close-btn {
  right: auto;
  left: 16px;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: var(--danger);
}

/* ================= QUICK VIEW PRODUCT MODAL ================= */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.quick-view-gallery img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.quick-view-details {
  display: flex;
  flex-direction: column;
}

.modal-product-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 14px 0 20px;
  line-height: 1.6;
}

.size-select-row {
  margin-bottom: 20px;
}

.size-pills {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.size-pill {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  background: #ffffff;
  cursor: pointer;
}

.size-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

/* ================= WHATSAPP RECEIPT MODAL ================= */
.receipt-box {
  background: #fbfbf9;
  border: 1px dashed #d1cfc7;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  font-family: monospace, var(--font-en);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #1f2937;
  max-height: 250px;
  overflow-y: auto;
}

body.rtl-mode .receipt-box {
  font-family: var(--font-ku);
}

/* ================= 👑 BOSS MENU / ADMIN DASHBOARD ================= */
.boss-modal-content {
  width: 96%;
  max-width: 1100px;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.boss-header {
  background: linear-gradient(135deg, #102e21 0%, #173f2d 100%);
  color: #ffffff;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #dfb279;
}

.boss-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.boss-crown {
  font-size: 2rem;
  color: #ffd89b;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boss-nav-tabs {
  background: #f5f0e6;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
}

.boss-tab-btn {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.boss-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 63, 45, 0.2);
}

.boss-tab-panel {
  padding: 24px;
  display: none;
  max-height: calc(85vh - 160px);
  overflow-y: auto;
}

.boss-tab-panel.active {
  display: block;
}

/* BOSS FORM STYLES */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 63, 45, 0.1);
}

.preset-img-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.preset-chip {
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.preset-chip:hover {
  background: var(--primary);
  color: #ffffff;
}

/* BOSS RESPONSIVE ORDER CARDS (Mobile First for Admins) */
.orders-list-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-mobile-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.order-mobile-card:hover {
  border-color: #cbd5e1;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1ece4;
}

.order-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-pending { background: #fef3c7; color: #b45309; }
.status-completed { background: #dcfce7; color: #15803d; }

.order-card-details {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1ece4;
}

.btn-card-wa {
  background: var(--whatsapp-green);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-card-call {
  background: #0284c7;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-card-done {
  background: #15803d;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-card-del {
  background: #fee2e2;
  color: #dc2626;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
}

/* BOSS PRODUCTS TABLE / CARD TOGGLE */
.boss-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boss-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  gap: 12px;
  flex-wrap: wrap;
}

.boss-prod-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.boss-prod-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #eee;
}

/* STATS CARDS */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* TOAST ALERT NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.rtl-mode .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  background: #ffffff;
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideToast 0.3s ease forwards;
}

body.rtl-mode .toast {
  border-left: none;
  border-right: 4px solid var(--primary);
}

.toast.toast-success {
  border-color: var(--success);
}

.toast.toast-accent {
  border-color: var(--accent);
}

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

/* ================= FOOTER ================= */
.site-footer {
  background: #112d20;
  color: #e2ede7;
  padding: 60px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  color: #ffd89b;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #c0d8cc;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

body.rtl-mode .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8dafa0;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #a3c4b5;
}

.dev-badge {
  background: rgba(255, 216, 155, 0.15);
  color: #ffd89b;
  border: 1px solid rgba(255, 216, 155, 0.4);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.dev-badge:hover {
  background: #ffd89b;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 216, 155, 0.35);
}

/* ================= MOBILE OPTIMIZATIONS (ADMIN & STORE) ================= */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 28px;
  }
  .hero-actions, .hero-trust-bar {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 20px;
  }
  .quick-view-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .top-bar-content {
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-main-img-box {
    max-width: 320px;
    height: 380px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .shop-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group-right {
    flex-direction: column;
  }
  .search-input-wrap input {
    width: 100% !important;
  }

  /* FULL SCREEN BOSS MENU MODAL ON MOBILE */
  .boss-modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .modal-wrapper {
    padding: 12px;
  }
  #bossModal.modal-wrapper {
    padding: 0;
  }
  .boss-header {
    padding: 16px;
  }
  .boss-tab-panel {
    padding: 16px;
    flex-grow: 1;
    max-height: calc(100vh - 130px);
  }
  .boss-tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* ================= RESPONSIVE FIXES (ALL SCREEN SIZES) ================= */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; }

/* Cart drawer: hide with transform so it never widens the page */
.cart-drawer,
body.rtl-mode .cart-drawer {
  right: 0;
  left: auto;
  transform: translateX(110%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}
body.rtl-mode .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-110%);
}
.cart-drawer.open,
body.rtl-mode .cart-drawer.open {
  transform: none;
  visibility: visible;
}

.promo-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.toast-container { max-width: calc(100vw - 32px); }

/* Laptop / small desktop: keep the nav on one line */
@media (max-width: 1280px) {
  .nav-menu { gap: 14px; }
  .nav-item a { font-size: 0.85rem; }
  .gender-tag-pill { display: none; }
}

/* Tablet: hide the long nav, the green strip covers it */
@media (max-width: 1100px) {
  .nav-menu { display: none; }
}

@media (max-width: 992px) {
  #about > div { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .top-bar-left { flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .top-bar-right { gap: 12px; }

  .header-inner { gap: 8px; padding: 12px 0; }
  .logo-link { font-size: 1.1rem; gap: 6px; min-width: 0; }
  .logo-link > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo-badge { width: 32px; height: 32px; font-size: 1rem; flex-shrink: 0; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  #userAuthLabel { display: none; }
  .user-auth-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .header-action-btn { width: 38px; height: 38px; font-size: 1rem; }
  .admin-logout-header-btn { width: 34px; height: 34px; }

  .strip-inner { justify-content: flex-start; gap: 8px; }
  .strip-item { font-size: 0.82rem; }

  .hero-section { padding: 28px 0 40px; }
  .hero-actions { gap: 10px; }
  .badge-top-right, body.rtl-mode .badge-top-right { right: auto; left: 6px; top: 18px; }
  .badge-bottom-left, body.rtl-mode .badge-bottom-left { left: auto; right: 6px; bottom: 24px; }

  .gender-switch-tabs { display: flex; width: 100%; overflow-x: auto; }
  .gender-tab-btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 0.8rem; white-space: nowrap; }

  .section-title { font-size: 1.6rem; }
  .categories-section { padding: 30px 0; }
  .categories-carousel { gap: 14px; }
  .circle-img-wrap { width: 88px; height: 88px; }

  .promo-card { padding: 22px; min-height: 190px; }
  .promo-content { max-width: 70%; }
  .promo-title { font-size: 1.15rem; }

  .shop-section { padding: 30px 0 50px; }
  .shop-filter-bar { padding: 12px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card-top { height: 170px; }
  .product-card-body { padding: 12px; }
  .card-product-title { font-size: 0.88rem; min-height: 36px; }
  .card-rating { font-size: 0.7rem; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
  .current-price { font-size: 0.95rem; }
  .old-price { font-size: 0.72rem; }
  .price-box { flex-direction: column; gap: 0; }
  .add-cart-btn { width: 34px; height: 34px; flex-shrink: 0; }
  .product-badge { font-size: 0.62rem; padding: 3px 7px; top: 8px; }
  body.rtl-mode .product-badge { right: 8px; }
  .wishlist-btn { width: 30px; height: 30px; top: 8px; }
  body.rtl-mode .wishlist-btn { left: 8px; }
  .quick-view-overlay-btn { bottom: 0; font-size: 0.72rem; padding: 6px 0; }
  .card-category-meta { font-size: 0.68rem; flex-wrap: wrap; gap: 2px; }

  #about { padding: 20px 0 40px !important; }
  #about > div { padding: 22px !important; }
  #about > div > div:last-child { height: 220px !important; }
  #about h3 { font-size: 1.5rem !important; }

  .quick-view-grid { padding: 18px; gap: 16px; }
  .quick-view-gallery img { height: 260px; }
  .modal-content { padding: 20px !important; }
  .boss-modal-content { padding: 0 !important; }
  .size-pills { flex-wrap: wrap; }

  .site-footer { padding: 40px 0 20px; }
  .footer-grid { gap: 26px; }
  .toast-container, body.rtl-mode .toast-container { left: 16px; right: 16px; bottom: 16px; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .btn-primary, .btn-gold, .btn-secondary { padding: 11px 18px; font-size: 0.88rem; }
  .products-grid { gap: 10px; }
  .product-card-top { height: 150px; }
  .gender-tab-btn { font-size: 0.74rem; padding: 8px 6px; }
}

/* ================= E-WALLET PAYMENT INFO BOX ================= */
.payment-info-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.payment-info-title {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 8px;
}
.payment-info-row small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.payment-info-row strong {
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.payment-copy-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.payment-copy-btn:active { transform: scale(0.96); }
.payment-info-steps {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.7;
}
