/* Layout 10 Container */
.ecomus-product-grid .products.layout-10 {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px; /* Wider gutter */
  padding: 0;
  list-style: none;
}

/* Layout 10 Item */
.ecomus-product-grid .product-layout-10 {
  padding: 0 15px; /* Wider gutter */
  box-sizing: border-box;
  margin-bottom: 30px; /* More spacing bottom */
  width: 100%;
}

/* Visual Styling */
.product-layout-10 .product-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border-radius: 16px; /* Larger radius */
  padding: 20px 30px; /* Much larger padding */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 100px; /* Ensure substantial height */
}

.product-layout-10 .product-inner:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #eee;
}

/* Image/Flag */
.product-layout-10 .product-image {
  flex-shrink: 0;
  margin-right: 25px; /* More spacing */
  width: 70px; /* Much larger flag */
  height: 50px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow on flag */
}

.product-layout-10 .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Title */
.product-layout-10 .product-info {
  flex-grow: 1;
  padding-right: 20px;
}

.product-layout-10 .product-title {
  margin: 0;
  font-size: 20px; /* Larger font */
  font-weight: 700; /* Bolder */
  line-height: 1.25;
  color: #1a1a1a;
}

.product-layout-10 .product-title a {
  color: inherit;
  text-decoration: none;
}

/* Price/Action */
.product-layout-10 .product-side-action {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

/* Enforce visibility with !important in case of theme conflicts */
.product-layout-10 .product-price {
  font-weight: 800; /* Extra bold */
  color: #1a1a1a !important;
  font-size: 20px; /* Larger price */
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  opacity: 1 !important;
  visibility: visible !important;
}

.product-layout-10 .product-price del {
  color: #999;
  font-size: 0.8em;
  margin-right: 8px;
  font-weight: 500;
}

.product-layout-10 .product-price ins {
  background: none;
  text-decoration: none;
  color: inherit;
}

/* Grid Column Logic */

/* Desktop (Default) */
.ecomus-product-columns--1 .product-layout-10 {
  width: 100%;
}
.ecomus-product-columns--2 .product-layout-10 {
  width: 50%;
}
.ecomus-product-columns--3 .product-layout-10 {
  width: 33.3333%;
}
.ecomus-product-columns--4 .product-layout-10 {
  width: 25%;
}
.ecomus-product-columns--5 .product-layout-10 {
  width: 20%;
}
.ecomus-product-columns--6 .product-layout-10 {
  width: 16.6666%;
}

/* Tablet */
@media (max-width: 1024px) {
  .ecomus-product-columns-tablet--1 .product-layout-10 {
    width: 100%;
  }
  .ecomus-product-columns-tablet--2 .product-layout-10 {
    width: 50%;
  }
  .ecomus-product-columns-tablet--3 .product-layout-10 {
    width: 33.3333%;
  }
  .ecomus-product-columns-tablet--4 .product-layout-10 {
    width: 25%;
  }

  .product-layout-10 .product-inner {
    padding: 15px 20px;
  }
  .product-layout-10 .product-image {
    width: 60px;
    height: 42px;
    margin-right: 15px;
  }
  .product-layout-10 .product-title {
    font-size: 18px;
  }
  .product-layout-10 .product-price {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ecomus-product-columns-mobile--1 .product-layout-10 {
    width: 100%;
  }
  .ecomus-product-columns-mobile--2 .product-layout-10 {
    width: 50%;
  }

  .product-layout-10 .product-inner {
    padding: 12px 15px;
    min-height: auto;
  }
  .product-layout-10 .product-image {
    width: 50px;
    height: 35px;
    margin-right: 12px;
  }
  .product-layout-10 .product-title {
    font-size: 16px;
  }
  .product-layout-10 .product-price {
    font-size: 16px;
  }
}

/* Ensure underlying links still work but cursor is consistent */
.product-layout-10 .product-inner a {
    cursor: pointer;
}

/* Fix Quick View Modal Visibility */
.quick-view-modal.modal--open .modal__content,
.quick-view-modal.modal--open .product-quickview {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #fff !important; /* Force white background */
    z-index: 10000 !important;
    display: block !important;
}

.quick-view-modal.modal--open .modal__wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-color: transparent !important; /* Wrapper can be transparent if content is white */
}

/* Click Indicator & UX Improvements */
.product-layout-10 .product-inner {
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Ensure decorative background stays inside */
    text-decoration: none; /* Reset anchor style */
    color: inherit; /* Reset anchor style */
    display: flex; /* Ensure it behaves as a box */
}

/* Decorative Background Swoop */
.product-layout-10 .product-inner::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: #f7f7f7;
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8);
}

.product-layout-10 .product-inner:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Icon Styling */
.product-layout-10 .click-indicator-icon {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s ease 0.1s; /* Slight delay for better sync with background */
    z-index: 10;
    /* Removed opacity: 0 and transform to make it always visible */
    pointer-events: none;
}

/* Show on hover */
.product-layout-10 .product-inner:hover .click-indicator-icon {
    transform: translateX(5px); /* Subtle move to right */
}

/* Make sure content is above the background swoop */
.product-layout-10 .product-info,
.product-layout-10 .product-image,
.product-layout-10 .product-side-action {
    position: relative;
    z-index: 5;
}
