@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..700&display=swap');

.top-nav {
	display: none;
}
.s-block--fixed-banner:first-of-type {
	margin: 0 !important;
}
.s-block--fixed-banner .container {
	max-width: unset !important;
	padding: 0 !important;
}
.s-product-card-image img {
	object-fit: contain;
}

.s-product-card-content-sub {
  padding-top: 11px;
  order: 2;
}
.s-product-card-content-main {
  padding-top: 11px;
  order: 1;
}
.s-product-card-content-footer.gap-2 {
  order: 3;
}
.s-product-card-price {
  font-size: 1.25rem;
  color: rgb(222 61 64);
  margin: auto;
}
.s-product-card-horizontal .s-product-card-content-title a,
.s-product-card-vertical .s-product-card-content-title a {
  line-height: 1.8rem;
  font-weight: 400;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  border-radius: 2px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 12px;
  margin-top: 60px;
  align-items: stretch;
}

.category-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  border-radius: 50%;
  color: white;
  transition: transform 0.3s ease;
}

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

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
}

.category-description {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

.category-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.category-button:hover {
  transform: translateY(-2px);
}
.subcategories-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
}

.subcategory-card {
  background: #ffffff;
  width: 300px;
  min-width: 300px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 3px solid #e2e8f0;
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.subcategory-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--color-primary);
    background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  text-align: center;
  padding: 20px;
  transition: color 0.4s ease;
}

.subcategory-card:hover .card-title {
  color: white;
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 2.5rem;
  }

  .banner-subtitle {
    font-size: 1.1rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-card {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .subcategories-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 300px;
  }

  .subcategory-card {
    width: 250px;
    height: 250px;
  }

  .card-title {
    font-size: 1.1rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .subcategory-card {
    width: 220px;
    height: 220px;
  }

  .card-title {
    font-size: 1rem;
    padding: 12px;
  }
}

body {
  font-family: 'Cairo', sans-serif;
}

.offers-wrapper {
  position: relative;
  background-color: #000;
}

.offers-wrapper .v-offers-list {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
}

.offers-wrapper .offer-item {
  animation: scroll-left 15s linear infinite forwards;
  padding: 10px 18px;
  font-size: 1rem;
}

.offers-wrapper:hover .offer-item {
  animation-play-state: paused;
}

@keyframes scroll-left {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
	.store-header  {
		z-index: unset !important;
	}
	.right-side .flex button {
		margin: 0 !important;
	}
	.topnav-link-item {
		display: flex;
		justify-content: center;
		align-items: center;
		order: -1;
		margin: 0 0.5rem;
	}
	.topnav-link-item i {
		font-size: 1.3rem;
	}
}

/* =========================================
   Custom Table Styling - Qoott Brand Identity
   ========================================= */

.salla-multi-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* هيدر الجدول برمز الهوية لمتجر قوت */
.salla-multi-table thead tr {
    background-color: #E8454D; /* لون اللوجو الأساسي */
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
}

.salla-multi-table th {
    padding: 14px 18px;
    border: none;
    text-align: right;
}

/* تنسيق خلايا صفوف الجدول */
.salla-multi-table td {
    padding: 12px 18px;
    color: #333333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

/* تبادل ألوان الصفوف (Odd/Even) */
.salla-multi-table tbody tr:nth-of-type(even) {
    background-color: #fdfbfb;
}

.salla-multi-table tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

/* تأثير التمرير (Hover Effect) بدرجة هادئة من لون الهوية */
.salla-multi-table tbody tr:hover {
    background-color: #fff4f4;
}

.salla-multi-table tbody tr:last-of-type td {
    border-bottom: none;
}

/* التجاوب مع الشاشات الصغيرة والهواتف */
@media screen and (max-width: 768px) {
    .salla-multi-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}