/* ==========================================================================
   AMANAH — PAGES & COMPONENTS STYLESHEET
   Loaded after style.css via functions.php
   ========================================================================== */


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--am-font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--am-radius);
  cursor: pointer;
  transition: all var(--am-duration) var(--am-ease);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}

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

.am-btn-primary:hover {
  background: var(--am-dark);
  color: var(--am-gold);
}

.am-btn-outline {
  background: transparent;
  color: var(--am-black);
  border-color: var(--am-black);
}

.am-btn-outline:hover {
  background: var(--am-black);
  color: var(--am-gold);
}

.am-btn-gold {
  background: var(--am-gold);
  color: var(--am-black);
  border-color: var(--am-gold);
  font-weight: 700;
}

.am-btn-gold:hover {
  background: var(--am-gold-deep);
  border-color: var(--am-gold-deep);
}

.am-btn-small {
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.am-btn-full { width: 100%; justify-content: center; }


/* ==========================================================================
   SLIDE-OUT CART PANEL
   ========================================================================== */

.am-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--am-duration) var(--am-ease);
}

.am-cart-overlay.open { opacity: 1; pointer-events: all; }

.am-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: var(--am-white);
  z-index: 501;
  transform: translateX(100%);
  transition: transform 0.4s var(--am-ease);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.am-cart-overlay.open + .am-cart-panel,
.am-cart-panel.open {
  transform: translateX(0);
}

.am-cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--am-border);
  flex-shrink: 0;
}

.am-cart-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--am-black);
}

.am-cart-panel-count { color: var(--am-grey); font-weight: 500; }

.am-cart-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--am-grey);
  transition: color var(--am-duration) var(--am-ease);
}

.am-cart-panel-close:hover { color: var(--am-black); }

/* Shipping Meter */
.am-cart-shipping-meter {
  padding: 14px 24px;
  background: var(--am-cream);
  border-bottom: 1px solid var(--am-border);
  flex-shrink: 0;
}

.am-cart-shipping-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--am-grey);
  margin-bottom: 8px;
}

.am-cart-shipping-text svg { color: var(--am-gold); flex-shrink: 0; }

.am-cart-shipping-bar {
  height: 3px;
  background: rgba(201,168,76,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.am-cart-shipping-fill {
  height: 100%;
  background: var(--am-gold);
  border-radius: 3px;
  transition: width 0.6s var(--am-ease);
}

/* Cart Items */
.am-cart-panel-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.am-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.am-cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--am-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--am-cream);
  border: 1px solid var(--am-border);
}

.am-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.am-cart-item-info { flex: 1; }

.am-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--am-black);
  line-height: 1.4;
  margin-bottom: 4px;
}

.am-cart-item-name a { color: var(--am-black); text-decoration: none; }
.am-cart-item-name a:hover { color: var(--am-gold); }

.am-cart-item-price {
  font-family: var(--am-font-display);
  font-size: 16px;
  color: var(--am-black);
  margin-bottom: 8px;
}

.am-cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
}

.am-cart-qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-grey);
  transition: background var(--am-duration) var(--am-ease);
}

.am-cart-qty-btn:hover { background: var(--am-cream); }

.am-cart-qty-val {
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-left: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  line-height: 28px;
}

.am-cart-item-remove {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--am-light-grey);
  padding: 4px;
  transition: color var(--am-duration) var(--am-ease);
}

.am-cart-item-remove:hover { color: var(--am-error); }

/* Empty Cart */
.am-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  height: 100%;
}

.am-cart-empty-icon { color: var(--am-light-grey); margin-bottom: 20px; opacity: 0.4; }
.am-cart-empty-title { font-family: var(--am-font-display); font-size: 22px; color: var(--am-black); margin-bottom: 8px; }
.am-cart-empty-text { font-size: 13px; color: var(--am-grey); margin-bottom: 24px; }

/* Cart Footer */
.am-cart-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--am-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--am-white);
}

.am-cart-panel-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.am-cart-panel-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-grey);
  font-weight: 500;
}

.am-cart-panel-trust svg { color: var(--am-gold); }

.am-cart-panel-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.am-cart-subtotal-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--am-grey);
}

.am-cart-subtotal-price {
  font-family: var(--am-font-display);
  font-size: 24px;
  color: var(--am-black);
  font-weight: 500;
}


/* ==========================================================================
   HOMEPAGE — HERO
   ========================================================================== */

.am-hero {
  background: var(--am-black);
  padding: var(--am-space-4xl) 0 var(--am-space-3xl);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.am-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.am-hero-label { color: var(--am-gold); display: block; margin-bottom: 16px; }

.am-hero-title {
  font-family: var(--am-font-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--am-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.am-hero-text {
  font-size: 15px;
  color: var(--am-light-grey);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.am-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.am-hero-actions .am-btn-primary { border-color: var(--am-gold); }
.am-hero-actions .am-btn-primary:hover { background: var(--am-gold); color: var(--am-black); }
.am-hero-actions .am-btn-outline { color: var(--am-light-grey); border-color: rgba(255,255,255,0.2); }
.am-hero-actions .am-btn-outline:hover { background: var(--am-light-grey); color: var(--am-white); border-color: rgba(255,255,255,0.4); }

/* Hero Price Badges */
.am-hero-prices { display: flex; gap: 16px; }

.am-hero-price-badge {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--am-radius);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
}

.am-hero-price-metal {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--am-gold);
  font-weight: 600;
}

.am-hero-price-value {
  font-family: var(--am-font-display);
  font-size: 22px;
  color: var(--am-white);
  font-weight: 400;
}

.am-hero-price-value small {
  font-family: var(--am-font-body);
  font-size: 9px;
  color: var(--am-grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Visual */
.am-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-hero-coin {
  width: 100%;
  max-width: 420px;
  animation: floatCoin 8s ease-in-out infinite;
}

.am-hero-coin-gold {filter: drop-shadow(0 20px 60px rgba(201,168,76,0.5));}
.am-hero-coin-silver {filter: drop-shadow(0 20px 60px rgba(205, 202, 195, 0.5));}

@keyframes floatCoin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(0.5deg); }
  66% { transform: translateY(-6px) rotate(-0.5deg); }
}

.am-hero-coin-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

/* Floating particles */
.am-hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--am-gold);
  opacity: 0.4;
}

