* {
  box-sizing: border-box
}

:root {
  --indigo: #4f46e5;
  --muted: #64748b
}

html,
body {
  margin: 0;
  padding: 60px 0 0;
  font-family: 'Cairo', system-ui, Arial;
  background: none no-repeat center center fixed;
  background-size: cover;
  color: #111827
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e5e7eb
}

header.header.transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  /* Removed background/filter from parent */
  border-bottom: none;
  z-index: 1000;
  transition: padding 0.3s ease;
  /* Specific transition */
  padding: 15px 5%;
}

/* New Pseudo-element for Background & Filter */
header.header.transparent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  transition: all 0.3s ease;
}

header.header.transparent.scrolled::before {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header.header.transparent.scrolled {
  padding: 10px 5%;
  /* No background here */
}

header.header.transparent .nav a,
header.header.transparent .brand span,
header.header.transparent .icons .icon-round {
  color: white;
  transition: color 0.3s ease;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

header.header.transparent.scrolled .nav a,
header.header.transparent.scrolled .brand span {
  color: #111827;
}

header.header.transparent.scrolled .icons .icon-round {
  color: #111827;
  border-color: #e5e7eb;
  background: white;
}

header.header.transparent .nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

header.header.transparent.scrolled .nav a.active {
  background: #eef2ff;
  color: #4f46e5;
}

header.header.transparent .nav .call-now {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

header.header.transparent.scrolled .nav .call-now {
  background: #4f46e5;
  color: white;
  border: 1px solid #4f46e5;
}

header.header.transparent .menu-toggle span {
  background: #111827 !important;
}

header.header.transparent.scrolled .menu-toggle span {
  background: #111827 !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  /* Desktop Layout: Absolute Center */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.brand span {
  font-size: 1.25em
}

/* زيادة حجم كلمة Hawn Store بنسبة 25% */
.brand img {
  width: 100px;
  height: 60px;
  border-radius: 10px;
  border: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  z-index: 2000
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease
}

/* Desktop Nav Layout */
@media (min-width: 769px) {
  .nav {
    display: flex;
    gap: 16px;
    align-items: center;
    order: 1;
    /* Left */
    margin-left: 13%;
  }

  .mobile-only {
    display: none !important;
  }
}

.nav {
  /* Common nav styles if any */
}

.icons {
  display: flex;
  gap: 10px;
  order: 3;
  /* Right */
  margin-left: auto;
}

/* Ensure Logo stays center relative to container */
.header {
  position: relative;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .header {
    justify-content: space-between !important;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    order: 2 !important;
  }

  /* Menu Toggle Left */
  .menu-toggle {
    display: flex !important;
    order: 1 !important;
    margin-right: auto;
    /* Push others to right */
  }

  /* Icons Right */
  .icons {
    order: 3 !important;
    margin-left: 0;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    z-index: 3000;
    margin: 0;
    align-items: flex-start;
  }

  .nav.open {
    left: 0;
  }

  /* Overlay when menu is open */
  .nav.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  /* Mobile Menu Header */
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }

  .nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
  }

  .nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
  }

  .nav-close:hover {
    color: #ef4444;
  }

  /* Fix Menu Colors when Header is Transparent */
  header.header.transparent .nav {
    background: #fff !important;
    color: #111827 !important;
  }

  header.header.transparent .nav a {
    color: #111827 !important;
  }

  header.header.transparent .nav .call-now {
    background: #4f46e5 !important;
    border: 1px solid #4f46e5 !important;
    color: #fff !important;
  }
}

.nav a {
  color: #111827;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px
}

.nav a.active,
.nav a:hover {
  background: #eef2ff;
  color: var(--indigo)
}

.nav .call-now {
  background: var(--indigo);
  color: #fff;
  border: 1px solid var(--indigo)
}

.nav .call-now:hover {
  filter: brightness(0.95)
}

.icons {
  display: flex;
  align-items: center;
  gap: 10px
}

.icon-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer
}

#cartIcon {
  position: relative
}

#cartCount {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  display: none;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  padding: 0 4px
}

/* Swap icons order: search then cart */
.icons .search-trigger {
  order: 1
}

.icons #cartIcon {
  order: 2
}

/* Remove Footer Text */
.footer {
  margin: 24px auto;
  color: var(--muted);
  text-align: center;
  display: none;
}

/* Hide Add to Cart on Homepage */
body.home-page .btn-add {
  display: none !important;
}

