/* Add custom CSS styles below */ 
/**
 * Stick Care — category layout for the Selia home-page product block.
 * Paste this file into: Salla > Theme customization > Advanced > CSS.
 */

:root {
  --stick-ink: #111827;
  --stick-muted: #6b7280;
  --stick-line: #e7e7e7;
  --stick-card-bg: #ffffff;
  --stick-radius: 18px;
}

/* The original single "المنتجات" heading and source grid are replaced by JS. */
.stick-home-catalog .stick-original-title,
.stick-home-catalog .stick-source-list {
  display: none !important;
}

.stick-home-catalog {
  max-width: 1280px;
  padding-top: 28px !important;
  padding-bottom: 56px !important;
}

.stick-split-catalog {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.stick-category__heading {
  margin-bottom: 24px;
  text-align: right;
}

.stick-category__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 10px;
  color: var(--stick-ink);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.stick-category__title::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary, #00636b);
}

.stick-category__subtitle {
  margin: 10px 0 0;
  color: var(--stick-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.stick-category__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Keep native Salla functionality, but turn Selia's horizontal cards vertical. */
.stick-category__grid custom-salla-product-card.stick-category-card {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  flex-direction: column !important;
  overflow: hidden;
  border: 1px solid var(--stick-line) !important;
  border-radius: var(--stick-radius) !important;
  background: var(--stick-card-bg) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045) !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stick-category__grid custom-salla-product-card.stick-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09) !important;
}

.stick-category__grid .product-card__image {
  width: 100% !important;
  min-width: 100% !important;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0 !important;
  background: #f6f6f6;
}

.stick-category__grid .product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.stick-category__grid .product-card__content {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px !important;
}

