* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-icons {
    display: flex;
    gap: 1rem;
    text-decoration: none;
}

.nav-icons .tk{
    text-decoration: none;
}

.nav-icons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.nav-icons button:hover {
    background: #f8f9fa;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(237, 218, 245, 0.8), rgba(118, 75, 162, 0.8)), url(image/heroImage.jpg) no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="11" height="11" fill="url(%23a)" rx="15" ry="15" transform="translate(10 10)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Featured Products */
.featured-products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/*Tạo khung cho sản phẩm*/
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/*Chỉ độ cao ảnh lên cho vừa ảnh*/
.product-image {
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.product-image .default-image {
    opacity: 1;
}

.product-image .hover-image {
    opacity: 0;
}

.product-card:hover .product-image .default-image {
    opacity: 0;
}

.product-card:hover .product-image .hover-image {
    opacity: 1;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.product-card:hover .product-image::before {
    left: 100%;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: #2980b9;
    transform: scale(1.02);
}

/* ------------------Categories Section ------------------------*/
.categories {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('men/back.webp') no-repeat center center/cover;
    padding: 12rem 5rem;
    color: white;
}
.categories-women{
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('pkw/backgroundpk.jpg') no-repeat center center/cover;
    padding: 13rem 5rem;
    color: white;
}

/* Tiêu đề "Danh mục phụ" */
.categories-container h2 {
    margin-bottom: 2rem; /* Khoảng cách dưới tiêu đề */
    font-size: 2em;
}

.section-title {
    color: white;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.categories-grid-women {
    display: flex;
    justify-content: center; /* Căn giữa các item (các hình tròn) theo chiều ngang */
    gap: 2rem; /* Tạo khoảng cách 2rem giữa các hình tròn */
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card-women{
    background: white;
    padding: 1rem;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;

    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.category-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(135deg, rgba(237, 218, 245, 0.8), rgba(118, 75, 162, 0.8)), url('image/heroImage.jpg') no-repeat center center/cover;
    }
    .nav-menu {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-container {
        padding: 1rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------Giỏ hàng------------------------------- */
.cart-overlay {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 2rem;
}

.cart-overlay.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #219a52;
}

/* Back Button */
.Back {
    margin-bottom: 2rem;
    text-align: left;
}

.back-btn {
    display: inline-block;
    background: white;
    color: black;
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.back-btn:hover {
    color: #e74c3c;
}

/* Banner Section */
.banner {
    width: 100%;
    overflow: hidden;
}

.banner-link {
    display: block;
    cursor: pointer;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.banner-link:hover .banner-image {
    opacity: 0.8;
}

/* Women Fashion Section */
.womens-products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Women Accessories Section */
.womens-accessories {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.womens-accessories .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.womens-accessories .accessory-card {
    max-height: 450px; /* Giới hạn chiều cao tổng thể */
}

.womens-accessories .accessory-card .product-image {
    height: 300px; /* Giảm chiều cao ảnh */
}

.womens-accessories .accessory-card .product-info {
    padding: 1rem;
}

.womens-accessories .accessory-card .product-name {
    font-size: 1.1rem;
    white-space: nowrap; /* Ngăn tên sản phẩm xuống dòng */
    overflow: hidden;
    text-overflow: ellipsis; /* Thêm dấu ... nếu tên quá dài */
}

.womens-accessories .accessory-card .product-price {
    font-size: 1.3rem;
}

.womens-accessories .accessory-card .add-to-cart {
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Responsive cho thiết bị nhỏ */
@media (max-width: 768px) {
    .banner-image {
        height: 300px;
        object-fit: cover;
    }
    .womens-products {
        padding: 3rem 1rem;
    }
    .womens-accessories {
        padding: 3rem 1rem;
    }
    .womens-accessories .products-grid {
        grid-template-columns: 1fr;
    }
    .womens-accessories .accessory-card .product-image {
        height: 250px; /* Chiều cao ảnh nhỏ hơn trên di động */
    }
}

/*Ẩn somee*/
a[href*="somee.com"],
iframe[src*="somee.com"],
img[src*="somee.com"],
script[src*="somee.com"],
link[href*="somee.com"],
div[style*="z-index: 2147483647"][style*="position: fixed"][style*="background-color: #202020"] {
    display: none !important;
}

/*Ẩn somee*/
a[href*="somee.com"],
iframe[src*="somee.com"],
img[src*="somee.com"],
script[src*="somee.com"],
link[href*="somee.com"],
div[style*="z-index: 2147483647"][style*="position: fixed"][style*="background-color: #202020"] {
    display: none !important;
}