/* Fix Product Card Height on Home since button is gone */
body.home-page .card {
  padding-bottom: 15px;
}

/* Hero Slider Styles */
.hero-slider {
  width: 100%;
  margin-bottom: 0px;
  /* إزالة المسافة */
  background: #fff;
}

.slider-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  direction: ltr;
  /* Force LTR for proper slide positioning */
}

.slide {
  min-width: 100%;
  width: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 506px;
  /* زيادة من 440px بنسبة 15% */
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  /* خلفية شفافة أكثر */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  /* لون النص أبيض */
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  /* خلفية شفافة قليلاً عند hover */
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}


/* Transparent Header Styles for Homepage */
body.home-page {
  padding-top: 0;
}

header.header.transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 5%;
  /* Adjust padding for better look */
}

/* Scrolled State */
header.header.transparent.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 5%;
}

/* Links and Text Color */
header.header.transparent .nav a,
header.header.transparent .brand span,
header.header.transparent .icons .icon-round {
  color: white;
  transition: color 0.3s ease;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Scrolled Text Color */
header.header.transparent.scrolled .nav a,
header.header.transparent.scrolled .brand span {
  color: #111827;
}

header.header.transparent.scrolled .icons .icon-round {
  color: #111827;
  border-color: #e5e7eb;
  background: white;
}

/* Active Link Style */
header.header.transparent .nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

header.header.transparent.scrolled .nav a.active {
  background: #eef2ff;
  color: #4f46e5;
}

/* Call Now Button */
header.header.transparent .nav .call-now {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

header.header.transparent.scrolled .nav .call-now {
  background: #4f46e5;
  color: white;
  border: 1px solid #4f46e5;
}

/* Mobile Menu Toggle Color - Always Black */
header.header.transparent .menu-toggle span {
  background: #111827 !important;
}

header.header.transparent.scrolled .menu-toggle span {
  background: #111827 !important;
}

/* Pull Hero Slider Up */
body.home-page .hero-slider {
  margin-top: -80px !important;
  padding-top: 0 !important;
}

body.home-page .slider-container {
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body.home-page .slide img {
  height: 70vh !important;
  /* Default (Desktop) */
  object-fit: cover !important;
}

@media (max-width: 768px) {

  /* Fix Mobile Width Gap */
  body.home-page .hero-slider {
    margin-left: -16px !important;
    /* Counteract container padding */
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
  }

  /* Increase Mobile Slider Height by 10% */
  body.home-page .slide img {
    height: 80vh !important;
  }
}

@media (max-width: 768px) {
  .slide img {
    height: 250px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .slide img {
    height: 220px;
    /* زيادة من 200px بنسبة 10% */
  }

  .slider-container {
    border-radius: 8px;
  }
}

.section {
  margin-top: 0px
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.section-head h2 {
  margin: 0
}

.section-head .more {
  color: var(--indigo);
  text-decoration: none
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px
}

/* Mobile: 2 columns for products and offers */
.grid#productsGrid,
#productsGrid.grid {
  grid-template-columns: repeat(2, 1fr)
}

/* Categories and offers: 2 columns on mobile */
.grid#categoriesGrid,
#categoriesGrid.grid,
.subcategories-grid,
#offersGrid {
  grid-template-columns: repeat(2, 1fr)
}

/* Tablet and larger: 4 columns for all grids */
@media(min-width:768px) {

  .grid#categoriesGrid,
  .grid#productsGrid,
  #categoriesGrid.grid,
  #productsGrid.grid,
  .subcategories-grid,
  #offersGrid {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media(min-width:1200px) {

  .grid#categoriesGrid,
  .grid#productsGrid,
  #categoriesGrid.grid,
  #productsGrid.grid,
  .subcategories-grid,
  #offersGrid {
    grid-template-columns: repeat(4, 1fr)
  }
}

/* خاص بصفحة الأقسام - فرض 4 أعمدة */
.subcategories-grid.grid {
  grid-template-columns: repeat(2, 1fr) !important
}

@media(min-width:768px) {
  .subcategories-grid.grid {
    grid-template-columns: repeat(4, 1fr) !important
  }
}

/* Mawlah Style Card (Flat, No Border) */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: auto;
  text-align: center;
  padding-bottom: 0;
}

/* Portrait Image 3:4 */
.card img {
  width: 100%;
  aspect-ratio: 3/4;
  height: auto !important;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 12px;
}

/* Mobile optimization: better card sizing and spacing */
@media(max-width:767px) {
  .card {
    margin-bottom: 8px
  }

  .card img {
    height: 250px;
    object-fit: cover
  }

  #productsGrid.grid {
    gap: 16px;
    padding: 0 8px
  }
}

