/*
Theme Name: CMILO Theme
Theme URI: https://www.cmilo.com
Author: CMILO
Author URI: https://www.cmilo.com
Description: A modern and elegant WordPress theme for CMILO cosmetics website
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmilo
Tags: e-commerce, woocommerce, cosmetics, modern, elegant
*/

/* ========================================
   CSS Variables
   ======================================== */

:root {
    --primary-color: #ff7f50;
    --secondary-color: #f39c12;
    --accent-color: #25D366;
    --messenger-color: #0084FF;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --gray-color: #fffaf0;
    --border-color: #E0E0E0;
    --text-color: #333333;
    --link-color: #ff7f50;
    --hover-color: #ff6347;
}

/* ========================================
   Global Styles
   ======================================== */

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

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ========================================
   Container
   ======================================== */

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

/* ========================================
   Header
   ======================================== */

.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 0;
}

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

.header-top-info {
    display: flex;
    gap: 20px;
}

.header-top-info a {
    color: var(--light-color);
    font-size: 14px;
}

.header-top-actions {
    display: flex;
    gap: 10px;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.primary-menu li {
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 0;
    position: relative;
}

.primary-menu a:hover {
    color: var(--primary-color);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   Hero Slider
   ======================================== */

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
}

.hero-slide-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-slide-content .btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-slide-content .btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ========================================
   Product Section
   ======================================== */

.product-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--gray-color);
}

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

.product-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart-button,
.view-details-button {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.add-to-cart-button {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.add-to-cart-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.view-details-button {
    background-color: var(--light-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.view-details-button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Customer Feedback
   ======================================== */

.customer-feedback {
    padding: 60px 0;
    background-color: var(--gray-color);
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
}

.review-card {
    flex: 0 0 300px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-rating {
    margin-bottom: 15px;
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-author {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.review-verified {
    color: var(--accent-color);
    font-size: 14px;
}

/* ========================================
   Notification
   ======================================== */

.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--light-color);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 24px;
}

.notification-text {
    font-size: 14px;
    color: var(--text-color);
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-color);
}

.notification-close:hover {
    color: var(--text-color);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-color);
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    margin-bottom: 60px;
    position: relative;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    padding: 40px;
}

.hero-slide.active {
    display: flex;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
}

.hero-slide-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.hero-slider-dot.active {
    background-color: var(--light-color);
    opacity: 1;
    transform: scale(1.2);
}

.hero-slider-dot:hover {
    opacity: 0.8;
}

/* ========================================
   Featured Products
   ======================================== */

.featured-products {
    padding: 60px 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--text-color);
}

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

/* ========================================
   Categories Section
   ======================================== */

.categories-section {
    padding: 60px 0;
    background-color: var(--gray-color);
}

.categories-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--text-color);
}

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

.category-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px;
}

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

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Customer Reviews
   ======================================== */

.customer-reviews {
    padding: 60px 0;
    background-color: var(--gray-color);
}

.customer-reviews h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--text-color);
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.review-card {
    flex: 0 0 300px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

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

.review-rating {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--secondary-color);
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.review-author {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.review-verified {
    color: var(--accent-color);
    font-size: 14px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }

    .header-main-inner {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation {
        width: 100%;
        justify-content: center;
    }

    .primary-menu {
        gap: 20px;
    }

    .primary-menu a {
        font-size: 14px;
        padding: 8px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slide h1 {
        font-size: 32px;
    }

    .hero-slide p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .header-top-info {
        flex-direction: column;
        gap: 10px;
    }

    .hero-slide h1 {
        font-size: 24px;
    }

    .hero-slide p {
        font-size: 14px;
    }
}
