/* ============================================================
   PUROALOE — Components (Part 2: Cards, Footer, Forms, Utils)
   ============================================================ */

/* ===================== PRODUCT CARD ===================== */
.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    border: 1px solid var(--color-border-light);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-full);
    z-index: 2;
}

.product-card__badge--sale {
    background: var(--color-error);
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.product-card__image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__actions {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transition: all var(--transition-base);
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-card__action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product-card__action-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.product-card__action-btn svg {
    width: 18px;
    height: 18px;
}

.product-card__body {
    padding: var(--space-5) var(--space-5) var(--space-6);
}

.product-card__category {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.product-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
}

.product-card__name a:hover {
    color: var(--color-primary);
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.product-card__price-current {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.product-card__price-old {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.product-card__cta:hover {
    background: var(--color-primary-light);
}

.product-card__cta svg {
    width: 16px;
    height: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-5);
}

@media (max-width: 500px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .product-card__body {
        padding: var(--space-3);
    }

    .product-card__name {
        font-size: var(--text-base);
    }
}

/* ===================== CATEGORY CARD ===================== */
.category-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    transition: all var(--transition-base);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card__bg {
    transform: scale(1.08);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    color: #fff;
}

.category-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: #fff;
    margin-bottom: var(--space-1);
}

.category-card__count {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
}

/* ===================== TESTIMONIAL CARD ===================== */
.testimonial-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--color-border-light);
    position: relative;
}

.testimonial-card__quote {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-size: 64px;
    line-height: 1;
    color: var(--color-primary-100);
    font-family: var(--font-heading);
}

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-4);
    color: var(--color-accent);
}

.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-card__text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--color-primary);
    font-size: var(--text-lg);
}

.testimonial-card__name {
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.testimonial-card__role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ===================== BLOG CARD ===================== */
.blog-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__body {
    padding: var(--space-6);
}

.blog-card__tag {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.blog-card__title a:hover {
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-fixed);
}

.whatsapp-float__btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-fast);
}

.whatsapp-float__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: #fff;
}

.footer__logo span {
    color: var(--color-accent);
}

.footer__description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background: var(--color-accent);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-accent);
    margin-bottom: var(--space-5);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer__link:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copy {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer__dev {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

.footer__dev a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__dev a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== FORM ELEMENTS ===================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-50);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* ===================== QUANTITY SELECTOR ===================== */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.qty-selector__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.qty-selector__btn:hover {
    background: var(--color-primary-50);
    color: var(--color-primary);
}

.qty-selector__value {
    width: 48px;
    text-align: center;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    border: none;
    background: none;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-4) 0;
}

.breadcrumb__sep {
    color: var(--color-border);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb__current {
    color: var(--color-text);
    font-weight: var(--font-medium);
}

/* ===================== TOAST ===================== */
.toast {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-bg-dark);
    color: #fff;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-toast);
    opacity: 0;
    transition: all var(--transition-base);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

/* ===================== TRUST BADGES ===================== */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.trust-badge__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-primary-50);
    color: var(--color-primary);
}

.trust-badge__icon svg {
    width: 24px;
    height: 24px;
}

.trust-badge__text {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
}