.am-hero-particle--1 { top: 20%; left: 10%; animation: float1 6s ease-in-out infinite; }
.am-hero-particle--2 { top: 60%; right: 15%; animation: float2 8s ease-in-out infinite; width: 3px; height: 3px; }
.am-hero-particle--3 { bottom: 25%; left: 40%; animation: float3 9s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--4 { bottom: 15%; left: 60%; animation: float1 7s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--5 { top: 5%; right: 90%; animation: float2 5s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--6 { top: 10%; left: 50%; animation: float3 6s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--7 { bottom: 35%; left: 30%; animation: float1 8s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--8 { top: 55%; left: 5%; animation: float2 7s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--9 { bottom: 50%; left: 30%; animation: float3 6s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--10 { top: 75%; left: 25%; animation: float1 5s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }
.am-hero-particle--11 { bottom: 45%; left: 30%; animation: float2 9s ease-in-out infinite; width: 5px; height: 5px; opacity: 0.2; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,-15px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8px,12px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12px,-8px); } }

/* Scroll indicator */
.am-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.am-hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--am-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}


/* ==========================================================================
   HOMEPAGE — SECTIONS SHARED
   ========================================================================== */

.am-section-header {
  margin-bottom: 48px;
}

.am-section-title {
  font-size: 40px;
  color: var(--am-black);
  margin-top: 8px;
}

.am-section-cta {
  text-align: center;
  margin-top: 48px;
}


/* ==========================================================================
   HOMEPAGE — COLLECTIONS
   ========================================================================== */

.am-collections {
  padding: var(--am-space-4xl) 0;
}

.am-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.am-collection-card {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  padding: 48px 32px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--am-ease);
  display: flex;
  flex-direction: column;
}

.am-collection-card:hover {
  border-color: var(--am-gold);
  transform: translateY(-6px);
  box-shadow: var(--am-shadow-gold);
}

.am-collection-card-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--am-ease);
}

.am-collection-card:hover .am-collection-card-pattern { opacity: 1; }

.am-collection-card-num {
  font-family: var(--am-font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--am-gold-pale);
  line-height: 1;
  margin-bottom: 16px;
}

.am-collection-card-icon { font-size: 32px; margin-bottom: 16px; display: block; }

.am-collection-card-title {
  font-family: var(--am-font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--am-black);
  margin-bottom: 10px;
}

.am-collection-card-desc {
  font-size: 13px;
  color: var(--am-grey);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.am-collection-card-cta {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--am-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--am-ease);
}

.am-collection-card:hover .am-collection-card-cta { gap: 12px; }


/* ==========================================================================
   PRODUCT CARDS (shared by homepage, shop, related)
   ========================================================================== */

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

.am-product-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s var(--am-ease);
}

.am-product-card:hover { transform: translateY(-4px); }

.am-product-card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--am-radius);
  background: var(--am-cream);
  aspect-ratio: 1;
  border: 1px solid var(--am-border);
}

.am-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--am-ease);
}

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

.am-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--am-radius-pill);
}

.am-product-badge--sale { background: var(--am-gold); color: var(--am-black); }
.am-product-badge--sold { background: var(--am-black); color: var(--am-white); }

.am-product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--am-ease);
}

.am-product-card:hover .am-product-card-overlay { opacity: 1; }

.am-product-card-overlay .am-btn-small {
  background: var(--am-white);
  color: var(--am-black);
  border: none;
  font-size: 10px;
}

.am-product-card-info { padding: 16px 4px 8px; }

.am-product-card-cat {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--am-gold);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.am-product-card-name {
  font-family: var(--am-font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--am-black);
  line-height: 1.3;
  margin-bottom: 6px;
}

.am-product-card-price {
  font-family: var(--am-font-display);
  font-size: 16px;
  color: var(--am-black);
}

.am-product-card-price del { color: var(--am-light-grey); font-size: 14px; }
.am-product-card-price ins { text-decoration: none; color: var(--am-black); }


/* ==========================================================================
   HOMEPAGE — WHY AMANAH
   ========================================================================== */

.am-why {
  background: var(--am-black);
  padding: var(--am-space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.am-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.am-why-card {
  background: var(--am-dark);
  padding: 40px 28px;
  border-top: 2px solid transparent;
  transition: all 0.3s var(--am-ease);
}

.am-why-card:hover {
  background: var(--am-mid);
  border-top-color: var(--am-gold);
}

.am-why-card-icon { color: var(--am-gold); margin-bottom: 20px; }

.am-why-card-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--am-gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.am-why-card-text {
  font-size: 13px;
  color: var(--am-light-grey);
  line-height: 1.7;
}


/* ==========================================================================
   HOMEPAGE — HADITH
   ========================================================================== */

.am-hadith {
  padding: var(--am-space-3xl) var(--am-space-xl);
  background: var(--am-off-white);
}

.am-hadith-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.am-hadith-ornament {
  font-family: var(--am-font-arabic);
  font-size: 28px;
  color: var(--am-gold);
  opacity: 0.5;
  margin-bottom: 24px;
}

.am-hadith-arabic {
  font-family: var(--am-font-arabic);
  font-size: 32px;
  color: var(--am-black);
  line-height: 2;
  margin-bottom: 24px;
}

.am-hadith-line {
  width: 60px;
  height: 1px;
  background: var(--am-gold);
  margin: 0 auto 20px;
}

.am-hadith-english {
  font-family: var(--am-font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--am-black);
  line-height: 1.5;
  margin-bottom: 12px;
}

.am-hadith-source {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--am-gold);
  font-weight: 600;
  font-style: normal;
}


/* ==========================================================================
   HOMEPAGE — NEWSLETTER
   ========================================================================== */

.am-newsletter {
  background: var(--am-black);
  padding: var(--am-space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.am-newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.am-newsletter-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--am-radius);
  overflow: hidden;
}

.am-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: none;
  padding: 16px 20px;
  color: var(--am-white);
  font-family: var(--am-font-body);
  font-size: 13px;
  outline: none;
}

