/* ============================================
   PRODUCT.CSS - PRODUCT LIST, PRODUCT DETAIL
   Màu sắc tươi sáng, phù hợp đồ cưới
   ============================================ */

/* === PRODUCT LIST PAGE === */
.product-list-page {
    padding: 60px 0;
    background-color: var(--bg-body);
}

.product-header {
    text-align: center;
    margin-bottom: 50px;
}

.product-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.product-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.product-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(232, 93, 143, 0.15);
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.product-badge.new {
    background: linear-gradient(135deg, #20bf6b, #05c46b);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-overlay .btn-quick-view {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-overlay .btn-quick-view:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Product Body */
.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Category */
.product-category {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: var(--primary-color);
}

/* Product Title */
.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

/* Product Price */
.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-price old {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: normal;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 3px;
}

.stars i {
    color: #ffc107;
    font-size: 0.8rem;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Product Button */
.product-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    margin-top: auto;
}

.product-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
    padding: 60px 0;
    background: var(--bg-body);
}

.product-detail-container {
    background: var(--bg-white);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item.active {
    border-color: var(--secondary-color);
    opacity: 1;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    padding-left: 20px;
}

.product-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-short-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.product-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-meta li:last-child {
    border-bottom: none;
}

.product-meta li i {
    width: 25px;
    color: var(--secondary-color);
    font-size: 1rem;
}

.product-meta li strong {
    width: 100px;
    color: var(--text-dark);
}

.product-meta li span,
.product-meta li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.product-meta li a:hover {
    color: var(--primary-color);
}

/* Product Price Detail */
.product-price-detail {
    background: linear-gradient(135deg, var(--bg-light), white);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.product-price-detail .price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.product-price-detail .price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.product-price-detail .price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 93, 143, 0.4);
    color: white;
}

.btn-contact {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Product Share */
.product-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 15px;
}

.social-share-icons {
    display: inline-flex;
    gap: 10px;
}

.social-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-share-icons a:hover {
    transform: translateY(-2px);
    color: white;
}

.social-share-icons a.facebook:hover { background: #1877f2; }
.social-share-icons a.zalo:hover { background: #0068ff; }
.social-share-icons a.twitter:hover { background: #1da1f2; }

/* Product Description */
.product-description {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.product-description h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.product-description h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.product-description .content {
    line-height: 1.8;
    color: var(--text-dark);
}

.product-description .content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
}

.product-description .content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.product-description .content ul,
.product-description .content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.product-description .content li {
    margin-bottom: 8px;
}

/* === RELATED PRODUCTS === */
.related-products {
    background: var(--bg-light);
    padding: 60px 0;
    margin-top: 0;
}

.related-products .section-title {
    margin-bottom: 45px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .product-list-page {
        padding: 50px 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-detail-container {
        padding: 30px;
    }
    
    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-info h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .product-list-page {
        padding: 40px 0;
    }
    
    .product-header h1 {
        font-size: 1.8rem;
    }
    
    .product-header p {
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-body {
        padding: 15px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .product-detail {
        padding: 40px 0;
    }
    
    .product-detail-container {
        padding: 20px;
    }
    
    .product-info h1 {
        font-size: 1.4rem;
    }
    
    .product-price-detail .price-value {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-buy-now,
    .btn-contact {
        padding: 12px 25px;
    }
    
    .product-meta li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .product-meta li strong {
        width: auto;
    }
    
    .product-description h2 {
        font-size: 1.2rem;
    }
    
    .related-products {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-body {
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-category {
        font-size: 0.65rem;
    }
    
    .product-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}