/**
 * WooCommerce Additional Styles – L6 Theme v1.1.2
 *
 * Cart drawer, checkout, cart page, product grid overrides.
 */

/* ============================================
   PRODUCT GRID OVERRIDES
   ============================================ */

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

/* Product card */
.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__link:hover {
  opacity: 1;
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  background: #F5F5F5;
}

.product-card__image-wrapper img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image-wrapper img,
li.product:hover .product-card__image-wrapper img {
  transform: scale(1.04);
}

/* Product badges */
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  padding: 4px 12px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
}

.product-card__badge--sale {
  background: #000;
}

/* Product info */
.product-card__info {
  padding: 12px 0 0;
}

.product-card__title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 15px;
  font-weight: 300;
  color: rgba(0,0,0,0.7);
}

.product-card__price del {
  opacity: 0.4;
  margin-right: 6px;
}

.product-card__price ins {
  text-decoration: none;
}

.product-card__colors {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0,0,0,0.5);
  margin-top: 4px;
}

/* Sale badge override */
.product-card__image-wrapper .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* ============================================
   SINGLE PRODUCT OVERRIDES
   ============================================ */

.single-product-layout .product-gallery {
  display: block;
}

.single-product-layout .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  position: relative;
  padding-left: 92px;
}

.single-product-layout .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.single-product-layout .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #F5F5F5;
}

/* Thumbnails: vertical strip on the left */
.single-product-layout .woocommerce-product-gallery .flex-control-thumbs {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.single-product-layout .woocommerce-product-gallery .flex-control-thumbs li {
  width: 80px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

.single-product-layout .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: border-color 0.2s;
}

.single-product-layout .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product-layout .woocommerce-product-gallery .flex-control-thumbs li img:hover {
  border-color: #000;
}

.single-product-layout .summary {
  width: 100% !important;
  float: none !important;
}

/* Variations */
.woocommerce div.product form.cart .variations {
  margin-bottom: 20px;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  border: none;
  padding: 6px 0;
  vertical-align: middle;
}

.woocommerce div.product form.cart .variations label {
  font-size: 14px;
  font-weight: 400;
  padding-right: 16px;
}

.woocommerce div.product form.cart .variations select {
  min-width: 180px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 10px;
}

.woocommerce div.product form.cart .variations select:focus {
  border-color: #000;
  outline: none;
}

.woocommerce div.product form.cart .reset_variations {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  margin-left: 8px;
}

/* Quantity input */
.woocommerce div.product form.cart div.quantity {
  display: inline-flex;
  margin-right: 12px;
}

.woocommerce div.product form.cart div.quantity .qty {
  width: 60px;
  height: 50px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  -moz-appearance: textfield;
}

.woocommerce div.product form.cart div.quantity .qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart div.quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart button */
.woocommerce div.product form.cart .single_add_to_cart_button {
  height: 50px;
  padding: 0 40px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  border-radius: 0;
  text-transform: none;
  transition: all 0.3s;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: transparent;
  color: #000;
}

/* Buttons row: add-to-cart + customize side by side */
.l6-buttons-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.l6-buttons-row form.cart {
  flex: 1;
  margin-bottom: 0;
}

.l6-buttons-row .l6-customize-btn {
  flex: 1;
}

/* When no buttons-row wrapper (non-preset products) */
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Mobile: stack buttons vertically */
@media (max-width: 768px) {
  .l6-buttons-row {
    flex-direction: column;
  }
}

.l6-customize-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
  text-transform: none;
  text-decoration: none;
  line-height: 1.6;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.l6-customize-btn:hover {
  background: transparent;
  color: #000;
  opacity: 1;
}

/* ============================================
   CART DRAWER
   ============================================ */

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 28px;
  color: #000;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.cart-drawer__close:hover {
  opacity: 1;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-drawer__item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: opacity 0.3s;
}

.cart-drawer__item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #F5F5F5;
  overflow: hidden;
}

.cart-drawer__item-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-drawer__item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  max-width: none;
}

.cart-drawer__item-details {
  flex: 1;
  min-width: 0;
}

.cart-drawer__item-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cart-drawer__item-name a {
  color: inherit;
  text-decoration: none;
}

.cart-drawer__item-name a:hover {
  opacity: 0.7;
}

.cart-drawer__item-price {
  font-size: 14px;
  font-weight: 300;
  color: #000;
  margin-bottom: 4px;
}

.cart-drawer__item-meta {
  font-size: 12px;
  font-weight: 300;
  color: rgba(0,0,0,0.5);
  margin-bottom: 6px;
}

.cart-drawer__item-meta dt { display: none; }
.cart-drawer__item-meta dd { margin: 0; padding: 0; }
.cart-drawer__item-meta p { margin: 0; }

.cart-drawer__item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.cart-drawer__item-qty-label {
  font-weight: 300;
  color: rgba(0,0,0,0.6);
}

.cart-drawer__item-remove {
  font-size: 12px;
  font-weight: 300;
  color: rgba(0,0,0,0.4);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-drawer__item-remove:hover {
  color: #000;
  opacity: 1;
}

.cart-drawer__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  text-align: center;
  color: rgba(0,0,0,0.4);
  font-size: 15px;
  font-weight: 300;
}

