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

/* --- Launch Screen (Splash) --- */
.launch-screen {
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.launch-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.launch-content {
  text-align: center;
  animation: launchIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes launchIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.launch-logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.launch-logo {
  height: clamp(120px, 40vw, 220px);
  width: auto;
  max-width: 80vw;
  object-fit: contain;
  margin: 0;
}

.launch-loader {
  width: min(180px, 60vw);
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
}

.launch-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: var(--clr-gold);
  border-radius: 4px;
  animation: loaderSlide 1.5s infinite ease-in-out;
}

@keyframes loaderSlide {
  0% { left: -30%; }
  100% { left: 100%; }
}

.launch-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

:root {
  --clr-gold: #D4AF37;
  --clr-gold-light: #E5B80B;
  --clr-orange: #D4AF37; /* Alias for compatibility */
  --clr-yellow: #F1C40F;
  --clr-red: #B8860B; /* Darker Gold for alerts */
  --clr-white: #ffffff;
  --clr-bg: rgb(253, 254, 242); /* Slightly more cream background to match gold */
  --clr-dark: #1A1A1D; /* Deep Charcoal from image */
  --clr-gray: #757575;
  --clr-gray-light: #e0e0e0;
  
  --clr-jawy-gradient: linear-gradient(135deg, #1A1A1D 0%, #D4AF37 100%);
  --clr-fire-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #F1C40F 100%);
  --clr-fire-gradient-hover: linear-gradient(135deg, #D4AF37 0%, #E5B80B 50%, #F1C40F 100%);
  
  --font-primary: 'Outfit', 'Cairo', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(212, 175, 55, 0.15); /* Gold tinted shadow */
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--clr-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--clr-dark);
  line-height: 1.6;
  direction: rtl; /* For Arabic default support */
}

/* Typography Classes */
.text-gold {
  background: var(--clr-fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-white {
  color: var(--clr-white);
  display: inline-block;
}

.title {
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.subtitle {
  font-weight: 600;
  color: var(--clr-gray);
  font-size: 1.1rem;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  outline: none;
}

.btn-gold {
  background: var(--clr-fire-gradient);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: var(--clr-fire-gradient-hover);
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--clr-yellow);
  box-shadow: var(--shadow-md);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-gray);
  font-size: 1.2rem;
  pointer-events: none;
}

/* App Header & Search */
.app-header {
  padding: max(0.5rem, calc(0.5rem + env(safe-area-inset-top))) 0 0.8rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-header.header-hidden {
  transform: translateY(-100%);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem; /* Even smaller padding */
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  transition: none; /* Removed transition for mouse interactions */
}

/* Hover effect removed as requested */

.header-logo {
  height: clamp(60px, 15vw, 100px); /* Further minimized size */
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: none;
}

.header-search-wrap {
  width: 100%;
}

.header-search-container {
  max-width: 100%;
}

.header-search-input {
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 115, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: none; /* No shadow */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.header-search-input:focus {
  background: var(--clr-white);
  border-color: var(--clr-orange);
  box-shadow: none;
}

/* Categories */
.categories-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.categories-wrapper:hover {
  scrollbar-color: var(--clr-orange) var(--clr-bg);
}

.categories-wrapper::-webkit-scrollbar {
  height: 6px;
}

.categories-wrapper::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-full);
}

.categories-wrapper:hover::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

.categories-wrapper::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: var(--radius-full);
}

.categories-wrapper:hover::-webkit-scrollbar-thumb {
  background: var(--clr-orange);
}

.categories-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--clr-red);
}

.category-list {
  display: flex;
  width: max-content;
  gap: 1rem;
  list-style: none;
  padding: 0 0.5rem;
}

