/* Design Tokens */
/*
Theme Name: ExtraJoy Custom Theme
Author: Amine Zeghmoum
Description: Custom HTML/CSS theme for ExtraJoy Store.
Version: 1.0
*/

:root {

  /* ===== Brand Colors ===== */

  --primary-color: #6FB8E9;
  --primary-hover: #4A9FD6;

  --secondary-color: #FF8FA3;
  --secondary-hover: #FF6F88;

  --accent-color: #8EDCC8;

  /* ===== Backgrounds ===== */

  --bg-color: #F8FCFF;
  --card-bg: #FFFFFF;

  --hero-bg: linear-gradient(
      135deg,
      #F8FCFF 0%,
      #EAF5FB 45%,
      #D9EEF9 100%
  );

  /* ===== Text ===== */

  --text-dark: #244A73;
  --text-muted: #6E7F91;

  /* ===== Borders ===== */

  --border-color: #E6F0F5;

  /* ===== Pastel Colors ===== */

  --pastel-blue: #EAF5FB;
  --pastel-pink: #FFF2F5;
  --pastel-green: #F2FBF8;
  --pastel-orange: #FFF7EC;
  --pastel-purple: #F7F2FF;
  --pastel-yellow: #FFFBEA;

  /* ===== Shadows ===== */

  --shadow-sm: 0 4px 12px rgba(111,184,233,.12);
  --shadow-md: 0 10px 30px rgba(111,184,233,.18);
  --shadow-lg: 0 20px 45px rgba(111,184,233,.22);

  /* ===== Border Radius ===== */

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  /* ===== Font ===== */

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.topbar {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.header-main {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.08);
}

.logo span {
  color: var(--secondary-color);
}

.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-bar form {
  position: relative;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 14px 25px;
  border: 2px solid var(--border-color);
  border-radius: 40px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #f9fafb;
  transition: all 0.3s;
}

.search-bar input:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(111,184,233,0.15);
}

.search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.search-bar button:hover {
  background-color: var(--primary-hover);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--primary-color);
}

.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Nav Menu */
.nav-menu {
  background-color: white;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-menu .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
}

.nav-link.active:hover {
  color: white;
  background-color: var(--primary-hover);
}

.nav-link.sale {
  color: var(--secondary-color);
}

/* --- Categories Grid Page --- */
.page-categories-container {
  padding-bottom: 60px;
}

.page-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.page-category-card {
  position: relative;
  background: white;
  border-radius: 20px;
  height: 350px;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}

.page-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #e2e8f0;
}

.category-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-category-card:hover .category-card-bg img {
  transform: scale(1.15); /* Zoom in animation on hover */
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: background 0.4s ease;
}

.page-category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
}

