/* Ctrell Designs — WooCommerce Styles (dark glass theme) */

.ctrell-woo-wrap .woocommerce-breadcrumb {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.ctrell-woo-wrap .woocommerce-breadcrumb a { color: #a5b4fc; }

.ctrell-woo-wrap ul.products {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ctrell-woo-wrap ul.productsw {
  display: flex;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* WooCommerce core CSS still gives loop items a percentage width
   (e.g. 30.8% for 3 columns) and floats them — inside a CSS grid
   that shrinks every tile to a third of its cell. Neutralise it so
   each tile fills its grid track. Covers the Shop archive and the
   [products] shortcode grid alike. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* WooCommerce adds a clearfix ::before/::after to ul.products. In a
   CSS grid those pseudo-elements become empty grid cells, so the
   first row starts with a blank tile. Remove them. */
.ctrell-woo-wrap ul.products::before,
.ctrell-woo-wrap ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
@media (min-width: 640px) {
  .ctrell-woo-wrap ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ctrell-woo-wrap ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ctrell-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Stretch the card body so the Add to Cart row sits at the bottom
   of every tile, keeping rows visually even. */
.ctrell-product-card > .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ctrell-product-card .ctrell-product-actions {
  margin-top: auto;
  padding-top: 0.25rem;
}
/* Full-resolution tile image: WooCommerce core forces loop images
   to 300x169 with !important, and serves the cropped 300px
   thumbnail. This beats it and fills the tile's 4:3 image area. */
.woocommerce ul.products li.product.ctrell-product-card a img,
.ctrell-product-card img {
  width: 100% !important;
  height: 80% !important;
  margin: 0 !important;
  object-fit: cover;
  display: block;
  box-shadow: none;
}
/* Uniform image area on every tile: the service images are 1200x900
   (4:3), so this crops nothing and every tile lines up. */
.ctrell-product-card > a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ctrell-product-card .onsale,
.woocommerce ul.products li.product.ctrell-product-card .onsale {
 position: absolute;
    top: 0.1rem;
    left: 0.9rem;
    right: auto;
    margin: 0;
    z-index: 3;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
  min-width: 0;
  min-height: 0;
  line-height: 1.4;
}
/* Same pill badge on the single product gallery. */
.ctrell-woo-wrap .woocommerce-product-gallery .onsale {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 3;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  min-width: 0;
  min-height: 0;
  line-height: 1.4;
}
.ctrell-woo-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* On shop tiles both badges overlap the image corners — Sale! top
   left, "30% below U.S. market" top right — instead of sitting in
   the text flow above the image. The long selectors + !important
   beat WooCommerce core's own .onsale rule (which pins Sale! to the
   top right) and any stray custom CSS that pushed the badge aside. */
.woocommerce ul.products li.product.ctrell-product-card .ctrell-woo-badge {
  position: absolute;
  top: 0.9rem !important;
  right: 0.9rem !important;
  left: auto !important;
  z-index: 3;
  margin-top: 0;
  white-space: nowrap;
  background: rgba(8, 10, 14, 0.75);
  backdrop-filter: blur(2px);
}
/* Add to Cart on the tile: the theme's premium pill button, full
   width of the tile, so every row's buttons line up. */
.ctrell-woo-wrap .ctrell-product-card .button,
.ctrell-woo-wrap .ctrell-product-card .added_to_cart {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(134, 45, 212, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 400ms ease;
}
.ctrell-woo-wrap .ctrell-product-card .button:hover,
.ctrell-woo-wrap .ctrell-product-card .added_to_cart:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px rgba(79, 70, 229, 0.45);
}
.ctrell-woo-wrap .ctrell-product-card .added_to_cart {
  margin-left: 0;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ctrell-woo-wrap .price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #a5b4fc;
}
.ctrell-woo-wrap .price del {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.95rem;
  margin-right: 0.4rem;
}
.ctrell-woo-wrap .price ins {
  text-decoration: none;
  color: #a5b4fc;
}

.ctrell-woo-wrap .button,
.ctrell-woo-wrap button.button,
.ctrell-woo-wrap input.button,
.ctrell-woo-wrap .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ctrell-woo-wrap .button:hover,
.ctrell-woo-wrap button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
}
.ctrell-woo-wrap .button.alt,
.ctrell-woo-wrap button.button.alt {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.ctrell-woo-wrap .added_to_cart {
  margin-left: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Single product */
.ctrell-woo-wrap .woocommerce-product-gallery img {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ctrell-woo-wrap .product_title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #e0e3e5;
}
.ctrell-woo-wrap .woocommerce-product-details__short-description,
.ctrell-woo-wrap .woocommerce-tabs .panel {
  color: #cbd5e1;
  line-height: 1.7;
}
.ctrell-woo-wrap .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ctrell-woo-wrap .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
}
.ctrell-woo-wrap .woocommerce-tabs ul.tabs li.active a { color: #a5b4fc; }

/* Cart & Checkout (standard WooCommerce pages, themed) */
.ctrell-woo-wrap table.shop_table,
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}
.ctrell-woo-wrap table.shop_table th,
.ctrell-woo-wrap table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #e0e3e5;
  text-align: left;
}
.ctrell-woo-wrap table.shop_table th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.03);
}
.ctrell-woo-wrap table.shop_table a { color: #c7d2fe; }
.ctrell-woo-wrap table.shop_table img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.5rem;
}
.ctrell-woo-wrap .cart_totals,
.ctrell-woo-wrap .woocommerce-checkout-review-order,
.ctrell-woo-wrap #payment {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}
.ctrell-woo-wrap .form-row input.input-text,
.ctrell-woo-wrap .form-row select,
.ctrell-woo-wrap .form-row textarea,
.ctrell-woo-wrap .quantity .qty {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  color: #e0e3e5;
  padding: 0.75rem 1rem;
}
.ctrell-woo-wrap .form-row label {
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: inline-block;
}
.ctrell-woo-wrap .woocommerce-message,
.ctrell-woo-wrap .woocommerce-info,
.ctrell-woo-wrap .woocommerce-error {
  background: rgba(79, 70, 229, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 0.75rem;
  color: #e0e3e5;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
}
.ctrell-woo-wrap .woocommerce-ordering select,
.ctrell-woo-wrap .woocommerce-result-count {
  color: #cbd5e1;
}
.ctrell-woo-wrap .woocommerce-ordering select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  padding: 0.6rem 0.9rem;
}
.ctrell-woo-wrap .woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}
.ctrell-woo-wrap .woocommerce-pagination ul li a,
.ctrell-woo-wrap .woocommerce-pagination ul li span {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e0e3e5;
  text-decoration: none;
}
.ctrell-woo-wrap .woocommerce-pagination ul li span.current {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
}
.ctrell-woo-meta p { margin-bottom: 0.6rem; color: #cbd5e1; }
.ctrell-woo-meta p:last-child { margin-bottom: 0; }

/* Small screens: cart / checkout / order tables scroll sideways
   instead of squeezing the layout. */
@media (max-width: 640px) {
  .ctrell-woo-wrap table.shop_table,
  .woocommerce table.shop_table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ctrell-woo-wrap .cart_totals,
  .ctrell-woo-wrap .woocommerce-checkout-review-order,
  .ctrell-woo-wrap #payment {
    padding: 1rem;
  }
}