.am-newsletter-input::placeholder { color: var(--am-grey); }

.am-newsletter-form .am-btn-gold {
  border-radius: 0;
  border: none;
  padding: 16px 24px;
}


/* ==========================================================================
   FEATURED SECTION
   ========================================================================== */

.am-featured {
  padding: var(--am-space-3xl) 0 var(--am-space-4xl);
  background: var(--am-cream);
}


/* ==========================================================================
   SHOP / CATEGORY PAGE
   ========================================================================== */

.am-shop-hero {
  background: var(--am-black);
  padding: var(--am-space-2xl) 0 var(--am-space-xl);
  position: relative;
  overflow: hidden;
}

.am-shop-hero .am-breadcrumb { padding: 0 0 16px; }
.am-shop-hero .am-breadcrumb a { color: var(--am-light-grey); }
.am-shop-hero .am-bc-sep { color: rgba(201,168,76,0.4); }

.am-shop-controls {
  background: var(--am-white);
  border-bottom: 1px solid var(--am-border);
  position: sticky;
  top: 72px;
  z-index: 50;
}

.am-shop-controls-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.am-shop-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--am-border);
  padding: 8px 16px;
  border-radius: var(--am-radius);
  font-family: var(--am-font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--am-duration) var(--am-ease);
  color: var(--am-black);
  flex-shrink: 0;
}

.am-shop-filter-toggle:hover { border-color: var(--am-gold); color: var(--am-gold); }

.am-shop-subcats {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.am-shop-subcats::-webkit-scrollbar { display: none; }

.am-shop-subcat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-pill);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--am-grey);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--am-duration) var(--am-ease);
}

.am-shop-subcat-pill:hover { border-color: var(--am-gold); color: var(--am-gold); }

.am-shop-subcat-count {
  font-size: 9px;
  color: var(--am-light-grey);
}

.am-shop-sort { margin-left: auto; }

.am-shop-sort .woocommerce-ordering select {
  font-family: var(--am-font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  color: var(--am-grey);
  background: var(--am-white);
}

.am-shop-view-toggle { display: flex; gap: 4px; }

.am-view-btn {
  padding: 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--am-radius);
  cursor: pointer;
  color: var(--am-light-grey);
  transition: all var(--am-duration) var(--am-ease);
}

.am-view-btn.active,
.am-view-btn:hover { color: var(--am-gold); border-color: var(--am-border); }

/* Shop Layout */
.am-shop-content { padding: var(--am-space-xl) 0 var(--am-space-3xl); }

.am-shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

/* Sidebar */
.am-shop-sidebar {
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.am-shop-sidebar-header {
  display: none;
}

.am-filter-group {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--am-border);
}

.am-filter-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--am-black);
  margin-bottom: 16px;
}

.am-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.am-filter-list li { margin-bottom: 0; }

.am-filter-list a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--am-grey);
  text-decoration: none;
  transition: color var(--am-duration) var(--am-ease);
}

.am-filter-list a:hover { color: var(--am-black); }
.am-filter-list a.active { color: var(--am-gold); font-weight: 600; }
.am-filter-list a span { font-size: 11px; color: var(--am-light-grey); }

.am-products-grid--shop {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Pagination */
.am-shop-pagination {
  margin-top: var(--am-space-xl);
  display: flex;
  justify-content: center;
}

.am-shop-pagination .woocommerce-pagination { text-align: center; }

.am-shop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  font-size: 13px;
  color: var(--am-grey);
  text-decoration: none;
  margin: 0 4px;
  transition: all var(--am-duration) var(--am-ease);
}

.am-shop-pagination .page-numbers.current,
.am-shop-pagination .page-numbers:hover {
  background: var(--am-black);
  color: var(--am-gold);
  border-color: var(--am-black);
}


/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */

.am-product-main {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  padding-top: 0;
  padding-bottom: var(--am-space-2xl);
  align-items: start;
}

/* Gallery */
.am-product-gallery { position: sticky; top: 90px; }

.am-gallery-main {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: 2px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.am-gallery-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.6s var(--am-ease-bounce);
}

.am-gallery-main:hover .am-gallery-image { transform: scale(1.05); }

.am-gallery-coin-svg {
  width: 80%;
  max-width: 420px;
  animation: floatCoin 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.15));
}

.am-gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--am-black);
  color: var(--am-gold);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  font-weight: 600;
}

.am-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.am-gallery-thumb {
  width: 72px;
  height: 72px;
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--am-duration) var(--am-ease);
}

.am-gallery-thumb.active,
.am-gallery-thumb:hover { border-color: var(--am-gold); }

.am-gallery-thumb img { width: 85%; height: 85%; object-fit: cover; }

/* Product Info */
.am-product-info > * {
  opacity: 0;
  animation: fadeUp 0.6s var(--am-ease) forwards;
}

