
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.search-box input {
    padding: 10px 15px;
    border: none;
    outline: none;
    width: 220px;
    font-size: 0.9rem;
}

.search-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #ea580c;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f97316;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn,
.register-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn {
    background: rgba(255,255,255,0.15);
}

.login-btn:hover {
    background: rgba(255,255,255,0.25);
}

.register-btn {
    background: #f97316;
}

.register-btn:hover {
    background: #ea580c;
}

.hero {
    background: white;
    padding: 0;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

.countdown-box {
    max-width: 1200px;
    margin: 20px auto;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 25px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.countdown-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.countdown {
    display: flex;
    gap: 25px;
    font-size: 1.25rem;
}

.time-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-weight: 600;
}

.time-item span {
    font-size: 2rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 6px;
}

.categories {
    padding: 30px 0;
    background: white;
}

.categories .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.category-sidebar {
    width: 200px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.category-header h3 {
    font-size: 1rem;
    color: #1e3a8a;
}

.toggle-btn {
    background: #e2e8f0;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #cbd5e1;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
}

.category-item.active a,
.category-item a:hover {
    background: #1e3a8a;
    color: white;
}

.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.sort-controls, .filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-controls span, .filter-controls span {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: #475569;
}

.sort-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.sort-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
}

.filter-controls select:focus {
    outline: none;
    border-color: #1e3a8a;
}

.category-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
}

.category-products .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.category-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-products .product-image {
    position: relative;
    padding: 16px;
    background: #f8fafc;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.category-products .product-image img.loading {
    opacity: 0.5;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e2e8f0;
    animation: pulse 1.5s ease-in-out infinite;
}

.category-products .product-info {
    padding: 12px 16px 16px;
}

.category-products .product-name {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-products .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.category-products .current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f97316;
}

.category-products .original-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.category-products .product-sales {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
}

.category-products .add-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-products .add-cart-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-1px);
}

.category-products .favorite-btn {
    padding: 10px 16px;
    background: #f8fafc;
    color: #1e3a8a;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-products .favorite-btn:hover {
    background: #eff6ff;
    border-color: #1e3a8a;
    transform: translateY(-1px);
}

.category-products .hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f97316;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.products,
.hot-section {
    padding: 40px 0;
    background: #f5f5f5;
}

.section-title {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 25px;
    font-weight: 700;
}

.product-grid,
.hot-products,
.discount-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 18px;
    position: relative;
}

.product-name {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 1.5rem;
    color: #f97316;
    font-weight: 700;
}

.original-price {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-sales {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.add-cart-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: scale(1.02);
}

.hot-badge,
.discount-badge {
    position: absolute;
    top: -55px;
    right: 15px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.discount-badge {
    background: #f97316;
}

.user-center {
    padding: 40px 0;
    background: #f5f5f5;
}

.user-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.user-avatar {
    margin-bottom: 15px;
}

.user-name {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.user-level {
    color: #f97316;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.user-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.user-btn:hover {
    transform: scale(1.02);
}

.user-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: #1e3a8a;
}

.menu-icon {
    font-size: 2.5rem;
}

.services {
    background: white;
    padding: 40px 0;
}

.services .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 20px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e3a8a;
}

.service-item p {
    color: #64748b;
    font-size: 0.9rem;
}

.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 50px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #f97316;
}

.contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .categories .container {
        flex-direction: column;
    }
    
    .category-sidebar {
        width: 100%;
    }
    
    .user-content {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services .container,
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }
    
    .countdown-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .user-menu {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services .container,
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .category-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls, .filter-controls {
        justify-content: space-between;
    }
}

/* Product Reviews */
.product-reviews {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.product-reviews h4 {
    margin-bottom: 16px;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    font-size: 1.5rem;
}

.review-name {
    font-weight: 500;
    color: #475569;
}

.review-rating {
    color: #f97316;
    font-size: 1rem;
}

.review-content {
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.5;
}

.review-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    color: #1e3a8a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

/* Cart Modal */
.cart-modal {
    max-width: 600px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: white;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    color: #f97316;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.quantity-control button:hover {
    background: #e2e8f0;
}

.quantity-control input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 16px;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
}

.remove-cart-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.remove-cart-item:hover {
    background: #fef2f2;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 18px;
    color: #1e3a8a;
}

.total-price {
    font-weight: 700;
    color: #f97316;
    font-size: 24px;
}

.checkout-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

/* Auth Modal */
.auth-modal {
    max-width: 450px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    gap: 12px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    border-color: #1e3a8a;
    background: #eff6ff;
    color: #1e3a8a;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3a8a;
}

.auth-submit {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}

/* Product Detail Modal */
.product-detail-body {
    display: flex;
    gap: 30px;
}

.product-detail-image {
    width: 50%;
}

.product-detail-image img {
    width: 100%;
    border-radius: 12px;
}

.product-detail-info {
    flex: 1;
}

.product-detail-name {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 16px;
}

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

.product-detail-sales {
    margin-bottom: 16px;
    color: #64748b;
}

.product-detail-desc {
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Message Modal */
.message-modal {
    max-width: 400px;
    text-align: center;
}

.message-modal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.message-ok-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* Search Results Section */
.search-results-section {
    padding: 40px 0;
    background: #f8fafc;
}

.search-results-title {
    margin-bottom: 24px;
    font-size: 24px;
    color: #1e3a8a;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

/* Product Card Enhancements */
.product-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card .product-image {
    position: relative;
}

.product-card .product-image::after {
    content: "点击查看详情";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive for Modals */
@media (max-width: 768px) {
    .product-detail-body {
        flex-direction: column;
    }
    .product-detail-image {
        width: 100%;
    }
    .auth-modal,
    .cart-modal {
        width: 95%;
    }
}