.category-item {
  padding: 0.6rem 1.2rem;
  background: var(--clr-bg);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  border: 1px solid var(--clr-gray-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-item:hover, .category-item.active {
  background: var(--clr-yellow);
  color: var(--clr-dark);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 183, 0, 0.2);
}

/* Quick Filters */
.filter-chip {
  padding: 0.4rem 0.8rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip.active {
  background: var(--clr-dark);
  color: var(--clr-white);
  border-color: var(--clr-dark);
}

.filter-chip-gold {
  color: var(--clr-gold);
  border-color: var(--clr-gold);
}

.filter-chip-gold.active {
  background: var(--clr-gold);
  color: var(--clr-white);
  border-color: var(--clr-gold);
}

/* Products Grid */
.products-section {
  padding: 3rem 0;
}

#resultsCount {
  display: none !important;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }
}

.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--clr-gold);
  color: var(--clr-white);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--clr-gray-light);
}

@media (min-width: 576px) {
  .product-image {
    height: 220px;
  }
}

.product-content {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .product-content {
    padding: 1.5rem;
  }
}

.product-category {
  font-size: 0.85rem;
  color: var(--clr-orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--clr-dark);
}

@media (min-width: 576px) {
  .product-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.product-prices {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

@media (min-width: 576px) {
  .product-prices {
    gap: 0.3rem;
  }
}

.price-new {
  font-size: 1rem;
  font-weight: 900;
  color: var(--clr-dark);
}

@media (min-width: 576px) {
  .price-new {
    font-size: 1.2rem; /* Decreased size */
  }
}

.price-old {
  font-size: 0.8rem;
  color: var(--clr-gray);
  text-decoration: line-through;
  font-weight: 600;
}

@media (min-width: 576px) {
  .price-old {
    font-size: 0.9rem;
  }
}

/* App Footer */
.app-footer {
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom));
  margin-top: 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
}
.app-footer .subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.app-footer .search-input:focus {
  border-color: var(--clr-orange);
}

/* Admin Styles */
.admin-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-gray-light) 100%);
  padding-bottom: env(safe-area-inset-bottom);
}

.login-card {
  background: var(--clr-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: right;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-dark);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--clr-gray-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--clr-bg);
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 4px rgba(255, 115, 0, 0.1);
  background: var(--clr-white);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(1.5rem, calc(1rem + env(safe-area-inset-top))) 2rem 1.5rem;
  background: var(--clr-orange);
  border-bottom: none;
}

.dashboard-main {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-main {
    grid-template-columns: 300px 1fr;
  }
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hidden {
  display: none !important;
}

.image-manager-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-manager-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--clr-gray-light);
  background: var(--clr-white);
  padding: 0.5rem;
}

.image-manager-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.image-manager-item .color-select {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.2rem;
  border-radius: 4px;
  border: 1px solid var(--clr-gray-light);
}

.image-manager-item .remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--clr-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Overlay & Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.cart-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 400px;
  height: 100dvh;
  background: var(--clr-white);
  z-index: 3001;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  transition: left var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open {
  left: 0;
}

.cart-header {
  padding: max(1.5rem, calc(1rem + env(safe-area-inset-top))) 1.5rem 1.5rem;
  background: var(--clr-orange);
  color: var(--clr-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
}
.close-cart {
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-footer {
  padding: 1.5rem;
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-gray-light);
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--clr-gray-light);
}

.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.cart-item-price {
  color: var(--clr-orange);
  font-weight: 900;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-bg);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}
.cart-qty-btn {
  background: var(--clr-white);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 900;
  font-size: 1.2rem;
}
.cart-qty-input {
  font-weight: 700;
  width: 40px;
  text-align: center;
  border: 1px solid var(--clr-gray-light);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  background: var(--clr-white);
  color: var(--clr-dark);
  font-family: inherit;
  font-size: 1rem;
}

.cart-qty-input:focus {
  outline: none;
  border-color: var(--clr-orange);
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-badge {
  position: absolute;
  top: -10px; /* Adjusted position */
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-red);
  color: var(--clr-white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--clr-orange);
  transition: transform var(--transition-fast);
}

/* Specific styling for the notification badge in header */
#notifBadge {
  top: -5px;
  right: -5px;
  left: auto;
  transform: none;
}

.btn-add-cart {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-gray-light);
  color: var(--clr-dark);
}
.btn-add-cart:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
  border-color: var(--clr-orange);
}

