.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary-current);
  margin-bottom: 28px;
  line-height: 1.8;
}
.google-play-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: white;
  border: none;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(26, 115, 232, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.google-play-btn-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}
.google-play-btn-large:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(26, 115, 232, 0.6);
}
.google-play-btn-large:hover::before {
  left: 100%;
}
.google-play-btn-large:active {
  transform: translateY(-3px) scale(1.01);
}
.google-play-btn-large .google-play-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.google-play-btn-large .google-play-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.google-play-btn-large .google-play-store {
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.4);
  }
  50% {
    box-shadow: 0 8px 40px rgba(26, 115, 232, 0.7);
  }
}
.hero-image img {
  width: min(70%, 420px);
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 32px var(--shadow-color-current);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
.section {
  margin-bottom: 60px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  direction: rtl;
  width: 100%;
}

.products-grid .product-card {
  flex: 1 1 calc(25% - 21px); /* 4 items per row */
  max-width: calc(25% - 21px);
}

@media (max-width: 1200px) {
  .products-grid .product-card {
    flex: 1 1 calc(33.333% - 19px); /* 3 items per row */
    max-width: calc(33.333% - 19px);
  }
}

@media (max-width: 992px) {
  .products-grid .product-card {
    flex: 1 1 calc(50% - 14px); /* 2 items per row */
    max-width: calc(50% - 14px);
  }
}

@media (max-width: 576px) {
  .products-grid .product-card {
    flex: 1 1 100%; /* 1 item per row on very small screens */
    max-width: 100%;
  }
}
.product-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-color-current);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px var(--shadow-color-current);
}
.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.product-description {
  font-size: 14px;
  color: var(--text-secondary-current);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2; /* Standard property for modern browsers */
}
.product-price {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sale-price {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 20px;
}
.original-price {
  color: var(--text-tertiary-current);
  text-decoration: line-through;
  font-size: 16px;
}
.product-stock {
  font-size: 14px;
  color: var(--text-secondary-current);
}
.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  flex: 1;
}
.icon-btn-small {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-secondary-current);
  font-size: 18px;
  border: none;
  cursor: pointer;
}
.icon-btn-small:hover {
  color: var(--error);
  background: rgba(220, 53, 69, 0.1);
}

.icon-btn-small.favorite-active {
  color: var(--error);
  background: rgba(220, 53, 69, 0.15);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: var(--bg);
  border-radius: 10px;
  padding: 6px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-color-current);
  color: var(--text-primary-current);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.quantity-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary-current);
  min-width: 24px;
  text-align: center;
}

/* Home Categories Section */
.section.categories-section {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 202, 240, 0.05));
}

/* Home Categories Grid & Cards */
#home-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  direction: rtl;
  width: 100%;
}

#home-categories-grid .home-category-card {
  flex: 1 1 calc(20% - 13px); /* 5 items per row */
  max-width: calc(20% - 13px);
}

@media (max-width: 1200px) {
  #home-categories-grid .home-category-card {
    flex: 1 1 calc(25% - 12px); /* 4 items per row */
    max-width: calc(25% - 12px);
  }
}

@media (max-width: 992px) {
  #home-categories-grid .home-category-card {
    flex: 1 1 calc(33.333% - 11px); /* 3 items per row */
    max-width: calc(33.333% - 11px);
  }
}

@media (max-width: 768px) {
  #home-categories-grid .home-category-card {
    flex: 1 1 calc(50% - 8px); /* 2 items per row */
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 576px) {
  #home-categories-grid .home-category-card {
    flex: 1 1 100%; /* 1 item per row on very small screens */
    max-width: 100%;
  }
}

.home-category-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-color-current);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.home-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px var(--shadow-color-current);
}

.home-category-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.home-category-name {
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary-current);
}



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

  .hero-subtitle {
    margin-inline: auto;
    max-width: 680px;
  }
}

@media (max-width: 576px) {
  .hero {
    margin-bottom: 36px;
  }

  .hero-image img {
    width: 100%;
  }

  .section {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

/* Shimmer Loading Styles */
.shimmer {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.home-category-card-shimmer {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-color-current);
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(20% - 13px);
  max-width: calc(20% - 13px);
}

@media (max-width: 1200px) {
  .home-category-card-shimmer {
    flex: 1 1 calc(25% - 12px);
    max-width: calc(25% - 12px);
  }
}

@media (max-width: 992px) {
  .home-category-card-shimmer {
    flex: 1 1 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

@media (max-width: 768px) {
  .home-category-card-shimmer {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 576px) {
  .home-category-card-shimmer {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.category-image-shimmer {
  width: 100%;
  height: 160px;
}

.category-name-shimmer {
  height: 28px;
  margin: 16px;
  border-radius: 8px;
}

.product-card-shimmer {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-color-current);
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(25% - 21px);
  max-width: calc(25% - 21px);
}

@media (max-width: 1200px) {
  .product-card-shimmer {
    flex: 1 1 calc(33.333% - 19px);
    max-width: calc(33.333% - 19px);
  }
}

@media (max-width: 992px) {
  .product-card-shimmer {
    flex: 1 1 calc(50% - 14px);
    max-width: calc(50% - 14px);
  }
}

@media (max-width: 576px) {
  .product-card-shimmer {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.product-image-shimmer {
  width: 100%;
  height: 200px;
}

.product-info-shimmer {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name-shimmer {
  height: 24px;
  border-radius: 6px;
  width: 70%;
}

.product-description-shimmer {
  height: 18px;
  border-radius: 6px;
  width: 100%;
}

.product-price-shimmer {
  height: 24px;
  border-radius: 6px;
  width: 50%;
}

.product-stock-shimmer {
  height: 18px;
  border-radius: 6px;
  width: 40%;
}
