/* Shared product-card foundations. Opt in before page-specific card styles. */
.product-card {
    background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
    position: relative;
    min-width: 285px;
    max-width: 285px;
    flex-shrink: 0;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    margin-bottom: 0.5rem;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 550;
    color: #ffffff;
    margin-bottom: 0.15rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    line-height: 1.4;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #673de6;
}

.original-price {
    font-size: 1rem;
    color: #a0aec0;
    text-decoration: line-through;
    font-weight: 500;
}

.tracking-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f0f4ff;
    border: 1px solid #d4e0ff;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

.tracking-badge i {
    color: #4285f4;
    font-size: 1rem;
}

.tracking-badge span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4285f4;
}

.product-tracking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-tracking i {
    color: #4285f4;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-view-details,
.btn-buy-now {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border: none;
    outline: none;
}

.btn-view-details {
    background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: #4285f4;
    border: 2px solid #4285f4;
    outline: none;
}

.btn-view-details:hover {
    background: linear-gradient(135deg, #FF9900 0%, #FF6B00 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.btn-buy-now {
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    color: white;
    border: none;
    outline: none;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #FF9900 0%, #FF6B00 100%);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
    border: none;
}
.product-card.skeleton {
    pointer-events: none;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    padding: 16px;
}

.skeleton-title {
    height: 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-price {
    height: 30px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-button {
    height: 44px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-title {
        font-size: 13px;
        min-height: 36px;
    }

    .current-price {
        font-size: 20px;
    }

    .original-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}