.am-product-info > *:nth-child(1) { animation-delay: 0.05s; }
.am-product-info > *:nth-child(2) { animation-delay: 0.1s; }
.am-product-info > *:nth-child(3) { animation-delay: 0.15s; }
.am-product-info > *:nth-child(4) { animation-delay: 0.2s; }
.am-product-info > *:nth-child(5) { animation-delay: 0.25s; }
.am-product-info > *:nth-child(6) { animation-delay: 0.3s; }

.am-product-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--am-gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.am-product-title {
  font-family: var(--am-font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--am-black);
  line-height: 1.2;
  margin-bottom: 6px;
}

.am-product-title-ar {
  font-family: var(--am-font-arabic);
  font-size: 20px;
  color: var(--am-grey);
  margin-bottom: 24px;
  direction: rtl;
}

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

.am-product-stars { color: var(--am-gold); font-size: 14px; }
.am-product-rating-text { font-size: 11px; color: var(--am-grey); }

/* Price Box */
.am-price-box {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.am-price-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--am-gold), var(--am-gold-light), var(--am-gold));
}

.am-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.am-price-current {
  font-family: var(--am-font-display);
  font-size: 42px;
  font-weight: 500;
  color: var(--am-black);
  line-height: 1;
}

.am-price-original { font-size: 18px; color: var(--am-light-grey); text-decoration: line-through; }

.am-stock-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--am-radius-pill);
  font-weight: 600;
  margin-left: auto;
}

.am-stock--in { background: var(--am-success-bg); color: var(--am-success); }
.am-stock--out { background: var(--am-error-bg); color: var(--am-error); }

.am-spot-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--am-grey);
  padding-top: 12px;
  border-top: 1px solid var(--am-border);
}

.am-timer-digits {
  font-weight: 700;
  color: var(--am-black);
  font-size: 14px;
  background: var(--am-off-white);
  padding: 2px 8px;
  border-radius: 3px;
  min-width: 55px;
  text-align: center;
}

/* Key Facts */
.am-key-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.am-fact {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 14px 12px;
  text-align: center;
}

.am-fact-value {
  font-family: var(--am-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--am-black);
  display: block;
}

.am-fact-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am-grey);
  font-weight: 500;
}

/* Trust Icons */
.am-product-trust-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--am-border);
  border-bottom: 1px solid var(--am-border);
  margin: 16px 0 20px;
}

.am-product-trust-icons span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-grey);
  font-weight: 500;
}

.am-product-trust-icons svg { color: var(--am-gold); }

/* Upsells */
.am-upsell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.am-upsell-item {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  transition: all var(--am-duration) var(--am-ease);
  background: var(--am-white);
}

.am-upsell-item:hover { border-color: var(--am-gold); }

.am-upsell-item img { width: 48px; height: 48px; object-fit: cover; margin-bottom: 6px; }

.am-upsell-name {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-black);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.am-upsell-price { font-size: 10px; color: var(--am-gold); font-weight: 600; }

/* Description Section */
.am-product-description {
  padding: var(--am-space-2xl) 0;
}

.am-desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.am-product-long-desc {
  color: var(--am-grey);
  line-height: 1.8;
  font-size: 14px;
}

.am-product-long-desc p { margin-bottom: 1em; }

/* Specs Table */
.am-specs-table {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  overflow: hidden;
  background: var(--am-white);
}