/* Single product page — rebuilt layout (v2.4.3).
   Top: gallery + summary on a clean grid (WooCommerce core floats
   are neutralised so nothing drifts or overlaps). Below: the full
   description section, then related services on the shop grid. */
.ctrell-product-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ctrell-product-gallery {
  position: relative;
  min-width: 0;
}
.ctrell-product-gallery > .onsale {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  right: auto;
  margin: 0;
  z-index: 3;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  min-width: 0;
  min-height: 0;
  line-height: 1.4;
}
.ctrell-product-gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.ctrell-product-page .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
}
.ctrell-product-page .summary .product_title {
  margin: 0 0 0.5rem;
}
.ctrell-product-page .summary .ctrell-woo-badge {
  margin: 0.25rem 0 0.5rem;
}
.ctrell-product-page .summary .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.ctrell-product-page .summary .price del {
  font-size: 1.15rem;
  font-weight: 600;
  color: #94a3b8;
  opacity: 1;
}
.ctrell-product-page .summary .price ins {
  text-decoration: none;
}
.ctrell-product-page .woocommerce-product-details__short-description {
  margin-bottom: 0.5rem;
}
.ctrell-product-page .summary form.cart {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.ctrell-product-page .summary form.cart .quantity .qty {
  width: 4.5rem;
  height: 100%;
  text-align: center;
}
.ctrell-product-page .summary .single_add_to_cart_button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ctrell-product-page .product_meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
}
.ctrell-product-page .product_meta a {
  color: #a5b4fc;
}
/* Full description section: visible on the page, not hidden in a tab. */
.ctrell-product-full {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}
.ctrell-product-full > h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e0e3e5;
  margin: 0 0 1.25rem;
}
.ctrell-product-full h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e0e3e5;
  margin: 2.25rem 0 1rem;
}
.ctrell-product-description {
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 72ch;
}
.ctrell-product-description p {
  margin: 0 0 1rem;
}
.ctrell-product-description ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.ctrell-product-description ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.ctrell-product-description li {
  margin-bottom: 0.4rem;
}
.ctrell-product-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}
.ctrell-product-benefits li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: #cbd5e1;
  line-height: 1.6;
}
.ctrell-product-benefits .material-symbols-outlined {
  color: #818cf8;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}
.ctrell-product-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ctrell-product-tech span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e0e3e5;
  font-size: 0.85rem;
  font-weight: 600;
}
.ctrell-product-full .space-y-4 {
  margin-top: 1rem;
}
/* Related services on the product page. */
.ctrell-product-page .related.products {
  margin-top: 3.5rem;
}
.ctrell-product-page .related.products > h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e0e3e5;
  margin: 0 0 1.5rem;
}
@media (max-width: 900px) {
  .ctrell-product-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ctrell-product-benefits {
    grid-template-columns: 1fr;
  }
  .ctrell-product-page .summary .single_add_to_cart_button {
    flex: 1 1 100%;
  }
}
