/* Global base – safe */
body {
  margin: 0;
  padding: 0;
}

/* ===== SCOPE: CATALOG LISTING PAGES ONLY =====
   These body classes are present on PrestaShop listing pages.
   This prevents leakage into the product page (body.page-product). */

/* Helper: define a scope selector list for readability in your editor:
   :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier)
*/

/* Make listing body containers 1300px to match header */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-fluid,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-sm,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-md,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-lg,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-xl,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #wrapper .container,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #main .container,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #content .container,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-content .container {
  max-width: 1300px;
  width: 100%;
}

@media (min-width: 1400px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-fluid,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-sm,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-md,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-lg,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-xl,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #wrapper .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #main .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #content .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-content .container {
    max-width: 1400px;
  }
}

@media (min-width: 1600px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-fluid,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-sm,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-md,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-lg,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-xl,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #wrapper .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #main .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #content .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-content .container {
    max-width: 1500px;
  }
}

@media (min-width: 1800px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-fluid,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-sm,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-md,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-lg,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .container-xl,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #wrapper .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #main .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #content .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-content .container {
    max-width: 1600px;
  }
}

/* Ensure header containers also match on listing pages */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .custom-header-top .container,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .categories-bar .container {
  max-width: 1300px;
  width: 100%;
}

@media (min-width: 1400px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .custom-header-top .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .categories-bar .container {
    max-width: 1400px;
  }
}

@media (min-width: 1600px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .custom-header-top .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .categories-bar .container {
    max-width: 1500px;
  }
}

@media (min-width: 1800px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .custom-header-top .container,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .categories-bar .container {
    max-width: 1600px;
  }
}

/* ===== ACCOUNT AREA (unrelated to product page; safe to leave global) ===== */
.my-account-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 20px;
}

.account-header {
  text-align: center;
  margin-bottom: 30px;
}

.account-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 5px;
}

.account-header h3 {
  font-size: 18px;
  color: #666;
  font-weight: normal;
}

.account-layout {
  display: flex;
  gap: 30px;
}

/* Left Sidebar */
.account-sidebar {
  width: 250px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0;
}

.account-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  border-bottom: 1px solid #ddd;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  gap: 12px;
}

.menu-item a:hover {
  background: #e0e0e0;
  text-decoration: none;
}

.menu-item.active a {
  background: #263C54;
  color: white;
}

.menu-item i {
  font-size: 20px;
}

/* Main Content */
.account-content {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.account-content h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
}

.account-content h4 {
  font-size: 20px;
  color: #333;
  margin: 30px 0 20px 0;
}

.account-content h5 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Addresses Side by Side */
.addresses-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.address-box {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  background: #fafafa;
}

.address-info p {
  margin: 5px 0;
  line-height: 1.4;
}

/* Password Section */
.password-change {
  background: #fafafa;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.password-fields {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.field-group {
  flex: 1;
}

.field-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.save-btn {
  background: #263C54;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.save-btn:hover {
  background: #1a2b3d;
}

/* Mobile */
@media (max-width: 768px) {
  .account-layout {
    flex-direction: column;
  }

  .account-sidebar {
    width: 100%;
  }

  .addresses-row {
    flex-direction: column;
  }

  .password-fields {
    flex-direction: column;
  }
}

