/* ==========================================================
   WOOCOMMERCE — SHOP / PRODUCT GRID
   Add this to omac-style.css (loaded after the theme stylesheet,
   so these rules win without needing !important everywhere)
   ========================================================== */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 2rem 0 !important;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid #eae5de;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #ff5500;
}

.woocommerce ul.products li.product a {
  text-decoration: none;
  color: inherit;
}

.woocommerce ul.products li.product img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0b0f19;
  margin: 0.5rem 0 0.3rem;
}

.woocommerce ul.products li.product .price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff5500;
}

/* "View product" pill on hover instead of the removed add-to-cart button */
.woocommerce ul.products li.product::after {
  content: "View Product →";
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
}

/* ==========================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ========================================================== */

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

.woocommerce div.product .woocommerce-product-gallery {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eae5de;
}

.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 0;
}

.woocommerce div.product .summary.entry-summary {
  padding-top: 0.5rem;
}

.woocommerce div.product .summary.entry-summary .product_title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0b0f19;
  margin-bottom: 0.8rem;
}

.woocommerce div.product .summary.entry-summary .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff5500;
  margin-bottom: 1.2rem;
  display: block;
}

.woocommerce div.product .summary.entry-summary .woocommerce-product-details__short-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 1.5rem;
}

.woocommerce div.product .summary.entry-summary .sku_wrapper,
.woocommerce div.product .summary.entry-summary .posted_in,
.woocommerce div.product .summary.entry-summary .tagged_as {
  display: block;
  font-size: 0.8rem;
  color: #888888;
  margin-top: 0.4rem;
}

.woocommerce div.product .summary.entry-summary .posted_in a,
.woocommerce div.product .summary.entry-summary .tagged_as a {
  color: #000000;
  text-decoration: underline;
}

/* Your WhatsApp "Request a Quote" button injected via omac_request_quote_button() */
.omac-quote-btn-wrap {
  margin-top: 1.5rem;
}

.omac-quote-btn-wrap a {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: #000000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1rem 1.8rem !important;
  border-radius: 3px !important;
  transition: background 0.2s ease;
}

.omac-quote-btn-wrap a:hover {
  background: #ff5500 !important;
}

/* Tabs (description / additional info / reviews) */
.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 2rem;
  border-top: 1px solid #eae5de;
  padding-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid #eae5de;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  text-decoration: none;
  color: #888888;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.8rem;
  display: inline-block;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #000000;
  border-bottom: 2px solid #ff5500;
}

/* Related products — reuse the same grid treatment as the shop loop */
.woocommerce div.product .related.products {
  grid-column: 1 / -1;
  margin-top: 3rem;
}

.woocommerce div.product .related.products > h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
  }
}

/* ==========================================================
   FIX: shop page padding + overflow (breadcrumb / title / result count)
   Append to omac-style.css
   ========================================================== */

.omac-woo-wrapper {
  padding: 0 4vw;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: hidden;
}

.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #888888;
  margin: 1.5rem 0 1rem;
}

.woocommerce-breadcrumb a {
  color: #000000;
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: #ff5500;
}

.woocommerce h1.page-title,
.woocommerce-page h1.page-title {
  font-size: 2rem;
  font-weight: 900;
  color: #0b0f19;
  margin: 0 0 1.5rem;
}

.woocommerce-result-count,
.woocommerce-ordering {
  display: inline-block;
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 1.5rem;
}

.woocommerce-ordering select {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #eae5de;
}

@media (max-width: 600px) {
  .omac-woo-wrapper {
    padding: 0 20px;
  }
}

/* ==========================================================
   FIX: padding for the [products] shortcode wherever it's used
   (homepage, or any other Elementor page) — not just the Shop archive.
   Append to omac-style.css
   ========================================================== */

.woocommerce.columns-4 {
  padding: 0 4vw;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .woocommerce.columns-4 {
    padding: 0 20px;
  }
}