.am-specs-header {
  background: var(--am-black);
  color: var(--am-gold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 20px;
  text-align: center;
}

.am-spec-row {
  display: flex;
  border-bottom: 1px solid var(--am-border);
  font-size: 12px;
}

.am-spec-row:last-child { border-bottom: none; }

.am-spec-key {
  padding: 14px 20px;
  color: var(--am-grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  width: 50%;
  border-right: 1px solid var(--am-border);
  background: var(--am-off-white);
}

.am-spec-val { padding: 14px 20px; color: var(--am-black); font-weight: 500; width: 50%; }
.am-spec-val--gold { color: var(--am-gold); font-weight: 600; }

/* Related */
.am-related { padding: var(--am-space-2xl) 0 var(--am-space-3xl); }


/* ==========================================================================
   RESPONSIVE — ALL PAGES
   ========================================================================== */

@media (max-width: 1024px) {
  .am-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .am-hero-content { order: 2; }
  .am-hero-visual { order: 1; max-width: 320px; margin: 0 auto; }
  .am-hero-title { font-size: 54px; }
  .am-hero-text { margin: 0 auto 36px; }
  .am-hero-actions { justify-content: center; }
  .am-hero-prices { justify-content: center; }
  .am-hero { min-height: auto; padding: var(--am-space-3xl) 0; }

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

  .am-product-main { grid-template-columns: 1fr; gap: 32px; }
  .am-product-gallery { position: static; }
  .am-desc-grid { grid-template-columns: 1fr; gap: 40px; }

  .am-shop-layout { grid-template-columns: 1fr; }
  .am-shop-sidebar { display: none; } /* mobile: shown via overlay */
  .am-products-grid--shop { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .am-hero-title { font-size: 48px; }
  .am-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .am-products-grid--shop { grid-template-columns: repeat(2, 1fr); }
  .am-collections-grid { grid-template-columns: 1fr; }
  .am-why-grid { grid-template-columns: 1fr; }
  .am-key-facts { grid-template-columns: repeat(3, 1fr); }
  .am-upsell-grid { grid-template-columns: repeat(2, 1fr); }
  .am-product-title { font-size: 28px; }
  .am-price-current { font-size: 32px; }
  .am-hadith-arabic { font-size: 24px; }
  .am-hadith-english { font-size: 20px; }
  .am-shop-controls-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .am-hero-title { font-size: 32px; }
  .am-hero-price-badge { padding: 8px 12px; }
  .am-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .am-product-card-name { font-size: 15px; }
  .am-section-title { font-size: 28px; }
}


/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */

.am-checkout-hero {
  background: var(--am-black);
  padding: var(--am-space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.am-checkout-content {
  padding: var(--am-space-xl) 0 var(--am-space-3xl);
}

/* Style WooCommerce checkout within our theme */
.am-checkout .woocommerce-checkout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.am-checkout .woocommerce-billing-fields h3,
.am-checkout .woocommerce-shipping-fields h3,
.am-checkout .woocommerce-additional-fields h3,
.am-checkout #order_review_heading {
  font-family: var(--am-font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--am-black);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--am-border);
}

.am-checkout .woocommerce-input-wrapper input,
.am-checkout .woocommerce-input-wrapper textarea,
.am-checkout select {
  font-family: var(--am-font-body) !important;
  font-size: 13px !important;
  padding: 14px 16px !important;
  border: 1px solid #E0E0E0 !important;
  border-radius: var(--am-radius) !important;
  transition: border-color var(--am-duration) var(--am-ease) !important;
}

.am-checkout .woocommerce-input-wrapper input:focus,
.am-checkout .woocommerce-input-wrapper textarea:focus,
.am-checkout select:focus {
  border-color: var(--am-gold) !important;
  outline: none !important;
  box-shadow: none !important;
}

.am-checkout label {
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  color: var(--am-grey) !important;
  margin-bottom: 6px !important;
}

/* Order review table */
.am-checkout .woocommerce-checkout-review-order-table {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  overflow: hidden;
}

.am-checkout .woocommerce-checkout-review-order-table th {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--am-grey);
  padding: 14px 20px;
}

.am-checkout .woocommerce-checkout-review-order-table td {
  padding: 14px 20px;
  font-size: 13px;
}

.am-checkout .woocommerce-checkout-review-order-table .order-total td {
  font-family: var(--am-font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--am-black);
}

/* Place order button */
.am-checkout #place_order {
  font-family: var(--am-font-body) !important;
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  background: var(--am-black) !important;
  color: var(--am-white) !important;
  border: 2px solid var(--am-black) !important;
  border-radius: var(--am-radius) !important;
  padding: 18px 32px !important;
  width: 100% !important;
  transition: all var(--am-duration) var(--am-ease) !important;
  cursor: pointer !important;
}

.am-checkout #place_order:hover {
  background: var(--am-dark) !important;
  color: var(--am-gold) !important;
}

/* Order review sidebar */
.am-checkout .woocommerce-checkout-review-order {
  position: sticky;
  top: 100px;
}

@media (max-width: 768px) {
  .am-checkout .woocommerce-checkout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .am-checkout-trust { flex-wrap: wrap; gap: 12px !important; }
}


/* ==========================================================================
   ISLAMIC PATTERNS (positioned absolutely within sections)
   ========================================================================== */

.am-pattern { opacity: 0.6; pointer-events: none; }
.am-pattern svg { width: 100%; height: 100%; }


/* ==========================================================================
   IMAGE COLLECTIONS — Full-bleed lifestyle photo grid
   ========================================================================== */

.am-img-collections { padding: 2px 0 0; }

.am-img-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.am-img-col-card {
  position: relative;
  /* aspect-ratio: 4/3; */
  aspect-ratio: 2/2;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px;
  text-decoration: none;
  overflow: hidden;
}

.am-img-col-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
  transition: background var(--am-duration) var(--am-ease);
}

.am-img-col-card:hover .am-img-col-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 60%);
}

.am-img-col-label {
  position: relative;
  z-index: 1;
  background: var(--am-white);
  color: var(--am-black);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 32px;
  transition: all var(--am-duration) var(--am-ease);
}

.am-img-col-card:hover .am-img-col-label {
  background: var(--am-black);
  color: var(--am-gold);
}

.am-img-collections-grid--small .am-img-col-card { aspect-ratio: 16/9; }


/* ==========================================================================
   HOW IT'S MADE — Editorial zigzag
   ========================================================================== */

.am-how-made {
  padding: var(--am-space-4xl) 0;
  background: var(--am-white);
}

.am-how-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2px;
  min-height: 400px;
}

.am-how-row--reverse { direction: rtl; }
.am-how-row--reverse > * { direction: ltr; }

.am-how-image { overflow: hidden; }

.am-how-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--am-ease);
}

.am-how-row:hover .am-how-image img { transform: scale(1.03); }

.am-how-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--am-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-how-text {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.am-how-title {
  font-family: var(--am-font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--am-black);
  margin: 12px 0 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.am-how-text p {
  font-size: 14px;
  color: var(--am-grey);
  line-height: 1.8;
  margin-bottom: 16px;
}


/* ==========================================================================
   PARTNER LOGOS
   ========================================================================== */

.am-partners {
  padding: var(--am-space-3xl) 0;
  background: var(--am-off-white);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.am-partners-grid {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: repeat(4, 1fr); 
  gap: 40px 60px;
  text-align: center;
}

.am-partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
}

.am-partner-name {
  font-family: var(--am-font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--am-light-grey);
  letter-spacing: 0.04em;
}

.am-partner-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--am-light-grey);
  font-weight: 500;
}


/* ==========================================================================
   BRAND STORY — The Islamic Mint
   ========================================================================== */

.am-brand-story {
  background: var(--am-white);
}

.am-brand-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.am-brand-story-image { overflow: hidden; }
.am-brand-story-image img { width: 100%; height: 100%; object-fit: cover; }

