/* ==========================================================================
   Youya Esdals & More - Minimalist Luxury Boutique Stylesheet
   ========================================================================== */

:root {
  --bg-main: #FAF7F2;          /* Warm Cream Background */
  --bg-card: #FFFFFF;          /* Soft Card Base */
  --bg-subtle: #F4EFEA;        /* Cream Highlight Inputs */
  
  --primary-rose: #E8A598;     /* Warm Dusty Rose */
  --primary-rose-hover: #D98D7F;
  --accent-blush: #F7D6CF;     /* Soft Blush Accent */
  
  --text-main: #2C2C2C;        /* Soft Charcoal Text */
  --text-muted: #6B6864;       /* Muted Warm Gray */
  
  --border-color: #EFE9E1;
  --shadow-soft: 0 8px 24px rgba(44, 44, 44, 0.04);
  --shadow-hover: 0 14px 32px rgba(44, 44, 44, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Header Navigation & Centered Brand Title */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.navbar-brand {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-title {
  font-size: 1.35rem; /* Larger, clearer brand name */
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.6px;
  white-space: nowrap;
}

[dir="rtl"] .menu-toggle-btn { order: 1; }
[dir="rtl"] .navbar-brand { order: 2; }
[dir="rtl"] .cart-icon-wrapper { order: 3; }

[dir="ltr"] .menu-toggle-btn { order: 1; }
[dir="ltr"] .navbar-brand { order: 2; }
[dir="ltr"] .cart-icon-wrapper { order: 3; }

/* Circular Hamburger Button */
.menu-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background: var(--primary-rose);
  color: #ffffff;
  border-color: var(--primary-rose);
}

/* Circular Cart Button (Matching Menu Button) */
.cart-icon-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.cart-icon-wrapper:hover {
  background: var(--primary-rose);
  border-color: var(--primary-rose);
}

.cart-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

#cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-rose);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 2. Slide-out Sidebar Drawer & Equal Spacing Fixes */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44, 44, 44, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  width: 290px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2000;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .sidebar-drawer {
  right: -320px;
  left: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .sidebar-drawer.active {
  right: 0;
}

[dir="ltr"] .sidebar-drawer {
  left: -320px;
  right: auto;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="ltr"] .sidebar-drawer.active {
  left: 0;
}

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

.sidebar-header h3 {
  font-size: 1.15rem;
  color: var(--text-main);
}

.sidebar-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.sidebar-close-btn:hover {
  background: var(--accent-blush);
}

/* Sidebar Nav Spacing Consistency */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: inherit;
}

.sidebar-item:hover {
  background: var(--primary-rose);
  color: #ffffff;
  border-color: var(--primary-rose);
}

[dir="rtl"] .sidebar-item:hover { transform: translateX(-4px); }
[dir="ltr"] .sidebar-item:hover { transform: translateX(4px); }

.sidebar-icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 6px 0;
}

/* Contact Links Cards inside Contact Modal */
.contact-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  text-align: right;
  transition: all 0.2s ease;
}

.contact-link-card:hover {
  background: #ffffff;
  border-color: var(--primary-rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.contact-icon {
  font-size: 1.5rem;
  background: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

/* 3. Clean Full-Image Hero Banner */
.hero {
  position: relative;
  width: 100%;
  min-height: 440px;
  background: url('assets/hero.png') center/cover no-repeat;
  margin-bottom: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* 4. Tagline Section Below Hero */
.hero-tagline-section {
  text-align: center;
  padding: 35px 20px 25px;
  background: var(--bg-main);
  margin-bottom: 10px;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-rose-hover);
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.5px;
}

.hero-tagline-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 600;
}

/* 5. Section Header & Back Button */
.section-header {
  margin-bottom: 24px;
  text-align: center;
}

.section-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-back {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back:hover {
  background: var(--primary-rose);
  color: #ffffff;
  border-color: var(--primary-rose);
  transform: translateY(-2px);
}

/* 6. Product Cards Grid & Category Card Styles */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blush);
}

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

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

.category-card:hover img {
  transform: scale(1.05);
}

.product-details {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.product-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.product-details .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-rose-hover);
  margin-top: auto;
}

/* 7. Modal Container */
.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 44, 44, 0.45);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
}

.close-btn {
  position: absolute;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border: none;
  transition: background 0.2s ease;
  z-index: 10;
  padding: 0;
}

