/* ========================================
   متجر مناسبة 
   Pure CSS - No External Libraries
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-red-600: #dc2626;
  --color-yellow-400: #facc15;
  --font-family: 'Noto Sans Arabic', ui-sans-serif, system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  direction: rtl;
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  overflow-x: hidden;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Top Bar ---- */
.top-bar {
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
}

.top-bar-track {
  display: flex;
  width: max-content;
  animation: topBarMarquee 18s linear infinite;
  will-change: transform;
}

.top-bar-track span {
  min-width: 100vw;
  padding: 0.5rem 2rem;
  text-align: center;
  direction: rtl;
}

@keyframes topBarMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .top-bar {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar-track {
    animation: none;
    transform: translateX(0);
  }
}

/* ---- Reels ---- */
.reels-section {
  padding: 1.5rem 0 1rem;
  background: var(--color-white);
}

.reels-header {
  margin-bottom: 1rem;
}

.reels-swiper {
  overflow: clip;
  padding: 0.25rem 0.25rem 0.75rem;
}

.reel-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 55%);
  pointer-events: none;
}

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.reel-title {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.reel-modal.active {
  display: flex;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.reel-modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  color: var(--color-white);
}

.reel-modal-content video {
  width: 100%;
  max-height: 82vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--color-black);
}

.reel-modal-content p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.reel-product-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.reel-modal-close {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: var(--shadow-md);
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 4rem;
  }
}

/* Logo */
.logo {
  flex-shrink: 0;
}

.logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .logo h1 {
    font-size: 1.5rem;
  }
}

