/* assets/css/style.css - Luxury Fashion Store Arabic Theme */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0f172a;        /* Deep luxury slate / black */
  --primary-hover: #1e293b;
  --accent: #e11d48;         /* Rose gold / Haute Couture Red */
  --accent-gold: #c59b27;    /* Subtle luxury gold */
  --accent-light: #fff1f2;
  --bg-main: #f8fafc;        /* Soft luxury off-white */
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --success: #10b981;
  --whatsapp: #25d366;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Readex Pro', sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky navigation */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

/* Announcement Top Bar */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 100%);
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Luxury Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo .logo-badge {
  background: #000;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.brand-logo .brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.brand-logo .brand-text span {
  color: var(--accent);
}

.header-nav {
  display: none;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .header-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .header-nav a:hover, .header-nav a.active {
    color: var(--accent);
  }
}

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

.header-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.header-btn:hover {
  background: #f1f5f9;
}

.cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Mobile Top Search Bar */
.search-wrapper {
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.search-input-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  background: #f8fafc;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-box input:focus {
  border-color: var(--text-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.search-input-box .search-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
}

/* Hero Banner */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #fff;
  border-radius: 0 0 24px 24px;
  padding: 35px 20px 45px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Story / Pills (Designed like Instagram Stories / Chic Shopify) */
.categories-slider {
  max-width: 1300px;
  margin: 20px auto 10px;
  padding: 0 16px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cat-pill:hover {
  transform: translateY(-3px);
}

.cat-pill .cat-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #e11d48, #c59b27);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-pill .cat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.cat-pill.active .cat-avatar {
  background: #0f172a;
}

.cat-pill .cat-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Filter Bar */
.filter-bar {
  max-width: 1300px;
  margin: 20px auto 15px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}

/* Product Grid */
.products-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

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

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

/* Product Card - Ultra Luxury Mobile Friendly */
.product-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

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

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f1f5f9;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

.badge-trending {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.price-compare {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Quick Action Buttons on Mobile */
.product-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.btn-quick-buy {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-quick-buy:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-quick-cart {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid var(--border-light);
  padding: 7px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Sticky Mobile Bottom Navigation Bar */
.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .mobile-nav-bar {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  position: relative;
  min-width: 60px;
}

.mobile-nav-item.active {
  color: var(--accent);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

/* Cart Slide-over Drawer (Offcanvas) */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: #fff;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}

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

.drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.drawer-close {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.cart-item-img {
  width: 72px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  margin-top: 6px;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark);
}

.qty-num {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-delete {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
}

.drawer-footer {
  padding: 16px 20px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Modal Popup for Instant 1-Step Checkout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: 20px;
    transform: scale(0.95);
  }
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay.open .modal-content {
    transform: scale(1);
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal-body {
  padding: 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.btn-submit-order {
  width: 100%;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.4);
  transition: all 0.2s ease;
}

.btn-submit-order:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn-submit-order:active {
  transform: translateY(0);
}

/* Trust Badges in Checkout */
.checkout-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 85px;
  right: 18px;
  width: 52px;
  height: 52px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  z-index: 80;
  transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
  .whatsapp-float {
    bottom: 25px;
    right: 25px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Sticky Product Buy Bar (on Mobile single product page) */
.product-sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 85;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .product-sticky-buy-bar {
    display: none;
  }
}
