/* ============================================
   PANA FOODS — Components
   Buttons, Cards, Forms, Badges
   ============================================ */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn--blue {
    background-color: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}

.btn--blue:hover {
    background-color: #002a6e;
    color: var(--color-white);
}

.btn--gold {
    background-color: var(--color-yellow);
    color: var(--color-text);
    border-color: var(--color-yellow);
    font-weight: 700;
}

.btn--gold:hover {
    background-color: #e6c200;
    color: var(--color-text);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.btn--outline:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- Product Card ---------- */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.product-card__link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-bg-alt);
    position: relative;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-border);
}

.product-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-yellow);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.product-card__info {
    padding: var(--space-lg);
}

.product-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    display: block;
}

.product-card__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.product-card__pricing {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.product-card__price {
    font-family: var(--font-price);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}

.product-card__compare {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card__btn {
    margin: 0 var(--space-lg) var(--space-lg);
    width: calc(100% - var(--space-lg) * 2);
}

/* ---------- Product Card Options (Select) ---------- */
.product-card__options {
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-md);
}

.product-card__select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-family: var(--font-body);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.product-card__select:focus {
    border-color: var(--color-gold, #D4A017);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.15);
}

/* ---------- Product Detail Options (Radio Pills) ---------- */
.product-detail__options {
    margin-bottom: var(--space-xl);
}

.product-detail__options-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.product-detail__options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.product-detail__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-detail__option-pill {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.product-detail__option-pill:hover {
    border-color: var(--color-gold, #D4A017);
    color: var(--color-gold, #D4A017);
}

.product-detail__option input[type="radio"]:checked + .product-detail__option-pill {
    background: var(--color-gold, #D4A017);
    border-color: var(--color-gold, #D4A017);
    color: var(--color-navy, #14213D);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.3);
}

/* ---------- Category Card ---------- */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
    background: var(--color-white);
}

.category-card:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-blue);
}

.category-card__image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    background: var(--color-bg-alt);
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.category-card__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.category-card:hover .category-card__name {
    color: var(--color-blue);
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: box-shadow var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
    color: var(--color-yellow);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.testimonial-card__text {
    font-style: italic;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: none;
}

.testimonial-card__author {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-text);
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.1);
}

input::placeholder {
    color: var(--color-text-muted);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
    min-width: 18px;
    min-height: 18px;
    line-height: 1;
}

.badge--red {
    background: var(--color-red);
    color: var(--color-white);
}

.badge--blue {
    background: var(--color-blue);
    color: var(--color-white);
}
