/*
Theme Name: Panorama House Web2 Theme
Theme URI: https://panoramahouse.net
Author: Panorama House
Description: Premium theme for Panorama House furniture and customization.
Version: 1.0.0
Text Domain: panorama-house-web2
*/

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

/* Design Tokens & Variables */
:root {
  --primary: #0f2537;
  --primary-rgb: 15, 37, 55;
  --secondary: #c5a880;
  --secondary-hover: #b4966e;
  --secondary-rgb: 197, 168, 128;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --border: #f1f3f5;
  --border-focus: #c5a880;
  --text: #2d3748;
  --text-muted: #718096;
  --white: #ffffff;
  --success: #2ec4b6;
  --danger: #e63946;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(15, 37, 55, 0.03);
  --shadow-md: 0 6px 16px rgba(15, 37, 55, 0.05);
  --shadow-lg: 0 12px 30px rgba(15, 37, 55, 0.08);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 24px;
}

/* Bind WordPress preset fonts to localized Cairo and Montserrat dynamically */
html[dir="rtl"] {
  --wp--preset--font-family--inter: var(--font-ar) !important;
  --wp--preset--font-family--heading: var(--font-ar) !important;
}
html[dir="ltr"] {
  --wp--preset--font-family--inter: var(--font-en) !important;
  --wp--preset--font-family--heading: var(--font-en) !important;
}


/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--bg-alt);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
*::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL / LTR Configuration */
html[dir="rtl"] body {
  font-family: var(--font-ar);
}
html[dir="ltr"] body {
  font-family: var(--font-en);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Primary & Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: var(--transition);
  gap: 8px;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
}
.btn.is-loading {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}
.btn.is-added {
  background-color: #1e8e3e;
  border-color: #1e8e3e;
  color: var(--white);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Header & Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.main-header.scrolled {
  padding: 8px 0;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo-container {
  height: 55px;
  display: flex;
  align-items: center;
}
.logo-svg {
  height: 46px; /* Fixed height to prevent stretching */
  width: auto;
  object-fit: contain; /* Preserve aspect ratio perfectly */
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}
.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  position: relative;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-fast);
}
.icon-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}
.lang-switch {
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  transition: var(--transition);
}
.lang-switch:hover {
  background-color: transparent;
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--white);
  padding: 60px 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-text {
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(197, 168, 128, 0.12);
  color: var(--secondary-hover);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(197, 168, 128, 0.3);
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-text h1 span {
  color: var(--secondary);
}
.hero-text p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 550px;
}
.hero-btns {
  display: flex;
  gap: 16px;
}
.hero-image-wrapper {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-circle-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,168,128,0.12) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}
.hero-image {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 440px;
  border: 4px solid var(--white);
  transition: var(--transition-slow);
}
.hero-image:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Highlight / Stat Cards */
.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat-card h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
}
.stat-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Category Grid */
.categories-section {
  padding: 30px 0;
  background-color: var(--bg-alt);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 37, 55, 0.85) 0%, rgba(15, 37, 55, 0.2) 60%, rgba(255,255,255,0) 100%);
  z-index: 2;
  transition: var(--transition);
}
.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition-slow);
}
.category-info {
  position: relative;
  z-index: 3;
  color: var(--white);
}
.category-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.category-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}
.category-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-link i {
  transition: var(--transition-fast);
}
.category-card:hover::before {
  background: linear-gradient(0deg, rgba(15, 37, 55, 0.95) 0%, rgba(15, 37, 55, 0.4) 65%, rgba(255,255,255,0) 100%);
}
.category-card:hover img {
  transform: scale(1.08);
}
.category-card:hover .category-link i {
  transform: translateX(4px);
}
html[dir="rtl"] .category-card:hover .category-link i {
  transform: translateX(-4px);
}

