/* === PRODUCT CARD STYLES === */
.scroll-container {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    position: relative;
}

.scroll-content {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
}

.scroll-content::-webkit-scrollbar {
    display: none;
}

.product-card-container {
    perspective: 1200px;
    width: 280px;
    height: 360px;
    flex-shrink: 0;
}

.product-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

@media (min-width: 768px) {
    .product-card-container:hover .product-card {
        transform: rotateY(180deg);
    }
}

.product-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-front {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 12px 30px rgba(30, 64, 175, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-back {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transform: rotateY(180deg);
    padding: 20px;
    justify-content: center;
    box-shadow: 
        0 12px 30px rgba(30, 64, 175, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    pointer-events: none;
    border-radius: 16px;
}

.product-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.3) 0%, rgba(186, 230, 253, 0.1) 100%);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-type {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 12px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.description {
    margin-bottom: 20px;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

.description-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

.description::-webkit-scrollbar {
    width: 4px;
}

.description::-webkit-scrollbar-track {
    background: rgba(30, 64, 175, 0.05);
    border-radius: 2px;
}

.description::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 2px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 64, 175, 0.15);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.btn:hover::before {
    left: 100%;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.status-badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge.sponsored {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.mobile-hint {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: var(--primary);
    opacity: 0.7;
    display: none;
}

.back-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--primary) 1px, transparent 0),
        radial-gradient(circle at 80% 80%, var(--primary) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* === PRODUCT CARD SKELETON STYLES === */
.product-card-skeleton {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    width: 280px;
    height: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.product-skeleton-image {
    height: 162px;
    width: 100%;
}

.product-skeleton-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-skeleton-title {
    height: 1.2rem;
    width: 70%;
    margin-bottom: 0.5rem;
}

.product-skeleton-category {
    height: 0.8rem;
    width: 40%;
    margin-bottom: 0.5rem;
}

.product-skeleton-type {
    height: 0.8rem;
    width: 30%;
    margin-bottom: 1rem;
}

.product-skeleton-price {
    height: 1.3rem;
    width: 30%;
}

/* === PRODUCT CARD RESPONSIVE STYLES === */
@media (max-width: 768px) {
    .product-card-container {
        width: 260px;
        height: 340px;
    }
    
    .mobile-hint {
        display: block;
    }
    
    .product-image {
        height: 42%;
    }
    
    .product-info {
        padding: 18px;
    }
    
    .card-back {
        padding: 18px;
    }
    
    .product-card-skeleton {
        width: 260px;
        height: 340px;
    }

    .product-skeleton-image {
        height: 142px;
    }
}

@media (max-width: 480px) {
    .product-card-container {
        width: 240px;
        height: 320px;
    }
    
    .product-image {
        height: 40%;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .card-back {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .back-title {
        font-size: 16px;
    }
    
    .product-card-skeleton {
        width: 240px;
        height: 320px;
    }

    .product-skeleton-image {
        height: 128px;
    }
}

@media (max-width: 360px) {
    .product-card-container {
        width: 220px;
        height: 300px;
    }
    
    .product-card-skeleton {
        width: 220px;
        height: 300px;
    }
}

/* Touch device optimizations for product cards */
@media (hover: none) and (pointer: coarse) {
    .product-card-container:hover .product-card {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
