/**
 * WooCommerce / Shop archive styles
 * Matches screencapture-shop-pages design
 */

.alsaeed-shop-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.alsaeed-shop-banner--single {
  min-height: 220px;
}

.alsaeed-shop-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.55);
  z-index: 1;
}

.alsaeed-shop-banner__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}

.alsaeed-shop-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.alsaeed-breadcrumb,
.woocommerce-breadcrumb.alsaeed-breadcrumb {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.alsaeed-breadcrumb a,
.woocommerce-breadcrumb.alsaeed-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.alsaeed-breadcrumb a:hover,
.woocommerce-breadcrumb.alsaeed-breadcrumb a:hover {
  color: var(--gold);
}

.alsaeed-breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.7;
}

.alsaeed-shop-archive-wrap {
  background: #fff;
}

.alsaeed-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.alsaeed-shop-toolbar .woocommerce-result-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.alsaeed-shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.alsaeed-shop-toolbar .woocommerce-ordering select {
  border: 1px solid var(--line);
  padding: 8px 36px 8px 12px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  min-width: 160px;
}

/* Product grid */
.alsaeed-shop-archive ul.products,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  clear: both;
}

.alsaeed-shop-archive ul.products::before,
.alsaeed-shop-archive ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.alsaeed-shop-archive ul.products li.product,
.woocommerce ul.products li.product,
.alsaeed-product-card {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0;
}

.alsaeed-product-card__inner {
  border: 2px solid #dbaf36;
  background: #fff;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  border-radius: 5px;
}

.alsaeed-product-card__inner:hover {
  border-color: #dbaf36;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.alsaeed-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.alsaeed-product-card__media img,
.alsaeed-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}

.alsaeed-product-card__inner:hover .alsaeed-product-card__media img {
  transform: scale(1.05);
}

.alsaeed-product-card__quick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.alsaeed-product-card__inner:hover .alsaeed-product-card__quick {
  opacity: 1;
  transform: translateY(0);
}

.alsaeed-product-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem !important;
  font-weight: 700;
  margin: 0;
  padding: 16px 14px 20px;
  line-height: 1.3;
}

.alsaeed-product-card__title a {
  color: var(--ink);
  font-weight: 700;
}

.alsaeed-product-card__title a:hover {
  color: var(--gold);
}

/* Hide default Woo loop extras on archive */
.alsaeed-shop-archive .price,
.alsaeed-shop-archive .button,
.alsaeed-shop-archive .added_to_cart,
.alsaeed-shop-archive .onsale,
.alsaeed-shop-archive .star-rating {
  display: none !important;
}

/* Pagination */
.woocommerce-pagination {
  margin-top: 48px;
  text-align: center;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.woocommerce-pagination ul.page-numbers span.current,
.woocommerce-pagination ul.page-numbers a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* =========================================================
   Single product (Screenshot-product-detail)
   ========================================================= */
.alsaeed-pdp-page {
  background: #fff;
  padding: 56px 0 80px;
}

.alsaeed-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px 64px;
  align-items: start;
}

.alsaeed-pdp__gallery {
  width: 100%;
}

.alsaeed-pdp__gallery .woocommerce-product-gallery {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.alsaeed-pdp__gallery .woocommerce-product-gallery__wrapper,
.alsaeed-pdp__gallery .woocommerce-product-gallery__image {
  margin: 0;
}

.alsaeed-pdp__gallery .woocommerce-product-gallery__image img,
.alsaeed-pdp__gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
}

.alsaeed-pdp__gallery .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.alsaeed-pdp__gallery .flex-control-thumbs li {
  width: 72px;
  margin: 0 !important;
}

.alsaeed-pdp__gallery .flex-control-thumbs img {
  border: 1px solid #e5e5e5;
  cursor: pointer;
}

.alsaeed-pdp__summary {
  margin: 0;
  padding-top: 8px;
}

.alsaeed-pdp__title {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.alsaeed-pdp__stock {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 500;
  color: #2e7d32;
  text-transform: lowercase;
}

.alsaeed-pdp__stock--out {
  color: #c62828;
}

.alsaeed-pdp__block {
  margin-bottom: 28px;
}

.alsaeed-pdp__heading {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.alsaeed-pdp__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.alsaeed-pdp__desc p {
  margin: 0 0 10px;
}

.alsaeed-pdp__details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}

.alsaeed-pdp__details li {
  margin: 0 0 4px;
}

.alsaeed-pdp__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}

.alsaeed-pdp__wa-text {
  margin: 28px 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

.alsaeed-pdp__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 16px 24px;
  background: #111;
  color: #fff !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.alsaeed-pdp__wa-btn i {
  font-size: 22px;
  color: #25d366;
}

.alsaeed-pdp__wa-btn:hover {
  background: #000;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Hide leftover Woo chrome on PDP */
.alsaeed-pdp .onsale,
.alsaeed-pdp .price,
.alsaeed-pdp form.cart,
.alsaeed-pdp .product_meta,
.alsaeed-pdp .woocommerce-product-rating,
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products {
  display: none !important;
}

/* Cart / checkout / account */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 30px 80px;
}

@media (max-width: 1199.98px) {
  .alsaeed-shop-archive ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .alsaeed-pdp {
    gap: 40px;
  }
}

@media (max-width: 991.98px) {
  .alsaeed-shop-banner {
    min-height: 220px;
  }

  .alsaeed-shop-archive ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .alsaeed-pdp-page {
    padding: 36px 0 56px;
  }

  .alsaeed-pdp {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .alsaeed-pdp__summary {
    padding-top: 0;
  }
}

@media (max-width: 575.98px) {
  .alsaeed-shop-banner {
    min-height: 180px;
  }

  .alsaeed-shop-banner__inner {
    padding: 40px 16px;
  }

  .alsaeed-shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .alsaeed-shop-archive ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .alsaeed-product-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 12px 8px 14px;
  }

  .alsaeed-product-card__media img {
    padding: 10px;
  }

  .alsaeed-pdp__title {
    font-size: 1.65rem;
  }

  .alsaeed-pdp__wa-btn {
    padding: 14px 18px;
    font-size: 13px;
  }
}
