/* ============================================================================
   WooCommerce Styling for Sally Lunn's Theme
   ============================================================================ */

/* Hide duplicate page title header */
.woocommerce-products-header {
  display: none !important;
}

/* Shop page and archives - only target product lists, not single product pages */
.woocommerce.archive .products,
.woocommerce.tax-product_cat .products,
.woocommerce.tax-product_tag .products,
.post-type-archive-product .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Remove WooCommerce clearfix that interferes with grid */
.woocommerce.archive .products::before,
.woocommerce.archive .products::after,
.woocommerce.tax-product_cat .products::before,
.woocommerce.tax-product_cat .products::after,
.woocommerce.tax-product_tag .products::before,
.woocommerce.tax-product_tag .products::after,
.post-type-archive-product .products::before,
.post-type-archive-product .products::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 768px) {
  .woocommerce.archive .products,
  .woocommerce.tax-product_cat .products,
  .woocommerce.tax-product_tag .products,
  .post-type-archive-product .products {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Individual product/category items - only in archive/category pages */
.woocommerce.archive .products .product-category,
.woocommerce.archive .products .product,
.woocommerce.tax-product_cat .products .product-category,
.woocommerce.tax-product_cat .products .product,
.woocommerce.tax-product_tag .products .product,
.post-type-archive-product .products .product {
  position: relative !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: 370px !important;
}

.woocommerce.archive .products .product-category:hover,
.woocommerce.archive .products .product:hover,
.woocommerce.tax-product_cat .products .product-category:hover,
.woocommerce.tax-product_cat .products .product:hover,
.woocommerce.tax-product_tag .products .product:hover,
.post-type-archive-product .products .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Links in archive product cards */
.woocommerce.archive .products .product-category a,
.woocommerce.archive .products .product a,
.woocommerce.tax-product_cat .products .product-category a,
.woocommerce.tax-product_cat .products .product a,
.woocommerce.tax-product_tag .products .product a,
.post-type-archive-product .products .product a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Images in archive product cards */
.woocommerce.archive .products .product-category img,
.woocommerce.archive .products .product img,
.woocommerce.tax-product_cat .products .product-category img,
.woocommerce.tax-product_cat .products .product img,
.woocommerce.tax-product_tag .products .product img,
.post-type-archive-product .products .product img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Titles in archive product cards */
.woocommerce.archive .products .product-category h2,
.woocommerce.archive .products .product h2,
.woocommerce.archive .products .woocommerce-loop-product__title,
.woocommerce.tax-product_cat .products .product-category h2,
.woocommerce.tax-product_cat .products .product h2,
.woocommerce.tax-product_cat .products .woocommerce-loop-product__title,
.woocommerce.tax-product_tag .products .woocommerce-loop-product__title,
.post-type-archive-product .products .woocommerce-loop-product__title,
.woocommerce.archive .products .woocommerce-loop-category__title,
.woocommerce.tax-product_cat .products .woocommerce-loop-category__title {
  margin: 0 !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  background: #fff !important;
  color: #333 !important;
}

.woocommerce.archive .products h2 mark,
.woocommerce.archive .products .woocommerce-loop-product__title mark,
.woocommerce.tax-product_cat .products h2 mark,
.woocommerce.tax-product_cat .products .woocommerce-loop-product__title mark,
.woocommerce.tax-product_tag .products .woocommerce-loop-product__title mark,
.post-type-archive-product .products .woocommerce-loop-product__title mark {
  background: none;
  font-weight: inherit;
  color: #333 !important;
}

/* Price in archive product cards */
.woocommerce.archive ul.products li.product .price,
.woocommerce.tax-product_cat ul.products li.product .price,
.woocommerce.tax-product_tag ul.products li.product .price,
.post-type-archive-product ul.products li.product .price {
  display: block;
  padding: 0.75rem 1.5rem;
  margin: 0;
  color: #2c5f7c !important;
  font-size: 1.1rem;
}

/* Add to basket button in archive product cards */
.woocommerce.archive ul.products li.product .button,
.woocommerce.tax-product_cat ul.products li.product .button,
.woocommerce.tax-product_tag ul.products li.product .button,
.post-type-archive-product ul.products li.product .button {
  display: block;
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1.5rem;
  text-align: center;
  background: #2c5f7c;
  color: #fff !important;
  text-decoration: none;
}

/* Hide product count in category cards */
.woocommerce .product-category .count,
.woocommerce .product .count {
  display: none !important;
}

/* Category card - View Products button */
.woocommerce.archive ul.products li.product-category a,
.woocommerce.tax-product_cat ul.products li.product-category a,
.woocommerce.tax-product_tag ul.products li.product-category a,
.post-type-archive-product ul.products li.product-category a {
  position: relative;
  display: block;
  text-decoration: none;
}

/* Add "View Products" button to category cards */
.woocommerce.archive ul.products li.product-category a::after,
.woocommerce.tax-product_cat ul.products li.product-category a::after,
.woocommerce.tax-product_tag ul.products li.product-category a::after,
.post-type-archive-product ul.products li.product-category a::after {
  content: 'View Products';
  display: block;
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1.5rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
  background: #2c5f7c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce.archive ul.products li.product-category:hover a::after,
.woocommerce.tax-product_cat ul.products li.product-category:hover a::after,
.woocommerce.tax-product_tag ul.products li.product-category:hover a::after,
.post-type-archive-product ul.products li.product-category:hover a::after {
  background: #234a5f;
}

/* Result count and ordering */
.woocommerce .woocommerce-result-count {
  color: #fff;
  opacity: 0.9;
  font-size: 0.95rem;
}

.woocommerce .woocommerce-ordering select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.woocommerce .woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.woocommerce .woocommerce-ordering select option {
  background: #fff;
  color: #333;
}

/* Breadcrumbs styling - for archive pages */
.woocommerce.archive .woocommerce-breadcrumb,
.woocommerce.tax-product_cat .woocommerce-breadcrumb {
  color: #fff;
  opacity: 0.9;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.woocommerce.archive .woocommerce-breadcrumb a,
.woocommerce.tax-product_cat .woocommerce-breadcrumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.woocommerce.archive .woocommerce-breadcrumb a:hover,
.woocommerce.tax-product_cat .woocommerce-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Breadcrumbs for single product pages */
.single-product .woocommerce-breadcrumb {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.single-product .woocommerce-breadcrumb a {
  color: #2c5f7c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-product .woocommerce-breadcrumb a:hover {
  color: #234a5f;
  text-decoration: underline;
}

/* Messages */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid;
}

.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a,
.woocommerce .woocommerce-error a {
  color: inherit;
  text-decoration: underline;
}

.woocommerce .woocommerce-message a:hover,
.woocommerce .woocommerce-info a:hover,
.woocommerce .woocommerce-error a:hover {
  text-decoration: none;
}

.woocommerce .woocommerce-message {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0c4a6e;
}

.woocommerce .woocommerce-info {
  background: #fef9e7;
  border-color: #f59e0b;
  color: #92400e;
}

.woocommerce .woocommerce-error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

/* Shop page header area styling */
.woocommerce-products-header h1.woocommerce-products-header__title {
  color: #fff;
  margin-bottom: 1rem;
}

.woocommerce-products-header .term-description {
  color: #fff;
  opacity: 0.9;
  line-height: 1.6;
}

/* No products found */
.woocommerce-no-products-found {
  padding: 3rem 2rem;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

/* Price styling */
.price {
  font-weight: 600;
  color: #2c5f7c;
}

.price del {
  opacity: 0.6;
  font-weight: 400;
}

.price ins {
  text-decoration: none;
  color: #dc2626;
}

/* Buttons */
.woocommerce .button,
.woocommerce button.button {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   SINGLE PRODUCT PAGE
   ============================================================================ */

/* Hide duplicate product title on single product page */
.single-product .product_title {
  display: none !important;
}

/* Single product layout - two column grid */
.single-product div.product {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: start !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 968px) {
  .single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 600px) {
  .single-product div.product {
    gap: 1.5rem !important;
  }
}

/* Product images - left column */
.single-product .woocommerce-product-gallery,
.single-product div.product div.images {
  grid-column: 1 !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.single-product .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery__image:first-child {
  margin-bottom: 1rem !important;
}

.single-product .woocommerce-product-gallery__image img {
  border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
}

/* Product thumbnails */
.single-product .flex-control-thumbs {
  display: flex !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
  padding: 1rem 0 0 !important;
  list-style: none !important;
}

.single-product .flex-control-thumbs li {
  flex: 0 0 auto !important;
  margin: 0 !important;
  width: 80px !important;
}

.single-product .flex-control-thumbs li img {
  border-radius: 6px !important;
  cursor: pointer !important;
  opacity: 0.6 !important;
  transition: opacity 0.3s ease !important;
  border: 2px solid transparent !important;
}

.single-product .flex-control-thumbs li img:hover,
.single-product .flex-control-thumbs li img.flex-active {
  opacity: 1 !important;
  border-color: #2c5f7c !important;
}

/* Main content area background for single product */
.single-product .k-layout__main__content {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 2.5rem !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 968px) {
  .single-product .k-layout__main__content {
    padding: 2rem !important;
  }
}

/* Product summary - right column */
.single-product .summary,
.single-product div.product .summary {
  grid-column: 2 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

@media (max-width: 968px) {
  .single-product .summary,
  .single-product div.product .summary {
    grid-column: 1 !important;
  }
}

/* Move product description to top */
.single-product .woocommerce-product-details__short-description,
.single-product div[itemprop="description"] {
  order: -1 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.8 !important;
  color: #333 !important;
  font-size: 1rem !important;
  display: block !important;
}

.single-product .woocommerce-product-details__short-description p,
.single-product div[itemprop="description"] p {
  margin-bottom: 1rem !important;
  color: #333 !important;
}

/* Read more link - hidden on desktop */
.single-product .product-read-more-link {
  display: none !important;
}

/* Product price */
.single-product .price {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #2c5f7c !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
}

.single-product .price del {
  font-size: 1.5rem !important;
  opacity: 0.5 !important;
  margin-right: 1rem !important;
}

.single-product .price ins {
  text-decoration: none !important;
  color: #dc2626 !important;
}

/* Stock status */
.single-product .stock {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  padding: 0.5rem 0 !important;
  border-radius: 4px !important;
  display: inline-block !important;
}

.single-product .stock.in-stock {
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.single-product .stock.out-of-stock {
  background: #fef2f2 !important;
  color: #991b1b !important;
}

/* Quantity selector and add to cart */
.woocommerce div.product form.cart {
  margin-bottom: 0 !important;
}

.single-product form.cart {
  margin: 2rem 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.single-product .quantity {
  display: flex !important;
  align-items: center !important;
  border: 2px solid #ddd !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: border-color 0.3s ease !important;
}

.single-product .quantity:hover {
  border-color: #2c5f7c !important;
}

.single-product .quantity button.minus,
.single-product .quantity button.plus {
  width: 40px !important;
  height: 60px !important;
  background: #f8f9fa !important;
  border: none !important;
  color: #333 !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.single-product .quantity button.minus:hover,
.single-product .quantity button.plus:hover {
  background: #2c5f7c !important;
  color: #fff !important;
}

.single-product .quantity button.minus:active,
.single-product .quantity button.plus:active {
  background: #234a5f !important;
}

.single-product .quantity input.qty {
  width: 80px !important;
  min-width: 80px !important;
  min-height: 60px !important;
  padding: 0 !important;
  border: none !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  background: #fff !important;
  -moz-appearance: textfield !important;
  line-height: 60px !important;
}

.single-product .quantity input.qty:focus {
  outline: none !important;
}

.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.woocommerce div.product form.cart .button {
  vertical-align: middle !important;
  float: none !important;
}

.single-product .single_add_to_cart_button {
  margin-left: auto !important;
}

@media (max-width: 600px) {
  .single-product form.cart {
    flex-wrap: wrap !important;
  }

  .single-product .quantity {
    flex: 1 !important;
  }

  .single-product .single_add_to_cart_button {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* Add to cart button */
.single-product .single_add_to_cart_button {
  background: #2c5f7c !important;
  color: #fff !important;
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  min-height: 60px !important;
  flex: 1 !important;
}

.single-product .single_add_to_cart_button:hover {
  background: #234a5f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(44, 95, 124, 0.3) !important;
}

.single-product .single_add_to_cart_button:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Product meta (SKU, Categories, Tags) */
.single-product .product_meta {
  margin-top: 2rem !important;
  padding-top: 0 !important;
  border-top: 1px solid #eee !important;
  font-size: 0.9rem !important;
  color: #666 !important;
}

.single-product .product_meta > span {
  display: block !important;
  margin-bottom: 0.5rem !important;
}

.single-product .product_meta a {
  color: #2c5f7c !important;
  text-decoration: none !important;
}

.single-product .product_meta a:hover {
  text-decoration: underline !important;
}

/* Variable product form layout */
.single-product form.variations_form {
  flex-direction: column !important;
  align-items: stretch !important;
}

.single-product .single_variation_wrap {
  width: 100% !important;
}

.single-product .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

@media (max-width: 600px) {
  .single-product .woocommerce-variation-add-to-cart {
    flex-wrap: wrap !important;
  }
}

/* Product variations (if applicable) */
.single-product .variations {
  margin-bottom: 1.5rem !important;
  width: auto !important;
  border-collapse: collapse !important;
}

.single-product .variations tr {
  border-bottom: none !important;
}

.single-product .variations td,
.single-product .variations th {
  padding: 0.5rem 0 !important;
  vertical-align: middle !important;
}

.single-product .variations th,
.single-product .variations th label {
  font-weight: 600 !important;
  text-align: left !important;
  color: #333 !important;
}

.single-product .variations th {
  width: auto !important;
  white-space: nowrap !important;
  padding-right: 1rem !important;
}

.single-product .variations td.value {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.single-product .variations select {
  min-width: 200px !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
  background: #fff !important;
  cursor: pointer !important;
}

.single-product .variations .reset_variations {
  display: inline-block !important;
  margin-top: 0.5rem !important;
  color: #2c5f7c !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
}

.single-product .variations .reset_variations:hover {
  text-decoration: underline !important;
}

/* Product tabs (description, reviews, etc) */
.single-product .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  margin-top: 1rem !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom: 0 !important;
}

.single-product .woocommerce-tabs .tabs {
  display: flex !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  padding: 0.5rem 1rem 0 !important;
}

.single-product .woocommerce-tabs .tabs li {
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .woocommerce-tabs .tabs li a {
  display: block !important;
  padding: 0.75rem 1rem !important;
  color: #666 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  border-radius: 6px 6px 0 0 !important;
}

.single-product .woocommerce-tabs .tabs li a:hover {
  color: #2c5f7c !important;
  background: rgba(44, 95, 124, 0.05) !important;
}

.single-product .woocommerce-tabs .tabs li.active a {
  color: #2c5f7c !important;
  border-bottom-color: #2c5f7c !important;
  background: #fff !important;
}

.single-product .woocommerce-tabs .wc-tabs-wrapper,
.single-product .woocommerce-tabs .panel {
  border: 2px solid #ddd !important;
  border-radius: 8px !important;
}

.single-product .woocommerce-tabs .panel {
  padding: 2rem !important;
  background: #fff !important;
  color: #333 !important;
}

.single-product .woocommerce-tabs .panel h2 {
  color: #333 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.5rem !important;
}

.single-product .woocommerce-tabs .panel p {
  color: #333 !important;
  line-height: 1.8 !important;
  margin-bottom: 1rem !important;
}

.single-product .woocommerce-tabs .panel ul,
.single-product .woocommerce-tabs .panel ol {
  color: #333 !important;
  margin-left: 1.5rem !important;
}

.single-product .woocommerce-tabs .panel li {
  color: #333 !important;
  margin-bottom: 0.5rem !important;
}

/* Related products */
.single-product .related.products {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 1px solid #eee !important;
}

.single-product .related.products h2 {
  font-size: 1.75rem !important;
  padding: 1rem 0 !important;
  margin-bottom: 0 !important;
  color: #333 !important;
}

.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 968px) {
  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .single-product .related.products ul.products {
    grid-template-columns: 1fr !important;
  }
}

.single-product .related.products .product {
  position: relative !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: 370px !important;
}

.single-product .related.products .product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.single-product .related.products .product img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  aspect-ratio: 4/3 !important;
}

.single-product .related.products .woocommerce-loop-product__title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 1.25rem 1.5rem !important;
  background: #fff !important;
  color: #333 !important;
  line-height: 1.4 !important;
}

.single-product .related.products .price {
  display: block !important;
  padding: 0.75rem 1.5rem !important;
  margin: 0 !important;
  color: #2c5f7c !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.single-product .related.products .button {
  display: block !important;
  width: calc(100% - 3rem) !important;
  margin: 0 1.5rem 1.5rem !important;
  padding: 0.75rem 1.5rem !important;
  text-align: center !important;
  background: #2c5f7c !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.single-product .related.products .button:hover {
  background: #234a5f !important;
}

/* Pagination */
.woocommerce-pagination {
  padding: 2rem 0;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current,
.woocommerce-pagination ul.page-numbers li .page-numbers:hover {
  background: #2c5f7c;
  color: #fff;
  border-color: #2c5f7c;
}

/* ============================================================================
   CART / BASKET PAGE STYLES
   ============================================================================ */

/* Cart main container */
.wc-block-cart {
  background: #fff !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-top: 2rem !important;
}

/* Cart sidebar layout */
.wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: 1fr 400px !important;
  gap: 2rem !important;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
  width: 100% !important;
  max-width: none !important;
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 968px) {
  .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Cart items table */
.wc-block-cart-items {
  background: transparent !important;
  color: #333 !important;
}

.wc-block-cart-items th,
.wc-block-cart-items td {
  color: #333 !important;
}

.wc-block-cart-items__header-image span,
.wc-block-cart-items__header-product span,
.wc-block-cart-items__header-total span {
  color: #333 !important;
  font-weight: 600 !important;
}

/* Cart totals sidebar */
.wc-block-components-sidebar {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
}

/* Basket totals heading */
.wc-block-cart__totals-title {
  color: #333 !important;
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Totals items */
.wc-block-components-totals-item {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid #ddd !important;
  color: #333 !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  color: #333 !important;
}

.wc-block-components-totals-footer-item {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #2c5f7c !important;
  padding-top: 1rem !important;
  margin-top: 1rem !important;
  border-top: 2px solid #2c5f7c !important;
  border-bottom: none !important;
}

/* Proceed to Checkout button */
.wc-block-cart__submit-button {
  width: 100% !important;
  background: #2c5f7c !important;
  color: #fff !important;
  padding: 1rem 2rem !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  margin-top: 1.5rem !important;
  display: block !important;
}

.wc-block-cart__submit-button:hover {
  background: #234a5f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(44, 95, 124, 0.3) !important;
}

/* Quantity selector in cart */
.wc-block-components-quantity-selector {
  display: flex !important;
  align-items: center !important;
  border: 2px solid #ddd !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  width: fit-content !important;
}

.wc-block-components-quantity-selector__input {
  width: 60px !important;
  text-align: center !important;
  border: none !important;
  padding: 0.5rem !important;
  font-weight: 600 !important;
}

.wc-block-components-quantity-selector__button {
  background: #f8f9fa !important;
  border: none !important;
  padding: 0.5rem 0.75rem !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: #e9ecef !important;
}

.wc-block-components-quantity-selector__button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Remove item link */
.wc-block-cart-item__remove-link {
  color: #dc2626 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  margin-top: 0.5rem !important;
  display: inline-block !important;
}

.wc-block-cart-item__remove-link:hover {
  text-decoration: underline !important;
}

/* Cart item product name */
.wc-block-components-product-name {
  color: #2c5f7c !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-decoration: none !important;
}

.wc-block-components-product-name:hover {
  text-decoration: underline !important;
}

/* Product metadata/description in cart */
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description,
.wc-block-components-product-metadata__description p {
  color: #666 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

/* Product price in cart */
.wc-block-cart-item__prices .price,
.wc-block-components-product-price,
.wc-block-components-product-price__value,
.wc-block-formatted-money-amount {
  color: #2c5f7c !important;
  font-weight: 600 !important;
}

/* Coupon panel */
.wc-block-components-panel__button {
  color: #2c5f7c !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .wc-block-cart {
    padding: 1.5rem !important;
  }

  .wc-block-components-sidebar {
    padding: 1rem !important;
  }
}

/* ============================================================================
   CHECKOUT PAGE STYLES (Block-based checkout)
   ============================================================================ */

/* Checkout main container - matching cart styling */
.wc-block-checkout {
  background: #fff !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-top: 2rem !important;
}

/* Ensure all text in checkout is dark (excluding buttons) */
.wc-block-checkout {
  color: #333 !important;
}

.wc-block-checkout *:not(.wc-block-components-checkout-place-order-button):not(.wc-block-components-checkout-place-order-button *) {
  color: #333 !important;
}

/* Checkout headings */
.wc-block-checkout .wc-block-components-title,
.wc-block-checkout h2,
.wc-block-checkout h3,
.wc-block-checkout h4 {
  color: #333 !important;
  font-weight: 600 !important;
}

/* Form labels */
.wc-block-checkout label,
.wc-block-components-text-input label,
.wc-block-components-country-input label,
.wc-block-components-state-input label {
  color: #666 !important;
}

/* Form inputs */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="password"],
.wc-block-checkout textarea,
.wc-block-checkout select,
.wc-block-components-text-input input,
.wc-block-components-textarea textarea {
  color: #333 !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.wc-block-checkout input:focus,
.wc-block-checkout select:focus,
.wc-block-checkout textarea:focus,
.wc-block-components-text-input input:focus {
  border-color: #2c5f7c !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(44, 95, 124, 0.1) !important;
}

/* Order summary sidebar */
.wc-block-checkout .wc-block-components-sidebar {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
}

/* Order summary title */
.wc-block-checkout .wc-block-components-order-summary__button,
.wc-block-checkout .wc-block-components-order-summary-item__description {
  color: #333 !important;
}

/* Product names in order summary */
.wc-block-checkout .wc-block-components-product-name {
  color: #2c5f7c !important;
  font-weight: 600 !important;
}

/* Prices in checkout */
.wc-block-checkout .wc-block-formatted-money-amount,
.wc-block-checkout .wc-block-components-product-price,
.wc-block-checkout .wc-block-components-totals-item__value {
  color: #2c5f7c !important;
  font-weight: 600 !important;
}

/* Totals section */
.wc-block-checkout .wc-block-components-totals-footer-item {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #2c5f7c !important;
  border-top: 2px solid #2c5f7c !important;
  padding-top: 1rem !important;
  margin-top: 1rem !important;
}

/* Coupon/Add coupons panel */
.wc-block-checkout .wc-block-components-panel__button {
  color: #2c5f7c !important;
  font-weight: 600 !important;
}

/* Payment options section */
.wc-block-checkout .wc-block-components-radio-control__label,
.wc-block-checkout .wc-block-components-payment-method-label {
  color: #333 !important;
}

/* Error messages */
.wc-block-checkout .wc-block-components-notice-banner.is-error {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
}

/* Checkbox styling */
.wc-block-checkout .wc-block-components-checkbox__input[type="checkbox"] {
  accent-color: #2c5f7c !important;
}

/* Links */
.wc-block-checkout a {
  color: #2c5f7c !important;
}

.wc-block-checkout a:hover {
  color: #234a5f !important;
  text-decoration: underline !important;
}

/* Order summary border removal */
.wp-block-woocommerce-checkout-order-summary-block {
  border: 0 !important;
}

/* Checkout actions row - side by side layout */
.wc-block-checkout__actions_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

/* Return to cart link */
.wc-block-components-checkout-return-to-cart-button {
  color: #2c5f7c !important;
  background: transparent !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.wc-block-components-checkout-return-to-cart-button:hover {
  color: #234a5f !important;
}

/* Place order button */
.wc-block-components-checkout-place-order-button {
  background: #2c5f7c !important;
  color: #fff !important;
  padding: 1rem 2rem !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  max-width: 300px !important;
  margin-left: auto !important;
}

.wc-block-components-checkout-place-order-button span,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  color: #fff !important;
}

.wc-block-components-checkout-place-order-button:hover {
  background: #234a5f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(44, 95, 124, 0.3) !important;
}

.wc-block-components-checkout-place-order-button:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .wc-block-checkout {
    padding: 1.5rem !important;
  }

  .wc-block-checkout .wc-block-components-sidebar {
    padding: 1rem !important;
  }
}

/* ============================================================================
   CHECKOUT PAGE STYLES (Classic checkout fallback)
   ============================================================================ */

/* Override text colors in WooCommerce checkout areas only */
.woocommerce-checkout .woocommerce,
.woocommerce-checkout .woocommerce * {
  color: #333 !important;
}

/* Checkout form labels */
.woocommerce-checkout .woocommerce label,
.woocommerce-checkout .woocommerce .form-row label {
  color: #333 !important;
}

/* Checkout form inputs */
.woocommerce-checkout .woocommerce input[type="text"],
.woocommerce-checkout .woocommerce input[type="email"],
.woocommerce-checkout .woocommerce input[type="tel"],
.woocommerce-checkout .woocommerce input[type="password"],
.woocommerce-checkout .woocommerce textarea,
.woocommerce-checkout .woocommerce select {
  color: #333 !important;
  border-color: #ddd !important;
}

/* Checkout headings */
.woocommerce-checkout .woocommerce h2,
.woocommerce-checkout .woocommerce h3,
.woocommerce-checkout .woocommerce h4 {
  color: #333 !important;
}

/* Order summary text */
.woocommerce-checkout .woocommerce .order-summary,
.woocommerce-checkout .woocommerce .order_review,
.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order {
  color: #333 !important;
}

/* Product names in checkout */
.woocommerce-checkout .woocommerce .product-name {
  color: #2c5f7c !important;
  font-weight: 600 !important;
}

/* Prices in checkout */
.woocommerce-checkout .woocommerce .amount,
.woocommerce-checkout .woocommerce .woocommerce-Price-amount {
  color: #2c5f7c !important;
}

/* Place order button */
.woocommerce-checkout .woocommerce #place_order,
.woocommerce-checkout .woocommerce .checkout-button {
  background: #2c5f7c !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 1rem 2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.woocommerce-checkout .woocommerce #place_order:hover,
.woocommerce-checkout .woocommerce .checkout-button:hover {
  background: #234a5f !important;
}

/* ============================================================================
   MINI CART WIDGET STYLES
   ============================================================================ */

.mini-cart-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.mini-cart-link:hover {
  opacity: 0.8 !important;
}

.mini-cart-link i {
  font-size: 1.2rem !important;
  color: #fff !important;
}

.mini-cart-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 0.35rem !important;
  background: #dc2626 !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.mini-cart-total {
  font-size: 0.9rem !important;
  color: #fff !important;
}

.mini-cart-empty {
  font-size: 0.9rem !important;
  color: #fff !important;
}

/* Mobile off-screen menu styling */
.off-screen .mini-cart-link {
  display: flex !important;
  padding: 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.off-screen .mini-cart-link i {
  font-size: 1.5rem !important;
}

.off-screen .mini-cart-count {
  min-width: 24px !important;
  height: 24px !important;
  font-size: 0.85rem !important;
}

.off-screen .mini-cart-total {
  font-size: 1rem !important;
  margin-left: auto !important;
}

/* Mobile Mini Cart - Simplified for header */
@media (max-width: 768px) {
  .mini-cart-link {
    padding: 0.35rem 0.75rem !important;
    gap: 0.35rem !important;
  }

  /* Hide the total on mobile */
  .mini-cart-total {
    display: none !important;
  }

  /* Optimize icon size for mobile */
  .mini-cart-link i {
    font-size: 1.1rem !important;
  }

  /* Adjust count badge for mobile */
  .mini-cart-count {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 0.7rem !important;
    padding: 0 0.3rem !important;
  }

  /* Keep off-screen menu styling as is */
  .off-screen .mini-cart-link {
    padding: 1rem !important;
    gap: 0.5rem !important;
  }

  .off-screen .mini-cart-link i {
    font-size: 1.5rem !important;
  }

  .off-screen .mini-cart-count {
    min-width: 24px !important;
    height: 24px !important;
    font-size: 0.85rem !important;
  }
}

/* ============================================================================
   RESPONSIVE / MOBILE STYLES
   ============================================================================ */

@media (max-width: 768px) {
  /* Read more link - visible on mobile */
  .single-product .product-read-more-link {
    display: inline-block !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    color: #2c5f7c !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
  }

  .single-product .product-read-more-link:hover {
    color: #234a5f !important;
    text-decoration: underline !important;
  }

  .single-product .product-read-more-link::after {
    content: " →" !important;
  }

  /* Product price on mobile */
  .single-product .price {
    font-size: 1.5rem !important;
  }

  /* Product meta spacing */
  .single-product .product_meta {
    margin-top: 1.5rem !important;
  }

  /* Tabs - Stack vertically like accordion */
  .single-product .woocommerce-tabs .tabs {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .single-product .woocommerce-tabs .tabs li {
    width: 100% !important;
    border-bottom: 1px solid #ddd !important;
  }

  .single-product .woocommerce-tabs .tabs li:last-child {
    border-bottom: none !important;
  }

  .single-product .woocommerce-tabs .tabs li a {
    width: 100% !important;
    padding: 1rem !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    background: #f8f9fa !important;
    margin-bottom: 0 !important;
  }

  .single-product .woocommerce-tabs .tabs li.active a {
    background: #2c5f7c !important;
    color: #fff !important;
  }

  .single-product .woocommerce-tabs .tabs li a:hover {
    background: #e9ecef !important;
  }

  .single-product .woocommerce-tabs .tabs li.active a:hover {
    background: #234a5f !important;
  }

  .single-product .woocommerce-tabs .wc-tabs-wrapper,
  .single-product .woocommerce-tabs .panel {
    border-radius: 0 !important;
  }

  .single-product .woocommerce-tabs .panel {
    padding: 1.5rem !important;
  }

  /* Related products - single column on mobile */
  .single-product .related.products ul.products {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  /* Main content padding reduction */
  .single-product .k-layout__main__content {
    padding: 1.5rem !important;
  }

  /* Product description */
  .single-product .woocommerce-product-details__short-description {
    font-size: 0.95rem !important;
  }

  /* Price sizing */
  .single-product .price {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
  }

  /* Stock status */
  .single-product .stock {
    font-size: 0.85rem !important;
  }

  /* Quantity and button - already handled in main styles */
  .single-product form.cart {
    margin: 1.5rem 0 !important;
  }

  /* Product meta */
  .single-product .product_meta {
    font-size: 0.85rem !important;
    margin-top: 1.5rem !important;
  }

  /* Tabs */
  .single-product .woocommerce-tabs {
    margin-top: 1.5rem !important;
  }

  .single-product .woocommerce-tabs .panel {
    padding: 1rem !important;
  }

  .single-product .woocommerce-tabs .panel h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  .single-product .woocommerce-tabs .panel p {
    font-size: 0.95rem !important;
  }

  /* Related products */
  .single-product .related.products {
    margin-top: 2rem !important;
    padding-top: 2rem !important;
  }

  .single-product .related.products h2 {
    font-size: 1.5rem !important;
  }

  /* Add to cart button */
  .single-product .single_add_to_cart_button {
    padding: 1rem 2rem !important;
    font-size: 0.95rem !important;
    margin-top: 10px !important;
  }
}