/* ===== PAGE TITLE WRAP – Scope to listing pages ===== */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-header{
  background-color: #F5E9A3;
  height: 200px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-title-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  text-align: center;
  padding: 60px 0 40px 0;
  margin-bottom: 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .page-title {
  font-size: 60px;
  color: #111;
  font-weight: 800;
  margin: 0;
  letter-spacing: 2px;
  text-align: center;
}

/* ===== CUSTOM PRODUCT LAYOUT CSS – Scope to listing pages ===== */

/* Main product card container with visual barrier */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .pext-product-card {
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .pext-product-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Product container with vertical layout for grid */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-container {
  display: flex;
  flex-direction: column;
  padding: 15px;
  min-height: 720px;
}

/* Product Image at top */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-image-container,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container {
  width: 100%;
  margin-bottom: 15px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-image-container .thumbnail,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .thumbnail {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: visible;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-image-container img,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-image-container .thumbnail:hover img,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .thumbnail:hover img {
  transform: scale(1.05);
}

/* Hide product flags only on listing pages */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-flags,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .js-product-flags {
  display: none;
}

/* Product info container */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start; /* Ensure all cards start at the top */
}

/* Product title */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-title a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-title a:hover {
  color: #007bff;
}

/* Product features section */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-features-section {
  margin-bottom: 15px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .features-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .features-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .feature-item {
  background-color: #f8f9fa;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  border: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .feature-item strong {
  color: #495057;
  min-width: 60px;
}

/* Pricing section - more compact */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-pricing {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-per-meter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dee2e6;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-per-meter .label {
  font-weight: 500;
  color: #495057;
  font-size: 0.85rem;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-per-meter .price {
  font-size: 1rem;
  font-weight: 600;
  color: #28a745;
}

/* Total section */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .total-section {
  margin-top: 6px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .total-label {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: #333;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-label {
  color: #495057;
  font-size: 0.8rem;
  white-space: nowrap;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-value {
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
}

/* Quantity and Add to Cart Section */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-add-to-cart {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .quantity-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: flex-start;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) #products .up{
  margin-bottom: 0;
}

/* Very compact length input - horizontal layout */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .length-input {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .length-input label {
  font-weight: 500;
  color: #495057;
  font-size: 0.7rem;
  margin: 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .length-field {
  width: 40px !important;
  max-width: 40px !important;
  min-width: 40px !important;
  padding: 2px 4px;
  border: 1px solid #ced4da;
  border-radius: 3px;
  font-size: 0.7rem;
  text-align: center;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .length-unit {
  font-size: 0.65rem;
  color: #6c757d;
  margin: 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .length-field:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

/* Very compact quantity control - horizontal layout */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .quantity-control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .quantity-control label {
  font-weight: 500;
  color: #495057;
  font-size: 0.7rem;
  margin: 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .qty-container {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 3px;
  overflow: hidden;
  height: 22px;
  width: 60px !important;
  max-width: 60px !important;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .qty-container input {
  border: none;
  padding: 0;
  text-align: center;
  width: 25px !important;
  max-width: 25px !important;
  min-width: 25px !important;
  font-size: 0.7rem;
  height: 20px;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .qty-container input:focus {
  outline: none;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .btn-touchspin {
  background-color: #f8f9fa;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  width: 15px !important;
  max-width: 15px !important;
  height: 20px;
  flex-shrink: 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .btn-touchspin:hover {
  background-color: #e9ecef;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .btn-touchspin i {
  font-size: 0.5rem;
  color: #495057;
}

/* Add to cart button - full width and smaller */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart-button {
  text-align: center;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: background-color 0.3s ease;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart:hover {
  background-color: #218838;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart i {
  font-size: 1rem;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart:disabled,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) button[data-button-action="add-to-cart"]:disabled {
  background-color: #28a745;
  color: white;
  border: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive design for smaller grid items */
@media (max-width: 1200px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-title {
    font-size: 1rem;
  }

  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .feature-item {
    font-size: 0.7rem;
    padding: 2px 4px;
  }
}

@media (max-width: 992px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-container {
    padding: 12px;
  }

  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-image-container .thumbnail,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .thumbnail {
    height: 160px;
  }
}

@media (max-width: 768px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-container {
    padding: 10px;
  }

  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-image-container .thumbnail,
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .thumbnail {
    height: 140px;
  }

  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .quantity-controls {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-title {
    font-size: 0.95rem;
  }

  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .price-line {
    font-size: 0.8rem;
  }
}

/* ================================
 WISHLIST HEART BUTTON – listing pages only
 ================================ */

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button:hover {
  background: rgba(255, 255, 255, 1);
  color: #e74c3c;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button.active,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button[data-checked="true"] {
  color: #e74c3c;
  background: rgba(255, 255, 255, 1);
}

/* Style the heart icon inside blockwishlist button */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button:before {
  font-family: 'Material Icons';
  content: "favorite_border";
  font-size: 18px;
  line-height: 1;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button.active:before,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button[data-checked="true"]:before {
  content: "favorite";
}

/* Ensure product container has relative positioning for absolute wishlist positioning */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .pext-product-card .product-container {
  position: relative;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .pext-product-card .thumbnail-container {
  position: relative;
}

/* Responsive wishlist button */
@media (max-width: 768px) {
  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  :is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .thumbnail-container .wishlist-button:before {
    font-size: 16px;
  }
}

/* Force identical dimensions for both enabled and disabled buttons – listing pages only */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart-button .btn,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-add-to-cart .btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: auto;
  min-height: 36px; /* Force consistent height */
  max-height: 36px; /* Prevent height variations */
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  line-height: 1.2; /* Consistent line height */
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart:hover,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart-button .btn:hover:not(:disabled) {
  background-color: #218838;
}

:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart:disabled,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart-button .btn:disabled,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-add-to-cart .btn:disabled {
  background-color: #28a745;
  color: white;
  opacity: 0.6;
  cursor: not-allowed;
  /* Keep same dimensions */
  min-height: 36px;
  max-height: 36px;
}

/* Ensure icons are consistent size */
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart i,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .add-to-cart-button .btn i,
:is(.page-category, .page-search, .page-prices-drop, .page-new-products, .page-best-sales, .page-manufacturer, .page-supplier) .product-add-to-cart .btn i {
  font-size: 1rem;
  line-height: 1;
}

/* --- Button styles for Order History actions (account area) --- */
.account-content .view-order-details-link,
.account-content a[href*="submitReorder"] {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid #dee2e6;
  border-radius: 0.3rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-decoration: none !important;
  margin-top: 5px;
}

.account-content .view-order-details-link {
  color: #fff;
  background-color: #2fb5d2;
  border-color: #2fb5d2;
}

.account-content a[href*="submitReorder"] {
  color: #212529;
  background-color: #f8f9fa;
}

/* Product header divider line */
body.page-product .product-header-divider {
  height: 2px;
  background: #c1c1c1;
  margin: 12px 0 16px;
}

/* Optional: style your ref line a bit */
body.page-product .product-ref {
  margin-top: 6px;
  color: #6c757d;
  font-size: .9rem;
}

/* Three heading lines in the price area */
body.page-product .cb-stacked-prices {
  margin-top: .25rem;
  display: grid;
  gap: .25rem;
}

body.page-product .cb-line {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  color: #222;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

body.page-product .cb-line--meter { font-size: 1.25rem; font-weight: 700; }
body.page-product .cb-line--wholesale { font-size: 1.0625rem; font-weight: 600; color: #333; }
body.page-product .cb-line--rrp { font-size: .95rem; color: #666; font-weight: 600; }

body.page-product .cb-label { margin-right: .15rem; }
body.page-product .cb-suffix { margin-left: .15rem; color: #6c757d; font-weight: 400; }
body.page-product .cb-value { font-variant-numeric: tabular-nums; }

body.page-product .product-add-to-cart .cb-field {
  display: flex !important;
  align-items: center;
  gap: .5rem;
  justify-content: flex-start !important;
}
body.page-product .product-add-to-cart .cb-field .cb-label {
  margin: 0 !important;
  text-align: left !important;
  float: none !important;
  white-space: nowrap;
}

body.page-product .product-add-to-cart .cb-field .cb-input-row {
  flex: 0 0 33% !important;   /* 33% of the available row width */
  min-width: 10rem;           /* safety floor */
  max-width: 100%;
}

body.page-product .product-add-to-cart .cb-field--length .cb-input-row .input-group,
body.page-product .product-add-to-cart .cb-field--qty .cb-input-row .qty,
body.page-product .product-add-to-cart .cb-field--qty .cb-input-row .bootstrap-touchspin {
  width: 100% !important;
}

body.page-product .product-add-to-cart .cb-field--qty .cb-input-row .bootstrap-touchspin .form-control {
  width: 100% !important;
  margin-left: 34px;
}

body.page-product .product-add-to-cart .cb-field--length .input-group > .input-group-append {
  margin-left: .5rem !important;
}
body.page-product .product-add-to-cart .cb-field--length .input-group-text {
  min-width: 2.5rem;
  justify-content: center;
}

body.page-product .product-add-to-cart .wishlist-button-add,
body.page-product .product-add-to-cart .wishlist-button-product {
  display: none !important;
}

body.page-product .product-add-to-cart .cb-field--button { 
  display: block !important; 
  margin: 10px 0 0 0 !important;
}

body.page-product .product-add-to-cart [data-button-action="add-to-cart"] {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}
body.page-product .product-add-to-cart [data-button-action="add-to-cart"]:hover,
body.page-product .product-add-to-cart [data-button-action="add-to-cart"]:focus {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
  color: #fff !important;
}

body.page-product .product-add-to-cart .input-group:has(#length_mm) {
  width: 33% !important;
  min-width: 10rem;
  max-width: 100%;
}

body.page-product .product-add-to-cart .input-group:has(#length_mm) > .input-group-append {
  margin-left: .5rem !important;
}

body.page-product .product-add-to-cart .qty {
  width: 33% !important;    /* pre-JS wrapper */
  min-width: 10rem;
  max-width: 100%;
}
body.page-product .product-add-to-cart .qty > .bootstrap-touchspin {
  width: 100% !important;   /* post-JS wrapper fills the 33% container */
}
body.page-product .product-add-to-cart .qty > .bootstrap-touchspin .form-control {
  width: 100% !important;
}

body.page-product .product-add-to-cart .cb-field,
body.page-product .product-add-to-cart .product-quantity {
  justify-content: flex-start !important;
  text-align: left !important;
}

.product-description p{
  color: black;
}

.bw-cart-item-measurement .bw-measurement-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 13px;
}

.bw-cart-item-measurement .bw-measurement-label i {
    color: #3498db;
}

.bw-cart-item-measurement .bw-measurement-label strong {
    color: #2c3e50;
}

#header .menu{
display: block;
}

/* ===== PEXT HOMEPAGE STYLES ===== */
.page-home .page-home {
  padding: 0 !important;
}

/* Banner */
.pext-banner {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto 40px auto !important;
  text-align: center !important;
}
.pext-banner img {
  width: 100% !important;
  max-width: 1400px !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

/* Hero Section */
.pext-hero {
  text-align: center !important;
  padding: 60px 20px !important;
  max-width: 800px !important;
  margin: 0 auto 50px auto !important;
}
.pext-hero h1 {
  font-size: 42px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 20px 0 !important;
}
.pext-hero p {
  font-size: 18px !important;
  color: #555 !important;
  line-height: 1.7 !important;
  margin: 0 0 35px 0 !important;
}
.pext-hero-buttons {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* Buttons */
.pext-btn {
  display: inline-block !important;
  padding: 15px 35px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
.pext-btn-primary {
  background: #2c3e50 !important;
  color: #fff !important;
}
.pext-btn-primary:hover {
  background: #1a252f !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(44,62,80,0.3) !important;
}
.pext-btn-secondary {
  background: #fff !important;
  color: #2c3e50 !important;
  border: 2px solid #2c3e50 !important;
}
.pext-btn-secondary:hover {
  background: #2c3e50 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.pext-btn-white {
  background: #fff !important;
  color: #2c3e50 !important;
}
.pext-btn-white:hover {
  background: #f8f9fa !important;
  color: #1a252f !important;
  text-decoration: none !important;
}

/* USP Bar */
.pext-usp-bar {
  display: flex !important;
  justify-content: center !important;
  gap: 50px !important;
  padding: 40px 20px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  max-width: 1200px !important;
  margin: 0 auto 60px auto !important;
  flex-wrap: wrap !important;
}
.pext-usp {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 15px !important;
  color: #333 !important;
  font-weight: 500 !important;
}
.pext-usp-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: #2c3e50 !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 16px !important;
}

/* Categories Section */
.pext-categories {
  max-width: 1200px !important;
  margin: 0 auto 60px auto !important;
  padding: 0 20px !important;
  text-align: center !important;
}
.pext-categories h2 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 40px 0 !important;
}
.pext-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
}
.pext-category-card {
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  padding: 40px 25px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: block !important;
}
.pext-category-card:hover {
  border-color: #2c3e50 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
  transform: translateY(-5px) !important;
  text-decoration: none !important;
}
.pext-category-icon {
  width: 60px !important;
  height: 60px !important;
  background: #f0f4f8 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px auto !important;
}
.pext-category-icon svg {
  width: 28px !important;
  height: 28px !important;
  color: #2c3e50 !important;
}
.pext-category-card h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 0 0 10px 0 !important;
}
.pext-category-card p {
  font-size: 14px !important;
  color: #777 !important;
  margin: 0 !important;
}

/* CTA Section */
.pext-cta {
  background: #2c3e50 !important;
  color: #fff !important;
  text-align: center !important;
  padding: 70px 20px !important;
  border-radius: 12px !important;
  max-width: 1200px !important;
  margin: 0 auto 40px auto !important;
}
.pext-cta h2 {
  font-size: 32px !important;
  font-weight: 700 !important;
  margin: 0 0 15px 0 !important;
  color: #fff !important;
}
.pext-cta p {
  font-size: 18px !important;
  color: rgba(255,255,255,0.8) !important;
  margin: 0 0 30px 0 !important;
}

/* Responsive */
@media (max-width: 900px) {
  .pext-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .pext-hero h1 {
    font-size: 32px !important;
  }
  .pext-hero p {
    font-size: 16px !important;
  }
  .pext-usp-bar {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
  }
  .pext-category-grid {
    grid-template-columns: 1fr !important;
  }
  .pext-cta {
    padding: 50px 20px !important;
  }
  .pext-cta h2 {
    font-size: 26px !important;
  }
}
@media (max-width: 480px) {
  .pext-hero {
    padding: 40px 15px !important;
  }
  .pext-hero h1 {
    font-size: 28px !important;
  }
  .pext-btn {
    padding: 12px 25px !important;
    font-size: 14px !important;
  }
}

/* Force 4 products per row in the 9-column container on Desktop */
@media (min-width: 992px) {
    #js-product-list .products.row .product {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Adjust to 2 per row on mobile/tablets so they aren't too squished */
@media (max-width: 991px) and (min-width: 576px) {
    #js-product-list .products.row .product {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

#search_filters .facet .facet-title {
  white-space: normal !important;
  text-overflow: clip !important;
  word-wrap: break-word !important;
      line-height: 1.4 !important;
  overflow: visible !important;
  padding-bottom: 2px !important;
}

/* Fix filter option labels if truncated */
#search_filters .facet .facet-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

#search_filters .facet .facet-label a {
  white-space: normal !important;
  text-overflow: clip !important;
  word-wrap: break-word !important;
  flex: 1;
}

/* Align checkboxes/radio buttons to top when text wraps */
#search_filters .facet .facet-label .custom-checkbox,
#search_filters .facet .facet-label .custom-radio {
  margin-top: 0px !important;
  align-self: flex-start !important;
}

#search_filters .facet .facet-label a {
  margin-top: -6px !important;
}

/* Add spacing between filter options */
#search_filters .facet ul li {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

#search_filters .facet ul li:first-child {
  margin-top: 0 !important;
}

/* Alternative: add padding to labels for more breathing room */
#search_filters .facet .facet-label {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.product-ref-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* Product descriptions */
.product-descriptions {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}

.description-short {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.description-full {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: inherit;
}

.product-flag.new {
  display: none !important;
}

/* Berekende prijs box - Subtle style */
.bw-calculated-total-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center content to avoid large gaps */
  align-items: center;
  gap: 8px; /* Consistent spacing between label and price */
  text-align: center;
}

.bw-calculated-total-box .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0;
  white-space: nowrap; /* Keep label on one line */
}

.bw-calculated-total-price {
  font-size: 1rem;
  font-weight: 700;
  color: #28a745;
}

body.page-product .product-add-to-cart .cb-field--calculated-price {
    margin-bottom: 1rem;
    display: block !important;
}

body.page-product .product-add-to-cart .cb-field--calculated-price .bw-calculated-total-box {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 10px 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    margin-top: 0 !important; /* Override the inline style from the catalog hook */
}

body.page-product .product-add-to-cart .cb-field--calculated-price .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2e7d32;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.page-product .product-add-to-cart .cb-field--calculated-price .bw-calculated-total-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1b5e20;
}

/* Added for Add to Cart loading state */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.add-to-cart.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

body#checkout .container {
    min-height: auto !important;
}
/* Ensure the wrapper doesn't force extra vertical space on checkout */
body#checkout #wrapper {
    min-height: auto;
}

/* Product Description Toggle */
.product-description-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* Limit to 5 lines */
    line-clamp: 5;
    line-height: 1.5;
    max-height: calc(1.5em * 5);
    transition: max-height 0.3s ease;
}

.product-description-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
}

.read-more-container {
    margin-top: 10px;
}

.read-more-btn {
    padding: 0;
    color: #2fb5d2;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

.read-more-btn:hover {
    color: #2592a9;
    text-decoration: none;
}

/* Checkout navigation bar color */
body#checkout .header-nav {
    background: #263C54;
    color: #fff;
}

body#checkout .header-nav a {
    color: #fff;
}

body#checkout .header-nav .material-icons {
    color: #fff;
}