.am-brand-story-text {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.am-brand-story-text p {
  font-size: 14px;
  color: var(--am-grey);
  line-height: 1.8;
  margin-bottom: 16px;
}

.am-brand-story-text a {
  color: var(--am-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.am-brand-story-list {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0 20px;
}

.am-brand-story-list li {
  font-size: 14px;
  color: var(--am-grey);
  line-height: 1.8;
  margin-bottom: 6px;
}

.am-brand-story-lead { font-size: 15px !important; color: var(--am-black) !important; }

/* Product card rating */
.am-product-card-rating {
  display: block;
  font-size: 12px;
  color: var(--am-gold);
  margin-top: 4px;
}

.am-product-card-rating small { color: var(--am-grey); }


/* ==========================================================================
   CATEGORY PAGE — Trust Icons Row
   ========================================================================== */

.am-cat-trust-row {
  background: var(--am-white);
  padding: var(--am-space-xl) 0;
  border-bottom: 1px solid var(--am-border);
}

.am-cat-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.am-cat-trust-item svg {
  margin: 0 auto 12px;
  display: block;
  color: var(--am-grey);
}

.am-cat-trust-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--am-black);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.am-cat-trust-item p {
  font-size: 12px;
  color: var(--am-grey);
  line-height: 1.6;
}


/* ==========================================================================
   CATEGORY PAGE — Hero with background image
   ========================================================================== */

.am-cat-hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--am-dark);
}

.am-cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.am-cat-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 60px 40px;
}

.am-cat-hero-title {
  font-family: var(--am-font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--am-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.am-cat-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.am-cat-hero-desc strong { color: var(--am-white); font-weight: 700; }
.am-cat-hero-desc a { color: var(--am-gold); text-decoration: underline; }


/* ==========================================================================
   CATEGORY PAGE — SEO Bottom Box
   ========================================================================== */

.am-cat-seo-bottom {
  background: var(--am-off-white);
  padding: var(--am-space-3xl) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.am-cat-seo-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.am-cat-seo-title {
  font-family: var(--am-font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--am-black);
  margin: 8px 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.am-cat-seo-text {
  font-size: 14px;
  color: var(--am-grey);
  line-height: 1.9;
}

.am-cat-seo-text strong { color: var(--am-black); font-weight: 700; }
.am-cat-seo-text a { color: var(--am-gold); text-decoration: underline; }


/* ==========================================================================
   CATEGORY PAGE — Enhanced Filters
   ========================================================================== */

.am-filter-active {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--am-border);
}

.am-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--am-black);
  background: var(--am-cream);
  padding: 6px 12px;
  border-radius: var(--am-radius);
  margin-bottom: 8px;
}

.am-filter-tag-remove {
  color: var(--am-grey);
  font-size: 10px;
  text-decoration: none;
}

.am-filter-clear {
  display: block;
  font-size: 11px;
  color: var(--am-gold);
  font-weight: 600;
  text-decoration: underline;
  margin-top: 8px;
}

.am-filter-select {
  width: 100%;
  font-family: var(--am-font-body);
  font-size: 12px;
  padding: 10px 14px;
  border: 1px solid #E0E0E0;
  border-radius: var(--am-radius);
  color: var(--am-grey);
  background: var(--am-white);
}

/* Wishlist button on product cards */
.am-product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--am-white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--am-shadow-sm);
  transition: all var(--am-duration) var(--am-ease);
  opacity: 0;
}

.am-product-card:hover .am-product-wishlist { opacity: 1; }

.am-product-wishlist:hover {
  color: #E74C3C;
  transform: scale(1.1);
}


/* ==========================================================================
   RESPONSIVE — NEW SECTIONS
   ========================================================================== */

@media (max-width: 1024px) {
  .am-how-row { grid-template-columns: 1fr; }
  .am-how-row--reverse { direction: ltr; }
  .am-how-text { padding: 40px 40px; }
  .am-brand-story-inner { grid-template-columns: 1fr; }
  .am-brand-story-text { padding: 40px; }
  .am-partners-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .am-cat-trust-grid { gap: 24px; }
}

@media (max-width: 768px) {
  .am-img-collections-grid { grid-template-columns: 1fr; }
  /* .am-img-col-card { aspect-ratio: 16/10; } */
  .am-img-col-card { aspect-ratio: 2/2; }
  .am-how-image-placeholder { min-height: 250px; }
  .am-how-text { padding: 32px 20px; }
  .am-how-title { font-size: 28px; }
  .am-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .am-partner-name { font-size: 22px; }
  .am-cat-trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .am-cat-hero { min-height: 300px; }
  .am-cat-hero-title { font-size: 32px; }
  .am-cat-seo-title { font-size: 28px; }
  .am-brand-story-text { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .am-img-col-label { font-size: 10px; padding: 10px 20px; }
  .am-partners-grid { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   SINGLE PRODUCT PAGE — COMPLETE RESTYLE
   All classes prefixed am-sp- to avoid Savoy conflicts
   ========================================================================== */

/* Breadcrumb area */
.am-sp-breadcrumb { padding: 16px 0; }
.am-sp-breadcrumb .am-bc { font-size: 11px; color: var(--am-grey); letter-spacing: 0.06em; }
.am-sp-breadcrumb .am-bc a { color: var(--am-grey); text-decoration: none; }
.am-sp-breadcrumb .am-bc a:hover { color: var(--am-gold); }
.am-sp-breadcrumb .am-bc-sep { margin: 0 8px; color: var(--am-gold); }

/* Main grid */
.am-sp-main { padding-bottom: var(--am-space-2xl); }

.am-sp-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: start;
}

/* ── Gallery ── */
.am-sp-gallery { position: sticky; top: 90px; }

.am-sp-gallery-main {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: 2px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  /* cursor: zoom-in; */
}

.am-sp-main-img-amanah-css-mahr {
  max-width: unset !important;
  max-height: unset !important;
  height: 100% !important;
  width: 100% !important;
}

.am-sp-main-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.12));
}