.logo p {
  font-size: 8px;
  color: var(--color-gray-400);
  margin-top: -2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav a {
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: var(--color-gray-600);
}

.desktop-nav a.sale-link {
  color: var(--color-red-600);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .header-icons {
    gap: 0.5rem;
  }
}

.icon-btn {
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-btn:hover {
  background-color: var(--color-gray-50);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .icon-btn.desktop-only {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 8px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ---- Mobile Sidebar ---- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 24rem;
  background-color: var(--color-white);
  z-index: 70;
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-header button svg {
  width: 24px;
  height: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.sidebar-nav a {
  transition: var(--transition);
}

.sidebar-nav a:hover {
  color: var(--color-gray-600);
}

.sidebar-nav a.sale-link {
  color: var(--color-red-600);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  height: 400px;
  background-color: var(--color-gray-100);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 38%, transparent 62%, rgba(0, 0, 0, 0.22));
}

@media (min-width: 768px) {
  .hero {
    height: 600px;
  }
}

.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero--square-video {
  background-color: var(--color-black);
}

.hero--square-video video {
  position: absolute;
  top: 73%;
  left: 50%;
  width: min(100vw, 600px);
  height: auto;
  transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
  .hero--square-video video {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.hero-content {
  color: var(--color-white);
  width: min(100%, 680px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero-content h2 {
  flex: 0 0 100%;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: heroTitleFloat 2.8s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: 1.125rem;
  }
}

.hero-btn {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 0.7rem 1.45rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: var(--transition);
}

.hero-btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-7px);
    opacity: 0.86;
  }
}

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Categories Section ---- */
.categories-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .categories-section {
    padding: 5rem 0;
  }
}

.categories-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .categories-scroll {
    gap: 2rem;
  }
}

.category-item {
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.category-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .category-circle {
    width: 8rem;
    height: 8rem;
  }
}

.category-item:hover .category-circle {
  border-color: var(--color-black);
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-item p {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---- Products Grid Section ---- */
.products-section {
  padding: 3rem 0;
  background-color: var(--color-gray-50);
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.products-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-arrows {
  display: flex;
  gap: 0.5rem;
}

.nav-arrow-btn {
  padding: 0.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow-btn:hover {
  background-color: var(--color-white);
}

.nav-arrow-btn svg {
  width: 20px;
  height: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.new-products-swiper {
  overflow: clip;
  padding: 0.25rem 0.25rem 0.75rem;
}

.new-products-swiper .swiper-slide {
  height: auto;
}

.new-products-swiper .product-card {
  height: 100%;
}

.new-products-prev.swiper-button-disabled,
.new-products-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-category-products {
  padding: 0 0 3rem;
  background-color: var(--color-gray-50);
}

.home-category-section {
  padding-top: 2.5rem;
}

.home-category-section + .home-category-section {
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-gray-200);
}

.home-category-header {
  margin-bottom: 1.25rem;
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: var(--transition);
}

.section-more-link:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.home-category-grid .product-card {
  height: 100%;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Product Card ---- */
.product-card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeIn 0.5s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  z-index: 2;
}

.product-badge.new {
  background-color: var(--color-black);
  color: var(--color-white);
}

.product-badge.discount {
  background-color: var(--color-red-600);
  color: var(--color-white);
}

.product-card-fav {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-card:hover .product-card-fav {
  opacity: 1;
}

.product-card-fav svg {
  width: 18px;
  height: 18px;
}

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-quick-add {
  transform: translateY(0);
}

.quick-add-btn {
  width: 100%;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.quick-add-btn:hover {
  background-color: var(--color-gray-800);
}

.quick-add-btn svg {
  width: 16px;
  height: 16px;
}

.product-card-info {
  padding: 0.75rem;
}

.product-card-category {
  font-size: 10px;
  color: var(--color-gray-400);
  margin-bottom: 2px;
}

.product-card-name {
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.product-card-name a:hover {
  color: var(--color-gray-600);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-price .current {
  font-weight: 700;
  font-size: 1rem;
}

.product-card-price .old {
  font-size: 10px;
  color: var(--color-gray-400);
  text-decoration: line-through;
}

/* ---- Features Section ---- */
.features-section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* ---- Footer ---- */
.footer {
  background-color: var(--color-white);
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--color-gray-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 11rem;
  min-height: 3rem;
  margin-bottom: 0.875rem;
}

.footer-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 3.5rem;
  object-fit: contain;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .footer-logo {
    max-width: 13rem;
    margin-bottom: 1rem;
  }

  .footer-logo img {
    max-height: 4rem;
  }
}

.footer-store p {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  padding: 0.5rem;
  background-color: var(--color-gray-100);
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-col h5 {
  font-weight: 700;
  margin-bottom: 0.875rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.footer-links a:hover {
  color: var(--color-black);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Newsletter */
.newsletter-text {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.newsletter-form input {
  flex: 1;
  background-color: var(--color-gray-100);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 1px var(--color-black);
}

.newsletter-form button {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--color-gray-800);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    text-align: start;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.payment-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.payment-icons:hover {
  filter: grayscale(0);
  opacity: 1;
}

.payment-icons img {
  height: 1.25rem;
}

@media (max-width: 767px) {
  .footer-store {
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col {
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-100);
  }

  .footer-contact li {
    align-items: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    min-height: 2.75rem;
  }
}

@media (min-width: 768px) {
  .payment-icons {
    gap: 1rem;
  }

  .payment-icons img {
    height: 1.5rem;
  }
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

/* ========================================
   Category Page Styles
   ======================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  font-size: 10px;
  color: var(--color-gray-400);
  margin-bottom: 1rem;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .breadcrumbs {
    font-size: 0.75rem;
  }
}

.breadcrumbs a:hover {
  color: var(--color-black);
}

.breadcrumbs .current {
  color: var(--color-black);
  font-weight: 500;
}

/* Category Layout */
.category-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

@media (min-width: 768px) {
  .category-layout {
    flex-direction: row;
    padding: 2rem 0;
  }
}

/* Sidebar Filters */
.filters-sidebar {
  display: none;
  width: 14rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .filters-sidebar {
    display: block;
  }
}

.filters-box {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--color-gray-100);
  border-radius: 0.75rem;
  padding: 1rem;
}

.filters-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters-title svg {
  width: 16px;
  height: 16px;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0.5rem;
}

.filter-group h4 {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.filter-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.filter-group ul a {
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.filter-group ul a:hover,
.filter-group ul a.active {
  color: var(--color-black);
  font-weight: 700;
}

.filter-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  width: 0.75rem;
  height: 0.75rem;
  accent-color: var(--color-black);
}

/* Category Products */
.category-main {
  flex: 1;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.category-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.category-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-count {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  display: none;
}

@media (min-width: 768px) {
  .product-count {
    display: inline;
  }
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-gray-200);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.sort-btn:hover {
  background-color: var(--color-gray-50);
}

.sort-btn svg {
  width: 14px;
  height: 14px;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .category-products-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .category-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.empty-state {
  text-align: center;
  padding: 5rem 0;
  background-color: var(--color-gray-50);
  border-radius: 1rem;
  color: var(--color-gray-400);
}

/* ========================================
   Product Page Styles
   ======================================== */

.product-page {
  padding: 1rem 0 2rem;
}

@media (min-width: 768px) {
  .product-page {
    padding: 2rem 0;
  }
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Product Images */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-main-image {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--color-gray-100);
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .product-main-image {
    margin: 0;
  }
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-action {
  position: absolute;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-action:hover {
  background-color: var(--color-white);
}

.product-img-action svg {
  width: 18px;
  height: 18px;
}

.product-img-action.fav {
  top: 0.75rem;
  left: 0.75rem;
}

.product-img-action.share {
  top: 0.75rem;
  right: 0.75rem;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .product-thumbs {
    margin: 0;
  }
}

.product-thumb {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-gray-100);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--color-black);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: var(--transition);
}

.product-thumb:hover img,
.product-thumb.active img {
  opacity: 1;
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-meta-category {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 1.5rem;
  }
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.product-rating .product-availability {
  margin-top: 0;
}

.stars {
  display: flex;
  align-items: center;
  color: var(--color-yellow-400);
}

.stars svg {
  width: 14px;
  height: 14px;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.product-price-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-price-current {
  font-size: 1.5rem;
  font-weight: 700;
}

.product-price-old {
  font-size: 1rem;
  color: var(--color-gray-400);
  text-decoration: line-through;
}

.product-description {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Sizes */
.sizes-section {
  margin-bottom: 1.5rem;
}

.sizes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.sizes-header h4 {
  font-weight: 700;
  font-size: 0.875rem;
}

.sizes-header button {
  font-size: 10px;
  text-decoration: underline;
  color: var(--color-gray-400);
}

.sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.size-btn:hover {
  border-color: var(--color-black);
}

.size-btn.active {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Quantity & Cart */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cart-actions {
    flex-direction: row;
  }
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  height: 3rem;
}

.quantity-selector button {
  width: 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: var(--transition);
}

.quantity-selector button:hover {
  background-color: var(--color-gray-50);
}

.quantity-selector span {
  width: 2.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.add-to-cart-btn {
  flex: 1;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background-color: var(--color-gray-800);
}

.add-to-cart-btn svg {
  width: 18px;
  height: 18px;
}

.buy-now-btn {
  flex: 1;
  background-color: transparent;
  color: #161616;
  border: 1px solid #6f6f6f;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.buy-now-btn:hover {
  background-color: var(--color-red-50);
}

.buy-now-btn svg {
  width: 18px;
  height: 18px;
}

.add-to-cart-card-btn {
  width: 100%;
  background-color: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.add-to-cart-card-btn:hover {
  background-color: var(--color-gray-50);
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--color-gray-50);
  border-radius: 0.75rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.trust-badge:nth-child(2) {
  border-left: 1px solid var(--color-gray-200);
  border-right: 1px solid var(--color-gray-200);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-gray-400);
}

.trust-badge-text {
  font-size: 9px;
}

.trust-badge-text p:first-child {
  font-weight: 700;
}

.trust-badge-text p:last-child {
  color: var(--color-gray-500);
}

/* Product Info Boxes */
.product-info-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.product-info-box {
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  background: var(--color-white);
  overflow: hidden;
}

.product-info-box summary {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.product-info-box summary::-webkit-details-marker {
  display: none;
}

.product-info-box summary::after {
  content: "+";
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-gray-500);
}

.product-info-box[open] summary::after {
  content: "-";
}

.product-info-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--color-gray-50);
  color: var(--color-black);
}

.product-info-icon svg {
  width: 18px;
  height: 18px;
}

.product-info-content {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--color-gray-600);
  overflow-wrap: anywhere;
}

/* Related Products */
.related-section {
  margin-bottom: 2rem;
}

.related-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Checkout Page ---- */
.checkout-page {
  width: 100%;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.checkout-summary {
  position: sticky;
  top: 5.5rem;
}

.checkout-page input,
.checkout-page textarea,
.checkout-page select {
  max-width: 100%;
}

.checkout-option {
  min-width: 0;
}

.checkout-option > div {
  min-width: 0;
}

.checkout-option strong,
.checkout-option p,
.checkout-summary-row span {
  overflow-wrap: anywhere;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  transition: all 0.3s;
}

.pagination .page-link:hover,
.pagination .page-link.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* ---- Mobile Responsive Overrides ---- */
@media (max-width: 640px) {

  /* Checkout form: stack columns */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .checkout-page {
    padding: 1rem 0.75rem 2rem !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .checkout-page h2 {
    font-size: 1.25rem !important;
    line-height: 1.5;
    margin-bottom: 1.25rem !important;
  }

  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .checkout-main {
    gap: 1rem !important;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-card {
    padding: 1rem !important;
    border-radius: 0.5rem !important;
  }

  .checkout-card h3 {
    font-size: 1rem !important;
    line-height: 1.5;
    margin-bottom: 0.75rem !important;
  }

  .checkout-fields {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .checkout-page input[type="text"],
  .checkout-page input[type="tel"],
  .checkout-page input[type="email"],
  .checkout-page select,
  .checkout-page textarea {
    width: 100% !important;
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem !important;
    font-size: 0.875rem;
  }

  .checkout-page textarea {
    min-height: 5.25rem;
  }

  .checkout-option {
    align-items: flex-start !important;
    gap: 0.6rem !important;
    padding: 0.75rem !important;
  }

  .checkout-option input[type="radio"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
  }

  .checkout-option > div {
    flex: 1;
  }

  .checkout-option strong {
    display: block;
    line-height: 1.5;
  }

  .checkout-option p {
    line-height: 1.6;
  }

  .checkout-option > span {
    flex-shrink: 0;
    max-width: 38%;
    text-align: left;
    line-height: 1.5;
  }

  .checkout-summary-row {
    gap: 0.75rem;
    align-items: flex-start;
  }

  .checkout-summary-row span:first-child {
    flex: 1;
  }

  .checkout-summary-row span:last-child {
    flex-shrink: 0;
    text-align: left;
  }

  .checkout-total-row {
    font-size: 1rem !important;
  }

  .checkout-submit {
    width: 100% !important;
    min-height: 3.25rem !important;
    height: auto !important;
    font-size: 0.95rem !important;
    line-height: 1.4;
  }

  /* Product page: full width */
  .product-page {
    padding: 0.5rem 0 2rem;
    overflow: hidden;
  }

  .container.product-page {
    padding-right: 0;
    padding-left: 0;
  }

  .product-page *,
  .product-page *::before,
  .product-page *::after {
    min-width: 0;
  }

  .product-page .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.8;
  }

  .product-page .breadcrumbs .current {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .product-layout {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .product-main-image {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .product-thumbs {
    max-width: 100%;
    padding: 0 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-thumb {
    border-radius: 0.4rem;
  }

  .product-details {
    width: 100%;
    padding: 0 0.75rem;
    text-align: right;
    align-items: stretch;
  }

  .product-meta-category,
  .product-title,
  .product-description,
  .product-availability,
  .sizes-section,
  .cart-actions,
  .product-info-boxes,
  .trust-badges {
    max-width: 100%;
  }

  .product-title {
    font-size: 1.125rem;
    line-height: 1.55;
    margin-bottom: 0.4rem;
  }

  .product-rating {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
  }

  .product-rating .stars {
    flex-shrink: 0;
  }

  .rating-count {
    line-height: 1.5;
  }

  .product-price-area {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .product-price-current {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .product-price-old {
    font-size: 0.9rem;
  }

  .product-description {
    line-height: 1.75;
    margin-bottom: 1.25rem;
    overflow-wrap: anywhere;
  }

  .sizes-section {
    margin-bottom: 1.25rem;
  }

  .sizes-grid {
    gap: 0.4rem;
  }

  .size-btn {
    width: auto;
    min-width: 2.35rem;
    padding: 0 0.65rem;
  }

  .cart-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .quantity-selector {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .quantity-selector button,
  .quantity-selector span {
    width: 3rem;
  }

  .add-to-cart-btn,
  .buy-now-btn {
    min-width: 0;
    min-height: 3rem;
    padding: 0.7rem 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }

  .add-to-cart-btn svg,
  .buy-now-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .trust-badges {
    padding: 0.75rem;
    gap: 0.35rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-badge {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    gap: 0.25rem;
  }

  .trust-badge:nth-child(2) {
    border-right: 1px solid var(--color-gray-200);
    border-left: 1px solid var(--color-gray-200);
    border-top: 0;
    border-bottom: 0;
    padding: 0;
  }

  .trust-badge-text {
    font-size: 9px;
    line-height: 1.5;
  }

  .product-long-description,
  .product-reviews-section,
  .related-section {
    margin: 0 0.75rem 2rem !important;
  }

  .product-long-description,
  .product-review-form-card {
    padding: 1rem !important;
    border-radius: 0.5rem !important;
  }

  .product-long-description h3,
  .product-reviews-section h3,
  .related-section h3 {
    font-size: 1rem !important;
    line-height: 1.6;
    margin-bottom: 1rem !important;
  }

  .product-long-description-content {
    line-height: 1.85 !important;
    overflow-wrap: anywhere;
  }

  .product-review-meta {
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 0.35rem 0.5rem !important;
  }

  .product-review-item p {
    overflow-wrap: anywhere;
    line-height: 1.8;
  }

  .product-review-fields {
    grid-template-columns: 1fr !important;
  }

  #reviewForm input,
  #reviewForm select,
  #reviewForm textarea,
  .product-review-submit {
    width: 100% !important;
  }

  .product-review-submit {
    display: block;
    padding: 0.75rem 1rem !important;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .related-grid .product-card-info {
    padding: 0.7rem;
  }

  .related-grid .product-card-name {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .related-grid .product-card-price {
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
  }

  .related-grid .add-to-cart-card-btn {
    min-height: 2.5rem;
    padding: 0.45rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: normal;
  }

  /* Cart item layout */
  .cart-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .add-to-cart-btn,
  .buy-now-btn {
    font-size: 0.75rem;
  }

  .related-grid {
    gap: 0.55rem;
  }

  .related-grid .product-card-info {
    padding: 0.55rem;
  }

  .related-grid .add-to-cart-card-btn svg {
    display: none;
  }
}

/* ---- Feature 1: Nav Dropdown for Subcategories ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 0.75rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  padding: 0;
  transition: var(--transition);
}

.nav-dropdown-toggle:hover {
  color: var(--color-gray-600);
}

.nav-dropdown-toggle svg {
  transition: transform 0.3s;
}

.nav-dropdown.active .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--color-gray-50);
}

/* Mobile Sidebar Submenu */
.sidebar-menu-item {
  display: flex;
  flex-direction: column;
}

.sidebar-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  padding: 0;
  text-align: right;
}

.sidebar-submenu-toggle svg {
  transition: transform 0.3s;
}

.sidebar-menu-item.active .sidebar-submenu-toggle svg {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
}

.sidebar-menu-item.active .sidebar-submenu {
  display: flex;
}

/* Feature 4: Hide quick-add hover overlay (kept for backward compat) */
.product-quick-add {
  display: none !important;
}

/* ---- Styled Currency ---- */
.currency-symbol,
.currency-sar {
  font-size: 0.65em;
  font-weight: 400;
  vertical-align: baseline;
  opacity: 0.7;
  letter-spacing: 0.02em;
  margin-right: 2px;
}

.product-price-current .currency-symbol,
.product-price-current .currency-sar {
  font-size: 0.5em;
  font-weight: 500;
}

.product-card-price .current .currency-symbol,
.product-card-price .current .currency-sar {
  font-size: 0.7em;
}

/* ---- Availability Badge ---- */
.product-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.product-availability.in-stock {
  color: #16a34a;
}

.product-availability.in-stock svg {
  color: #16a34a;
}

.product-availability.out-of-stock {
  color: #dc2626;
}

.product-availability.out-of-stock svg {
  color: #dc2626;
}

/* ---- Floating Contact Buttons (WhatsApp + Call) ---- */
.floating-contact {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .floating-contact {
    bottom: 1.75rem;
    left: 1.75rem;
    gap: 0.9rem;
  }
}

.floating-contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
}

@media (min-width: 768px) {
  .floating-contact-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.floating-contact-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.55;
  animation: floatingPulse 2.2s ease-out infinite;
  pointer-events: none;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.floating-contact-btn:hover::before {
  animation-play-state: paused;
  opacity: 0.75;
}

.floating-contact-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .floating-contact-btn svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}

.floating-contact-btn .tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-md);
}

.floating-contact-btn .tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-black);
}

.floating-contact-btn:hover .tooltip,
.floating-contact-btn:focus-visible .tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.floating-contact-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-contact-btn.whatsapp::before {
  background: #25D366;
}

.floating-contact-btn.call {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.floating-contact-btn.call::before {
  background: #3b82f6;
}

@keyframes floatingPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-btn::before {
    animation: none;
    opacity: 0;
  }

  .floating-contact-btn:hover {
    transform: none;
  }
}