.close-btn:hover {
  background: var(--accent-blush);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.modal-main-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-main-img-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbnails img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnails img:hover {
  border-color: var(--primary-rose);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border: none;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 0;
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.stock-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

/* Policy Modal Styling */
.policy-modal-content {
  max-width: 580px !important;
  text-align: start;
}

.policy-body h2 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.policy-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

[dir="rtl"] .policy-intro { border-right: 3px solid var(--primary-rose); }
[dir="ltr"] .policy-intro { border-left: 3px solid var(--primary-rose); }

.policy-section {
  margin-bottom: 16px;
}

.policy-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.policy-section ul {
  color: var(--text-main);
  font-size: 0.9rem;
}

[dir="rtl"] .policy-section ul { padding-right: 20px; padding-left: 0; }
[dir="ltr"] .policy-section ul { padding-left: 20px; padding-right: 0; }

.policy-section li {
  margin-bottom: 6px;
}

.sub-list {
  margin-top: 6px;
  color: var(--text-muted);
}

[dir="rtl"] .sub-list { padding-right: 18px !important; }
[dir="ltr"] .sub-list { padding-left: 18px !important; }

.policy-error-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.policy-error-box h3 {
  color: #be123c;
}

.policy-error-box p {
  font-size: 0.88rem;
  color: #9f1239;
  margin: 0;
}

.policy-footer {
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-rose-hover);
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

/* 8. Cart Items List */
.cart-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 12px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  gap: 12px;
}

.cart-item-thumb {
  width: 50px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.25;
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--primary-rose-hover);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px 8px;
}

.cart-stepper-btn {
  background: var(--bg-subtle);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.cart-stepper-btn:hover:not(:disabled) {
  background: var(--primary-rose);
  color: #ffffff;
}

.cart-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cart-item-qty {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 18px;
  text-align: center;
}

.cart-remove-btn {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cart-remove-btn:hover {
  background: #f87171;
  color: #ffffff;
}

/* Quantity Stepper in Product Modal */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.quantity-selector label {
  font-weight: 700;
  color: var(--text-main);
}

.qty-control-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px;
  width: 125px;
}

.qty-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.qty-btn:hover:not(:disabled) {
  background: var(--primary-rose);
  color: #ffffff;
  border-color: var(--primary-rose);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.qty-input {
  width: 36px;
  border: none !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--text-main);
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 9. Global Form Fields */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  background: #ffffff;
  border-color: var(--primary-rose);
}

.btn-primary {
  background: var(--primary-rose) !important;
  color: #ffffff !important;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 14px rgba(232, 165, 152, 0.35);
  font-family: inherit;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 48px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-rose-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-success {
  background: #22c55e !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
}

.upload-status {
  display: none;
  margin-top: 15px;
  padding: 12px;
  background: #e1f5fe;
  border-radius: var(--radius-md);
  color: #0288d1;
  font-weight: bold;
  text-align: center;
}

/* Checkout Summary Box */
.checkout-summary-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 18px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.accent-row {
  color: var(--primary-rose-hover);
  font-weight: 600;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 10px 0;
}

.total-row {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* 10. Admin Panel Styling */
.admin-container {
  margin-top: 25px;
  max-width: 860px;
}

.admin-nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.admin-card h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.admin-cat-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.admin-prod-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  gap: 14px;
}

.admin-prod-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.admin-prod-thumb {
  width: 58px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.admin-action-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-stepper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: bold;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: all 0.2s ease;
}

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

.stock-count-display {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.btn-delete {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-delete:hover {
  background: #dc2626;
}

/* 11. Lightbox Zoom Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 44, 0.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-content {
  max-width: 90%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 38px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

/* 12. Mobile Responsive Grid & Optimization */
@media (max-width: 640px) {
  .navbar {
    padding: 10px 14px;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .admin-card {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-prod-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-action-btns {
    justify-content: flex-end;
  }

  .admin-cat-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-cat-form button {
    width: 100% !important;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 40px;
  }

  .product-card img {
    height: 190px !important;
  }

  .product-details {
    padding: 10px 12px !important;
    gap: 4px !important;
  }

  .product-details h3 {
    font-size: 0.9rem !important;
    line-height: 1.3;
  }

  .product-details .price {
    font-size: 1rem !important;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 260px;
  }

  .hero-tagline-section {
    padding: 25px 15px 20px;
  }

  .hero-badge {
    font-size: 1.15rem;
    padding: 8px 18px;
  }

  .hero-tagline-text {
    font-size: 1rem;
  }
}

/* Directional Flipping Rules */
[dir="ltr"] body { text-align: left; }
[dir="ltr"] .product-details,
[dir="ltr"] .modal-content,
[dir="ltr"] .contact-link-card,
[dir="ltr"] .policy-modal-content { text-align: left !important; }

[dir="rtl"] body { text-align: right; }
[dir="rtl"] .product-details,
[dir="rtl"] .modal-content,
[dir="rtl"] .contact-link-card,
[dir="rtl"] .policy-modal-content { text-align: right !important; }

[dir="ltr"] .close-btn { left: auto !important; right: 20px !important; }
[dir="rtl"] .close-btn { right: auto !important; left: 20px !important; }