.category-card-title { min-height: 65px; display: flex; align-items: flex-end;
  color: white;
  font-size: 1.6rem;
  font-weight: 800; /* Extra bold */
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-card-desc { height: 45px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.page-category-card:hover .category-card-desc { height: 45px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 992px) {
  .page-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Sub Nav */
.sub-nav {
  padding: 15px 0;
  background-color: var(--bg-color);
}

.sub-nav .container {
  display: flex;
  gap: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  overflow-x: auto; /* Allows horizontal scroll on very small screens to avoid wrapping */
  padding-top: 15px; /* Give space for the NEW sticker so it doesn't get cut off */
  padding-bottom: 5px;
}

/* Hide scrollbar for clean look */
.sub-nav .container::-webkit-scrollbar {
  display: none;
}
.sub-nav .container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sub-nav a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent individual links from breaking */
}

.sub-nav a.active, .sub-nav a:hover {
  color: white;
  background-color: var(--text-dark);
}

/* Maman Navigation Item */
.maman-sticker {
  position: absolute;
  top: -10px;
  right: -8px;
  background: linear-gradient(135deg, #f43f5e, #ec4899); /* Red/Pink mix */
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(12deg);
  box-shadow: 0 4px 6px rgba(244, 63, 94, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none; /* Make sure it doesn't block hover on the text */
}

.sub-nav .nav-maman:hover .maman-sticker {
  transform: scale(1.25) rotate(-5deg);
  background: linear-gradient(135deg, #e11d48, #db2777);
  box-shadow: 0 6px 12px rgba(244, 63, 94, 0.5);
}

/* --- Hero Section --- */
.hero {
  padding: 40px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
  background: var(--hero-bg);
}

.hero-inner {
  background: transparent;
  color: var(--text-dark);
  border-radius: 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 60px;
  gap: 50px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-tag {
  background-color: rgba(111, 184, 233, 0.15);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--secondary-color);
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 143, 163, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-badge {
  position: absolute;
  top: -30px;
  right: -20px;
  background-color: var(--secondary-color);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(255, 143, 163, 0.3);
  z-index: 10;
}

.hero-badge span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-toast {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background-color: white;
  color: var(--text-dark);
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-toast-icon {
  color: var(--primary-color);
}

.hero-toast-text {
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-toast-text span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Features Bottom Bar */
.features-bar {
  display: flex;
  justify-content: space-between;
  padding: 30px 40px;
  background-color: white;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  color: var(--primary-color);
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Section Headings --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  margin-top: 60px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all:hover {
  color: var(--secondary-color);
}

/* --- Categories --- */
.categories-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-bottom: 20px;
}

.categories-grid {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollCategoriesMarquee 25s linear infinite;
}
.categories-grid:hover {
  animation-play-state: paused;
}

@keyframes scrollCategoriesMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.category-card {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.category-icon-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-card:hover .category-icon-box {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.category-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* Pastel Colors */
.bg-pastel-blue { background-color: var(--pastel-blue); }
.bg-pastel-pink { background-color: var(--pastel-pink); }
.bg-pastel-green { background-color: var(--pastel-green); }
.bg-pastel-orange { background-color: var(--pastel-orange); }
.bg-pastel-purple { background-color: var(--pastel-purple); }
.bg-pastel-yellow { background-color: var(--pastel-yellow); }

/* --- Trending Products --- */
.tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: white;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none; /* hide all by default */
}

.products-grid.active {
  display: grid; /* show active tab */
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: transparent;
}

.product-image {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 15px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: color 0.3s;
}

.fav-btn:hover {
  color: var(--secondary-color);
}

.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-rating {
  color: #fbbf24;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.product-rating span {
  color: var(--text-muted);
  margin-left: 4px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 10px;
}

.product-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.product-price del, .product-price del span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 5px;
  font-weight: 400;
}

.product-price .woocommerce-Price-currencySymbol {
  font-size: 0.9em;
  margin-left: 2px;
}

.btn-add, .add_to_cart_button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  flex-grow: 1;
  white-space: nowrap;
}

.btn-add:hover, .add_to_cart_button:hover {
  background-color: var(--primary-hover);
}

/* --- Wishlist Styles --- */
.btn-wishlist {
  background: white;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-wishlist:hover {
  border-color: #ef4444;
  color: #ef4444;
}
.btn-wishlist.active {
  color: #ef4444;
  border-color: #ef4444;
}
.btn-wishlist i {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floating Wishlist Button on Product Cards */
.product-card .btn-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(-10px);
}
.product-card:hover .btn-wishlist {
  opacity: 1;
  transform: translateY(0);
}

/* Wishlist Badge in Header */
.header-icons .badge.wishlist-badge {
  background-color: #ef4444;
}

/* Empty Wishlist State */
.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
  display: none;
}
.wishlist-empty i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 20px;
}
.wishlist-empty h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}
.wishlist-empty p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Toast Notification */
.wishlist-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wishlist-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}
.toast-content i {
  color: #10b981; /* Green success */
  font-size: 1.2rem;
}
.toast-actions {
  display: flex;
  gap: 10px;
}
.toast-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.toast-btn-view {
  background-color: var(--primary-color);
  color: white;
}
.toast-btn-view:hover {
  background-color: var(--primary-hover);
  color: white;
}
.toast-btn-dismiss {
  background-color: #f3f4f6;
  color: var(--text-dark);
}
.toast-btn-dismiss:hover {
  background-color: #e5e7eb;
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-card { display: flex; flex-direction: row; align-items: stretch;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.blog-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-tag {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- Brands --- */
.brands-section {
  text-align: center;
  margin: 60px 0;
}

.brands-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.brands-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}

.brands-container:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 7.5px)); }
}

.brand-logo {
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
}

.brand-logo:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(111, 184, 233, 0.15);
}

.brand-logo:hover img {
  filter: grayscale(0%);
}

/* --- Offers Section --- */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 60px 0;
}