/* Onboarding Modal */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  transition: opacity var(--transition-normal);
}
.onboarding-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.onboarding-container {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.onboarding-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  flex: 1;
  animation: fadeIn var(--transition-normal);
}
.onboarding-slide.active {
  display: flex;
}
.onboarding-slide h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--clr-dark);
}
.onboarding-slide p {
  color: var(--clr-gray);
  font-size: 1.1rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.onboarding-controls {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--clr-gray-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.onboarding-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-gray-light);
  transition: background var(--transition-fast);
}
.onboarding-dots .dot.active {
  background: var(--clr-orange);
}
.onboarding-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--clr-gray);
  color: var(--clr-gray);
}
.btn-outline:hover {
  background: var(--clr-gray-light);
  color: var(--clr-dark);
}

/* Product Details Overlay */
.product-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--clr-bg);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform var(--transition-normal);
}
.product-overlay.hidden {
  transform: translateX(100%);
}
.product-modal-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.product-modal-body {
  flex: 1;
  padding-bottom: 2rem;
}
.product-slider-container {
  position: relative;
  width: 100%;
  height: 350px;
  background: var(--clr-bg);
  overflow: hidden;
}
.product-slider {
  position: relative;
  width: 100%;
  height: 100%;
  /* images are absolute-positioned inside this, no translateX needed */
}
.product-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast);
}
.slider-btn.prev { right: 1rem; }
.slider-btn.next { left: 1rem; }
.slider-btn:hover { background: var(--clr-white); }
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.pd-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.pd-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.3);
}
.pd-dot.active {
  width: 24px;
  background: var(--clr-orange);
  border-color: var(--clr-red);
  box-shadow: 0 0 10px rgba(255, 115, 0, 0.4);
  transform: scale(1);
}
.product-info-section {
  padding: 1.5rem;
  background: var(--clr-white);
}
.product-seller {
  font-weight: 700;
  color: var(--clr-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
/* Options */
.color-options, .size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.color-btn, .size-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-gray-light);
  border-radius: var(--radius-sm);
  background: var(--clr-white);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.color-btn.active, .size-btn.active {
  border-color: var(--clr-orange);
  background: rgba(255, 115, 0, 0.1);
  color: var(--clr-orange);
}
.related-products-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.related-products-scroll .product-card {
  min-width: 150px;
  max-width: 150px;
}
.related-products-scroll .product-card .product-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.related-products-scroll .product-card .price-new {
  font-size: 1.1rem;
}
.product-modal-footer {
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--clr-white);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Social Floating Container */
.social-floating-container {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  left: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: row; /* Layout links and button horizontally */
  align-items: center;
  gap: 1rem;
}
.social-links {
  display: flex;
  flex-direction: row; /* Show social items side-by-side */
  gap: 0.8rem;
  transition: all var(--transition-normal);
  opacity: 1;
  transform: translateX(0);
}
.social-links.hidden {
  opacity: 0;
  transform: translateX(-20px); /* Slide from/to the button */
  pointer-events: none;
}
.social-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.social-item:hover {
  transform: scale(1.1);
}
.social-item.whatsapp { background: #25D366; }
.social-item.telegram { background: #0088cc; }
.social-item.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-main-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--clr-dark);
  color: var(--clr-white);
  font-size: 1.5rem;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.social-main-btn:hover {
  background: var(--clr-orange);
  transform: scale(1.05);
}

/* Notifications Items */
.notif-item {
  padding: 1rem;
  border-bottom: 1px solid var(--clr-gray-light);
  background: var(--clr-white);
}
.notif-item.unread {
  background: rgba(255, 115, 0, 0.05);
  border-right: 4px solid var(--clr-orange);
}
.notif-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--clr-dark);
}
.notif-msg {
  font-size: 0.9rem;
  color: var(--clr-gray);
  margin-bottom: 0.5rem;
}
.notif-time {
  font-size: 0.8rem;
  color: var(--clr-gray-light);
}

/* Policy Content Styling */
.policy-section h3 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.policy-section p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links a {
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  text-decoration: underline !important;
  color: var(--clr-white) !important;
}


