/* Reset và base styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navigation */
nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

nav ul li a i {
    margin-right: 0.5rem;
}

/* Search bar */
.search-bar {
    min-width: 220px;
    max-width: 300px;
    flex: 0 0 260px;
    margin: 0 1rem;
    background: var(--light-gray);
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 0.9rem;
}

.search-bar button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-color);
}

/* User actions */
.user-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-actions a {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

.user-actions a:hover {
    color: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
}

/* Hero section */
.hero {
    margin-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('55555.jfif');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Categories section */
.featured-categories {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.category {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category:hover {
    transform: translateY(-10px);
}

.category img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.category:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.category:hover .category-overlay {
    transform: translateY(0);
}

.category-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Products section */
.trending-products {
    padding: 5rem 0;
    background: var(--light-gray);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.product {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product:hover {
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-rating {
    color: #f1c40f;
    margin-bottom: 1rem;
}

.product-rating span {
    color: var(--text-color);
    margin-left: 0.5rem;
}

.add-to-cart {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: var(--secondary-color);
}

/* Features section */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-gray);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative
    ;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    margin-top: 0.5rem;
}
.footer-section ul li a {
    color: red !important;
}
.footer-section ul li a:hover {
    text-decoration: underline;
    color: #b71c1c !important; 
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    outline: none;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#back-to-top.visible {
    opacity: 1;
}

#back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    .search-bar {
        width: 100%;
        order: 2;
        margin: 0.5rem 0;
    }
    nav ul {
        gap: 1rem;
    }
    nav ul li a {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    nav {
        justify-content: flex-start;
    }
    .search-bar {
        margin: 0.5rem 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .categories,
    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    nav ul li a {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .categories,
    .products,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Us Section */
.contact-us {
    padding: 5rem 0;
    background: var(--light-gray);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.contact-details {
    padding: 1rem 2rem 1rem 1rem;
    border-right: 1px solid #f0f0f0;
}
.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.contact-details ul {
    list-style: none;
    margin-bottom: 2rem;
}
.contact-details ul li {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
    gap: 0.7rem;
}
.contact-details ul li i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    min-width: 22px;
}
.contact-details .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-details .social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}
.contact-details .social-links a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    padding: 1rem 1rem 1rem 2rem;
}
.contact-form-wrapper h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: #fafbfc;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--secondary-color);
    background: #fff;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button {
    align-self: flex-end;
    padding: 0.9rem 2.2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.contact-form button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    .contact-details {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 1rem 0 2rem 0;
    }
    .contact-form-wrapper {
        padding: 2rem 0 0 0;
    }
}

/* Product Detail Page */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover {
    color: var(--secondary-color);
}
.breadcrumb span {
    color: var(--secondary-color);
}

.product-detail {
    padding: 2rem 0 5rem;
}
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 1rem;
}
.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.thumbnail-images {
    display: flex;
    gap: 1rem;
}
.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumbnail.active {
    border-color: var(--secondary-color);
}
.thumbnail:hover {
    transform: translateY(-3px);
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.product-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.product-rating {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.stars {
    color: #f1c40f;
}
.rating-count {
    color: #666;
    font-size: 0.9rem;
}
.product-sku {
    color: #666;
    font-size: 0.9rem;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
}
.discount-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.short-description {
    line-height: 1.6;
    color: var(--text-color);
}

/* Product Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.option-group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}
.color-options {
    display: flex;
    gap: 1rem;
}
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.color-option.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
}
.size-options {
    display: flex;
    gap: 0.8rem;
}
.size-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.size-option:hover {
    border-color: var(--primary-color);
}
.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.size-guide-link {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.size-guide-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.quantity-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.quantity-btn:hover {
    background: #e9e9e9;
}
.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    outline: none;
}
.stock-status {
    margin-left: 1rem;
    font-size: 0.9rem;
}
.in-stock {
    color: #2ecc71;
}
.in-stock i {
    margin-right: 0.3rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
}
.add-to-cart-btn, .buy-now-btn {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    flex: 1;
}
.add-to-cart-btn:hover {
    background: #1e3a8a;
}
.buy-now-btn {
    background: var(--secondary-color);
    color: white;
    flex: 1;
}
.buy-now-btn:hover {
    background: #d32f2f;
}

/* Product Benefits */
.product-benefits {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.benefit {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.benefit i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Product Details Tabs */
.product-details-tabs {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 4rem;
}
.tabs-header {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}
.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.tab-btn.active {
    color: var(--primary-color);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.tab-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.tab-panel h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--primary-color);
}
.tab-panel p, .tab-panel li {
    line-height: 1.6;
    margin-bottom: 0.7rem;
}
.tab-panel ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Specifications */
.specifications-table {
    display: flex;
    flex-direction: column;
}
.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.spec-label {
    font-weight: 500;
    color: var(--primary-color);
}
.size-chart table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.size-chart th, .size-chart td {
    border: 1px solid #ddd;
    padding: 0.7rem;
    text-align: center;
}
.size-chart th {
    background: #f5f5f5;
    font-weight: 500;
}

/* Reviews */
.review-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
}
.big-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}
.total-reviews {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.rating-breakdown {
    flex: 1;
}
.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.rating-row span {
    width: 60px;
}
.progress-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: var(--secondary-color);
}
.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
}
.review-date {
    color: #666;
    font-size: 0.9rem;
}
.review-rating {
    color: #f1c40f;
}
.review-content p {
    line-height: 1.6;
}
.review-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}
.pagination a:hover {
    background: #eee;
}
.pagination a.active {
    background: var(--primary-color);
    color: white;
}

.related-products {
    padding-bottom: 5rem;
}
.related-products .section-title {
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .product-detail-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    .product-detail {
        padding: 1rem 0 3rem;
    }
    .product-title {
        font-size: 1.7rem;
    }
    .product-actions {
        flex-direction: column;
    }
    .review-summary {
        flex-direction: column;
        gap: 1.5rem;
    }
    .average-rating {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    .tabs-header {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .tab-btn {
        white-space: nowrap;
        padding: 0.7rem 1rem;
    }
}

.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  min-width: 280px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  animation: slideIn 0.5s ease-out;
  opacity: 1;
  transition: all 0.3s ease;
  border-left: 5px solid #1e7e34;
}

.notification.error {
  background: linear-gradient(135deg, #dc3545, #f44336);
  border-left: 5px solid #bd2130;
}

.notification i {
  font-size: 1.5rem;
  margin-right: 15px;
}

.notification i.fa-check-circle {
  color: #fff;
  animation: pulse 1s infinite;
}

.notification i.fa-exclamation-circle {
  color: #fff;
  animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,62,80,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 95vw;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeInModal 0.4s;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal:hover {
  color: var(--secondary-color);
}
.qr-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.qr-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.08);
  background: #fff;
}
.qr-account {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.qr-name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.qr-number {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}
.qr-bank {
  font-size: 0.95rem;
  color: #666;
}
.qr-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  display: block;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #fafbfc;
  transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border: 1.5px solid var(--secondary-color);
  background: #fff;
}
.confirm-btn {
  width: 100%;
  padding: 1rem;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: var(--transition);
}
.confirm-btn:hover {
  background: var(--primary-color);
}
@media (max-width: 600px) {
  .modal-content { padding: 1.2rem 0.5rem; }
  .qr-image { width: 150px; height: 150px; }
}
