/*
Theme Name: ركن القراءة - Rokn Al-Qira'a
Theme URI: https://rokn-qiraa.com
Author: Rokn Al-Qira'a Team
Author URI: https://rokn-qiraa.com
Description: قالب ووردبريس عصري وفاخر لمتجر ركن القراءة للكتب والروايات. يدعم ووكومرس (WooCommerce) بالكامل باللغة العربية مع عملة الشيكل (₪) والتصميم التفاعلي المتجاوب.
Version: 1.0.0
Text Domain: rokn-qiraa
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

/* ── 1. Root Variables & Reset ───────────────────────────────────────── */
:root {
  --color-bg: #FBF9F4;
  --color-fg: #262320;
  --color-fg-muted: rgba(38, 35, 32, 0.65);
  --color-fg-subtle: rgba(38, 35, 32, 0.4);
  --color-brand: #A37038;
  --color-brand-light: #B8854C;
  --color-brand-hover: #8A5D2C;
  --color-tint: #F2EEE6;
  --color-tint-hover: #E8E2D6;
  --color-card-bg: #FFFFFF;
  --color-border: rgba(38, 35, 32, 0.1);
  --color-border-hover: rgba(163, 112, 56, 0.4);
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-amber: #D97706;
  --color-danger: #EF4444;
  
  --font-body: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Amiri', 'Cairo', Georgia, serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px -2px rgba(38, 35, 32, 0.06);
  --shadow-md: 0 10px 25px -4px rgba(38, 35, 32, 0.08);
  --shadow-lg: 0 20px 35px -6px rgba(38, 35, 32, 0.12);
  
  --max-w: 1280px;
  --header-h: 80px;
}

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

html {
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

/* ── 2. Header & Navigation ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-img {
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.02);
}

.footer-logo-img {
  height: 48px;
  max-width: 200px;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 44px;
    max-width: 170px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 38px;
    max-width: 150px;
  }
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(163, 112, 56, 0.12);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: -0.5px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 991px) {
  .primary-nav {
    display: none;
  }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-fg-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand);
}

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-fg-muted);
  font-size: 13px;
  transition: all 0.2s ease;
}

.search-trigger-btn:hover {
  border-color: var(--color-brand-hover);
  color: var(--color-brand);
}

.cart-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-card-bg);
  color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.cart-icon-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--color-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-auth-btn {
  padding: 7px 18px;
  background-color: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.user-auth-btn:hover {
  background-color: var(--color-brand-light);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  font-size: 22px;
  color: var(--color-fg);
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
  .search-trigger-btn span {
    display: none;
  }
}

/* ── 3. Hero Section (Arched Alcoves) ────────────────────────────────── */
.hero-section {
  padding: 48px 0 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(163, 112, 56, 0.1);
  color: var(--color-brand);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-fg);
  margin-bottom: 20px;
}

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

.hero-description {
  font-size: 15px;
  color: var(--color-fg-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

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

@media (max-width: 991px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-brand);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-brand-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--color-tint);
  border-color: var(--color-brand);
}

/* Three Arched Alcoves */
.hero-alcoves-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-alcoves-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 640px;
}

.alcove-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--color-tint);
  border-radius: 120px 120px var(--radius-lg) var(--radius-lg);
  padding: 48px 12px 20px 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.alcove-card:hover {
  transform: translateY(-6px);
  background-color: var(--color-tint-hover);
}

.alcove-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  max-width: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.alcove-card:hover .alcove-cover-wrap {
  transform: scale(1.04);
}

.alcove-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alcove-meta {
  margin-top: 14px;
  text-align: center;
  width: 100%;
}

.alcove-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-fg);
}

.alcove-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand);
  margin-top: 2px;
}

/* ── 4. Author Chips Bar ───────────────────────────────────────────── */
.authors-chips-bar {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.authors-chips-bar::-webkit-scrollbar {
  display: none;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background-color: transparent;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.author-chip:hover {
  background-color: var(--color-tint);
  border-color: var(--color-brand);
}

.author-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-chip span {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-fg);
}

/* ── 5. Section Header ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-fg);
}

.section-subtitle {
  font-size: 13px;
  color: var(--color-fg-muted);
  margin-top: 4px;
}

.section-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-fg-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.section-more-link:hover {
  color: var(--color-brand);
}

/* ── 6. Book Cards Grid ────────────────────────────────────────────── */
.books-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.books-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .books-grid-4, .books-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .books-grid-4, .books-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .books-grid-4, .books-grid-5 {
    grid-template-columns: 1fr;
  }
}

.book-card {
  position: relative;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.book-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.book-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(163, 112, 56, 0.1);
  color: var(--color-brand);
}

.wishlist-btn {
  color: var(--color-fg-subtle);
  font-size: 16px;
  transition: color 0.2s ease;
}

.wishlist-btn:hover, .wishlist-btn.active {
  color: var(--color-danger);
}

.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  cursor: pointer;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.05);
}

.sample-ribbon {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: var(--color-success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.2s ease;
}

.book-title:hover {
  color: var(--color-brand);
}

.book-author {
  font-size: 12px;
  color: var(--color-fg-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-price-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand);
}

.price-old {
  font-size: 12px;
  color: var(--color-fg-subtle);
  text-decoration: line-through;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-amber);
}

