/**
 * Senora Featured Collection - Scoped Carousel
 * Version 1.0.2
 */
.senora-featured-collection {
  position: relative;
  width: 100%;
  margin: 40px 0;
}

/* FIX: Redesigned header to flex container, safely isolating nav buttons */
.senora-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  text-align: left;
}

.senora-fc-titles {
  flex: 1;
}

.senora-featured-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px 0;
  text-transform: capitalize;
}

.senora-featured-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Container locking arrows into standard flex flow */
.senora-fc-nav-wrap {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.senora-fc-nav {
  position: relative; /* Fixed: Removed Absolute Positioning entirely */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2c3e50;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.senora-fc-nav:hover { background: #b36c5e; color: #fff; }
.senora-fc-nav:focus-visible { outline: 2px solid #1a5f5f; outline-offset: 2px; }
.senora-fc-nav:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.senora-fc-nav[hidden] { display: none !important; }

/* Viewport and Grid Tracking */
.senora-fc-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.senora-fc-viewport::-webkit-scrollbar { display: none; }

.senora-featured-grid { display: flex; flex-wrap: nowrap; gap: 24px; list-style: none; margin: 0; padding: 4px; }

.senora-featured-grid.woocommerce li.product {
  flex: 0 0 calc((100% - 4 * 24px) / 5);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.senora-featured-grid.woocommerce li.product:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); border-color: #c0c0c0; }
.senora-featured-grid.woocommerce li.product:focus-within { outline: 2px solid #1a5f5f; outline-offset: 2px; }
.senora-featured-grid.woocommerce li.product .woocommerce-loop-product__link { display: block; position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 10px; }
.senora-featured-grid.woocommerce li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.senora-featured-grid.woocommerce li.product:hover img { transform: scale(1.08); }
.senora-featured-grid.woocommerce li.product h2, .senora-featured-grid.woocommerce li.product .woocommerce-loop-product__title { padding: 8px 4px; margin: 0 0 8px 0; font-size: 15px; font-weight: 600; color: #333; line-height: 1.5; min-height: 60px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.senora-featured-grid.woocommerce li.product .price { margin: 0 4px 8px 4px; font-size: 18px; font-weight: 700; color: #2c3e50; }
.senora-featured-grid.woocommerce li.product .button { margin-top: auto; margin-bottom: 0; padding: 11px 20px; width: 100%; background: #b36c5e; color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.25s ease; cursor: pointer; }
.senora-featured-grid.woocommerce li.product .button:hover { background: #9a766c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(179, 108, 94, 0.3); }

/* Responsive Adjustments */
@media (max-width: 1200px) and (min-width: 921px) {
  .senora-featured-grid.woocommerce li.product { flex-basis: calc((100% - 3 * 24px) / 4); }
}
@media (max-width: 920px) {
  .senora-featured-collection { margin: 32px 0; }
  .senora-featured-header { margin-bottom: 24px; }
  .senora-featured-title { font-size: 22px; }
  .senora-featured-grid { gap: 16px; }
  .senora-featured-grid.woocommerce li.product { flex-basis: calc((100% - 16px) / 2.2); padding: 10px; }
  .senora-featured-grid.woocommerce li.product h2, .senora-featured-grid.woocommerce li.product .woocommerce-loop-product__title { font-size: 14px; min-height: 50px; -webkit-line-clamp: 2; }
  .senora-featured-grid.woocommerce li.product .price { font-size: 16px; }
  .senora-featured-grid.woocommerce li.product .button { padding: 10px 16px; font-size: 13px; }
  .senora-fc-nav { display: none; }
}
@media (max-width: 768px) {
  .senora-featured-collection { margin: 24px 0; }
  .senora-featured-title { font-size: 18px; }
  .senora-featured-grid.woocommerce li.product { flex-basis: calc((100% - 16px) / 1.3); }
  .senora-featured-grid.woocommerce li.product h2, .senora-featured-grid.woocommerce li.product .woocommerce-loop-product__title { font-size: 13px; min-height: 44px; }
  .senora-featured-grid.woocommerce li.product .price { font-size: 15px; }
  .senora-featured-grid.woocommerce li.product .button { padding: 9px 12px; font-size: 12px; }
}