.cart-drawer__footer {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.cart-drawer__subtotal-label {
  font-size: 15px;
  font-weight: 400;
}

.cart-drawer__subtotal-amount {
  font-size: 16px;
  font-weight: 500;
}

.cart-drawer__tax-note {
  font-size: 12px;
  font-weight: 300;
  color: rgba(0,0,0,0.45);
  margin: 0 0 12px;
}

.cart-drawer__note-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(0,0,0,0.6);
  text-decoration: underline;
  margin-bottom: 16px;
  cursor: pointer;
}

.cart-drawer__note-link:hover {
  color: #000;
  opacity: 1;
}

.cart-drawer__actions {
  display: flex;
  gap: 10px;
}

.cart-drawer__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
  line-height: 1.4;
}

.cart-drawer__btn--view {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.cart-drawer__btn--view:hover {
  background: transparent;
  color: #000;
  opacity: 1;
}

.cart-drawer__btn--checkout {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.cart-drawer__btn--checkout:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* ============================================
   CART PAGE
   ============================================ */

.woocommerce-cart table.cart {
  border-collapse: collapse;
  width: 100%;
}

.woocommerce-cart table.cart td {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 12px;
  vertical-align: middle;
}

.woocommerce-cart table.cart th {
  padding: 12px;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.woocommerce-cart table.cart img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #f2f0ed;
}

.woocommerce-cart table.cart .product-remove a {
  color: rgba(0,0,0,0.3);
  font-size: 20px;
}

.woocommerce-cart table.cart .product-remove a:hover {
  color: #000;
  background: none;
}

/* Hide single-item price column (keep only subtotal/Gesamtsumme) */
.woocommerce-cart table.cart .product-price {
  display: none;
}
.woocommerce-cart table.cart th:nth-child(4) {
  display: none;
}

.woocommerce-cart .coupon .input-text {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
}

.woocommerce-cart .coupon .button,
.woocommerce-cart button[name="update_cart"] {
  border: 1px solid #000;
  background: transparent;
  color: #000;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 10px 24px;
  text-transform: none;
  transition: all 0.3s;
}

.woocommerce-cart .coupon .button:hover,
.woocommerce-cart button[name="update_cart"]:hover {
  background: #000;
  color: #fff;
}

.woocommerce-cart .cart_totals {
  float: none;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
}

.woocommerce-cart .cart_totals table {
  border: 1px solid rgba(0,0,0,0.08);
}

.woocommerce-cart .cart_totals table th {
  font-weight: 400;
  font-size: 14px;
}

.woocommerce-cart .cart_totals table td {
  font-weight: 300;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: none;
  text-align: center;
  transition: all 0.3s;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: transparent;
  color: #000;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.woocommerce-checkout .woocommerce {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-checkout .col2-set {
  padding: 40px 60px 40px 0;
}

.woocommerce-checkout #order_review_heading {
  display: none;
}

.woocommerce-checkout #order_review {
  background: #000;
  color: #fff;
  padding: 40px;
}

/* Checkout form styles */
.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

.woocommerce-checkout .form-row label {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 6px;
  display: block;
  color: rgba(0,0,0,0.6);
}

.woocommerce-checkout .form-row .required {
  color: rgba(0,0,0,0.3);
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  background: #fff;
  transition: border-color 0.2s;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: #000;
  outline: none;
}

.woocommerce-checkout .form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
}

/* Checkout section headings */
.woocommerce-checkout h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Order review on dark bg */
.woocommerce-checkout #order_review .shop_table {
  border: none;
  color: #fff;
}

.woocommerce-checkout #order_review .shop_table th,
.woocommerce-checkout #order_review .shop_table td {
  border-color: rgba(255,255,255,0.15);
  padding: 16px 0;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  vertical-align: middle;
}

.woocommerce-checkout #order_review .shop_table th {
  font-weight: 400;
}

.woocommerce-checkout #order_review .shop_table tfoot .order-total td {
  font-size: 18px;
  font-weight: 500;
}

/* Payment section */
.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
  color: #fff;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  color: #fff;
  font-weight: 300;
}

.woocommerce-checkout #payment div.place-order {
  padding: 20px 0 0;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  transition: all 0.3s;
}

.woocommerce-checkout #payment #place_order:hover {
  background: rgba(255,255,255,0.9);
}

/* Coupon in order review */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 20px;
}

.woocommerce-checkout .checkout_coupon {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0;
  padding: 20px;
}

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */

.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none;
  width: 100%;
  margin-bottom: 32px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  flex-wrap: wrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(0,0,0,0.5);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  color: #000;
  border-bottom-color: #000;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
}

/* ============================================
   NOTICES
   ============================================ */

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 300;
  border-top: 2px solid #000;
}

.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button {
  border: 1px solid #000;
  background: transparent;
  color: #000;
  border-radius: 0;
  font-size: 13px;
  font-weight: 300;
  padding: 6px 16px;
  text-transform: none;
}