.book-card-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
  background-color: var(--color-brand-light);
}

.btn-preview-sample {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-preview-sample:hover {
  background-color: var(--color-tint);
  border-color: var(--color-brand);
}

/* ── 6.1 Curated Showcase Cards (Popular / Bestsellers inspired by editorial design) ── */
.curated-book-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.curated-card-visual {
  border-radius: 22px;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 330px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}

.curated-card-visual:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.16);
}

.curated-cover-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 18px;
}

.curated-cover-img {
  width: 100%;
  max-width: 165px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 16px 28px -6px rgba(0, 0, 0, 0.28), 0 4px 10px -2px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curated-card-visual:hover .curated-cover-img {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 20px 34px -6px rgba(0, 0, 0, 0.35), 0 6px 14px -2px rgba(0, 0, 0, 0.18);
}

.curated-add-btn {
  width: 100%;
  max-width: 200px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid rgba(40, 40, 40, 0.32);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.curated-card-visual.is-dark .curated-add-btn {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.curated-add-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.curated-card-visual.is-dark .curated-add-btn:hover {
  background: #ffffff;
  color: #164e63;
  border-color: #ffffff;
}

.curated-card-info {
  margin-top: 14px;
}

.curated-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s ease;
}

.curated-card-title:hover {
  color: var(--color-brand);
}

.curated-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.curated-author {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.curated-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.curated-price-current {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.curated-price-old {
  font-size: 12px;
  font-weight: 500;
  color: #94a3af;
  text-decoration: line-through;
}

/* ── 7. Category Cards ─────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.category-card:hover {
  border-color: var(--color-brand);
  background-color: var(--color-tint);
  transform: translateY(-2px);
}

.category-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-emoji {
  font-size: 26px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-fg);
}

.category-count {
  font-size: 11px;
  color: var(--color-fg-muted);
}

/* ── 8. Promo Banners ──────────────────────────────────────────────── */
.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .promo-banners-grid {
    grid-template-columns: 1fr;
  }
}

.promo-banner {
  background-color: var(--color-tint);
  border: 1px solid rgba(163, 112, 56, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.promo-banner:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.promo-discount {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brand);
}

.promo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-fg);
  margin-top: 4px;
}

.promo-link {
  display: inline-block;
  font-size: 12px;
  color: var(--color-fg-muted);
  text-decoration: underline;
  margin-top: 10px;
}

.promo-emoji {
  font-size: 42px;
}

/* ── 9. Benefits / Services Row ────────────────────────────────────── */
.services-strip {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 48px 0;
}

.services-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

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

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

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(163, 112, 56, 0.12);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.service-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-fg);
}

.service-desc {
  font-size: 11px;
  color: var(--color-fg-muted);
  margin-top: 2px;
}

/* ── 10. Customer Reviews ──────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.review-card {
  background-color: rgba(242, 238, 230, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.reviewer-name {
  font-size: 13px;
  font-weight: 700;
}

.reviewer-handle {
  font-size: 11px;
  color: var(--color-fg-subtle);
  direction: ltr;
  text-align: right;
}

.review-stars {
  color: var(--color-amber);
  font-size: 14px;
}

.review-text {
  font-size: 13px;
  color: var(--color-fg-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ── 11. Newsletter Box ────────────────────────────────────────────── */
.newsletter-card {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-light) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.newsletter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  background-color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--color-fg);
  outline: none;
}

.newsletter-btn {
  background-color: var(--color-fg);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  background-color: #000;
}

/* ── 12. Footer ────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-tint);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px 0;
  margin-top: auto;
}

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

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

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

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fg);
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-fg-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--color-fg-subtle);
}

/* ── 13. Cart Page Styles ──────────────────────────────────────────── */
.cart-page-wrap {
  padding: 40px 0 80px 0;
}

.free-shipping-bar-box {
  background-color: rgba(163, 112, 56, 0.08);
  border: 1px solid rgba(163, 112, 56, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.free-shipping-progress {
  height: 8px;
  width: 100%;
  background-color: rgba(38, 35, 32, 0.1);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.free-shipping-bar {
  height: 100%;
  background-color: var(--color-brand);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
}

@media (max-width: 991px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  gap: 16px;
}

@media (max-width: 600px) {
  .cart-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-img {
  width: 64px;
  height: 96px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-xs);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2px 6px;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-stepper span {
  width: 32px;
  text-align: center;
  font-weight: 700;
}

.order-summary-box {
  background-color: var(--color-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--color-fg-muted);
}

.summary-row.total-row {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-fg);
}

.summary-total-price {
  color: var(--color-brand);
  font-size: 24px;
}

/* ── 14. Modals (Search & Sample) ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.15s ease-out;
}

.modal-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.15s ease-out;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-tint);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-tint);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.excerpt-quote-box {
  background-color: rgba(163, 112, 56, 0.06);
  border: 1px solid rgba(163, 112, 56, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
  color: var(--color-fg);
}

/* ── 15. Toast Notifications ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: 100%;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background-color: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  animation: slideIn 0.2s ease-out;
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.3);
  background-color: #ECFDF5;
  color: #065F46;
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
  background-color: #FEF2F2;
  color: #991B1B;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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