/*
Theme Name: Anaqa Modern
Theme URI: https://anaqa-store.skywaveads.com
Author: Sky Wave
Author URI: https://www.skywaveads.com
Description: ثيم متجر أناقة العصري المتكامل للتجارة الإلكترونية المبني بأحدث معايير WooCommerce — هوية عربية أصيلة بألوان الكريم الدافئ (#FAF8F5) والبرتقالي الطيني (#D87D4A).
Version: 6.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: anaqa-modern
*/

:root {
  --anq-terracotta: #D87D4A;
  --anq-terracotta-hover: #C26735;
  --anq-terracotta-light: #FDF4EE;
  --anq-cream: #FAF8F5;
  --anq-cream-card: #FFFFFF;
  --anq-cream-border: #EFE8DE;
  --anq-ink: #23201C;
  --anq-muted: #6E665D;
  --anq-gold: #C5A059;
  --anq-radius-sm: 8px;
  --anq-radius-md: 14px;
  --anq-radius-lg: 20px;
  --anq-font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --anq-font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--anq-font-body);
  background-color: var(--anq-cream);
  color: var(--anq-ink);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Container */
.anq-container {
  width: min(calc(100% - 2.5rem), 1280px);
  margin-inline: auto;
}

/* --- TOP ANNOUNCEMENT BAR --- */
.anq-topbar {
  background: var(--anq-ink);
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.anq-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.anq-topbar-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.anq-topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.anq-topbar-links a:hover {
  color: var(--anq-terracotta);
}

/* --- HEADER --- */
.anq-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--anq-cream-border);
  box-shadow: 0 4px 20px rgba(35, 32, 28, 0.03);
}

.anq-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.anq-logo {
  font-family: var(--anq-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--anq-ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.anq-logo-dot {
  color: var(--anq-terracotta);
}

.anq-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.anq-nav a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--anq-ink);
}

.anq-nav a:hover,
.anq-nav a.active {
  color: var(--anq-terracotta);
}

.anq-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--anq-terracotta);
  border-radius: 2px;
}

.anq-nav-sale {
  color: var(--anq-terracotta) !important;
  font-weight: 700;
}

.anq-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.anq-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.anq-search-input {
  width: 200px;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  border: 1px solid var(--anq-cream-border);
  border-radius: var(--anq-radius-sm);
  background: var(--anq-cream);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--anq-ink);
  outline: none;
  transition: all 0.2s ease;
}

.anq-search-input:focus {
  width: 250px;
  border-color: var(--anq-terracotta);
  background: #FFFFFF;
}

.anq-search-btn {
  position: absolute;
  left: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--anq-muted);
  font-size: 0.9rem;
  padding: 0;
}

.anq-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--anq-cream);
  color: var(--anq-ink);
  border: 1px solid var(--anq-cream-border);
  position: relative;
  transition: all 0.2s ease;
}

.anq-action-btn:hover {
  background: var(--anq-terracotta-light);
  border-color: var(--anq-terracotta);
  color: var(--anq-terracotta);
}

.anq-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--anq-terracotta);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anq-burger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--anq-ink);
}

/* --- MOBILE DRAWER --- */
.anq-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
}

.anq-mobile-drawer.open {
  display: block;
}

.anq-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(85vw, 320px);
  background: #FFFFFF;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

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

.anq-drawer-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.anq-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 600;
}

.anq-drawer-nav a {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--anq-cream);
}

/* --- HERO SECTION --- */
.anq-hero {
  background: linear-gradient(135deg, #FAF8F5 0%, #F5EDE4 100%);
  border-bottom: 1px solid var(--anq-cream-border);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.anq-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.anq-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--anq-terracotta-light);
  border: 1px solid rgba(216, 125, 74, 0.3);
  color: var(--anq-terracotta);
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.anq-hero-title {
  font-family: var(--anq-font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--anq-ink);
  margin: 0 0 1.25rem 0;
}

.anq-hero-title span {
  color: var(--anq-terracotta);
}

.anq-hero-text {
  font-size: 1.1rem;
  color: var(--anq-muted);
  line-height: 1.8;
  max-width: 34rem;
  margin: 0 0 2rem 0;
}

.anq-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.anq-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--anq-terracotta);
  color: #FFFFFF;
  padding: 0.8rem 2rem;
  border-radius: var(--anq-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(216, 125, 74, 0.3);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.anq-btn-primary:hover {
  background: var(--anq-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 125, 74, 0.4);
  color: #FFFFFF;
}

.anq-btn-outline {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: var(--anq-ink);
  padding: 0.8rem 1.8rem;
  border-radius: var(--anq-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--anq-cream-border);
  transition: all 0.25s ease;
}

.anq-btn-outline:hover {
  border-color: var(--anq-terracotta);
  color: var(--anq-terracotta);
  transform: translateY(-2px);
}

.anq-hero-banner {
  border-radius: var(--anq-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(35, 32, 28, 0.08);
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--anq-cream-border);
}

.anq-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* --- CATEGORIES STRIP --- */
.anq-section-categories {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.anq-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.anq-category-card {
  background: #FFFFFF;
  border: 1px solid var(--anq-cream-border);
  border-radius: var(--anq-radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 10px rgba(35, 32, 28, 0.02);
  transition: all 0.25s ease;
}

.anq-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--anq-terracotta);
  box-shadow: 0 10px 24px rgba(216, 125, 74, 0.12);
}

.anq-category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--anq-cream-border);
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(35, 32, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.anq-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.anq-category-card:hover .anq-category-icon {
  border-color: var(--anq-terracotta);
  transform: scale(1.05);
}

.anq-category-card:hover .anq-category-icon img {
  transform: scale(1.1);
}

.anq-category-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--anq-ink);
  margin: 0;
}