.offer-card {
  border-radius: 20px;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.15) 0%, transparent 60%);
  z-index: 1;
}

.offer-card > * {
  z-index: 2;
}

.offer-blue {
  background-color: #254881; /* slightly lighter navy for banner */
}

.offer-red {
  background-color: var(--secondary-color);
}

.offer-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.9;
}

.offer-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.offer-desc {
  font-size: 0.95rem;
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 80%;
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(111, 184, 233, 0.3);
  background-color: #F0F8FF;
}

.offer-red .btn-white {
  background-color: white;
  color: var(--secondary-color);
}
.offer-blue .btn-white {
  background-color: var(--secondary-color);
  color: white;
}
.offer-blue .btn-white:hover {
  background-color: var(--secondary-hover);
}

/* --- Testimonials --- */
.testimonials-wrapper {
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}
.testimonials-wrapper::-webkit-scrollbar {
  display: none;
}

.testimonials-grid {
  display: flex;
  gap: 20px;
  min-width: max-content;
}

.testimonial-card {
  width: 400px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  background-color: var(--pastel-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
}

.user-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.user-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stars {
  color: #fbbf24;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 15px;
  flex: 1;
}

.testimonial-product {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

/* --- Newsletter & Footer --- */
.newsletter-section {
  background: #1D3E63;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.newsletter-text p {
  color: #e2e8f0;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.btn-subscribe {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-logo-img {
  cursor: pointer;
}

.footer-logo-img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.footer-desc {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
  background-color: var(--secondary-color);
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.contact-info li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  color: white;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.contact-info li:hover {
  color: var(--secondary-color);
}

.contact-info i {
  color: white;
  margin-top: 3px;
  transition: color 0.3s;
}

.contact-info li:hover i {
  color: var(--secondary-color);
}

.footer-badges {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.footer-badge {
  font-size: 0.85rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  cursor: default;
  animation: pulse-soft 3s infinite ease-in-out;
}

.footer-badge i {
  color: var(--secondary-color);
}

.footer-badge:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  animation-play-state: paused;
}

@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.8rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-main .container {
    flex-wrap: wrap;
  }
  .search-bar {
    order: 3;
    max-width: 100%;
    margin-top: 10px;
  }
  .nav-menu {
    display: none; /* In a real app, replace with hamburger menu */
  }
  
  .hero-inner {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-badge, .hero-toast {
    display: none;
  }
  
  .features-bar {
    flex-direction: column;
    gap: 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .offers-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Blog Page Styles --- */

.blog-filters-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.blog-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pill {
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background-color: white;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pill:hover,
.blog-pill.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.blog-featured-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.blog-featured-main {
  display: flex;
}

.blog-featured-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-card { display: flex; flex-direction: row; align-items: stretch;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: row; align-items: stretch; width: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-meta-small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.blog-badge-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.blog-dot {
  font-size: 1.2rem;
  line-height: 1;
}

.blog-card-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.blog-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.blog-read-more i {
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: var(--primary-color);
}

.blog-read-more:hover i {
  transform: translateX(4px);
}

/* Featured Large Card Specifics */
.blog-card-large .blog-card-image {
  height: 350px;
}
.blog-card-large .blog-card-title {
  font-size: 1.8rem;
}

/* Featured Side Card Specifics */
.blog-card-side {
  flex-direction: row;
  height: calc(50% - 15px);
}
.blog-card-side .blog-card-image-link {
  width: 40%;
  flex-shrink: 0;
}
.blog-card-side .blog-card-image {
  height: 100%;
}
.blog-card-side .blog-card-content {
  padding: 20px;
  justify-content: center;
}
.blog-card-side .blog-card-title {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Regular Grid Specifics */
.blog-regular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card-regular .blog-card-image {
  height: 220px;
}

/* Pagination */
.blog-pagination {
  margin-top: 40px;
  text-align: center;
}
.blog-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  background: white;
  padding: 8px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive Blog */
@media (max-width: 992px) {
  .blog-featured-section {
    grid-template-columns: 1fr;
  }
  .blog-card-side {
    height: 160px;
  }
  .blog-regular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-card-large .blog-card-image {
    height: 250px;
  }
  .blog-card-large .blog-card-title {
    font-size: 1.4rem;
  }
  .blog-card-side {
    flex-direction: column;
    height: auto;
  }
  .blog-card-side .blog-card-image-link {
    width: 100%;
  }
  .blog-card-side .blog-card-image {
    height: 200px;
  }
  .blog-regular-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Single Post Page Styles --- */

.single-post-container {
  max-width: 900px;
  margin: 0 auto;
}

.single-post-header {
  text-align: center;
  margin-bottom: 30px;
}

.single-post-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.single-post-title {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 20px 0;
}

.single-post-image-wrapper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.single-post-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.single-post-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.single-post-image-wrapper:hover .single-post-image img {
  transform: scale(1.03);
}

.single-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.meta-separator {
  color: var(--border-color);
}

.single-post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: var(--text-dark);
  font-weight: 700;
}

.single-post-content p {
  margin-bottom: 1.5em;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2em 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.single-post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.single-post-navigation > div {
  width: 48%;
}

.single-post-navigation a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.single-post-navigation a strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-top: 5px;
  transition: color 0.3s ease;
}

.single-post-navigation a:hover {
  color: var(--primary-color);
}

.single-post-navigation a:hover strong {
  color: var(--primary-color);
}

.nav-next {
  text-align: right;
}

.single-post-comments-wrapper {
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Single Post */
@media (max-width: 768px) {
  .single-post-title {
    font-size: 2rem;
  }
  .single-post-meta {
    flex-direction: column;
    gap: 10px;
  }
  .meta-separator {
    display: none;
  }
  .single-post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  .single-post-navigation > div {
    width: 100%;
  }
  .nav-next {
    text-align: left;
  }
}

/* --- WooCommerce Ordering Select --- */
.woocommerce-ordering select.orderby {
  appearance: none;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 10px 40px 10px 20px;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select.orderby:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 4px 12px rgba(111, 184, 233, 0.15);
}


/* --- Header Category Dropdown --- */
.header-dropdown-container {
  position: relative;
  z-index: 100;
}
.header-dropdown-btn {
  background: var(--primary-color);
  color: white;
  padding: 9px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}
.header-dropdown-btn:hover,
.header-dropdown-container:hover .header-dropdown-btn {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}
.header-dropdown-btn .arrow-down {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}
.header-dropdown-container:hover .arrow-down {
  transform: rotate(180deg);
}
.header-dropdown-content {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  background: white;
  width: 280px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: grid;
  grid-template-columns: 1fr;
  padding: 15px;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-dropdown-container:hover .header-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-cat-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.header-cat-item:hover {
  background: #f0f7fb;
  color: var(--primary-color);
  padding-left: 20px;
}

/* --- Blog Entry Animation --- */
.animated-blog-card {
  opacity: 0;
  animation: blogFadeRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes blogFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-image-container {
  width: 100%;
  height: auto; min-height: 200px; overflow: hidden; flex: 0 0 300px;
}
.blog-image-container .blog-image { height: 100%; object-fit: cover;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-image-container .blog-image { height: 100%; object-fit: cover;
  transform: scale(1.05);
}

.newsletter-form input::placeholder { color: #cbd5e1; }
.btn-subscribe { transition: all 0.3s ease; }
.btn-subscribe:hover { background-color: var(--secondary-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 143, 163, 0.3); }

/* --- Custom Comments Styling --- */
.comments-area {
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}
.comments-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-comment-box {
  margin-bottom: 30px;
}
.comment-inner-box {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  gap: 30px;
}
.comment-left-col {
  width: 150px;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 25px;
}
.comment-avatar img {
  border-radius: 50%;
  margin-bottom: 15px;
  width: 64px;
  height: 64px;
  border: 2px solid var(--primary-color);
}
.comment-author-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 10px;
}
.comment-author-name a {
  color: inherit;
  text-decoration: none;
}
.comment-date-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.comment-date-time span {
  display: block;
}
.comment-time-ago {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 600;
  background: #fff0f3;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
}
.comment-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.comment-text-content {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1rem;
  flex: 1;
}
.comment-text-content p:last-child {
  margin-bottom: 0;
}
.comment-reply {
  margin-top: 15px;
  text-align: right;
}
.comment-reply a {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}
.comment-reply a:hover {
  background: var(--primary-hover);
}
/* Nested Comments */
.comment-list .children {
  list-style: none;
  padding-left: 50px;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .comment-inner-box {
    flex-direction: column;
    gap: 20px;
  }
  .comment-left-col {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    text-align: left;
  }
  .comment-avatar img {
    margin-bottom: 0;
  }
  .comment-author-name {
    margin-bottom: 0;
  }
  .comment-date-time span {
    display: inline-block;
    margin-right: 10px;
  }
  .comment-list .children {
    padding-left: 20px;
  }
}

/* --- Comment Form Styling --- */
.comment-respond {
  margin-top: 50px;
  background: #f8fafc;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.comment-form-comment textarea {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  resize: vertical;
  font-family: inherit;
}
.comment-form-author input, .comment-form-email input, .comment-form-url input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
}
.btn-submit-comment {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-submit-comment:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

/* --- Redesigned Comment Form --- */
.comment-respond {
  background: #ffffff;
  padding: 35px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  margin-top: 50px;
}
.comment-reply-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-reply-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 4px;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.comment-form-author, .comment-form-email {
  margin: 0;
}
.comment-form-author input, .comment-form-email input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.3s;
  outline: none;
  font-size: 0.95rem;
}
.comment-form-author input:focus, .comment-form-email input:focus, .comment-form-comment textarea:focus {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(111, 184, 233, 0.15);
}
.comment-form-comment {
  margin-bottom: 25px;
}
.comment-form-comment textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.3s;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .comment-form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Page Livraison --- */
.livraison-page-container {
  background: #f8fafc;
  padding-bottom: 80px;
}
.livraison-header {
  position: relative;
  color: white;
  padding: 80px 0 100px;
  text-align: center;
  margin-bottom: -40px;
  overflow: hidden;
  z-index: 1;
}
.livraison-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/cute_delivery_van.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 1.5s ease-out;
}
.livraison-header:hover::before {
  transform: scale(1.1);
}
.livraison-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(111, 184, 233, 0.85);
  z-index: -1;
}

.livraison-header .page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.livraison-header .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}
.delivery-partner {
  background: white;
  display: inline-flex;
  align-items: center;
  padding: 10px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  gap: 15px;
}
.delivery-partner .zr-logo {
  height: 40px;
  width: auto;
}
.delivery-partner span {
  color: var(--text-dark);
  font-weight: 600;
}
.livraison-content {
  position: relative;
  z-index: 10;
}
.table-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  overflow: hidden;
  padding: 30px;
}
.livraison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.livraison-table th {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 700;
  text-align: left;
  padding: 18px 20px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.livraison-table th:first-child { border-radius: 12px 0 0 12px; }
.livraison-table th:last-child { border-radius: 0 12px 12px 0; }
.livraison-table td {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.4s ease;
}
.livraison-table td:first-child { 
  border-left: 1px solid #f1f5f9;
  border-radius: 12px 0 0 12px;
  font-weight: 700;
  color: var(--primary-color);
}
.livraison-table td:last-child {
  border-right: 1px solid #f1f5f9;
  border-radius: 0 12px 12px 0;
}
/* Hover Animation */
.livraison-table tbody tr {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.livraison-table tbody tr:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  z-index: 5;
}
.livraison-table tbody tr:hover td {
  background: #f8fafc;
  border-color: transparent;
}
.w-name {
  font-weight: 600;
  color: var(--text-dark);
}
.w-price {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--secondary-color);
  font-weight: 700;
}
/* Highlight Oran */
.oran-row td {
  background: #fff0f3 !important;
  border-color: #ffe4e8 !important;
}
.oran-row:hover {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .table-wrapper { padding: 15px; }
  .livraison-table th, .livraison-table td { padding: 12px 10px; font-size: 0.85rem; }
  .livraison-header .page-title { font-size: 2rem; }
}

/* --- User Dropdown --- */
.user-dropdown-container {
  position: relative;
  display: inline-block;
}
.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: -10px;
  background: white;
  min-width: 200px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}
.user-dropdown-container:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.user-dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--primary-color);
  padding-left: 25px;
}


/* --- Authentication Pages --- */
.auth-page-container {
  background: #f1f5f9;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  background: white;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  padding: 40px;
}
.register-card { max-width: 550px; }
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}
.auth-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.auth-header p {
  color: var(--text-muted);
}
.auth-form .form-group {
  margin-bottom: 20px;
}
.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.input-with-icon, .select-wrapper {
  position: relative;
}
.input-with-icon i, .select-wrapper .select-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}
.select-wrapper .select-icon { left: auto; right: 15px; pointer-events: none; }
.auth-form input[type="text"], .auth-form input[type="tel"], .auth-form input[type="password"], .auth-form select {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  transition: all 0.3s;
}
.auth-form select { appearance: none; padding-left: 15px; padding-right: 45px; }
.auth-form input:focus, .auth-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(111, 184, 233, 0.2);
  background: white;
}
.input-with-icon input:focus + i { color: var(--primary-color); }
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}
.save-me-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: normal !important;
}
.forgot-pwd {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
.auth-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}
.auth-message.error { background: #fee2e2; color: #991b1b; }
.auth-message.success { background: #dcfce7; color: #166534; }


/* --- Cart Dialog Styles --- */
.swal-btn-confirm {
    background-color: var(--primary-color) !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
}
.swal-btn-cancel {
    background-color: #f1f1f1 !important;
    color: #333 !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
}
.swal-btn-cancel:hover {
    background-color: #e2e2e2 !important;
}
.upsell-item a:hover h5 {
    color: var(--primary-color) !important;
}

/* --- Quick Order Form Styles --- */
.quick-order-form-container .form-group {
    margin-bottom: 15px;
}
.quick-order-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}
.quick-order-form-container .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
.quick-order-form-container .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 168, 255, 0.2);
}