/* Product Catalog */
.catalog-section {
  padding: 30px 0;
  background-color: var(--white);
}
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.filter-tabs {
  display: flex;
  gap: 12px;
}
.filter-tab {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.filter-tab:hover, .filter-tab.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.search-sort-group {
  display: flex;
  gap: 16px;
  align-items: center;
}
.search-box {
  position: relative;
  width: 260px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  font-size: 14px;
  color: var(--primary);
  transition: var(--transition-fast);
}
html[dir="rtl"] .search-box input {
  padding: 10px 40px 10px 16px;
}
.search-box input:focus {
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}
.search-box i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
html[dir="rtl"] .search-box i {
  left: auto;
  right: 16px;
}
.sort-select {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
}
.sort-select:focus {
  border-color: var(--secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Product Card */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 128, 0.3);
}
.product-img-container {
  height: 240px;
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.product-card:hover .product-img-container img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  z-index: 5;
}
html[dir="rtl"] .product-badge {
  right: auto;
  left: 16px;
}
.product-action-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 37, 55, 0.9) 0%, rgba(15, 37, 55, 0) 100%);
  padding: 20px;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 5;
}
.product-card:hover .product-action-overlay {
  transform: translateY(0);
}
.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ffb703;
}
.product-rating span {
  color: var(--text-muted);
}

/* Custom Furniture Configurator (تصنيع مخصوص) */
.custom-section {
  padding: 30px 0;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.custom-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.custom-form-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.configurator-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.configurator-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}
.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-fast);
}
.step-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
  white-space: nowrap;
}
.step-item.active .step-number {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.2);
}
.step-item.active .step-label {
  color: var(--primary);
}
.step-item.completed .step-number {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.configurator-step-content {
  display: none;
}
.configurator-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.form-group label span {
  color: var(--danger);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  font-size: 14px;
  color: var(--primary);
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Custom Radio Selector Cards */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.selector-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.selector-card i {
  font-size: 24px;
  color: var(--text-muted);
}
.selector-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.selector-card:hover {
  border-color: var(--secondary);
  background-color: rgba(197, 168, 128, 0.02);
}
.selector-card.selected {
  border-color: var(--secondary);
  background-color: rgba(197, 168, 128, 0.08);
}
.selector-card.selected i {
  color: var(--secondary-hover);
}

/* Configurator Preview Card (Right Column) */
.custom-preview-card {
  background-color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 120px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.preview-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  color: var(--secondary);
}
.preview-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.preview-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.preview-summary-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.preview-summary-value {
  font-weight: 700;
  color: var(--white);
}
.preview-estimate-box {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(197, 168, 128, 0.3);
}
.preview-estimate-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.preview-estimate-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.configurator-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* Dimension inputs row */
.dimension-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Why Us Section */
.why-us-section {
  padding: 30px 0;
  background-color: var(--white);
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 168, 128, 0.2);
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(197, 168, 128, 0.1);
  color: var(--secondary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background-color: var(--secondary);
  color: var(--primary);
  transform: rotate(360deg);
}
.why-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Testimonials / Reviews */
.testimonials-section {
  padding: 30px 0;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.testimonials-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  display: flex;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
}
html[dir="ltr"] .testimonials-track {
  animation: marquee-ltr 25s linear infinite;
}
html[dir="rtl"] .testimonials-track {
  animation: marquee-rtl 25s linear infinite;
}
.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); } /* half of track width + half of gap */
}
@keyframes marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(50% + 10px)); }
}

.testimonial-card {
  flex: 0 0 280px;
  width: 280px;
  height: 180px;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  box-sizing: border-box;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}
.stars {
  color: #ffb703;
  font-size: 11px;
  margin-bottom: 6px;
}
.testimonial-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
  flex-grow: 1;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 8px;
}
.client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.client-details h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.client-details p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0;
}

