body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
}

.container {
    flex: 1;
}

.card {
    transition: transform 0.2s;
}

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

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card > * {
    flex-shrink: 0;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding-top: 100%;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.product-image.secondary {
    opacity: 0;
}

.product-card:hover .product-image.secondary {
    opacity: 1;
}

.product-card:hover .product-image.primary {
    opacity: 0;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-discount {
    background: #8bc34a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-hot {
    background: #1976d2;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    color: #333;
}

.action-btn:hover {
    background: #5a2d2d;
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    background: #1976d2;
    color: white;
}

.add-to-cart-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.product-card:hover .add-to-cart-bar {
    transform: translateY(0);
}

.add-to-cart-bar:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-description-short {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.star {
    color: #ffc107;
    font-size: 14px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.price-new {
    color: #1976d2;
    font-size: 20px;
    font-weight: 700;
}

.price-normal {
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.quickview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quickview-modal.show {
    display: flex;
}

.quickview-content {
    background: white;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quickview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.quickview-close:hover {
    background: #e91e63;
    color: white;
}

.quickview-body {
    display: flex;
    padding: 40px;
}

.quickview-images {
    flex: 1;
    padding-right: 40px;
}

.quickview-main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
}

.quickview-details {
    flex: 1;
}

.quickview-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.quickview-brand {
    color: #e91e63;
    font-weight: 600;
    margin-bottom: 15px;
}

.quickview-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quickview-price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 20px;
}

.quickview-price-new {
    color: #e91e63;
    font-size: 32px;
    font-weight: 700;
}

.quickview-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.quickview-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #1976d2;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quickview-add-cart {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quickview-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.4);
}

.quickview-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.quickview-meta-item {
    margin-bottom: 12px;
    color: #666;
}

.quickview-meta-item strong {
    color: #333;
}

.quickview-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quickview-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quickview-share a:hover {
    background: #1976d2;
    color: white;
}

.quickview-view-details {
    display: block;
    text-align: center;
    background: #1976d2;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.quickview-view-details:hover {
    background: #1565c0;
    color: white;
}

.product-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    border-color: #5a2d2d;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .quickview-body {
        flex-direction: column;
        padding: 25px;
    }
    
    .quickview-images {
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .quickview-title {
        font-size: 22px;
    }
    
    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .add-to-cart-bar {
        transform: translateY(0);
    }
}

.row-5-cols {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.row-5-cols .col-md-2 {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
}

@media (max-width: 991.98px) {
    .row-5-cols .col-md-2 {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .row-5-cols .col-md-2 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