/* --- Sidebar Cart Styles --- */
.sidebar-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}
.sidebar-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
.sidebar-cart.open {
    right: 0;
}
.sidebar-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--primary-color);
    color: #fff;
}
.sidebar-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.close-sidebar-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.sidebar-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.sidebar-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.btn-check-details {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}
.btn-check-details:hover {
    background: #0077c2;
    color: #fff;
}

/* WooCommerce Mini Cart Overrides for Sidebar */
.sidebar-cart .woocommerce-mini-cart__empty-message {
    text-align: center;
    color: #777;
    margin-top: 20px;
}
.sidebar-cart .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.sidebar-cart .woocommerce-mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}
.sidebar-cart .woocommerce-mini-cart-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.sidebar-cart .woocommerce-mini-cart__total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 0;
}
.sidebar-cart .woocommerce-mini-cart__buttons {
    display: none; /* Hide default buttons, we added our own Check Details */
}


/* --- Cart Dropdown Mini-Cart Overrides --- */
.cart-dropdown-menu {
    padding: 10px;
    box-sizing: border-box;
}
.cart-dropdown-menu .woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
}
.cart-dropdown-menu .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}
.cart-dropdown-menu .woocommerce-mini-cart-item img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}
.cart-dropdown-menu .woocommerce-mini-cart-item a {
    display: inline-block !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}