/* --- SECTION HEADER --- */
.anq-section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.anq-section-eyebrow {
  color: var(--anq-terracotta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.anq-section-title {
  font-family: var(--anq-font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--anq-ink);
  margin: 0.25rem 0 0.5rem 0;
}

.anq-section-sub {
  color: var(--anq-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- PRODUCT GRID --- */
.anq-products-section {
  padding: 2rem 0 clamp(3rem, 5vw, 5rem);
}

.anq-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.anq-product-card {
  background: #FFFFFF;
  border: 1px solid var(--anq-cream-border);
  border-radius: var(--anq-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(35, 32, 28, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.anq-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 125, 74, 0.4);
  box-shadow: 0 14px 30px rgba(35, 32, 28, 0.08);
}

.anq-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: #F5EDE4;
  overflow: hidden;
}

.anq-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.anq-sale-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #E53E3E;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.anq-product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.anq-product-cat {
  font-size: 0.75rem;
  color: var(--anq-terracotta);
  font-weight: 600;
}

.anq-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--anq-ink);
  margin: 0;
  line-height: 1.4;
}

.anq-product-price {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.anq-price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--anq-ink);
}

.anq-price-old {
  font-size: 0.9rem;
  color: var(--anq-muted);
  text-decoration: line-through;
}

.anq-product-actions {
  margin-top: 0.75rem;
}

.anq-btn-addtocart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--anq-cream);
  color: var(--anq-ink);
  border: 1px solid var(--anq-cream-border);
  border-radius: var(--anq-radius-sm);
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.anq-product-card:hover .anq-btn-addtocart {
  background: var(--anq-terracotta);
  color: #FFFFFF;
  border-color: var(--anq-terracotta);
}

/* --- TRUST PILLARS STRIP --- */
.anq-trust-strip {
  background: #FFFFFF;
  border-block: 1px solid var(--anq-cream-border);
  padding: 2.5rem 0;
}

.anq-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.anq-trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.anq-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--anq-terracotta-light);
  color: var(--anq-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.anq-trust-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--anq-ink);
  margin: 0 0 0.2rem 0;
}

.anq-trust-desc {
  font-size: 0.8rem;
  color: var(--anq-muted);
  margin: 0;
}

/* --- FOOTER --- */
.anq-footer {
  background: var(--anq-ink);
  color: #FFFFFF;
  padding: clamp(3.5rem, 6vw, 5rem) 0 1.5rem 0;
}

.anq-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.anq-footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 22rem;
  margin: 1rem 0;
}

.anq-footer-col h4 {
  font-family: var(--anq-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 1.25rem 0;
}

.anq-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.anq-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.anq-footer-links a:hover {
  color: var(--anq-terracotta);
}

.anq-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 1rem;
}

.anq-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
}

.anq-credit a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

/* --- WOOCOMMERCE CORE INTEGRATION OVERRIDES --- */
.woocommerce .woocommerce-breadcrumb {
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--anq-muted);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--anq-ink);
}

.woocommerce span.onsale {
  background: #E53E3E !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  padding: 0.25rem 0.6rem !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--anq-terracotta) !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
}

.woocommerce div.product form.cart .button {
  background: var(--anq-terracotta) !important;
  color: #FFFFFF !important;
  border-radius: var(--anq-radius-sm) !important;
  padding: 0.8rem 2rem !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(216, 125, 74, 0.3) !important;
}

.woocommerce div.product form.cart .button:hover {
  background: var(--anq-terracotta-hover) !important;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
  padding: 1rem !important;
  border-color: var(--anq-cream-border) !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--anq-terracotta) !important;
  color: #FFFFFF !important;
  border-radius: var(--anq-radius-sm) !important;
  padding: 1rem !important;
  font-weight: 800 !important;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .anq-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .anq-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .anq-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Topbar Mobile Streamlining */
  .anq-topbar-links {
    display: none;
  }
  .anq-topbar-inner {
    justify-content: center;
  }
  .anq-topbar-msg {
    justify-content: center;
    font-size: 0.76rem;
    text-align: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .anq-nav,
  .anq-search-form {
    display: none;
  }
  .anq-burger-btn {
    display: block;
  }
  .anq-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .anq-hero-text {
    margin-inline: auto;
  }
  .anq-hero-actions {
    justify-content: center;
  }
  .anq-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .anq-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .anq-topbar-msg span:nth-child(n+3) {
    display: none;
  }
  .anq-topbar-msg {
    font-size: 0.74rem;
  }
  .anq-products-grid {
    grid-template-columns: 1fr;
  }
  .anq-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .anq-trust-grid {
    grid-template-columns: 1fr;
  }
  .anq-footer-grid {
    grid-template-columns: 1fr;
  }
}
