/* ===== Pharmron — Black & Gold Design System ===== */

/* Modal entrance animation */
@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modal-in {
    animation: modal-in 0.2s ease-out;
}

/* Category filter active state */
.active-filter {
    background-color: #d4af37;
    color: #050505;
    font-weight: 700;
}

.active-filter:hover {
    background-color: #f3db8a;
    color: #050505;
}

/* Default filter button state */
#filter-container button:not(.active-filter) {
    background-color: #1a1a1a;
    color: #a3a3a3;
    border: 1px solid #333333;
}

#filter-container button:not(.active-filter):hover {
    background-color: #333333;
    border-color: #d4af37;
    color: #d4af37;
}

/* Product card */
.product-card {
    background-color: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Product card actions — always a single straight row */
.product-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 1rem;
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.action-details {
    border: 1px solid #333333;
    background-color: #1a1a1a;
    color: #cccccc;
}

.action-details:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: #d4af37;
}

.action-whatsapp {
    border: 1px solid rgba(16, 185, 129, 0.4);
    background-color: rgba(6, 78, 59, 0.3);
    color: #6ee7b7;
}

.action-whatsapp:hover {
    background-color: rgba(6, 78, 59, 0.5);
}

.action-cart {
    background-color: rgba(212, 175, 55, 0.9);
    color: #050505;
    font-weight: 700;
}

.action-cart:hover {
    background-color: #d4af37;
}

.product-action-btn:active {
    transform: scale(0.97);
}

/* Product type badge (Signature / Partner) — absolute overlay on card image */
.product-image-wrap .product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.badge-signature {
    background: linear-gradient(135deg, #d4af37, #b8962a);
    color: #050505;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.badge-partner {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Product card image container */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-image-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: #d4af37;
    color: #050505;
}

/* Price styling */
.price-tag {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #d4af37;
}

/* Category badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #1a1a1a;
    color: #a3a3a3;
    border: 1px solid #333333;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Cart item styling */
.cart-item {
    background-color: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 1rem;
    transition: border-color 0.3s ease;
}

.cart-item:hover {
    border-color: #d4af37;
}

/* Quantity input */
.qty-input {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #e6e6e6;
    text-align: center;
    width: 3rem;
    border-radius: 0.5rem;
    padding: 0.375rem;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Remove spinner arrows on number input */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Product detail page image */
.product-detail-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    aspect-ratio: 1 / 1;
}

.product-detail-image-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    background-color: #d4af37;
    color: #050505;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}