.cart-dropdown-menu .woocommerce-mini-cart-item a:hover {
    background: transparent !important;
}
.cart-dropdown-menu .quantity {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}
.cart-dropdown-menu .remove {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4757 !important;
    font-size: 1.2rem;
    padding: 5px !important;
}
.cart-dropdown-menu .remove:hover {
    color: #ff0000 !important;
    background: transparent !important;
}
.cart-dropdown-menu .woocommerce-mini-cart__total {
    border-top: 2px solid #eee;
    padding-top: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}
.cart-dropdown-menu .woocommerce-mini-cart__buttons {
    display: none !important;
}


/* Terms of Service Accordion */
.tos-accordion {
    max-width: 900px;
    margin: 40px auto;
    font-family: inherit;
}
.tos-intro {
    background: #f9fbfd;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e1e8ed;
    color: #444;
    line-height: 1.6;
}
.tos-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.tos-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.tos-item summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color, #ff6b6b);
    cursor: pointer;
    list-style: none;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}
.tos-item summary::-webkit-details-marker {
    display: none;
}
.tos-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color, #ff6b6b);
    transition: transform 0.3s ease;
}
.tos-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}
.tos-item[open] summary {
    border-bottom: 1px solid #eee;
    background: #fdfdfd;
}
.tos-item[open] {
    border-color: var(--primary-color, #ff6b6b);
}
.tos-content {
    padding: 20px;
    color: #555;
    line-height: 1.7;
    animation: fadeInDown 0.4s ease-out;
}
.tos-content p {
    margin-bottom: 15px;
}
.tos-content strong {
    color: #222;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blogFadeRight {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}






/* --- Page Avis Clients --- */
.avis-page-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.avis-form-section {
  flex: 1;
  min-width: 300px;
}

.avis-list-section {
  flex: 1.5;
  min-width: 300px;
}

.avis-form-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 20px;
}

/* Star Rating Input (Reverse layout to use general sibling selector) */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  font-size: 1.8rem;
  color: #ccc;
  transition: color 0.2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: #ffc107;
}

