/* ==========================================================================
   ISLAM O QURAN - MAIN STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & THEMING
   -------------------------------------------------------------------------- */
:root {
  --gold: #C9A227;
  --gold-light: #D4B483;
  --cream: #FFF9F3;
  --beige: #F3E8D9;
  --brown: #8B6B4A;
  --olive: #556B2F;
  --emerald: #5C7C5A;
  --charcoal: #2D2D2D;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(139, 107, 74, 0.12);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--charcoal);
}

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

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

/* --------------------------------------------------------------------------
   3. LAYOUT & UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 10px 0;
}

.text-gold {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.bg-cream {
  background-color: var(--cream);
}

.bg-beige {
  background-color: var(--beige);
}

.mb-0 {
  margin-bottom: 0;
}

.geometric-divider {
  text-align: center;
  padding: 16px 0;
  opacity: 0.3;
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: var(--gold);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--charcoal);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e6b830);
  color: #fff;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.5);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

.badge-emerald {
  background: rgba(92, 124, 90, 0.12);
  color: var(--emerald);
}

/* --------------------------------------------------------------------------
   5. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 249, 243, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(139, 107, 74, 0.1);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #4b5563;
  transition: var(--transition);
}

.nav-icon-btn:hover {
  background: var(--beige);
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: auto;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 60%, rgba(212, 180, 131, 0.3) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B6B4A' fill-opacity='1'%3E%3Cpath d='M30 0l8.66 5v10L30 20l-8.66-5V5zm0 40l8.66 5v10L30 60l-8.66-5V45z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.hero-glow2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 124, 90, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-eyebrow span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-eyebrow::before {
  max-width: 40px;
}

.hero-eyebrow::after {
  display: block;
  max-width: 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-sub {
  font-size: 1.05rem;
  color: #6b7280;
  margin: 0 auto 32px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 16px;
  direction: rtl;
  text-align: right;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  margin-top: 56px;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   7. CATEGORY CARDS
   -------------------------------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  background: var(--white);
  border: 1px solid rgba(212, 180, 131, 0.2);
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(139, 107, 74, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(139, 107, 74, 0.14);
  border-color: rgba(201, 162, 39, 0.4);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--gold);
  margin: 0 auto 24px;
  transition: var(--transition);
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.05);
}

.cat-card:hover .cat-icon {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(201, 162, 39, 0.2);
}

.cat-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  z-index: 2;
  transition: var(--transition);
}

.cat-card:hover h3 {
  color: var(--gold);
}

.cat-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 24px;
  z-index: 2;
  flex-grow: 1;
}

/* Category Badge Pill */
.cat-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 auto;
  z-index: 2;
  transition: var(--transition);
}

.badge-articles {
  background: rgba(92, 124, 90, 0.08);
  color: var(--emerald);
  border: 1px solid rgba(92, 124, 90, 0.15);
}

.badge-books {
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.badge-both {
  background: rgba(139, 107, 74, 0.08);
  color: var(--brown);
  border: 1px solid rgba(139, 107, 74, 0.15);
}

.cat-card:hover .cat-type-badge {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. BLOG CARDS
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(139, 107, 74, 0.18);
}

.blog-card-img {
  position: relative;
  overflow: hidden;
  height: 180px;
}

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

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

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a:hover {
  color: var(--gold);
}

.blog-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   9. PRODUCT CARDS
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(139, 107, 74, 0.18);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--beige);
}

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

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

.product-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}



.product-card-body {
  padding: 16px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
}

.price-old {
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-sale {
  font-size: 0.75rem;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  border: 2px solid transparent;
}

.product-actions .btn-outline {
  border: 2px solid var(--gold);
}

@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
    gap: 8px;
  }
}


/* --------------------------------------------------------------------------
   10. ABOUT US SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: 32px;
  left: -24px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 16px 48px rgba(139, 107, 74, 0.15);
}

.about-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.about-counter-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.about-counter-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   11. WHY US SECTION
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid rgba(212, 180, 131, 0.2);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
}

.why-card:hover {
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.3);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(212, 180, 131, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   12. NEWSLETTER SECTION
   -------------------------------------------------------------------------- */
.newsletter {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A227' fill-opacity='.05'%3E%3Cpath d='M30 0l8.66 5v10L30 20l-8.66-5V5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 16px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border: 1px solid rgba(212, 180, 131, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.testi-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.3);
}

.testi-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
}

.testi-text {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--beige);
}

.testi-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testi-loc {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--gold);
  color: #fff;
}

.footer h4 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
}


[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-stats {
    gap: 24px;
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   ARTICLE CONTENT SAFEGUARDS (Rich Text)
   -------------------------------------------------------------------------- */
.article-content img,
.article-content video,
.article-content iframe,
.article-content figure {
  max-width: 100% !important;
  border-radius: 12px;
}

.article-content iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
  height: auto !important;
}

.article-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.article-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast i:first-child { font-size: 1.2rem; }
.toast.success i:first-child { color: #10b981; }
.toast.error i:first-child { color: #ef4444; }
.toast-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-size: 1rem;
}
.toast-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   CLICKABLE PRODUCT CARDS
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
}
.product-card h3 a::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
}
/* Ensure buttons and other interactive elements sit above the link layer */
.product-card .product-actions,
.product-card-badges {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   14. REUSABLE INNER PAGES HERO & CONTAINER STYLES
   -------------------------------------------------------------------------- */
.pg-hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B6B4A' fill-opacity='1'%3E%3Cpath d='M30 0l8.66 5v10L30 20l-8.66-5V5zm0 40l8.66 5v10L30 60l-8.66-5V45z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pg-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--brown);
  margin-bottom: 12px;
  direction: rtl;
}

.pg-arabic-translation {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 24px;
}

.pg-container {
  max-width: 1240px;
  margin: -40px auto 80px;
  position: relative;
  z-index: 10;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   15. BLOG GRID LAYOUT WITH SIDEBAR (RESPONSIVE)
   -------------------------------------------------------------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .blog-layout aside {
    order: 2; /* Forces the sidebar to the bottom under the main content grid */
    position: static !important; /* Disables sticky positioning on mobile */
  }
}

/* --------------------------------------------------------------------------
   16. ECOMMERCE — SHARED STYLES (Cart, Checkout, Orders)
   -------------------------------------------------------------------------- */

/* Badge-pill utility for order status */
.badge-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: capitalize;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: #f3f4f6; color: #6b7280; }

/* Orders table in user dashboard */
table {
  width: 100%;
  border-collapse: collapse;
}
table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid rgba(212,180,131,.15);
}
table td {
  padding: 14px;
  font-size: .9rem;
  color: #4b5563;
  border-bottom: 1px solid rgba(212,180,131,.08);
  vertical-align: middle;
}
table tbody tr:hover { background: rgba(255,249,243,.6); }
table tbody tr:last-child td { border-bottom: none; }

/* Responsive product grid on mobile */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}