/* css/style.css */
:root {
  --bg-color: #050505;
  --text-color: #f4f4f4;
  --accent-color: #ffffff;
  --gray-color: #888888;
  --card-bg: #111111;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'Cairo', sans-serif;
  --font-head: 'Outfit', 'Cairo', sans-serif;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Typography */
h1,
h2,
h3,
h4,
.brand-logo {
  font-family: var(--font-head);
  text-transform: uppercase;
}

h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent-color);
  text-decoration: none;
}

/* Layout */
section {
  padding: 6rem 10%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.btn:hover {
  background-color: var(--gray-color);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gray-color);
}

.nav-right {
  display: flex;
  align-items: center;
}

.lang-btn-simple {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.3s;
}

.lang-btn-simple:hover {
  background: white;
  color: black;
}

/* Catalog Profile Header */
/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1523398363243-ce9bbbd06c95?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  /* Fallback color if image is missing */
  background-color: #111;
  padding: 0 10%;
  margin-top: 0;
  overflow: hidden;
  opacity: 1; /* Override default section opacity */
  transform: none; /* Override default section transform */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(5,5,5,1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Brand Profile Compact */
.brand-profile {
  padding: 3rem 10% 1rem;
  background: var(--bg-color);
}

.profile-compact {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--glass);
  padding: 15px 25px;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--glass-border);
  margin: 0 auto;
}

.profile-img-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #222;
}

.profile-name {
  font-size: 1rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.verified-icon {
  width: 16px;
  color: #25D366;
}

.profile-meta {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: var(--gray-color);
}

/* Features */
.features {
  padding: 4rem 10%;
  opacity: 1;
  transform: none;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
  border-color: #444;
}

.feature-card i {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Catalog Controls */
.catalog-controls {
  padding: 2rem 10%;
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

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

.search-container i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  width: 18px;
  height: 18px;
}

.search-container input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  transition: 0.3s;
}

.search-container input:focus {
  outline: none;
  border-color: #444;
  background: #151515;
}

.category-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  padding: 8px 20px;
  background: #111;
  border: 1px solid #222;
  border-radius: 25px;
  color: var(--gray-color);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
}

.cat-btn:hover {
  border-color: #444;
  color: white;
}

.cat-btn.active {
  background: white;
  color: black;
  border-color: white;
}

/* Collection Grid Adjustments */
.collection {
  padding: 2rem 10% 6rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  border: 1px solid #1a1a1a;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  border-color: #333;
}

.product-img-wrapper {
  overflow: hidden;
  height: 380px;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(30%);
}

.product-card:hover .product-img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

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

.product-info {
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-price {
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-right: 8px;
  font-weight: normal;
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.offer-countdown {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  justify-content: center;
  background: rgba(231, 76, 60, 0.1);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 45px;
}

.time-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
}

.time-lbl {
  font-size: 0.7rem;
  color: var(--gray-color);
  text-transform: uppercase;
  margin-top: 4px;
}

.product-action {
  width: 100%;
}

.product-action .btn {
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.9rem;
}

/* Modal Enhancements */
.product-highlights {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  margin: 20px 0 25px;
  gap: 10px;
}

.highlight-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.highlight-item i {
  color: var(--accent-color);
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.highlight-item span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gray-color);
  letter-spacing: 0.5px;
}
.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border-radius: 8px;
  padding: 5px;
  width: fit-content;
}

.qty-selector button {
  background: #222;
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.qty-selector button:hover {
  background: #333;
}

.qty-selector input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}


/* Contact Section */
.contact {
  background-color: #080808;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-color);
  border: 1px solid #222;
  color: var(--text-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gray-color);
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
  font-size: 0.9rem;
}

.form-message.success {
  display: block;
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
  display: block;
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Footer */
footer {
  background-color: #020202;
  padding: 6rem 10% 2rem;
  text-align: left;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.footer-brand p {
  color: var(--gray-color);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: #555;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--gray-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 45px;
  height: 45px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-color);
  text-decoration: none;
  transition: var(--transition);
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--glass-border), transparent);
  margin: 2rem 0;
}

.socials a:hover {
  color: var(--text-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #444;
  font-size: 0.85rem;
}

.back-to-top {
  color: var(--gray-color);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.back-to-top i {
  width: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .about {
    flex-direction: column-reverse;
  }


  .hero-title {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }

  section {
    padding: 4rem 5%;
  }
}

@media (max-width: 600px) {
  .collection-grid {
    display: grid !important;
    /* عرض منتجين فقط في الصف بدل 4 */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    /* مسافة كافية بين المنتجين */
    padding: 10px !important;
  }

  .product-card {
    width: 100% !important;
    /* إضافة حدود خفيفة لتمييز المنتجات */
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
  }

  .product-name {
    font-size: 0.85rem !important;
    margin: 10px 5px !important;
    text-align: center;
  }

  .product-price {
    font-size: 0.9rem !important;
    color: #fff;
    margin-bottom: 10px !important;
  }

  /* تعديل الزرار ليكون عرضه مناسباً */
  .product-action a {
    display: block !important;
    width: 90% !important;
    margin: 5px auto 10px !important;
    padding: 8px 0 !important;
    font-size: 0.75rem !important;
    text-align: center;
  }

  /* تأكد من إضافة هذا الجزء داخل @media (max-width: 600px) */

  .product-img-wrapper {
    height: auto !important;
    /* إزالة الارتفاع الثابت */
    aspect-ratio: 2/3 !important;
    /* تحديد نسبة العرض للطول لضمان التناسق */
    overflow: hidden;
  }

  .product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* أو استخدم contain لو عايز الصورة تظهر كاملة بدون أي قص */
    display: block;
  }

  /* تصغير المسافات الداخلية لتقليل طول الكارت */
  .product-info {
    padding: 10px 5px !important;
  }

  .offer-countdown {
    gap: 4px;
    padding: 6px;
    margin-bottom: 0.8rem;
  }
  
  .time-unit {
    min-width: 30px;
    flex: 1;
  }

  .time-val {
    font-size: 0.9rem;
  }

  .time-lbl {
    font-size: 0.55rem;
  }
}

/* Removed WhatsApp Floating Button Styles */

/* Contact Info Direct Links */
.contact-direct {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid #222;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-link:hover {
  background: #1a1a1a;
  border-color: #444;
  transform: translateY(-3px);
}

/* Brand Color Buttons for Contact Section */
.contact-link.wa { background-color: #25D366 !important; color: #fff !important; border-color: #25D366 !important; }
.contact-link.ig { background-color: #E4405F !important; color: #fff !important; border-color: #E4405F !important; }
.contact-link.fb { background-color: #1877F2 !important; color: #fff !important; border-color: #1877F2 !important; }
.contact-link.tt { background-color: #000 !important; color: #fff !important; border: 1px solid #333 !important; }

/* Ensure icons inside these brand buttons stay white for contrast */
.contact-link.wa i, .contact-link.wa svg,
.contact-link.ig i, .contact-link.ig svg,
.contact-link.fb i, .contact-link.fb svg,
.contact-link.tt i, .contact-link.tt svg { 
  color: #fff !important; 
  stroke: #fff !important; 
}

/* Guarantee Brand Colors for Footer Icons */
.socials a.wa i, .socials a.wa svg { color: #25D366 !important; stroke: #25D366 !important; }
.socials a.ig i, .socials a.ig svg { color: #E4405F !important; stroke: #E4405F !important; }
.socials a.fb i, .socials a.fb svg { color: #1877F2 !important; stroke: #1877F2 !important; }
.socials a.tt i, .socials a.tt svg { color: #fff !important; stroke: #fff !important; }

.socials a:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}