/* Sliding Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 37, 55, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
}
html[dir="rtl"] .cart-drawer {
  right: auto;
  left: -420px;
}
.cart-drawer-overlay.active + .cart-drawer,
.cart-drawer.active {
  right: 0;
}
html[dir="rtl"] .cart-drawer.active {
  right: auto;
  left: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.close-drawer-btn {
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.close-drawer-btn:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.cart-items-container {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.empty-cart-state {
  text-align: center;
  margin: auto;
  color: var(--text-muted);
}
.empty-cart-state i {
  font-size: 48px;
  color: var(--border-focus);
  margin-bottom: 16px;
}
.empty-cart-state p {
  font-size: 14px;
}

.cart-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-alt);
}
.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary-hover);
}
.cart-item-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.qty-selectors {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-alt);
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
  background-color: transparent;
  transition: var(--transition-fast);
}
.qty-btn:hover {
  background-color: var(--border);
}
.qty-val {
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}
.remove-item-btn {
  font-size: 13px;
  color: var(--danger);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Modals (Checkout & Quick View & Success) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 37, 55, 0.4);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-slow);
}
.modal-overlay.active .modal-container {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 20px;
  color: var(--text-muted);
}
html[dir="rtl"] .modal-close {
  right: auto;
  left: 24px;
}
.modal-close:hover {
  color: var(--danger);
}
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Payment Selector Cards */
.payment-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.payment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.payment-card i {
  font-size: 22px;
  color: var(--text-muted);
}
.payment-card span {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.payment-card:hover {
  border-color: var(--secondary);
}
.payment-card.selected {
  border-color: var(--secondary);
  background-color: rgba(197, 168, 128, 0.08);
}
.payment-card.selected i {
  color: var(--secondary-hover);
}

/* Custom Success Pop */
.success-modal-content {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}
.success-modal-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.success-modal-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.success-ref {
  display: inline-block;
  background-color: var(--bg-alt);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--primary);
  border: 1px dashed var(--secondary);
  font-size: 15px;
}

/* Quick View Modal styling */
.quickview-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.quickview-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--bg-alt);
}
.quickview-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quickview-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0;
}
.quickview-dim {
  font-size: 13px;
  color: var(--text);
  background-color: var(--bg-alt);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 3px solid var(--secondary);
}
html[dir="rtl"] .quickview-dim {
  border-left: none;
  border-right: 3px solid var(--secondary);
}

/* Footer styling */
.main-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 24px;
  border-top: 4px solid var(--secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-about h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--secondary);
}
.footer-about p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-fast);
}
.social-link:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary);
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-links-list a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}
html[dir="rtl"] .footer-links-list a:hover {
  transform: translateX(-4px);
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary);
}
.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.contact-info-item i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-icons img, .payment-icons svg {
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}



/* Interactive Inspiration Gallery (Lookbook) */
.gallery-section {
  padding: 30px 0;
  background-color: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.gallery-card.text-card {
  background-color: #cc1a3a; /* Crimson red discount promo background */
  color: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 200px;
  border: none;
}
.gallery-card.text-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.gallery-card.text-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}
.gallery-card.text-card p {
  font-size: 12px;
  opacity: 0.7;
}
html[dir="rtl"] .gallery-card.text-card {
  text-align: right;
  align-items: flex-start;
}
html[dir="ltr"] .gallery-card.text-card {
  text-align: left;
  align-items: flex-start;
}
.gallery-card.tall-card {
  height: 480px;
}
.gallery-card.img-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 37, 55, 0.85) 0%, rgba(15, 37, 55, 0.3) 60%, rgba(15, 37, 55, 0) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  border-radius: var(--radius);
}
.overlay-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.overlay-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}
.overlay-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
}
.hotspot-item {
  position: absolute;
  z-index: 5;
}
.hotspot-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3.5px solid var(--primary);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}
.hotspot-dot::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid var(--white);
  opacity: 0;
  animation: hotspot-pulse 2s infinite;
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.hotspot-dot:hover {
  background-color: var(--secondary);
  transform: scale(1.15);
}
.hotspot-pop {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 200px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px 44px 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 10;
  color: var(--text);
}
html[dir="rtl"] .hotspot-pop {
  text-align: right;
}
html[dir="ltr"] .hotspot-pop {
  text-align: left;
}
.hotspot-pop .pop-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.hotspot-pop h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.hotspot-pop h5 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}
.hotspot-pop h5 a:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}
.pop-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.pop-price-row .pop-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.pop-price-row .pop-old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}
/* WooCommerce's native get_price_html() markup (used by dynamic hotspots) */
.pop-price-row .woocommerce-Price-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.pop-price-row del .woocommerce-Price-amount {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pop-price-row ins {
  text-decoration: none;
}
.hotspot-pop .pop-btn {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}
.hotspot-pop .pop-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: scale(1.1);
}
.hotspot-item:hover .hotspot-pop,
.hotspot-item.active .hotspot-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Recommended Products Section */
.recommendations-section {
  padding: 30px 0;
  background-color: var(--white);
  border-top: 1px solid var(--border);
}
.reco-slider-wrapper {
  position: relative;
  padding: 0 45px;
}
.reco-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.reco-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
}
.reco-track .product-card {
  flex: 0 0 265px; /* Uniform width of cards in slider context */
  width: 265px;
  box-sizing: border-box;
}