@media(min-width:1024px) {
  .card img {
    height: 230px
  }
}

/* زيادة 20% من 192px */
.card .body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  text-align: center
}

/* Mawlah Typography */
.card .title {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: #000;
  /* Black */
  text-transform: uppercase;
  /* UPPERCASE */
  text-align: center;
  line-height: 1.2;
}

.card .price {
  color: #000;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
  font-size: 1rem;
}

.card .price-block {
  margin-bottom: auto;
  text-align: center
}

.card .btn-add {
  margin-top: auto;
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 1.1em
}

.card .old {
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 8px
}

.muted {
  color: var(--muted)
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 16px
}

.toolbar input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px
}

.toolbar button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--indigo);
  background: #fff;
  color: var(--indigo);
  cursor: pointer
}

.toolbar button:hover {
  background: #eef2ff
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo)
}

.btn-primary:hover {
  filter: brightness(.95)
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444
}

/* Product gallery + thumbnails */
.p-gallery {
  position: relative
}

.p-main {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

.p-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  background: #fff
}

.p-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 20px;
  cursor: pointer
}

.p-prev {
  left: 10px
}

.p-next {
  right: 10px
}

/* Product thumbnails grid layout - Mobile optimized */
.p-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 4px;
  max-width: 100%;
}

.p-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  /* Prevent overflow */
  transition: border-color 0.2s ease;
}

.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.p-thumb.active {
  border-color: var(--indigo)
}

/* Responsive thumbnails for different screen sizes */
@media(max-width:480px) {
  .p-thumbs {
    gap: 4px;
    margin-top: 10px;
  }

  .p-thumb {
    border-radius: 4px;
    border-width: 1px;
  }
}

@media(min-width:768px) {
  .p-thumbs {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .p-thumb {
    border-radius: 8px;
  }
}

@media(min-width:1024px) {
  .p-thumbs {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  z-index: 80
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px
}

.lightbox .p-arrow {
  background: rgba(255, 255, 255, .2)
}

.lightbox .p-prev {
  right: 20px
}

.lightbox .p-next {
  left: 20px
}

.lightbox .close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111827;
  font-weight: 700;
  cursor: pointer
}

/* Product details layout */
.p-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

/* Force single column on desktop too so the image stays on top */
@media(min-width:900px) {
  .p-details {
    grid-template-columns: 1fr
  }
}

.desc-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  text-align: left;
}

.desc-list li {
  position: relative;
  padding-left: 26px;
  margin: 6px 0
}

.desc-list li:before {
  content: "\f00c";
  /* FontAwesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #16a34a
}

/* Mobile nav */
@media(max-width:768px) {
  body {
    padding-top: 0 !important;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 50
  }

  .menu-toggle {
    display: flex
  }

  /* Mobile header reorder: brand at edge (right), then icons, then menu next to cart */
  .header {
    justify-content: flex-start;
    gap: 10px
  }

  .brand {
    order: 1;
    margin-inline-start: 0
  }

  .icons {
    order: 2;
    margin-inline-start: auto
  }

  .menu-toggle {
    order: 3
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-direction: column;
    padding: 10px 16px;
    gap: 8px;
    display: none
  }

  .nav.open {
    display: flex
  }

  .nav a {
    width: 100%
  }

  .nav .call-now {
    text-align: center
  }

  /* product main image: reliable fixed square on mobile */
  .p-main {
    width: 100%;
    aspect-ratio: auto;
    display: block;
    position: relative
  }

  .p-main::before {
    content: "";
    display: block;
    padding-top: 100%
  }

  /* 1:1 square space */
  .p-main img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    background: #fff
  }
}

/* Contact page */
.contact-hero2 {
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff)
}

.contact-hero2 h1 {
  margin-top: 0;
  margin-bottom: 6px
}

.contact-hero2 p {
  margin: 0;
  color: #475569
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px
}

.contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(2, 6, 23, .06)
}

