/* =============================================
   CARD COMPONENT CSS
   ============================================= */

/* ---------- Products Section ---------- */
.products-section {
    background: var(--bg);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 250, 240, 0), var(--bg));
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .pill-badge {
    margin-bottom: 16px;
}

.section-header .section-title {
    margin-bottom: 16px;
}

/* ---------- Product Card ---------- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 210, 48, 0.1);
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 210, 48, 0.4);
}

/* Image wrapper */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

/* Photo overlay */
.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 43, 43, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.product-card:hover .product-img-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.quick-view-btn:hover {
    background: var(--primary);
}

/* Category badge on card */
.product-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(255, 210, 48, 0.4);
}

.product-bestseller-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #e74c3c;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Card body */
.product-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* Rating stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    color: var(--primary);
    font-size: 0.85rem;
}

.rating-count {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Price & CTA */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.add-to-cart-btn {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 210, 48, 0.4);
    color: var(--dark);
    font-size: 1.1rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 210, 48, 0.55);
}

.add-to-cart-btn.added {
    background: #2ecc71;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ---------- Features Section ---------- */
.features-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 210, 48, 0.1), transparent 70%);
    border-radius: 50%;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 210, 48, 0.07), transparent 70%);
    border-radius: 50%;
}

.features-section .section-title {
    color: var(--white);
}

.features-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.features-section .pill-badge {
    background: rgba(255, 210, 48, 0.15);
    border-color: rgba(255, 210, 48, 0.4);
    color: var(--primary);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 210, 48, 0.3);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(255, 210, 48, 0.3);
    transition: var(--transition);
}

.feature-icon-wrap i {
    line-height: 1;
}

.feature-card:hover .feature-icon-wrap {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 210, 48, 0.45);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
}

/* ---------- Testimonial Section ---------- */
.testimonial-section {
    background: var(--gray-100);
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 210, 48, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: rgba(255, 210, 48, 0.35);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 24px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.author-info .author-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.author-info .author-location {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.author-stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.author-stars .star-icon {
    font-size: 0.9rem;
}