.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-info .button:hover {
  background: #000;
  color: #fff;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.98);
  z-index: 9997;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-overlay__form {
  flex: 1;
}

.search-overlay__input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #000;
  padding: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 300;
  background: transparent;
  outline: none;
}

.search-overlay__close {
  background: none;
  border: none;
  font-size: 32px;
  color: #000;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.search-overlay__close:hover {
  opacity: 1;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: rgba(0,0,0,0.8);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .woocommerce-checkout .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout .col2-set {
    padding: 24px 0;
  }

  .woocommerce-checkout #order_review {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cart-drawer {
    width: 100%;
  }

  /* Single product gallery: remove left thumbnails */
  .single-product-layout .woocommerce-product-gallery {
    padding-left: 0;
  }

  .single-product-layout .woocommerce-product-gallery .flex-control-thumbs {
    position: static;
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    margin-top: 8px;
  }

  .single-product-layout .woocommerce-product-gallery .flex-control-thumbs li {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .woocommerce-cart table.cart .product-thumbnail {
    display: table-cell;
  }

  .woocommerce-cart table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
  }

  /* Hide product-price on mobile too */
  .woocommerce-cart table.cart .product-price {
    display: none;
  }

  .woocommerce-cart .cart_totals {
    max-width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    border-bottom: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .l6-customize-btn {
    font-size: 15px;
    padding: 0 20px;
    height: 46px;
  }

  /* Mobile product gallery: thumbnails below main image, not overlaid */
  .single-product-layout .woocommerce-product-gallery .flex-control-thumbs {
    position: static;
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    margin-top: 8px;
    order: 2;
  }

  .single-product-layout .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    order: 1;
  }

  .single-product-layout .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
  }

  .search-overlay__input {
    font-size: 20px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 9px;
  }
}

/* ============================================
   HOMEPAGE: "Unsere Regale" product section
   ============================================ */

.front-page .woocommerce ul.products,
.entry-content--front-page .woocommerce ul.products {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 100%;
}

.front-page .woocommerce ul.products li.product,
.entry-content--front-page .woocommerce ul.products li.product {
  width: auto;
}

.front-page .woocommerce,
.entry-content--front-page .woocommerce {
  max-width: 100%;
  padding: 0;
}

/* Full-width product section on front page */
.front-page .wp-block-woocommerce-product-new,
.front-page .wp-block-woocommerce-handpicked-products,
.front-page .wp-block-woocommerce-product-best-sellers,
.front-page .wc-block-grid,
.entry-content--front-page .wp-block-woocommerce-product-new,
.entry-content--front-page .wp-block-woocommerce-handpicked-products,
.entry-content--front-page .wc-block-grid {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

/* Shortcode-based products on front page */
.front-page .woocommerce.columns-3,
.front-page .woocommerce.columns-4,
.entry-content--front-page .woocommerce.columns-3,
.entry-content--front-page .woocommerce.columns-4 {
  max-width: 100%;
}

/* ============================================
   CART/CHECKOUT: L6 config thumbnails
   ============================================ */

/* Hide the l6_thumb metadata text (URL) everywhere */
.cart-drawer__item-meta dt:empty + dd,
.cart-drawer__item-meta .l6-thumb-hidden,
.woocommerce-checkout .shop_table .l6-thumb-hidden {
  display: none !important;
}

/* L6 config thumbnail in cart items */
.l6-cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f2f0ed;
  display: block;
  cursor: pointer;
}

/* Checkout order review: product images */
.woocommerce-checkout #order_review .shop_table .product-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-checkout #order_review .l6-checkout-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f2f0ed;
  flex-shrink: 0;
  border-radius: 4px;
}

/* Hide raw l6_thumb URL text in item data */
.wc-block-components-product-details li:has(.wc-block-components-product-details__name) {
  display: none;
}

/* ============================================
   CART DRAWER: L6 thumbnail styling
   ============================================ */

.cart-drawer__item-image .l6-cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f2f0ed;
}

/* ============================================
   BEARBEITEN LINK: Bold in all cart contexts
   ============================================ */

.l6-cart-edit-btn {
  font-weight: 600 !important;
  color: #000 !important;
  text-decoration: none !important;
}

.l6-cart-edit-btn:hover {
  text-decoration: underline !important;
}

/* ============================================
   CHECKOUT ORDER REVIEW: Thumbnails
   ============================================ */

/* Product name cell: flex row with thumbnail + text */
.woocommerce-checkout #order_review .shop_table td.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-checkout .l6-checkout-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  border-radius: 4px;
}

.woocommerce-checkout .l6-checkout-thumb-wrap img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.woocommerce-checkout .l6-checkout-product-name {
  flex: 1;
  min-width: 0;
}

/* Order review: better text wrapping */
.woocommerce-checkout #order_review .shop_table td {
  word-break: normal;
  overflow-wrap: break-word;
}

/* ============================================
   CART PAGE: Quantity input (editable)
   ============================================ */

.woocommerce-cart table.cart .product-quantity .qty {
  width: 60px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  -moz-appearance: textfield;
}

.woocommerce-cart table.cart .product-quantity .qty::-webkit-inner-spin-button,
.woocommerce-cart table.cart .product-quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