@media(min-width:992px) {
  .contact-wrap {
    grid-template-columns: 1.1fr 1fr
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff
}

.icon-phone {
  background: #16a34a
}

.icon-whatsapp {
  background: #22c55e
}

.icon-facebook {
  background: #1877f2
}

.icon-tiktok {
  background: #000
}

.icon-location {
  background: #ef4444
}

.icon-btn:hover {
  filter: brightness(.95)
}

/* Floating WhatsApp */
.wapp-float {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #16a34a;
  box-shadow: 0 6px 20px rgba(34, 197, 94, .35);
  z-index: 60;
  font-size: 22px
}

.wapp-float:hover {
  filter: brightness(.95)
}

/* Map embed */
.map-embed {
  width: 100%;
  height: 360px;
  border: 0;
  border-top: 1px solid #e5e7eb
}

@media(min-width:1024px) {
  .map-embed {
    height: 420px
  }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  display: none;
  z-index: 70
}

.search-overlay.open {
  display: block
}

.search-box {
  max-width: 760px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden
}

.search-head {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb
}

.search-head input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px
}

.search-results {
  max-height: 60vh;
  overflow: auto
}

.search-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit
}

.search-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb
}

.search-item .title {
  font-weight: 700
}

.search-item .subtitle {
  color: var(--muted);
  font-size: 14px
}

/* Desktop: icons inline after nav (beside "اتصل بنا") */
@media(min-width:769px) {
  .header {
    position: relative;
    gap: 16px
  }

  .brand {
    order: 1
  }

  .nav {
    order: 2
  }

  .icons {
    order: 3;
    position: static;
    transform: none;
    margin-inline-start: 8px
  }
}

/* Price block */
.price-block {
  margin: 8px 0 12px;
  text-align: center
}

.price-now {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  text-align: center
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b
}

.badge-discount {
  display: inline-flex;
  align-items: center;
  background: #ef4444;
  color: #fff;
  border: 1px solid #ef4444;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800
}

/* Compact price in cards and search */
.card .price-block {
  margin: 6px 0 8px;
  text-align: center
}

.card .price-now {
  font-size: 18px;
  text-align: center
}

.card .price-row {
  gap: 6px;
  justify-content: center
}

.search-item .price-block {
  margin: 4px 0 0
}

.search-item .price-now {
  font-size: 14px
}

/* Cart page styles */
.qty-btn:hover {
  background: #e5e7eb !important;
}

.qty-btn:active {
  background: #d1d5db !important;
}

.btn-remove:hover {
  background: #dc2626 !important;
}

.btn-remove:active {
  background: #b91c1c !important;
}

.search-item .badge-discount {
  padding: 1px 8px;
  font-size: 11px
}

/* Category Card Hover Effects */
.card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Category Products Page Styles */

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.empty-state p {
  margin-bottom: 2rem;
}