/* Avis Cards (Liste) */
.avis-list-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.avis-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
}

.avis-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.avis-author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.avis-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.avis-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avis-author-avatar {
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.avis-card-stars i {
  margin-right: 2px;
}

.avis-card-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

.avis-card-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--light-bg);
}

.avis-source-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.avis-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 12px;
  border: 1px dashed #ccc;
}

/* --- Form Improvements --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
}
.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(111, 184, 233, 0.2);
    background-color: #fff;
}

/* --- Small Form Group --- */
.form-group-sm {
    margin-bottom: 15px;
}
.form-group-sm label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}
.form-group-sm input[type="text"],
.form-group-sm input[type="email"],
.form-group-sm select,
.form-group-sm textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
}
.form-group-sm input[type="text"]:focus,
.form-group-sm input[type="email"]:focus,
.form-group-sm select:focus,
.form-group-sm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(111, 184, 233, 0.2);
    background-color: #fff;
}

/* --- Store Highlights Animations --- */
.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(111, 184, 233, 0.15) !important;
    border-color: var(--primary-color) !important;
}
.highlight-item:hover .highlight-icon {
    background: var(--primary-color) !important;
    color: white !important;
}
.highlight-icon {
    transition: all 0.3s ease;
}

.blog-card-regular {
    flex-direction: column !important;
}
.blog-card-regular .blog-card-image-link {
    width: 100% !important;
    height: 220px !important;
}
.blog-card-regular .blog-card-image {
    height: 100% !important;
}

