/* ==========================================================================
   WALK & FLY - FEATURED PRODUCTS CAROUSEL
   Version: 1.0 - 2026-04-10
   ========================================================================== */

.wf-featured {
    padding: 50px 0 60px;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.wf-featured-header {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}
.wf-featured-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2C2420;
    line-height: 1.2;
    margin: 0;
}
.wf-featured-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #8B6F47;
    margin-top: 4px;
}
.wf-featured-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2C2420;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid #2C2420;
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}
.wf-featured-link:hover {
    color: #C9A96E;
    border-color: #C9A96E;
}

/* Track */
.wf-featured-track-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.wf-featured-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 40px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wf-featured-track::-webkit-scrollbar { display: none; }

/* Arrows */
.wf-featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E0D8CE;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.wf-featured-arrow:hover {
    background: #2C2420;
    border-color: #2C2420;
    box-shadow: 0 4px 12px rgba(44,36,32,0.2);
}
.wf-featured-arrow:hover svg { stroke: #fff; }
.wf-featured-arrow svg {
    width: 18px;
    height: 18px;
    stroke: #2C2420;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.25s;
}
.wf-featured-arrow--left { left: 8px; }
.wf-featured-arrow--right { right: 8px; }
.wf-featured-arrow[disabled] { opacity: 0; pointer-events: none; }

/* Product card */
.wf-featured-card {
    flex: 0 0 calc(25% - 12px);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: transform 0.2s;
}
.wf-featured-card:hover { transform: translateY(-3px); }
.wf-featured-card-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #F5F0EB;
    border-radius: 4px;
    margin-bottom: 12px;
}
.wf-featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s;
}
.wf-featured-card-img img.wf-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.wf-featured-card:hover .wf-featured-card-img img.wf-hover-img { opacity: 1; }

/* Badges */
.wf-featured-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #8B6F47;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.wf-featured-card-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #C14B4B;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}

/* Quick view button */
.wf-featured-card-quick {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s;
    z-index: 2;
}
.wf-featured-card:hover .wf-featured-card-quick { opacity: 1; transform: translateY(0); }
.wf-featured-card-quick:hover { background: #2C2420; }
.wf-featured-card-quick:hover svg { stroke: #fff; }
.wf-featured-card-quick svg {
    width: 16px;
    height: 16px;
    stroke: #2C2420;
    stroke-width: 2;
    fill: none;
}

/* Product info */
.wf-featured-card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2C2420;
    margin-bottom: 2px;
    line-height: 1.3;
}
.wf-featured-card-category {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.wf-featured-card-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2C2420;
}
.wf-featured-card-price-old {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

/* Dots */
.wf-featured-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.wf-featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E0D8CE;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.wf-featured-dot--active {
    background: #2C2420;
    width: 24px;
    border-radius: 4px;
}

/* Skeleton loading */
.wf-featured-skeleton {
    background: linear-gradient(90deg, #F5F0EB 25%, #EDE7DF 50%, #F5F0EB 75%);
    background-size: 200% 100%;
    animation: wfShimmer 1.5s infinite;
    border-radius: 4px;
}
.wf-featured-skeleton--img { aspect-ratio: 1/1; margin-bottom: 12px; }
.wf-featured-skeleton--text { height: 14px; margin-bottom: 8px; width: 80%; }
.wf-featured-skeleton--price { height: 16px; width: 40%; }
@keyframes wfShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 1024px) {
    .wf-featured-card { flex: 0 0 calc(33.333% - 11px); }
    .wf-featured-header { padding: 0 24px; }
    .wf-featured-track { padding: 0 24px 20px; }
}
@media (max-width: 768px) {
    .wf-featured { padding: 36px 0 44px; }
    .wf-featured-card { flex: 0 0 calc(50% - 8px); }
    .wf-featured-header { padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .wf-featured-track { padding: 0 16px 16px; gap: 12px; }
    .wf-featured-arrow { display: none; }
    .wf-featured-title { font-size: 1.5rem; }
    .wf-featured-card-quick { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .wf-featured-card { flex: 0 0 72%; }
}
@media (prefers-reduced-motion: reduce) {
    .wf-featured-track { scroll-behavior: auto; }
    .wf-featured-card:hover { transform: none; }
}