.am-sp-gallery-main:hover .am-sp-main-img { transform: scale(1.08); }

.am-sp-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--am-black);
  color: var(--am-gold);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  font-weight: 600;
  z-index: 2;
}

.am-sp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.am-sp-thumb {
  width: 72px;
  height: 72px;
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--am-duration) var(--am-ease);
}

.am-sp-thumb.active, .am-sp-thumb:hover { border-color: var(--am-gold); }
.am-sp-thumb img { width: 85%; height: 85%; object-fit: cover; }

/* ── Product Info ── */
.am-sp-info > * {
  opacity: 0;
  animation: fadeUp 0.6s var(--am-ease) forwards;
}
.am-sp-info > *:nth-child(1) { animation-delay: 0.05s; }
.am-sp-info > *:nth-child(2) { animation-delay: 0.1s; }
.am-sp-info > *:nth-child(3) { animation-delay: 0.15s; }
.am-sp-info > *:nth-child(4) { animation-delay: 0.2s; }
.am-sp-info > *:nth-child(5) { animation-delay: 0.25s; }
.am-sp-info > *:nth-child(6) { animation-delay: 0.3s; }
.am-sp-info > *:nth-child(7) { animation-delay: 0.35s; }
.am-sp-info > *:nth-child(8) { animation-delay: 0.4s; }
.am-sp-info > *:nth-child(9) { animation-delay: 0.45s; }

.am-sp-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--am-gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.am-sp-title {
  font-family: var(--am-font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--am-black);
  line-height: 1.2;
  margin-bottom: 6px;
}

.am-sp-title-ar {
  font-family: var(--am-font-arabic);
  font-size: 20px;
  color: var(--am-grey);
  margin-bottom: 20px;
  direction: rtl;
}

.am-sp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.am-sp-stars { color: var(--am-gold); font-size: 14px; }
.am-sp-rating-text { font-size: 11px; color: var(--am-grey); }

/* ── Price Box ── */
.am-sp-price-box {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.am-sp-price-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--am-gold), var(--am-gold-light), var(--am-gold));
}

.am-sp-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.am-sp-price-current {
  font-family: var(--am-font-display);
  font-size: 42px;
  font-weight: 500;
  color: var(--am-black);
  line-height: 1;
}

/* WooCommerce wraps prices in <span class="woocommerce-Price-amount"> — restyle */
.am-sp-price-current .woocommerce-Price-amount { font-family: var(--am-font-display); font-size: 42px; font-weight: 500; }
.am-sp-price-current .woocommerce-Price-currencySymbol { font-size: 20px; color: var(--am-grey); font-family: var(--am-font-body); vertical-align: super; }

.am-sp-price-original { font-size: 18px; color: var(--am-light-grey); text-decoration: line-through; }
.am-sp-price-original .woocommerce-Price-amount { font-size: 18px; }

.am-sp-stock {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: auto;
}

.am-sp-stock--in { background: #D4EDDA; color: #155724; }
.am-sp-stock--out { background: #F8D7DA; color: #721C24; }

.am-sp-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--am-grey);
  padding-top: 14px;
  border-top: 1px solid var(--am-border);
}

.am-sp-timer svg { color: var(--am-gold); flex-shrink: 0; }

.am-sp-timer-digits {
  font-weight: 700;
  color: var(--am-black);
  font-size: 14px;
  background: var(--am-off-white);
  padding: 2px 8px;
  border-radius: 3px;
  min-width: 55px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── Key Facts ── */
.am-sp-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.am-sp-fact {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 14px 12px;
  text-align: center;
}

.am-sp-fact-val {
  font-family: var(--am-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--am-black);
  display: block;
}

.am-sp-fact-lbl {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am-grey);
  font-weight: 500;
}

/* ── Add to Cart area — Override WooCommerce defaults ── */
.am-sp-atc { margin-bottom: 16px; }

.am-sp-atc .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  overflow: hidden;
  margin-right: 12px;
}

.am-sp-atc .quantity input[type="number"] {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border: none !important;
  padding: 14px 4px !important;
  font-family: var(--am-font-body) !important;
  -moz-appearance: textfield;
  background: var(--am-white);
}

.am-sp-atc .quantity input::-webkit-inner-spin-button,
.am-sp-atc .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; }

.am-sp-atc .single_add_to_cart_button,
.am-sp-atc button[type="submit"] {
  width: 100%;
  padding: 18px 24px !important;
  background: var(--am-black) !important;
  border: 2px solid var(--am-black) !important;
  color: var(--am-white) !important;
  font-family: var(--am-font-body) !important;
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border-radius: var(--am-radius) !important;
  transition: all var(--am-duration) var(--am-ease) !important;
  position: relative;
  overflow: hidden;
}

.am-sp-atc .single_add_to_cart_button:hover {
  background: var(--am-dark) !important;
  color: var(--am-gold) !important;
}

.am-sp-atc .single_add_to_cart_button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.15), transparent);
  transition: left 0.5s ease;
}

.am-sp-atc .single_add_to_cart_button:hover::before { left: 100%; }

/* Stock text */
.am-sp-atc .stock { font-size: 12px; margin-top: 8px; color: var(--am-grey); }
.am-sp-atc .in-stock { color: #155724; }
.am-sp-atc .out-of-stock { color: #721C24; }

/* ── Trust Icons ── */
.am-sp-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--am-border);
  border-bottom: 1px solid var(--am-border);
  margin-bottom: 20px;
}