/* --- Fix Blog Card Image Heights --- */
.blog-card-image-link {
    height: 100%;
}
.blog-card-large {
    min-height: 350px;
}
.blog-card-large .blog-card-image-link {
    width: 50%;
    flex-shrink: 0;
}
.blog-card-large .blog-card-image {
    height: 100% !important;
}
.blog-card-side .blog-card-image-link {
    height: 100%;
}
.blog-card-regular {
    flex-direction: column !important;
}
.blog-card-regular .blog-card-image-link {
    width: 100% !important;
    height: 220px !important;
}
.blog-card-regular .blog-card-image {
    height: 100% !important;
}

@media (max-width: 768px) {
    .blog-card-large {
        flex-direction: column;
    }
    .blog-card-large .blog-card-image-link {
        width: 100%;
        height: 250px;
    }
}

/* ==============================================================
   RTL SUPPORT (ARABIC)
============================================================== */
body.is-rtl {
    direction: rtl;
    text-align: right;
}

/* Header & Search Bar */
body.is-rtl .search-bar button {
    right: auto;
    left: 15px;
}
body.is-rtl .search-bar input[type="search"] {
    padding-left: 50px;
    padding-right: 20px;
}

/* Lang Dropdown */
body.is-rtl .lang-dropdown-content {
    right: auto;
    left: 0;
}
body.is-rtl .lang-dropdown-btn i {
    margin-left: 0;
    margin-right: 8px;
}

