/*
Theme Name: Delta Cosmetic
Theme URI: https://mypham9.mauthemewp.com
Author: Delta Team  
Description: Theme bán mỹ phẩm Delta Cosmetic Việt Nam - Clone từ mypham9.mauthemewp.com
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: delta-cosmetic
Tags: e-commerce, woocommerce, cosmetics, beauty, pink
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background-color: #e91e63;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    margin-right: 20px;
}

.top-right a {
    color: #fff;
    margin-left: 15px;
    transition: opacity 0.3s;
}

.top-right a:hover {
    opacity: 0.8;
}

.top-bar i {
    margin-right: 5px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    height: 60px;
    width: auto;
}

.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background-color: #e91e63;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.search-box button:hover {
    background-color: #c2185b;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: #e91e63;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e91e63;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, #e91e63, #f48fb1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: rgba(255,255,255,0.2);
}

.nav-menu .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.submenu li a:hover {
    background-color: #f8f8f8;
    color: #e91e63;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    max-width: 100%;
}

.slider-container {
    position: relative;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 25px;
}

.btn-shop {
    display: inline-block;
    background-color: #e91e63;
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-shop:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #fff;
}

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

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

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

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

.slider-dot.active {
    background-color: #fff;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

/* Introduction Section */
.introduction {
    background-color: #f8f8f8;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-10px);
}

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

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 30px 20px 20px;
    text-align: center;
}

.category-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.category-info p {
    font-size: 14px;
    margin-bottom: 5px;
}

.category-info span {
    font-size: 12px;
    opacity: 0.9;
}

/* Products Grid */
.products-section {
    background-color: #fff;
}

.products-section.trending-products {
    background-color: #f8f8f8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e91e63;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 15px;
}

.price-sale {
    color: #e91e63;
    font-size: 20px;
    font-weight: 700;
    margin-right: 10px;
}

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

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background-color: #e91e63;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #c2185b;
}

/* Distributors Section */
.distributors-section {
    background-color: #f8f8f8;
}

.distributors-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.distributors-table {
    width: 100%;
    border-collapse: collapse;
}

.distributors-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.distributors-table td {
    padding: 15px 10px;
    font-size: 14px;
}

.distributors-table td:first-child {
    font-weight: 500;
}

.customer-reviews h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.review-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.review-stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-item p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.review-item h4 {
    font-size: 18px;
    color: #e91e63;
}

/* News Section */
.news-section {
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-10px);
}

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

.news-info {
    padding: 25px;
}

.news-date {
    display: inline-block;
    background-color: #e91e63;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    min-height: 54px;
}

.news-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-read-more {
    display: inline-block;
    color: #e91e63;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-read-more:hover {
    color: #c2185b;
}

/* Features Section */
.features-section {
    background-color: #f8f8f8;
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 30px 20px;
}

.feature-item i {
    font-size: 48px;
    color: #e91e63;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #fff;
}

.footer-top {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #e91e63;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    background-color: #e91e63;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #c2185b;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #e91e63;
}

.footer-links li i {
    margin-right: 10px;
    color: #e91e63;
}

.fb-page {
    background-color: #3a3a3a;
    padding: 20px;
    border-radius: 5px;
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e91e63;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #c2185b;
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        text-align: center;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .distributors-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}