.am-sp-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-grey);
  font-weight: 500;
}

.am-sp-trust svg { color: var(--am-gold); }

/* ── Upsells ── */
.am-sp-upsells { margin-bottom: 20px; }
.am-sp-upsell-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--am-grey);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.am-sp-upsell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.am-sp-upsell-item {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  transition: all var(--am-duration) var(--am-ease);
  background: var(--am-white);
}

.am-sp-upsell-item:hover { border-color: var(--am-gold); }
.am-sp-upsell-item img { width: 48px; height: 48px; object-fit: cover; margin-bottom: 6px; border-radius: 2px; }
.am-sp-upsell-name { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--am-black); font-weight: 600; display: block; margin-bottom: 2px; }
.am-sp-upsell-price { font-size: 9px; color: var(--am-gold); font-weight: 600; }

/* ── Short Description / Features ── */
.am-sp-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--am-border);
}

.am-sp-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.am-sp-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--am-grey);
  line-height: 1.7;
  margin-bottom: 10px;
}

.am-sp-features li::before {
  content: '—';
  color: var(--am-gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.am-sp-features p {
  font-size: 13px;
  color: var(--am-grey);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ── Description Section ── */
.am-sp-desc { padding: var(--am-space-2xl) 0; }

.am-sp-desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.am-sp-long-desc { color: var(--am-grey); line-height: 1.8; font-size: 14px; }
.am-sp-long-desc p { margin-bottom: 1em; }
.am-sp-long-desc strong { color: var(--am-black); }

/* Arabic verse styling within content */
.am-sp-long-desc [lang="ar"],
.am-sp-long-desc .arabic {
  font-family: var(--am-font-arabic);
  font-size: 22px;
  direction: rtl;
  text-align: right;
  color: var(--am-black);
  margin: 24px 0 6px;
  line-height: 1.8;
}

/* ── Specs Table ── */
.am-sp-specs {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  overflow: hidden;
  background: var(--am-white);
}

.am-sp-specs-header {
  background: var(--am-black);
  color: var(--am-gold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 20px;
  text-align: center;
}

.am-sp-spec {
  display: flex;
  border-bottom: 1px solid var(--am-border);
  font-size: 12px;
}

.am-sp-spec:last-child { border-bottom: none; }

.am-sp-spec-k {
  padding: 14px 20px;
  color: var(--am-grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  width: 50%;
  border-right: 1px solid var(--am-border);
  background: var(--am-off-white);
}

.am-sp-spec-v { padding: 14px 20px; color: var(--am-black); font-weight: 500; width: 50%; }
.am-sp-spec-gold { color: var(--am-gold); font-weight: 600; }

/* ── Why Choose Section ── */
.am-sp-why {
  background: var(--am-black);
  padding: var(--am-space-3xl) var(--am-space-xl);
}

.am-sp-why-inner { max-width: var(--am-container); margin: 0 auto; }

.am-sp-why-header { text-align: center; margin-bottom: 48px; }

.am-sp-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.am-sp-why-card {
  background: var(--am-dark);
  padding: 36px 28px;
  border-top: 2px solid transparent;
  transition: all var(--am-duration) var(--am-ease);
}

.am-sp-why-card:hover { background: var(--am-mid); border-top-color: var(--am-gold); }
.am-sp-why-icon { font-size: 28px; display: block; margin-bottom: 16px; }
.am-sp-why-card h3 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-gold); font-weight: 600; margin-bottom: 10px; }
.am-sp-why-card p { font-size: 12px; color: var(--am-light-grey); line-height: 1.7; }

/* ── What's Included ── */
.am-sp-included {
  background: var(--am-white);
  padding: var(--am-space-2xl) 0;
  border-top: 1px solid var(--am-border);
  border-bottom: 1px solid var(--am-border);
}

.am-sp-included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.am-sp-included-card {
  padding: 40px 32px;
  border-right: 1px solid var(--am-border);
}

.am-sp-included-card:last-child { border-right: none; }

.am-sp-inc-num {
  font-family: var(--am-font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--am-gold-pale);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.am-sp-included-card h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--am-black);
  margin-bottom: 8px;
}

.am-sp-included-card p { font-size: 12px; color: var(--am-grey); line-height: 1.7; }

/* ── Reviews ── */
.am-sp-reviews {
  padding: var(--am-space-2xl) 0;
  background: var(--am-off-white);
}

.am-sp-reviews .comment-respond,
.am-sp-reviews #reviews { max-width: 800px; margin: 0 auto; }

/* ── Related ── */
.am-sp-related { padding: var(--am-space-2xl) 0 var(--am-space-3xl); }


/* ── Responsive ── */
@media (max-width: 1024px) {
  .am-sp-grid { grid-template-columns: 1fr; gap: 32px; }
  .am-sp-gallery { position: static; }
  .am-sp-desc-grid { grid-template-columns: 1fr; gap: 40px; }
  .am-sp-why-grid { grid-template-columns: repeat(2, 1fr); }
  .am-sp-included-grid { grid-template-columns: 1fr; }
  .am-sp-included-card { border-right: none; border-bottom: 1px solid var(--am-border); }
}

@media (max-width: 768px) {
  .am-sp-title { font-size: 28px; }
  .am-sp-price-current, .am-sp-price-current .woocommerce-Price-amount { font-size: 32px; }
  .am-sp-facts { grid-template-columns: repeat(3, 1fr); }
  .am-sp-upsell-grid { grid-template-columns: repeat(2, 1fr); }
  .am-sp-why-grid { grid-template-columns: 1fr; }
  .am-sp-trust { flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
  .am-sp-why { padding: var(--am-space-2xl) 20px; }
}