/*
 * Turkish Mood - Complete Theme & Layout Stylesheet
 * ==================================================
 * Features:
 *  - Dark Luxury (Default Dark Mode)
 *  - Cream Minimalist (True Warm Cream Light Mode)
 *  - Animated Sliding Pill Dark/Light Toggle Switch (64px x 32px)
 *  - Customer View Switcher (Standard Grid vs 2-Column Café Menu)
 *  - Clean Pre-cropped Product Photography (Zero Baked Banners)
 *  - Sticky Glassmorphism Header (position: sticky; backdrop-filter: blur(14px))
 *  - High-precision RTL & Arabic Typography (Cairo & Tajawal)
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700&display=swap');

/* =========================================================
   1. Theme Variables
   ========================================================= */
:root {
  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.3s;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --- Dark Mode (Dark Luxury) --- */
body[data-theme="dark"],
body[data-theme="dark-luxury"] {
  --bg-primary: #120c09;
  --bg-secondary: #1a120e;
  --bg-card: #201712;
  --bg-card-hover: #291e18;
  --bg-elevated: #261b15;
  --bg-input: #17100c;
  --border-color: #38271e;
  --border-focus: #d4af37;
  
  --text-primary: #faf6f0;
  --text-secondary: #d1c2b5;
  --text-muted: #9c897a;
  
  --accent-gold: #d4af37;
  --accent-gold-light: #f5d77f;
  --accent-gold-dark: #9a7b1c;
  --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f3ce72 50%, #b89124 100%);
  --accent-gradient-hover: linear-gradient(135deg, #f3ce72 0%, #ffe39a 50%, #d4af37 100%);
  
  --badge-bg: rgba(212, 175, 55, 0.12);
  --badge-text: #f5d77f;
  --badge-border: rgba(212, 175, 55, 0.3);

  --brand-badge-bg: rgba(18, 12, 9, 0.82);
  --brand-badge-text: #faf6f0;
  --brand-badge-border: rgba(255, 255, 255, 0.15);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
  
  --header-bg: rgba(18, 12, 9, 0.88);
  --hero-glow: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

/* --- Light Mode (Cream Minimalist - Warm & Crisp) --- */
body[data-theme="light"],
body[data-theme="cream-minimalist"] {
  --bg-primary: #faf6f0;
  --bg-secondary: #f3ece1;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-elevated: #fcfaf7;
  --bg-input: #ffffff;
  --border-color: #e6dccf;
  --border-focus: #b07d2b;
  
  --text-primary: #2b1d16;
  --text-secondary: #583d2f;
  --text-muted: #876856;
  
  --accent-gold: #b07d2b;
  --accent-gold-light: #c8943f;
  --accent-gold-dark: #8c5d18;
  --accent-gradient: linear-gradient(135deg, #b07d2b 0%, #d49c44 100%);
  --accent-gradient-hover: linear-gradient(135deg, #d49c44 0%, #e6b25e 100%);
  
  --badge-bg: #f7eee2;
  --badge-text: #8c5d18;
  --badge-border: #e8d7c3;

  --brand-badge-bg: rgba(255, 255, 255, 0.92);
  --brand-badge-text: #2b1d16;
  --brand-badge-border: #e6dccf;
  
  --shadow-sm: 0 2px 10px rgba(70, 45, 30, 0.05);
  --shadow-md: 0 8px 24px rgba(70, 45, 30, 0.08);
  --shadow-lg: 0 16px 36px rgba(70, 45, 30, 0.12);
  --shadow-gold: 0 0 20px rgba(176, 125, 43, 0.15);
  
  --header-bg: rgba(250, 246, 240, 0.92);
  --hero-glow: radial-gradient(circle at 50% 20%, rgba(176, 125, 43, 0.08) 0%, transparent 70%);
}

/* =========================================================
   2. Global Resets
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =========================================================
   3. Sticky Header with Animated Dark/Light Toggle
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 0.75rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #120c09;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.brand-logo-icon svg {
  width: 24px;
  height: 24px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* --- Animated Pill Toggle Switch (64px x 32px) --- */
.theme-toggle-switch {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--accent-gold);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
  user-select: none;
  flex-shrink: 0;
}

.theme-toggle-switch:focus-visible {
  outline: 2px solid var(--accent-gold);
}

.theme-toggle-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
}

.theme-track-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: opacity 0.25s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  right: 3px; /* Default Dark position in RTL */
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #120c09;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
  pointer-events: none;
}

.theme-toggle-thumb svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* When in Light Mode, slide thumb to the left */
body[data-theme="light"] .theme-toggle-thumb,
body[data-theme="cream-minimalist"] .theme-toggle-thumb {
  transform: translateX(-32px);
}

body[data-theme="light"] .theme-toggle-thumb svg,
body[data-theme="cream-minimalist"] .theme-toggle-thumb svg {
  transform: rotate(180deg);
}

/* Facebook Button */
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #1877f2;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
  white-space: nowrap;
}

.fb-btn:hover {
  transform: translateY(-2px);
  background-color: #166fe5;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
}

.fb-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@media (max-width: 580px) {
  .fb-btn span {
    display: none;
  }
  .fb-btn {
    padding: 0.5rem;
    border-radius: 50%;
  }
  .brand-subtitle {
    display: none;
  }
}

/* =========================================================
   4. Hero Banner Section
   ========================================================= */
.hero-section {
  position: relative;
  padding: 2.75rem 0 2rem;
  background: var(--hero-glow);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  transition: background var(--transition-speed) ease;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.hero-badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.hero-stat-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

/* =========================================================
   5. Search & Filters Bar with Customer View Switcher
   ========================================================= */
.filter-section {
  padding: 1.5rem 0 1rem;
}

.search-bar-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 3rem 0.75rem 2.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-clear-btn {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  padding: 0.2rem;
  border-radius: var(--radius-full);
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.sort-select-wrapper {
  min-width: 160px;
}

.sort-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  border-color: var(--border-focus);
}

/* --- Customer View Mode Switcher (Grid vs Cafe Menu) --- */
.view-mode-switcher {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-mode-btn:hover {
  color: var(--text-primary);
}

.view-mode-btn.active {
  background: var(--accent-gradient);
  color: #120c09;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.view-mode-btn svg {
  width: 16px;
  height: 16px;
}

/* Category Filter Tabs */
.categories-tabs-scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.categories-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}
.categories-tabs-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.category-tab-btn {
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.category-tab-btn.active {
  background: var(--accent-gradient);
  color: #120c09;
  border-color: transparent;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.category-badge-count {
  font-size: 0.74rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.category-tab-btn.active .category-badge-count {
  background: rgba(0, 0, 0, 0.25);
  color: #120c09;
}

.filter-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* =========================================================
   6. Product Grid Layouts (Standard vs Café Menu)
   ========================================================= */

/* --- Mode 1: Standard Cards Grid (data-view-mode="grid") --- */
body[data-view-mode="grid"] .products-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
  transition: all var(--transition-speed) ease;
}

@media (min-width: 640px) {
  body[data-view-mode="grid"] .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body[data-view-mode="grid"] .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1280px) {
  body[data-view-mode="grid"] .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Mode 2: Café Menu 2-Column Board (data-view-mode="cafe") --- */
body[data-view-mode="cafe"] .products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-bottom: 4rem;
  transition: all var(--transition-speed) ease;
}

@media (min-width: 900px) {
  body[data-view-mode="cafe"] .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  body[data-view-mode="cafe"] .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Base Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  border-color: var(--accent-gold);
}

/* Café Menu Specific Card Adjustments */
body[data-view-mode="cafe"] .product-card {
  border-radius: var(--radius-md);
}

body[data-view-mode="cafe"] .product-card:hover {
  transform: translateY(-2px);
}

body[data-view-mode="cafe"] .product-description {
  display: none !important;
}

body[data-view-mode="cafe"] .product-content {
  padding: 0.75rem !important;
}

body[data-view-mode="cafe"] .product-title {
  font-size: 0.95rem !important;
  margin-bottom: 0.25rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-view-mode="cafe"] .price-number {
  font-size: 1.35rem !important;
}

/* Badges Overlay */
.card-badges-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none;
}

.brand-badge {
  background: var(--brand-badge-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand-badge-text);
  border: 1px solid var(--brand-badge-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.weight-badge {
  background: var(--badge-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* =========================================================
   7. Clean Pre-cropped Image Container
   ========================================================= */
.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-elevated);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.zoom-hint-btn {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 4;
}

.product-card:hover .zoom-hint-btn {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   8. Card Body & Content
   ========================================================= */
.product-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-category-text {
  font-size: 0.74rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.product-description {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Interactive Options Box (Grind / Weights / Merged Variants) */
.product-interactive-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.interactive-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.pill-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.option-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.option-pill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.option-pill-btn.active {
  background: var(--accent-gold);
  color: #120c09;
  border-color: var(--accent-gold);
  font-weight: 800;
}

/* Card Footer: Price & Availability */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-number {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-gold-light);
  line-height: 1;
}

body[data-theme="light"] .price-number,
body[data-theme="cream-minimalist"] .price-number {
  color: var(--accent-gold);
}

.price-currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stock-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.stock-status-pill.in-stock {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* WhatsApp Button (Phase 2) */
.whatsapp-action-btn {
  display: none;
  width: 100%;
  margin-top: 0.75rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background-color 0.2s ease;
}

.whatsapp-action-btn:hover {
  background-color: #1ebe5d;
}

/* =========================================================
   9. Lightbox Modal
   ========================================================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox-modal.open {
  display: flex;
  animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-content {
  position: relative;
  max-width: 560px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.lightbox-close-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.lightbox-close-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-image-box {
  width: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.lightbox-details {
  padding: 1.15rem;
  background: var(--bg-card);
}

.lightbox-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.lightbox-meta {
  display: flex;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  align-items: center;
}

.lightbox-price {
  margin-right: auto;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent-gold);
}

/* =========================================================
   10. Empty State
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  color: var(--accent-gold);
  margin: 0 auto 1.25rem;
  opacity: 0.8;
}

.empty-state-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.reset-search-btn {
  background: var(--accent-gradient);
  color: #120c09;
  font-weight: 800;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.reset-search-btn:hover {
  transform: scale(1.03);
}

/* =========================================================
   11. Owner Floating Panel (Only visible with ?admin=1)
   ========================================================= */
.floating-preview-widget {
  display: none; /* Controlled by JS via ?admin=1 */
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  direction: rtl;
}

.preview-toggle-button {
  background: #120c09;
  color: #d4af37;
  border: 1.5px solid #d4af37;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  padding: 0.7rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.preview-toggle-button:hover {
  transform: translateY(-2px);
  background: #1c130e;
}

.preview-toggle-badge {
  background: #d4af37;
  color: #120c09;
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 900;
}

.preview-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(18, 12, 9, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid #d4af37;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  color: #faf6f0;
  padding: 1.15rem;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}

.preview-popover.open {
  display: flex;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.65rem;
}

.popover-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #d4af37;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.popover-close-btn {
  background: transparent;
  color: #9c897a;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.control-pill-selector {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.radio-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  color: #faf6f0;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
}

.radio-choice-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 175, 55, 0.4);
}

.radio-choice-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  color: #f5d77f;
  font-weight: 700;
}

.choice-subtext {
  font-size: 0.72rem;
  color: #9c897a;
}

.sheet-input-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.sheet-url-input {
  flex: 1;
  background: #17100c;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: #faf6f0;
  font-size: 0.78rem;
  direction: ltr;
}

.sheet-sync-btn {
  background: #d4af37;
  color: #120c09;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.sync-status-indicator {
  font-size: 0.72rem;
  color: #4ade80;
  margin-top: 0.35rem;
  display: block;
}

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 0 1.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background-color var(--transition-speed) ease;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
  margin-top: 1.25rem;
}
