/* =====================================================================
   Sheds Delivered — WooCommerce Shop / Archive page
   Figma: ShedsDelivered-NEW (node 206-10646)
   Drop this into the theme (Divi > Theme Options > Custom CSS, or a child
   theme stylesheet). Selectors target the WooCommerce + Divi markup.

   Palette: ink #14110f · muted #6b635b · orange #f26522 · dark #c84f12
            cream #faf7f1 · line rgba(20,17,15,0.10)
   ===================================================================== */

/* ---------- Page shell ---------- */
#main-content,
.woocommerce-page #main-content { background: #faf7f1; }

#content-area {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14110f;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 13px;
  color: #6b635b;
  margin-bottom: 18px;
}
.woocommerce-breadcrumb a { color: #6b635b; text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: #f26522; }

/* Page title */
.woocommerce-products-header__title,
.page-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: #14110f;
  font-size: 34px;
  margin-bottom: 12px;
}

/* ---------- Top bar: result count + ordering ---------- */
.woocommerce-result-count {
  font-size: 14px;
  color: #6b635b;
  margin: 0;
  padding-top: 8px;
}
.woocommerce-ordering { margin-bottom: 24px; }
.woocommerce-ordering .orderby {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #14110f;
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.10);
  border-radius: 999px;
  padding: 10px 40px 10px 18px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2314110f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ---------- Product grid ---------- */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 32px !important;
  padding: 0;
  list-style: none;
}
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.10);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 50px -40px rgba(20, 17, 15, 0.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  padding: 20px !important;
}
ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 17, 15, 0.20);
  box-shadow: 0 32px 60px -36px rgba(20, 17, 15, 0.4);
}

/* image */
ul.products li.product .woocommerce-LoopProduct-link { display: block; color: inherit; text-decoration: none; }
ul.products li.product .et_shop_image,
ul.products li.product img {
  display: block;
  width: 100%;
  height: auto;
}
ul.products li.product .et_shop_image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 1 / 1;
}
ul.products li.product .et_shop_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Divi hover overlay off — keep it clean like the design */
ul.products li.product .et_overlay { border: none; background: rgba(20, 17, 15, 0.04); }

/* SKU badge — theme/plugin usually injects one; this styles it if present.
   Add class .sd-sku to your badge element, or it targets a common wrapper. */
ul.products li.product .et_shop_image .sd-sku,
ul.products li.product .et_shop_image .onsale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #14110f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  min-height: 0;
  line-height: 1.2;
}

/* category eyebrow — if the theme prints a category above the title, give it
   the class .sd-cat (uppercase micro-label like the Figma). */
ul.products li.product .sd-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b635b;
  margin: 4px 2px 2px;
}

/* title */
ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.35;
  color: #14110f;
  padding: 2px 2px 0;
  margin: 0;
}
ul.products li.product:hover .woocommerce-loop-product__title { color: #c84f12; }

/* price */
ul.products li.product .price,
ul.products li.product .price .amount {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f26522;
  padding: 6px 2px 0;
  display: block;
}
ul.products li.product .price .woocommerce-Price-currencySymbol { color: #f26522; }

/* add-to-cart / view product button (if shown) */
ul.products li.product .button,
ul.products li.product a.add_to_cart_button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f26522 0%, #c84f12 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  text-transform: none;
  transition: filter .15s ease, transform .12s ease;
}
ul.products li.product .button:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ---------- Pagination ---------- */
.woocommerce-pagination { text-align: center; margin: 8px 0 40px; }
.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 8px;
  border: 0 !important;
  padding: 0;
  list-style: none;
}
.woocommerce-pagination ul.page-numbers li { border: 0 !important; margin: 0; }
.woocommerce-pagination .page-numbers {
  display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px !important;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(20, 17, 15, 0.10);
    color: #14110f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.woocommerce-pagination .page-numbers:hover { border-color: #f26522; color: #f26522; }
.woocommerce-pagination .page-numbers.current {
  background: #14110f;
  border-color: #14110f;
  color: #fff;
}

/* ---------- Sidebar ---------- */
#sidebar { font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif; }
#sidebar .et_pb_widget {
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.10);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  float: none;
  width: auto;
}

/* widget title — orange dash + uppercase label like Figma */
#sidebar .widgettitle,
#sidebar h4.widgettitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #14110f;
  margin: 0 0 16px;
  padding: 0;
}
#sidebar .widgettitle::before {
  content: "";
  width: 16px;
  height: 2px;
  background: #f26522;
  border-radius: 2px;
  flex: 0 0 auto;
}

/* Cart widget */
#sidebar .widget_shopping_cart .woocommerce-mini-cart__empty-message {
  font-size: 14px;
  color: #6b635b;
  margin: 0;
}

/* Search widget */
#sidebar .searchform > div { display: flex; gap: 8px; }
#sidebar .searchform input[type="text"],
#sidebar .searchform #s {
  flex: 1;
  min-width: 0;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  background: #faf7f1;
  border: 1px solid rgba(20, 17, 15, 0.10);
  border-radius: 10px;
  padding: 11px 14px;
  color: #14110f;
}
#sidebar .searchform input[type="text"]:focus { outline: none; border-color: #f26522; }
#sidebar .searchform #searchsubmit {
  background: #14110f;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background .15s ease;
}
#sidebar .searchform #searchsubmit:hover { background: #c84f12; }

/* Product categories list */
#sidebar .product-categories { list-style: none; margin: 0; padding: 0; }
#sidebar .product-categories li {margin: 0;display: flex;align-items: center;justify-content: space-between;}
#sidebar .product-categories > li > a,
#sidebar .product-categories li.cat-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  color: #14110f;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 17, 15, 0.10);
  transition: color .15s ease;
}
#sidebar .product-categories li:last-child > a { border-bottom: 0; }
#sidebar .product-categories li a:hover { color: #f26522; }
#sidebar .product-categories .count {
  color: #6b635b;
  font-size: 13px;
  font-weight: 500;
}
#sidebar .product_list_widget li:before, #sidebar .product_list_widget li:after {
    display: none;
}
/* nested subcategories indent */
#sidebar .product-categories .children,
#sidebar .product-categories ul.children {
  list-style: none;
  margin: 0;
  padding-left: 14px;
}
#sidebar .product-categories .children > li > a { font-size: 13px; color: #6b635b; }

/* Products list widget + recent posts */
#sidebar .product_list_widget { list-style: none; margin: 0; padding: 0; }
#sidebar .product_list_widget li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.10);
}
#sidebar .product_list_widget li:last-child { border-bottom: 0; }
#sidebar .product_list_widget li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #14110f;
}
#sidebar .product_list_widget li img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
#sidebar .product_list_widget .product-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #14110f;
}
#sidebar .product_list_widget .amount { color: #f26522; font-weight: 700; font-size: 13px; }

/* Recent posts / generic list widget links */
#sidebar .widget_recent_entries ul,
#sidebar ul { list-style: none; margin: 0; padding: 0; }
#sidebar .widget_recent_entries li,
#sidebar .et_pb_widget li a {
  font-size: 14px;
  line-height: 1.5;
}
#sidebar .widget_recent_entries li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.10);
}
#sidebar .widget_recent_entries li:last-child { border-bottom: 0; }
#sidebar .widget_recent_entries a { color: #14110f; text-decoration: none; }
#sidebar .widget_recent_entries a:hover { color: #f26522; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .woocommerce-products-header__title, .page-title { font-size: 26px; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr; }
}