/* Blog Cards */
body.is-rtl .blog-meta span {
    margin-right: 0;
    margin-left: 15px;
}
body.is-rtl .blog-read-more i {
    margin-left: 0;
    margin-right: 8px;
    transform: rotate(180deg); /* Flip arrow */
}
body.is-rtl .blog-card-side .blog-card-image-link {
    /* If float or flex-direction needs manual override */
}

/* WooCommerce General */
body.is-rtl .woocommerce-breadcrumb {
    text-align: right;
}
body.is-rtl .woocommerce-result-count, 
body.is-rtl .woocommerce-ordering {
    float: none;
    display: inline-block;
}
body.is-rtl ul.products li.product,
body.is-rtl .product-card {
    text-align: right;
}
body.is-rtl .button i,
body.is-rtl .add_to_cart_button i {
    margin-left: 0;
    margin-right: 8px;
}

/* Fix Flex items that might be explicitly LTR */
body.is-rtl .header-icons {
    flex-direction: row-reverse;
}

/* Product Meta */
body.is-rtl .product_meta span {
    display: block;
}

/* Cart & Checkout */
body.is-rtl .woocommerce table.shop_table th, 
body.is-rtl .woocommerce table.shop_table td {
    text-align: right;
}
body.is-rtl #payment .payment_methods li {
    text-align: right;
}
body.is-rtl .woocommerce-checkout #payment ul.payment_methods li input {
    margin: 0 0 0 10px;
}

/* Force Full Width */
.container {
    max-width: 98% !important;
}





/* ==============================================================
   MOBILE RESPONSIVENESS FIXES (EXTRAJOY)
============================================================== */
@media (max-width: 768px) {
    /* Header Fixes */
    .header-main .container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 10px;
    }
    .logo { text-align: center; }
    .logo img { height: 70px !important; } /* تصغير الشعار في الموبايل */
    .header-icons {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    .search-bar { width: 100%; margin-top: 5px; }

    /* Sub Navigation (Categories menu) */
    .sub-nav .container {
        justify-content: flex-start;
        padding-top: 25px; /* إعطاء مساحة لعلامة SOON الحمراء */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sub-nav a { white-space: nowrap; padding: 5px 10px; }

    /* Hero Section Fixes */
    .hero-title {
        font-size: 2.2rem !important; /* تصغير الخط العملاق */
        line-height: 1.2 !important;
        margin-bottom: 15px;
    }
    
    /* Delivery Table Fix */
    .table-wrapper, .livraison-table-wrapper {
        overflow-x: auto; /* السماح بتمرير الجدول يميناً ويساراً بدلاً من قصه */
        display: block;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    table.livraison-table, table.shop_table {
        min-width: 500px; 
    }

    /* Features / Values Cards */
    .features-bar { flex-direction: column; }
    .feature-card { width: 100%; margin-bottom: 15px; }
}






/* Unhide Nav Menu on Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: block !important;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background-color: white;
        border-top: 1px solid #f1f5f9;
        padding: 10px 0;
    }
    .nav-menu .container {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .nav-menu a, .header-dropdown-btn {
        white-space: nowrap;
        font-size: 0.9rem;
    }
}
