/* ============================================================
   FEATURED PRODUCTS — MODERN CARD DESIGN
   ============================================================ */

/* Grid */
.fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 32px 0 8px;
}

/* Card */
.fp-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15,2,33,0.08);
    transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(15,2,33,0.05);
}
.fp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(194,24,91,0.18), 0 4px 16px rgba(15,2,33,0.08);
    border-color: rgba(194,24,91,0.1);
}

/* Image wrap */
.fp-img-wrap {
    position: relative;
    background: linear-gradient(145deg, #fdf3ff 0%, #fff0f6 55%, #f5f0ff 100%);
    padding: 28px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    overflow: hidden;
    transition: background 0.3s ease;
}
.fp-card:hover .fp-img-wrap {
    background: linear-gradient(145deg, #fce8ff 0%, #ffe0ee 55%, #ede8ff 100%);
}
.fp-img-wrap::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(194,24,91,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease;
}
.fp-card:hover .fp-img-wrap::before { transform: translate(-50%, -50%) scale(1.4); }

.fp-img {
    width: 100%;
    max-width: 165px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.14));
}
.fp-card:hover .fp-img { transform: scale(1.1) translateY(-6px); }

/* Badges */
.fp-badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #ff3366, #c2185b);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(194,24,91,0.45);
}
.fp-badge-feat {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(245,158,11,0.4);
}

/* Zoom overlay */
.fp-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 4;
}
.fp-card:hover .fp-img-overlay { opacity: 1; }
.fp-zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c2185b;
    font-size: 0.78rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.fp-zoom-btn:hover { transform: scale(1.1); }

/* Thumbnails */
.fp-thumbs {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 8px 14px 0;
    background: #fff;
}
.fp-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.55;
}
.fp-thumb:hover, .fp-thumb.active {
    border-color: #c2185b;
    opacity: 1;
    transform: scale(1.08);
}

/* Body */
.fp-body {
    padding: 14px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fp-cat {
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #c2185b;
    margin-bottom: 5px;
    display: block;
}
.fp-name {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a0533;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-stars {
    color: #f59e0b;
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Price */
.fp-price-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.fp-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a0533;
    letter-spacing: -0.5px;
}
.fp-orig {
    font-size: 0.83rem;
    color: #c4bcd8;
    text-decoration: line-through;
    font-weight: 500;
}
.fp-save {
    font-size: 0.7rem;
    color: #00b894;
    font-weight: 700;
    background: #e6faf5;
    padding: 2px 8px;
    border-radius: 50px;
}

/* Cart button */
.fp-cart-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #1a0533 0%, #c2185b 100%);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(194,24,91,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
}
.fp-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(194,24,91,0.45);
    background: linear-gradient(135deg, #c2185b 0%, #1a0533 100%);
}
.fp-cart-btn:active { transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .fp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
    .fp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px 0 8px; }
    .fp-img-wrap { min-height: 170px; padding: 20px 14px 14px; }
    .fp-img { max-width: 120px; height: 140px; }
    .fp-body { padding: 10px 12px 14px; }
    .fp-name { font-size: 0.85rem; }
    .fp-price { font-size: 1.1rem; }
    .fp-cart-btn { font-size: 0.78rem; padding: 10px; }
}