.empty-state a {
  background: #6366f1;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.empty-state a:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Filter Dropdown Styles */
.filter-btn {
  background: #6366f1;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.filter-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 200px;
  margin-top: 0.25rem;
  overflow: hidden;
}

.filter-option {
  width: 100%;
  text-align: right;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover {
  background: #f8fafc;
  color: #6366f1;
}

.filter-option:hover i {
  transform: scale(1.1);
}

.filter-dropdown {
  position: relative;
}

/* Hierarchical Categories Styles */
.category-section {
  margin-bottom: 2rem;
}

.main-category-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.main-category-header h2 {
  color: #374151;
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 600;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Desktop: 3-4 columns */
@media (min-width: 769px) {
  .subcategories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

/* مقاس صور الأقسام مثل المنتجات بالضبط */
@media(min-width:1024px) {
  .category-card img {
    height: 230px;
  }
}

.category-card .body {
  padding: 1rem;
}

.category-card .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.category-card .muted {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Responsive adjustments for categories */
@media (max-width: 768px) {
  .subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .main-category-header {
    padding: 0.25rem;
    margin-bottom: 1rem;
  }

  .main-category-header h2 {
    font-size: 0.95rem;
  }

  .category-section {
    margin-bottom: 1.5rem;
  }

  .category-card img {
    height: 150px;
  }
}

/* Responsive adjustments for filter */
@media (max-width: 768px) {

  /* Category products page responsive */
  .container main>div:first-child {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .container main h1.page-title {
    text-align: center;
  }

  .container main .filter-dropdown {
    align-self: center;
  }
}

/* Free Shipping Badge Styles */
.free-shipping-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #16a34a;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .free-shipping-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
    top: 6px;
    right: 6px;
  }
}

/* تحسينات للموبايل الصغير - أقل من 400px */
@media (max-width: 400px) {

  /* تصغير زر "إضافة إلى السلة" ليصبح على سطر واحد */
  .card .btn-add {
    font-size: 0.85rem !important;
    padding: 8px 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* تقليل ارتفاع الصور بنسبة 20% */
  .card img {
    height: 200px !important;
    /* بدلاً من 250px - تقليل 20% */
  }

  /* تصغير عنوان القسم وزر "عرض الكل" ليكونا على نفس السطر */
  .section-head h2 {
    font-size: 1.1rem !important;
    line-height: 1.3;
  }

  .section-head .more {
    font-size: 0.8rem !important;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f4f6;
    color: var(--indigo) !important;
  }

  /* تحسين المسافات في header القسم */
  .section-head {
    gap: 8px;
    align-items: center !important;
    margin-bottom: 10px !important;
  }

  /* تصغير حجم الخط في العناوين */
  .page-title,
  h1 {
    font-size: 1.3rem !important;
  }

  /* تحسين Grid للكروت - Mobile 2 Columns */
  .grid#offersGrid,
  #offersGrid.grid,
  .grid#productsGrid,
  #productsGrid.grid,
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Force 2 Columns on Mobile */
    gap: 10px !important;
    padding-left: 5px;
    padding-right: 5px;
  }

  /* Adjust Image Height for Mobile Portrait */
  .card img {
    height: auto !important;
    aspect-ratio: 3/4 !important;
  }

  .card .title {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  .card .price {
    font-size: 0.9rem !important;
  }
}

/* Sizes and Colors Selection Styles */
.size-option input:checked+span,
.color-option input:checked+span {
  border-color: #4f46e5;
  background: #eef2ff;
  font-weight: 600;
}

.size-option span:hover,
.color-option span:hover {
  border-color: #4f46e5;
  background: #f5f3ff;
}

.error-msg {
  animation: shake 0.5s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* =========================================
   DROPS SECTION STYLES (MAWLAH DESIGN)
   ========================================= */
.drops-section {
  padding: 30px 0;
  text-align: center;
}

.drops-section h2.section-title {
  text-align: center !important;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #000;
  letter-spacing: 1px;
}

/* Tabs */
.drops-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.drops-nav-item {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.drops-nav-item.active {
  color: #000 !important;
  border-bottom: 2px solid #000 !important;
}

.drops-nav-separator {
  display: none;
}

/* Shop Link */
.shop-link {
  display: inline-block;
  color: #000 !important;
  text-decoration: underline !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
}

/* Scroll Container */
.drops-products-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 15px;
  padding: 0 15px 20px 15px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.drops-products-container::-webkit-scrollbar {
  display: none;
}

/* Product Card */
.drops-products-container .card {
  min-width: 45%;
  max-width: 45%;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  margin: 0;
  display: block;
}

.drops-products-container .card img {
  width: 100%;
  aspect-ratio: 3/4 !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 8px;
}

.drops-products-container .card .body {
  padding: 0 !important;
  text-align: left !important;
  display: block !important;
}

.drops-products-container .card .title {
  text-align: left !important;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #000;
  line-height: 1.2;
  white-space: normal;
  width: 100%;
  display: block;
}

.drops-products-container .card .price {
  text-align: left !important;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  width: 100%;
  display: block;
}

.drops-products-container .card .price-block {
  text-align: left !important;
  justify-content: flex-start !important;
  width: 100%;
}

@media (min-width: 768px) {
  .drops-products-container .card {
    min-width: 250px;
    max-width: 250px;
  }
}

/* Separator Between Tabs */
.drops-nav-separator {
  display: inline-block !important;
  /* Show separator */
  margin: 0 8px;
  color: #d1d5db;
  /* Light Gray */
  font-weight: 400;
}

/* Force Left Align Price */
.drops-products-container .card .price-block,
.drops-products-container .card .price-row,
.drops-products-container .card .price-now,
.drops-products-container .card .price {
  justify-content: flex-start !important;
  text-align: left !important;
  display: flex !important;
  width: 100%;
}

/* Extra Sections Styles */
.extra-section {
  padding-bottom: 30px;
  text-align: center;
}

.extra-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: #000;
  text-align: center !important;
}

/* Update Separator Spacing */
.drops-nav-separator {
  margin: 0 2px !important;
  /* Reduced from 8px */
}
}