/* The Gazebo Store — rounded corners + Option 2 product tiles
   (shorter cards, price under the title, icon grid, text financing).
   Apply site-wide on the Magento 2 theme (frontend/Thegazebo/base).
   Target look: /workspace/gazebo-redesign/implement/target-product-tiles.jpg
*/

/* ========================================================================
   1. Rounded corners on tiles, cards, buttons, inputs, pagination, dots
   ======================================================================== */

/* Category tiles on the homepage: 18px radius, inset white frame
   (replaces the old sharp L-shaped frame). */
.home-category-inner {
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: inset 0 0 0 10px #fff, 0 2px 10px rgba(0,0,0,.06) !important;
}
.home-category-inner:before,
.home-category-inner:after,
.home-category-inner > a:before,
.home-category-inner > a:after {
  display: none !important;
  content: none !important;
}

/* Testimonials */
.testimonials-block-inner {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* Blog cards */
.blogs-block {
  border-radius: 20px !important;
  overflow: hidden !important;
}
.blogs-block .blog-img,
.blogs-block .blog-img img,
.blog-img,
.blog-img img {
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
}
.blogs-block .blog-content,
.blog-content {
  border-radius: 0 0 20px 20px !important;
}

/* Pagination */
.pages a,
.pages .current,
.pages li a,
.pages .item a,
.pages .item.current span,
.pages strong,
.pages .action,
.pages .item .action,
.toolbar .pages a,
.toolbar .pages .current {
  border-radius: 8px !important;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea,
.input-text,
.control input {
  border-radius: 12px !important;
}

/* Buttons — keep the existing orange pill (25px). Don't force this
   on icon-only controls (qty, close, nav toggle, wishlist heart). */
button.action.primary,
button.action.secondary,
.action.primary,
.action.secondary,
.action.subscribe,
.action.tocart,
.action.login,
.action.create.primary,
.action.checkout,
.action.back,
.action.continue,
.action.send,
button.tocart,
.bundle-actions .action,
.product-add-form .action.tocart,
.box-tocart .action.tocart {
  border-radius: 25px !important;
  -webkit-border-radius: 25px !important;
  -moz-border-radius: 25px !important;
}

/* Owl carousel dots (Owl 1 uses .owl-page span) */
.owl-theme .owl-controls .owl-page span,
.owl-theme .owl-controls .owl-page.active span {
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  border-radius: 50% !important;
  width: 10px !important;
  height: 10px !important;
  overflow: hidden !important;
}

/* ========================================================================
   2. Product tiles — shorter Option 2 layout (homepage + category)
   Same #f4f4f4 card, 20px corners. Price under the title, icon grid,
   concrete highlights, quiet financing row, hover lift.
   ======================================================================== */

.products-grid .product-items .product-item {
  /* inline-flex, not flex: flex is block-level and stacks
     category-grid items in a single column. */
  display: inline-flex !important;
  vertical-align: top !important;
  overflow: visible !important;
}

/* Let the hover lift and shadow paint outside the card. Do not set
   display:flex on .owl-stage — that breaks the homepage slider. */
.products-grid,
.products-grid .product-items,
.home-featured-products,
.home-featured-products .owl-carousel,
.home-featured-products .owl-wrapper-outer,
.home-featured-products .owl-wrapper,
.home-featured-products .owl-item {
  overflow: visible !important;
}

.products-grid .product-items .product-item .product-item-info {
  padding: 0 !important;
  background: #f4f4f4 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.06) !important;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background-color 0.3s ease !important;
}

.products-grid .product-items .product-item .product-item-info:hover {
  transform: translateY(-6px) !important;
  background-color: #ffffff !important;
  box-shadow: 0 18px 40px rgba(40, 32, 24, 0.14),
              0 4px 10px rgba(40, 32, 24, 0.06) !important;
  z-index: 4 !important;
}

/* Photo well: white, flush with the rounded top.
   object-fit: cover fills the well; side padding avoids clipping tents. */
.products-grid .product-items .product-item .product-item-info .product-item-photo {
  display: block !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  background: #fff !important;
  padding: 6px 18px 2px !important;
  position: relative !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}
.products-grid .product-item-photo .product-image-container,
.products-grid .product-item-photo [class*="product-image-container"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  aspect-ratio: auto !important;
  display: block !important;
}
.products-grid .product-item-photo .product-image-wrapper,
.products-grid .product-item-photo span.product-image-wrapper {
  height: 200px !important;
  width: 100% !important;
  padding-bottom: 0 !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}
.products-grid .product-item-photo .product-image-photo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

@media (max-width: 767px) {
  .products-grid .product-item-photo .product-image-container,
  .products-grid .product-item-photo [class*="product-image-container"],
  .products-grid .product-item-photo .product-image-wrapper,
  .products-grid .product-item-photo span.product-image-wrapper {
    height: 180px !important;
  }
}

/* Sale badge (injected by gazebo-redesign.js) */
.products-grid .sale-badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 3 !important;
  background: #F7A432 !important;
  color: #333 !important;
  font-family: "Proximanova-SemiBold", "Proxima Nova", sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  padding: 7px 11px !important;
  border-radius: 20px !important;
  pointer-events: none !important;
}

/* Details */
.products-grid .product-items .product-item .product-item-info .product-item-details,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details {
  min-height: 0 !important;
  padding: 10px 16px 14px !important;
  float: none !important;
  width: 100% !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
}

/* Title — no reserved min-height; price sits right under it */
.products-grid .product-items .product-item .product-item-info .product-item-details .product-item-name,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-item-name {
  font-size: 16px !important;
  font-family: "Proximanova-Bold", "Proxima Nova", sans-serif !important;
  text-transform: capitalize !important;
  margin: 0 0 4px !important;
  min-height: 0 !important;
  color: #333 !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-item-name > a {
  color: #333 !important;
}

/* Hide Magento's "Special Price" / "Regular Price" labels */
.products-grid .price-label,
.home-featured-products .price-label {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Price moved under the title (JS). Strikethrough, sale price, Save $X. */
.products-grid .product-item-details > .product-price,
.home-featured-products .product-item-details > .product-price {
  margin: 0 0 8px !important;
  padding: 0 !important;
  float: none !important;
  max-width: 100% !important;
  width: 100% !important;
}
.products-grid .product-item-details > .product-price .price-box,
.home-featured-products .product-item-details > .product-price .price-box {
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 8px !important;
}
.products-grid .product-item-details > .product-price .old-price,
.home-featured-products .product-item-details > .product-price .old-price {
  order: 1 !important;
  margin: 0 !important;
  line-height: 1 !important;
}
.products-grid .product-item-details > .product-price .old-price .price,
.home-featured-products .product-item-details > .product-price .old-price .price {
  font-size: 14px !important;
  color: #6d6e72 !important;
  text-decoration: line-through !important;
  display: inline-block !important;
  font-weight: 400 !important;
}
.products-grid .product-item-details > .product-price .special-price,
.home-featured-products .product-item-details > .product-price .special-price {
  order: 2 !important;
}
.products-grid .product-item-details > .product-price .special-price .price,
.home-featured-products .product-item-details > .product-price .special-price .price {
  font-size: 22px !important;
  line-height: 1 !important;
  display: inline-block !important;
  font-family: "Proximanova-Bold", "Proxima Nova", sans-serif !important;
  color: #f8a430 !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
.products-grid .price-save,
.home-featured-products .price-save {
  display: inline-block !important;
  order: 3 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Proximanova, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #6b645e !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

/* One-line use case under the price (injected by JS) */
.products-grid .tile-desc,
.home-featured-products .tile-desc {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-family: Proximanova, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #5c564f !important;
}

/* Specs: icon grid first, then concrete highlights. Always stacked,
   including on wide homepage cards. */
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs {
  display: flex !important;
  flex-direction: column !important;
  font-size: 16px !important;
  margin: 0 0 4px !important;
  gap: 8px !important;
  flex: 0 1 auto !important;
}

/* Icon grid */
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right {
  order: 1 !important;
  font-size: 12px !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  vertical-align: top !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  gap: 6px 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul > li,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul > li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-align: left !important;
  line-height: 1.25 !important;
  color: #3a3530 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul > li > img,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul > li > img {
  max-width: 16px !important;
  max-height: 16px !important;
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
  object-fit: contain !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul > li > span,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-right > ul > li > span {
  display: inline !important;
  color: #3a3530 !important;
  white-space: nowrap !important;
}

/* Concrete highlights — check marks, not orange bullets */
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left {
  order: 2 !important;
  font-size: 13px !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  vertical-align: top !important;
  padding-right: 0 !important;
  margin: 2px 0 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul > li,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul > li {
  font-size: 12px !important;
  line-height: 16px !important;
  margin-bottom: 3px !important;
  padding-left: 18px !important;
  position: relative !important;
  color: #3a3530 !important;
  list-style: none !important;
  background: none !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul > li:last-child,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul > li:last-child {
  margin-bottom: 0 !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul > li::before,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-specs .specs-left > ul > li::before {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  top: 4px !important;
  width: 8px !important;
  height: 5px !important;
  background: none !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-left: 1.8px solid #C4842A !important;
  border-bottom: 1.8px solid #C4842A !important;
  border-radius: 0 !important;
  transform: rotate(-45deg) !important;
}

/* CTA block: only the button remains here; price was moved up.
   Leftover equal-height space sits above the button. */
.products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  clear: both !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(40, 32, 24, 0.08) !important;
  gap: 0 !important;
  width: 100% !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart {
  float: none !important;
  max-width: 100% !important;
  width: 100% !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart .product-item-actions,
.products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart .product-item-actions .actions-primary,
.products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}
.products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart .product-item-actions .actions-primary .tocart.primary,
.home-featured-products .products-grid .product-items .product-item .product-item-info .product-item-details .product-price-cart .product-cart .product-item-actions .actions-primary .tocart.primary {
  padding: 10px 18px !important;
  font-size: 13px !important;
  border-radius: 25px !important;
  -moz-border-radius: 25px !important;
  -webkit-border-radius: 25px !important;
  color: #333 !important;
  opacity: 1 !important;
  line-height: 16px !important;
  background: #f7a432 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  border: 0 !important;
  font-weight: 400 !important;
  font-family: "Proximanova-SemiBold", "Proxima Nova", sans-serif !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
}

/* Financing: drop the peach slab. Quiet text row with a calendar icon
   (JS swaps the inner markup; these rules also tame the original copy). */
.products-grid .containerkal {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  text-align: left !important;
  box-shadow: none !important;
}
.products-grid .containerkal p {
  margin: 0 !important;
  padding: 0 !important;
}
.products-grid .containerkal a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #5c564f !important;
  text-decoration: none !important;
  font-family: Proximanova, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  transition: color 0.2s ease !important;
}
.products-grid .containerkal a:hover {
  color: #2f2b27 !important;
}
.products-grid .containerkal .fin-icon {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  color: #C4842A !important;
  display: block !important;
}
.products-grid .containerkal .fin-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
  min-width: 0 !important;
}
.products-grid .containerkal .fin-copy .fin-title {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #3a3530 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.products-grid .containerkal .fin-copy .fin-sub {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #7a726b !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.products-grid .containerkal .nowrap {
  white-space: nowrap !important;
}