/* Nav Buttons */
.reco-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.reco-nav-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* RTL/LTR positioning alignment */
html[dir="rtl"] .reco-nav-btn.prev { right: 0; }
html[dir="rtl"] .reco-nav-btn.next { left: 0; }
html[dir="ltr"] .reco-nav-btn.prev { left: 0; }
html[dir="ltr"] .reco-nav-btn.next { right: 0; }

/* Flip chevron directions for LTR */
html[dir="ltr"] #recoPrevBtn i { transform: rotate(180deg); }
html[dir="ltr"] #recoNextBtn i { transform: rotate(180deg); }

/* Responsive adjustments */
@media (max-width: 768px) {
  .reco-slider-wrapper {
    padding: 0;
  }
  .reco-nav-btn {
    display: none;
  }
  .reco-slider-container {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .reco-slider-container::-webkit-scrollbar {
    display: none;
  }
  .reco-track {
    width: auto;
    transform: none !important; /* disable js shift on mobile touch-swipe scroll */
  }
  .reco-track .product-card {
    flex: 0 0 240px;
    width: 240px;
  }
}

/* Top Slider Section */
.top-slider-section {
  padding: 20px 0;
  background-color: var(--bg);
}
.slider-container {
  max-width: 1000px;
  height: 245px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 37, 55, 0.9) 0%, rgba(15, 37, 55, 0.4) 60%, rgba(15, 37, 55, 0) 100%);
  padding: 20px 32px;
  color: var(--white);
  z-index: 3;
}
html[dir="rtl"] .slide-content {
  text-align: right;
}
html[dir="ltr"] .slide-content {
  text-align: left;
}
.slide-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--secondary);
}
.slide-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}
.dot.active {
  background-color: var(--secondary);
  width: 24px;
  border-radius: 5px;
}

