/**
 * Theme Style - Qooetalaee Elementor Theme
 * Clean, modern, responsive RTL stylesheet tailored for Elementor
 */

:root {
  --primary: #c5a059;
  --primary-hover: #b08d47;
  --primary-dark: #8c6e30;
  --primary-light: #fbf7ee;
  --primary-tint: #f3ebd7;
  
  --secondary: #1e1e24;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-400: #d1d5db;
  --gray-300: #e5e7eb;
  --gray-200: #f3f4f6;
  --gray-100: #f9fafb;
  --white: #ffffff;
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --purple: #6d28d9;
  --purple-light: #f5f3ff;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'IRANYekanX', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: #fdfdfd;
  color: var(--gray-900);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-fluid {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Top Bar */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

.header-logo {
  height: 44px;
  width: auto;
}

.gold-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-tint);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.gold-price-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  padding: 10px 42px 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.header-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

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

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
}

.btn-header-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-header-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-header-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
}

/* Category Navigation Bar */
.header-nav {
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.category-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  padding: 6px 0;
}

.category-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}

.category-menu li a:hover,
.category-menu li.active a {
  color: var(--primary);
  background: var(--primary-light);
}

.category-menu li a.highlight {
  color: var(--danger);
  font-weight: 600;
}

/* Mobile Navigation Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-800);
  cursor: pointer;
}

/* Mobile Offcanvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

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

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-links li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}

.drawer-links li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hero Carousel */
.hero-slider-section {
  padding: 20px 0 10px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slider-slide {
  min-width: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  max-height: 480px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: var(--gray-900);
}

.slider-btn:hover {
  background: var(--white);
  color: var(--primary);
}

.slider-btn.prev {
  right: 16px;
}

.slider-btn.next {
  left: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 24px;
  background: var(--primary);
}

/* Cloud Transition Divider */
.cloud-divider {
  width: 100%;
  height: 24px;
  background: url('../images/nuxt-img/cloud.5a1a034.svg') center repeat-x;
  background-size: contain;
  margin: 10px 0;
  opacity: 0.85;
}

/* Golden Discount Section */
.discount-section {
  background: linear-gradient(135deg, #24143a 0%, #160a28 100%);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin: 30px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.discount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.discount-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discount-title-group h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffdf79;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* Product Carousels & Grids */
.products-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.products-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 10px 4px 20px;
}

.products-carousel::-webkit-scrollbar {
  height: 6px;
}

.products-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

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

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-width: 250px;
  scroll-snap-align: start;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-tint);
}

.product-card-top {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

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

.badge-fast-delivery {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.installment-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 20, 50, 0.88);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  z-index: 2;
}

.installment-count {
  background: var(--primary);
  color: var(--white);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.product-category-tag {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-pricing {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-200);
}

.product-price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-price-old {
  font-size: 0.82rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.badge-discount {
  background: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Promo Banners Grid */
.promo-banners-section {
  margin: 36px 0;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7;
}

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

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

/* Features / Benefits Strip */
.features-section {
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  padding: 32px 20px;
  margin: 40px 0;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  position: relative;
  padding-right: 14px;
}

.section-heading h2::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Store Page Filters & Layout */
.store-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin: 30px 0 60px;
}

.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--gray-900);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--gray-700);
  cursor: pointer;
}

.filter-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 20px;
}

.sort-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-pill {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.sort-pill.active,
.sort-pill:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* About & Contact Pages */
.page-content-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 30px 0 60px;
  box-shadow: var(--shadow-sm);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--gray-100);
  text-align: center;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--primary);
  font-size: 2rem;
}

/* Footer */
.site-footer {
  background: #18191f;
  color: #a0aec0;
  padding-top: 60px;
  border-top: 1px solid #2d3748;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links li a:hover {
  color: var(--primary);
  padding-right: 6px;
}

.footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.enamad-card {
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-md);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .store-layout {
    grid-template-columns: 240px 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .header-nav {
    display: none;
  }
  .gold-price-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .banners-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .store-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none; /* toggleable via button */
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
  .discount-section {
    padding: 20px 16px;
  }
  .discount-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .product-card {
    min-width: 210px;
    padding: 12px;
  }
  .btn-header-action span {
    display: none;
  }
  .btn-header-action {
    padding: 8px 10px;
  }
}

/* Elementor Canvas & Full Width overrides */
body.elementor-template-canvas,
body.elementor-template-full-width {
  background: var(--white);
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1240px;
}
