/*
Theme Name: MND•CMILO
Theme URI: https://cmilo.com
Author: XHA•CMILO
Author URI: https://cmilo.com
Description: Complete clone of dayrio.com for XHA•CMILO e-commerce website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mnd-cmilo
Tags: e-commerce, woocommerce, cosmetics, beauty, responsive, modern

Minimum WordPress Version: 5.0
Minimum PHP Version: 7.0

Requires at least: 5.0
Tested up to: 6.4

Stable tag: 1.0.0

== Description ==

MND•CMILO is a complete clone of dayrio.com for e-commerce websites. It features a modern design with real-time order notifications, product categories, featured products, and customer reviews.

== Features ==

- Real-time order notifications
- Shop by category (8 categories)
- Featured products grid
- Best-selling products list
- Customer reviews section
- Product detail page with:
  - Product image gallery
  - Quantity selector
  - Add to cart button
  - Quick view button
  - Product description
  - Related products
- Shop page with:
  - Product grid
  - Pagination
- Responsive design
- WooCommerce support
- Customizer settings

== Installation ==

1. Upload the `dayrio-clone-theme` folder to `/wp-content/themes/`
2. Activate the theme in WordPress admin (Appearance > Themes)
3. Install and activate WooCommerce plugin
4. Configure theme settings in Customizer (Appearance > Customize)

== Changelog ==

= 1.0.0 =
* Initial release - Complete clone of dayrio.com
*/

/* ========================================
   CSS Reset
   ======================================== */

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

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #e9ecef;
}

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

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

.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.top-bar .contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-navigation {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation .main-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .main-menu li {
    margin: 0;
    padding: 0;
}

.main-navigation .main-menu li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.header-actions .search-icon {
    cursor: pointer;
}

.header-actions .cart-icon {
    position: relative;
    cursor: pointer;
}

.header-actions .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

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

.order-notification {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.order-notification .close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-section {
    padding: 60px 0;
    background-color: var(--light-color);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #ff5252;
}

/* ========================================
   Category Section
   ======================================== */

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

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

.category-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-section p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--gray);
}

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

.category-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-card .category-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 18px;
    color: var(--dark-color);
}

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

.featured-products-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

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

.featured-products-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.featured-products-section p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--gray);
}

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

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.product-card .quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--white);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.product-card .quick-view-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.product-card .product-info {
    padding: 15px;
}

.product-card .product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-card .product-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: var(--primary-color);
}

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

.product-card .product-price .original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 14px;
    margin-right: 5px;
}

.product-card .add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-card .add-to-cart-btn:hover {
    background-color: #ff5252;
}

/* ========================================
   Best Selling Products Section
   ======================================== */

.best-selling-section {
    padding: 60px 0;
}

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

.best-selling-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.best-selling-section p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--gray);
}

.best-selling-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.best-selling-list .product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.best-selling-list::-webkit-scrollbar {
    height: 8px;
}

.best-selling-list::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.best-selling-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.best-selling-list::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* ========================================
   Reviews Section
   ======================================== */

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

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

.reviews-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.reviews-section p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--gray);
}

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

.review-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.review-card .review-rating {
    margin-bottom: 10px;
}

.review-card .review-rating span {
    color: #ffc107;
    font-size: 20px;
}

.review-card .review-text {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.review-card .review-author {
    font-size: 14px;
    font-weight: bold;
    color: var(--dark-color);
}

.review-card .review-verified {
    font-size: 12px;
    color: var(--secondary-color);
}

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

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

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

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

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

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

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

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

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

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

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
        margin-left: auto;
        margin-right: 10px;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

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

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

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

    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-navigation.active .main-menu {
        flex-direction: column;
        padding: 20px;
    }

    .main-navigation.active .main-menu li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation.active .main-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation.active .main-menu li a {
        display: block;
        padding: 10px;
        color: var(--dark-color);
        text-decoration: none;
    }

    .main-navigation.active .main-menu li a:hover {
        color: var(--primary-color);
    }

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

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

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

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

@media (max-width: 480px) {
    .category-grid,
    .products-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content h2 {
        font-size: 24px;
    }

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

/* ========================================
   Product Detail Styles
   ======================================== */

.product-detail {
    padding: 40px 0;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    width: 100%;
}

.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-gallery-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
}

.gallery-image {
    flex: 0 0 80px;
    cursor: pointer;
    width: 80px;
    height: 80px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.product-price .original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 18px;
}

.product-price .current-price {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.product-meta {
    margin-bottom: 10px;
}

.view-count {
    color: var(--gray);
    font-size: 14px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--dark-color);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    cursor: pointer;
    font-size: 18px;
}

.quantity-input input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
}

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

.add-to-cart-button,
.buy-now-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.add-to-cart-button:hover {
    background-color: #ff5252;
}

.buy-now-button {
    background-color: var(--secondary-color);
    color: var(--white);
}

.buy-now-button:hover {
    background-color: #3bc9db;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.whatsapp-button,
.messenger-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-button {
    background-color: #25D366;
    color: var(--white);
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.messenger-button {
    background-color: #0084FF;
    color: var(--white);
}

.messenger-button:hover {
    background-color: #0056B3;
}

.product-description,
.product-shipping,
.product-delivery,
.product-payment,
.customer-feedback {
    margin-bottom: 40px;
}

.product-description h2,
.product-shipping h2,
.product-delivery h2,
.product-payment h2,
.customer-feedback h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.product-description p,
.product-shipping p,
.product-delivery p,
.product-payment p {
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.product-description ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.product-description li {
    margin-bottom: 10px;
}

.product-video {
    margin-bottom: 20px;
}

.product-video iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.product-offer {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-offer p {
    margin-bottom: 10px;
}

.product-features {
    margin-bottom: 20px;
}

.product-features p {
    margin-bottom: 10px;
}

.product-cta {
    text-align: center;
    margin-bottom: 20px;
}

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

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

.product-shipping ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.product-shipping li {
    margin-bottom: 10px;
}

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

.reviews-carousel::-webkit-scrollbar {
    height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.review-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
}

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

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

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

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

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

    .product-actions {
        flex-direction: column;
    }

    .social-buttons {
        flex-direction: column;
    }

    .reviews-carousel {
        flex-direction: row;
    }

    .review-card {
        flex: 0 0 250px;
    }

    .product-video iframe {
        height: 250px;
    }
}
