/* WooCommerce final overrides for SleekCommerce theme
   Loaded last to ensure it overrides plugin inline styles.
   This file is intended to correct layout & appearance issues for:
   - Single product page (gallery + summary)
   - Product archive / shop grid
   - Sidebar widgets and form controls
   Important: uses !important sparingly to ensure overrides take effect.
*/

/* --- Ensure coming-soon remains hidden if present --- */
.wp-block-woocommerce-coming-soon,
.woocommerce-coming-soon-default,
body[meta~="woo-coming-soon-page"] .wp-block-woocommerce-coming-soon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* --- Base tweaks --- */
body, .woocommerce {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* --- Single product layout --- */
.single.product .site-content,
.single-product .site-content,
.woocommerce.single .site-content {
  padding-top: 0 !important;
}

.woocommerce div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  align-items: flex-start !important;
}

/* Gallery column */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .woocommerce-product-gallery-wrapper {
  flex: 1 1 48% !important;
  max-width: 48% !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}

/* Force the gallery image to fit */
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product .woocommerce-product-gallery img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Summary column */
.woocommerce div.product .summary,
.woocommerce div.product .summary.entry-summary {
  flex: 1 1 48% !important;
  max-width: 48% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Make add-to-cart and quantity usable */
.woocommerce .quantity { margin-bottom: 1rem !important; max-width: 160px !important; }
.single_add_to_cart_button,
button.single_add_to_cart_button,
.woocommerce-page .single_add_to_cart_button {
  width: 100% !important;
  display: inline-block !important;
}

/* Product title, price spacing */
.woocommerce div.product .product_title,
.woocommerce div.product h1.product_title {
  font-size: 1.95rem !important;
  margin: 0 0 .5rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.05 !important;
}
.woocommerce div.product p.price,
.woocommerce div.product .price {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  margin: .5rem 0 !important;
  color: #111827 !important;
}
.woocommerce div.product p.price del,
.woocommerce div.product .price del { color: #6b7280 !important; text-decoration: line-through !important; margin-left: .5rem; }

/* Tabs and meta spacing */
.woocommerce-tabs, .woocommerce-tabs .panel { margin-top: 2rem !important; }

/* --- Shop / archive grid --- */
.woocommerce ul/products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 1.75rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce ul.products li.product {
  background: #ffffff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 32px rgba(2,6,23,0.06) !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product card internals */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a {
  display: block !important;
  color: inherit !important;
}

/* Slightly taller image for better visual balance */
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Card content area (bottom) */
.woocommerce ul.products li.product > .p-4,
.woocommerce ul.products li.product .entry-summary,
.woocommerce ul.products li.product .content {
  padding: 1.125rem !important;
}

/* Buttons & badges */
.woocommerce .onsale,
.onsale { background: #ef4444 !important; color: #fff !important; padding: .25rem .5rem !important; border-radius: 6px !important; font-size: .85rem !important; display:inline-block; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: #2563eb !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: .75rem 1rem !important;
  text-align: center !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Make primary CTA in card larger and consistent */
.woocommerce ul.products li.product .btn-primary,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button {
  width: calc(100% - 2rem) !important;
  margin: 0 1rem 1rem 1rem !important;
  display: block !important;
  height: 48px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

/* Stock badge */
.woocommerce ul.products li.product .inline-stock-badge,
.woocommerce ul.products li.product .stock,
.woocommerce ul.products li.product .product-stock {
  font-size: 0.82rem !important;
  color: #16a34a !important;
  background: rgba(16,163,74,0.06) !important;
  padding: .28rem .55rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
}

/* Sidebar / widget fixes to match theme */
#sidebar,
.sidebar,
.widget,
.woocommerce .widget {
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 1rem !important;
}
.woocommerce .widget { background: #fff !important; padding: 1rem !important; border-radius: 8px !important; box-shadow: 0 6px 18px rgba(0,0,0,0.04) !important; }

/* Breadcrumb and notices */
.woocommerce-breadcrumb { margin-bottom: 1rem !important; display:block !important; color: #6b7280 !important; }

/* Accessibility & flow */
.woocommerce-product-gallery { transition: none !important; }

/* Mobile adjustments */
@media (max-width: 767px) {
  .woocommerce div.product { flex-direction: column !important; }
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary { max-width: 100% !important; flex: 1 1 100% !important; }
  .woocommerce ul.products { grid-template-columns: repeat(1, 1fr) !important; }
  .woocommerce ul.products li.product img { height: 320px !important; }
}

/* Force browser to apply these overrides */
html body .woocommerce div.product,
html body .woocommerce ul.products,
html body .woocommerce .price {
  -webkit-font-smoothing: antialiased !important;
}

/* -----------------------
   Additional quick overrides to match screenshots (applied last)
   These are intentionally specific and safe to apply without rebuilding Tailwind.
   ----------------------- */

/* Slightly wider container to match screenshot proportions */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Shop header / controls */
.woocommerce-products-header {
  margin-bottom: 1.25rem;
}
.woocommerce-products-header .page-title {
  margin: 0;
  font-size: 2rem;
  color: #0f172a;
  font-weight: 800;
}

/* Header area: use flexible layout so result count and ordering sit on same line */
.woocommerce-products-header .container,
.container > .woocommerce-products-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
}

/* Result count and ordering placement */
.woocommerce-products-header .woocommerce-result-count {
  color: #6b7280;
  margin: 0;
  align-self: center;
  font-weight: 500;
}

/* Ensure ordering control is right aligned and styled consistently */
.woocommerce-ordering {
  margin-left: auto;
}
.woocommerce-ordering select {
  padding: .6rem .85rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  min-width: 180px;
  font-weight: 500;
}

/* Sidebar card style and sticky filter (improve fixed behavior) */
.woocommerce-sidebar .card,
aside.woocommerce-sidebar .card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.06);
}
aside.woocommerce-sidebar .card {
  position: sticky;
  top: 2.5rem;
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding-bottom: 1.25rem;
}

/* Fix: ensure inline flex children (price inputs) can shrink and do not overflow
   The price input pair lives inside a flex container (.flex). Some browsers impose
   a min-width which causes the second input to overflow behind the product card.
   Setting min-width:0 and box-sizing fixes the overflow while keeping responsive flex.
*/
.woocommerce-sidebar .card .flex,
aside.woocommerce-sidebar .card .flex {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.woocommerce-sidebar .card .flex input[type="number"],
.woocommerce-sidebar .card input[type="number"],
aside.woocommerce-sidebar .card .flex input[type="number"],
aside.woocommerce-sidebar .card input[type="number"] {
  min-width: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* In case the inputs are wrapped by other elements (buttons, labels), ensure they don't force a min width */
.woocommerce-sidebar .card input,
.woocommerce-sidebar .card .input,
aside.woocommerce-sidebar .card input,
aside.woocommerce-sidebar .card .input {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* On small screens stack the price inputs */
@media (max-width: 767px) {
  .woocommerce-sidebar .card .flex,
  aside.woocommerce-sidebar .card .flex {
    flex-direction: column;
    gap: .5rem;
  }
}

/* Adjust grid column proportions for clearer main area */
@media (min-width: 1200px) {
  /* Make sidebar slightly narrower and main content larger for visual match */
  .container.grid .lg\\:col-span-3 { width: 25%; }
  .container.grid .lg\\:col-span-9 { width: 75%; }
}

/* Make main content flow relative to sidebar for sticky behavior */
.woocommerce-main-content, .lg\\:col-span-9, .woocommerce .woocommerce-main-content {
  position: relative;
}

/* Product grid: 3 columns on desktop, 2 on tablets, 1 on mobile */
@media (min-width: 1200px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* Card visuals */
.woocommerce ul.products li.product.card,
.woocommerce ul.products li.product {
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title, excerpt and price spacing */
.woocommerce ul.products li.product .product-title,
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product .product-title a {
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: .4rem !important;
}
.woocommerce ul.products li.product .product-price {
  color: #111827 !important;
  font-weight: 700 !important;
}

/* Promote sale price color */
.woocommerce ul.products li.product .product-price .amount,
.woocommerce .price .amount {
  color: #ef4444 !important;
}

/* Single product gallery sizing to match screenshot */
.woocommerce-single-product .woocommerce-product-gallery-wrapper,
.woocommerce div.product .woocommerce-product-gallery-wrapper {
  max-width: 100% !important;
}
.woocommerce-single-product .woocommerce-product-gallery-wrapper img,
.woocommerce div.product .woocommerce-product-gallery-wrapper img {
  max-height: 560px;
  width: 100%;
  object-fit: contain;
  display: block;
}

/* Thumbnails styling */
.woocommerce-product-gallery-wrapper .w-16,
.woocommerce-product-gallery-wrapper button {
  border: 1px solid #e6e6e6;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}

/* Slightly stronger shadow for cards */
.card.shadow-md {
  box-shadow: 0 12px 28px rgba(2,6,23,0.09) !important;
}

/* Small helper to limit excerpt lines (if supported by browser) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tweak breadcrumbs / spacing */
.woocommerce-breadcrumb {
  color: #6b7280 !important;
  margin-bottom: 1rem !important;
  font-size: 0.95rem !important;
}

/* Ensure CTA buttons look consistent on product page */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product .single_add_to_cart_button.button {
  background: #2563eb !important;
  color: #fff !important;
  padding: 1rem 1.25rem !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}

/* Ordering select & controls styling */
.woocommerce-ordering select {
  padding: .6rem .85rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  min-width: 170px;
  font-weight: 500;
}

/* Quick headers spacing adjustments */
.woocommerce-products-header .page-title { margin-bottom: .15rem; }

/* Fine-tune mobile spacing for gallery + summary */
@media (max-width: 767px) {
  .woocommerce div.product .woocommerce-product-gallery-wrapper img {
    max-height: 380px !important;
  }
  .woocommerce div.product .summary { padding-top: 1rem !important; }
}

</file_content>

Now that you have the latest state of the file, try the operation again with fewer, more precise SEARCH blocks. For large files especially, it may be prudent to try to limit yourself to <5 SEARCH/REPLACE blocks at a time, then wait for the user to respond with the result of the operation before following up with another replace_in_file call to make additional edits.
(If you run into this error 3 times in a row, you may use the write_to_file tool as a fallback.)
