.product-card-container {
background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
padding: 30px;
border-radius: 20px;
max-width: 400px;
margin: 0 auto;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.product-card-demo {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}
.product-card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
position: relative;
animation: fadeInUp 0.6s ease-out;
}
.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.product-image {
position: relative;
overflow: hidden;
height: 300px;
}
.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
transform: scale(1.05);
}
.product-badge {
position: absolute;
top: 15px;
left: 15px;
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
color: white;
padding: 6px 12px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
z-index: 2;
}
.product-actions {
position: absolute;
top: 15px;
right: 15px;
display: flex;
flex-direction: column;
gap: 10px;
opacity: 0;
visibility: hidden;
transform: translateX(20px);
transition: all 0.3s ease;
z-index: 2;
}
.product-card:hover .product-actions {
opacity: 1;
visibility: visible;
transform: translateX(0);
}
.action-btn {
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
background: white;
color: #333;
font-size: 1.1rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.action-btn:hover {
background: #667eea;
color: white;
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}
.wishlist.active {
color: #ff6b6b;
background: #ffebee;
}
.product-info {
padding: 25px;
}
.product-category {
color: #667eea;
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 8px;
}
.product-title {
margin: 0 0 15px 0;
color: #333;
font-size: 1.3rem;
font-weight: 700;
line-height: 1.3;
}
.product-rating {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 15px;
}
.stars {
color: #ffd700;
font-size: 1rem;
letter-spacing: 2px;
}
.rating-count {
color: #666;
font-size: 0.9rem;
}
.product-price {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.current-price {
font-size: 1.5rem;
font-weight: 700;
color: #333;
}
.original-price {
font-size: 1rem;
color: #999;
text-decoration: line-through;
}
.product-description {
color: #666;
font-size: 0.95rem;
line-height: 1.5;
margin-bottom: 20px;
}
.product-variants {
margin-bottom: 20px;
}
.color-options {
display: flex;
gap: 10px;
}
.color-option {
width: 25px;
height: 25px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.color-option.active,
.color-option:hover {
transform: scale(1.2);
border-color: #333;
}
.product-actions-bottom {
display: flex;
gap: 10px;
}
.btn {
flex: 1;
padding: 12px;
border: none;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-secondary {
background: #f1f5f9;
color: #666;
}
.btn-secondary:hover {
background: #e2e8f0;
transform: translateY(-2px);
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-icon {
font-size: 1.1rem;
}
/* Quick view modal */
.quick-view-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.quick-view-modal.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background: white;
border-radius: 15px;
padding: 30px;
max-width: 800px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
transform: scale(0.8);
transition: transform 0.3s ease;
}
.quick-view-modal.active .modal-content {
transform: scale(1);
}
.close-modal {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
font-size: 2rem;
color: white;
cursor: pointer;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.3s ease;
}
.close-modal:hover {
background: rgba(255, 255, 255, 0.2);
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.product-card.pulse {
animation: pulse 0.5s ease;
}
/* Responsive */
@media (max-width: 768px) {
.product-card-container {
padding: 20px;
max-width: 100%;
}
.product-card-demo {
padding: 20px;
}
.product-image {
height: 250px;
}
.product-info {
padding: 20px;
}
.product-title {
font-size: 1.2rem;
}
.current-price {
font-size: 1.3rem;
}
.btn {
padding: 10px;
font-size: 0.85rem;
}
}
@media (max-width: 480px) {
.product-actions-bottom {
flex-direction: column;
}
.btn {
width: 100%;
}
}