/* Promotion Banner Section */
.promo-banner-section {
  padding: 20px 0;
  background-color: var(--bg);
}
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #15324a 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.promo-content {
  flex: 1;
  position: relative;
  z-index: 2;
}
.promo-tag {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}
.promo-content h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.promo-content h2 span {
  color: var(--secondary);
}
.promo-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 650px;
}
.promo-code-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.promo-code-wrapper .code-label {
  color: rgba(255, 255, 255, 0.6);
}
.promo-code {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 1px;
  font-family: var(--font-en);
}
.promo-action {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Responsive Design Queries */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-text h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .gallery-card.tall-card {
    height: 380px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-text p {
    margin: 0 auto 32px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    max-width: 450px;
    margin: 48px auto 0;
  }
  .hero-image-wrapper {
    height: 360px;
  }
  
  .nav-menu {
    display: none; /* Mobile Drawer menu can be implemented or simplified */
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 24px;
    color: var(--primary);
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    height: 280px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .custom-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .quickview-container {
    grid-template-columns: 1fr;
  }
  .quickview-img {
    height: 200px;
  }
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }
  .promo-content h2 {
    font-size: 24px;
  }
  .promo-code-wrapper {
    justify-content: center;
  }
  .promo-action {
    width: 100%;
  }
  .promo-action .btn {
    width: 100%;
  }
  .slider-container {
    height: 180px;
  }
  .slide-content {
    padding: 16px 20px;
  }
  .slide-content h3 {
    font-size: 16px;
  }
  .slide-content p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-img-container {
    height: 150px;
  }
  .product-details {
    padding: 12px;
  }
  .product-title {
    font-size: 13px;
    height: 36px;
    margin-bottom: 6px;
  }
  .product-price {
    font-size: 14px;
  }
  .product-rating {
    font-size: 11px;
    gap: 2px;
  }
  .product-badge {
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 9px;
  }
  html[dir="rtl"] .product-badge {
    right: auto;
    left: 8px;
  }
  .product-card .btn-sm {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: var(--radius-sm);
  }
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
  }
  .filter-tab {
    white-space: nowrap;
  }
  .payment-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .selector-grid {
    grid-template-columns: 1fr;
  }
  .selector-grid[data-type] {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .selector-grid[data-type] .selector-card {
    padding: 12px 6px;
    gap: 6px;
    border-radius: var(--radius-sm);
  }
  .selector-grid[data-type] .selector-card i {
    font-size: 18px;
  }
  .selector-grid[data-type] .selector-card span {
    font-size: 10px;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }
  .dimension-inputs {
    grid-template-columns: 1fr;
  }
  .form-group-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card.tall-card {
    height: 300px;
  }
  .slider-container {
    height: 140px;
  }
  .slide-content {
    padding: 12px 16px;
  }
  .slide-content h3 {
    font-size: 13px;
  }
  .slide-content p {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .why-card {
    padding: 16px 12px;
  }
  .why-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-bottom: 12px;
  }
  .why-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .why-card p {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 37, 55, 0.4);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  left: auto;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
}
html[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -320px;
}
.mobile-drawer.active {
  right: 0;
  left: auto;
}
html[dir="rtl"] .mobile-drawer.active {
  right: auto;
  left: 0;
}

.mobile-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer-header .logo-container img {
  height: 36px;
  width: auto;
}
.mobile-drawer-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.mobile-drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-drawer-nav li a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.mobile-drawer-nav li a:hover,
.mobile-drawer-nav li a.active {
  background-color: rgba(197, 168, 128, 0.08);
  color: var(--secondary);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* WooCommerce Pages (Cart, Checkout) premium styles */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
}
.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  overflow: hidden;
  background-color: var(--bg);
}
.woocommerce table.shop_table th {
  background-color: var(--bg-alt);
  color: var(--primary);
  font-weight: 700;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.woocommerce table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-family: inherit;
  font-weight: 700;
  padding: 12px 24px !important;
  border: none !important;
  transition: var(--transition-fast) !important;
  cursor: pointer;
}
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--secondary) !important;
}
.woocommerce input.input-text, 
.woocommerce select, 
.woocommerce textarea {
  border: 2px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 10px 14px !important;
  font-family: inherit !important;
  background-color: var(--bg-alt) !important;
  color: var(--text) !important;
  outline: none;
  transition: var(--transition-fast);
}
.woocommerce input.input-text:focus, 
.woocommerce select:focus, 
.woocommerce textarea:focus {
  border-color: var(--border-focus) !important;
}
.woocommerce form .form-row label {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.woocommerce-checkout #payment {
  background: var(--bg-alt) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 16px;
}
.woocommerce-checkout #payment div.payment_box {
  background-color: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-muted) !important;
}
.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--border) !important;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--secondary) !important;
  background-color: var(--bg-alt) !important;
  color: var(--primary) !important;
  border-radius: var(--radius);
}