.stick-category__grid .product-card__title {
  min-height: 2.9em;
  color: var(--stick-ink) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.stick-category__grid .product-card__promotion {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  max-width: calc(100% - 24px);
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
}

.stick-category__grid .product-card__actions {
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
}

@media (max-width: 1023px) {
  .stick-category__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .stick-home-catalog {
    padding-top: 20px !important;
    padding-bottom: 42px !important;
  }

  .stick-split-catalog {
    gap: 52px;
  }

  .stick-category__heading {
    margin-bottom: 16px;
  }

  .stick-category__title {
    font-size: 1.55rem;
  }

  .stick-category__subtitle {
    font-size: 0.9rem;
  }

  .stick-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stick-category__grid custom-salla-product-card.stick-category-card {
    border-radius: 14px !important;
  }

  .stick-category__grid .product-card__content {
    padding: 11px !important;
  }

  .stick-category__grid .product-card__title {
    font-size: 0.88rem !important;
  }

  .stick-category__grid .product-card__promotion {
    top: 8px !important;
    right: 8px !important;
    max-width: calc(100% - 16px);
    padding: 5px 7px !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 370px) {
  .stick-category__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stick-category__grid custom-salla-product-card.stick-category-card {
    transition: none;
  }
}

/* ===== الهيدر ===== */

.store-header .theme-toggle {
  display: none !important;
}

@media (min-width: 1024px) {
  .store-header .header__main-container.hidden .header__main-row {
    position: relative !important;
  }

  .store-header .header__main-container.hidden .header__main-start,
  .store-header .header__main-container.hidden .header__main-end {
    width: 33.333% !important;
  }

  .store-header .header__main-container.hidden .header__main-end {
    margin-inline-start: auto !important;
  }

  .store-header
  .header__main-container.hidden
  .header__main-start
  > .navbar-brand {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    z-index: 5;
    display: flex !important;
    height: 65px !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%) !important;
  }
}


/* ===== زر إضافة للسلة ===== */

.stick-category-card .product-card__content-wrapper {
  display: flex !important;
  height: 100%;
  flex-direction: column;
}

.stick-category-card .product-card__buttons {
  display: flex !important;
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 16px;
}

.stick-category-card .product-card__buttons .wishlist,
.stick-category-card .product-card__buttons .quickview-btn {
  display: none !important;
}

.stick-category-card .product-card__buttons .addToCart,
.stick-category-card .product-card__buttons .addToCart__btn,
.stick-category-card .product-card__buttons .addToCart__btn > div,
.stick-category-card .product-card__buttons .addToCart salla-button {
  display: block !important;
  width: 100% !important;
}

.stick-category-card
.product-card__buttons
.addToCart
.s-button-element {
  display: flex !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #004956 !important;
  border-radius: 12px !important;
  background: #004956 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.stick-category-card
.product-card__buttons
.addToCart
.s-button-element:hover {
  border-color: #003943 !important;
  background: #003943 !important;
}

.stick-category-card
.product-card__buttons
.addToCart
.s-button-text {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stick-category-card
.product-card__buttons
.addToCart
.s-button-text::after {
  content: "إضافة للسلة";
}

.stick-category-card .product-card__addToCart.mobile {
  display: none !important;
}


/* ===== الفوتر ===== */

footer.store-footer {
  margin-top: 80px !important;
  background: #ffffff !important;
  color: #374151 !important;
}

footer.store-footer .store-footer__inner {
  padding: 64px 0 32px !important;
  background: #ffffff !important;
  color: #374151 !important;
}

footer.store-footer .store-footer__grid {
  color: #374151 !important;
}

footer.store-footer .store-footer__menu-title {
  margin-bottom: 24px !important;
  color: #004956 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

footer.store-footer .store-footer__menu-link,
footer.store-footer .footer-description,
footer.store-footer .store-footer__sbc-link,
footer.store-footer .s-trust-badges-label,
footer.store-footer .s-trust-badges-number {
  color: #4b5563 !important;
}

footer.store-footer .store-footer__menu-link:hover {
  color: #004956 !important;
}

footer.store-footer .store-footer__brand img {
  width: 120px !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain;
}

footer.store-footer .footer-description {
  max-width: 430px;
  margin-right: auto !important;
  margin-left: auto !important;
  line-height: 1.9 !important;
}

footer.store-footer .store-footer__contacts-row {
  padding: 18px 0 !important;
  border-top: 1px solid #eef0f1;
  background: #ffffff !important;
  color: #374151 !important;
}

footer.store-footer .enhanced-contact-item {
  border-color: #e5e7eb !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #004956 !important;
}

footer.store-footer .s-social-icon,
footer.store-footer .s-social-icon svg {
  color: #004956 !important;
  fill: #004956 !important;
}

footer.store-footer .footer-bottom {
  border-top: 1px solid #eef0f1;
  background: #f9fafb !important;
  color: #374151 !important;
}

footer.store-footer .footer-bottom,
footer.store-footer .footer-bottom a,
footer.store-footer .footer-rights,
footer.store-footer .footer-rights p {
  color: #6b7280 !important;
}


/* ===== النشرة البريدية ===== */

footer.store-footer .store-footer__newsletter {
  width: calc(100% - 60px);
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 32px 24px !important;
  border-radius: 20px !important;
  background: #f8f5ef !important;
  color: #374151 !important;
}

footer.store-footer .store-footer__newsletter-title {
  color: #004956 !important;
}

footer.store-footer .store-footer__newsletter-input {
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

footer.store-footer .store-footer__newsletter-btn {
  border: 1px solid #004956 !important;
  background: #004956 !important;
  color: #ffffff !important;
}


/* ===== الجوال ===== */

@media (max-width: 767px) {
  footer.store-footer {
    margin-top: 56px !important;
  }

  footer.store-footer .store-footer__inner {
    padding: 44px 0 24px !important;
  }

  footer.store-footer .store-footer__newsletter {
    width: calc(100% - 24px);
    padding: 24px 16px !important;
  }

  .stick-category-card .product-card__buttons {
    padding-top: 12px;
  }

  .stick-category-card
  .product-card__buttons
  .addToCart
  .s-button-element {
    height: 46px !important;
    font-size: 13px !important;
  }
}


/* خلفية بطاقات المنتجات */
custom-salla-product-card.product-card {
  --product-bg: #fff;
  background: #fff !important;
}

custom-salla-product-card.product-card .product-card__content {
  background: #fff !important;
}

/* لون زر السلة ونصه */
custom-salla-product-card.product-card
salla-add-product-button .s-button-element {
  background: #004956 !important;
  border-color: #004956 !important;
  color: #fff !important;
}

/* لون الزر عند مرور المؤشر */
custom-salla-product-card.product-card
salla-add-product-button .s-button-element:hover {
  background: #003943 !important;
  border-color: #003943 !important;
}


/* Stick Care — refresh styles v2 */