/*
Theme Name: NiceOne Simple Clone
Theme URI: https://niceonesa.com
Author: WordPress Developer
Description: A simplified but complete WordPress theme inspired by NiceOne SA - practical and easy to use
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: niceone-simple
Tags: e-commerce, woocommerce, arabic, rtl-language-support, responsive, makeup, beauty
*/

/* ============================================
   NICE ONE COLOR SCHEME
   ============================================ */
:root {
    --pink-primary: #FF1493;
    --pink-light: #FF69B4;
    --dark: #2D2D2D;
    --gray-bg: #FAFAFA;
    --text: #333333;
    --text-light: #666666;
    --border: #E5E5E5;
    --red-sale: #FF4444;
    --green-new: #00CC66;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gray-bg);
    direction: rtl;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
}

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

.top-bar a {
    color: #fff;
    margin: 0 15px;
}

.top-bar a:hover {
    color: var(--pink-primary);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.header-container {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    color: var(--pink-primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

/* Search */
.header-search .search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    background: #FAFAFA;
}

.search-form:focus-within {
    border-color: var(--pink-primary);
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 20px;
}

.header-action-item {
    position: relative;
    text-align: center;
}

.header-action-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

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

.action-label {
    font-size: 11px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red-sale);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.nav-menu li a:hover {
    color: var(--pink-primary);
    background: #FFF5F8;
}

/* ============================================
   SLIDER
   ============================================ */
.hero-slider {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slide {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-content {
    padding: 0 60px;
    color: #fff;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

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

.btn-slide {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: var(--pink-primary);
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-slide:hover {
    transform: translateY(-3px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    margin: 50px 0;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink-primary), var(--pink-light));
    border-radius: 2px;
}

.view-all {
    color: var(--pink-primary);
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

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

.category-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

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

.category-name {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.badge-sale {
    background: var(--red-sale);
}

.badge-new {
    background: var(--green-new);
}

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

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.wishlist-btn:hover {
    background: var(--pink-primary);
    color: #fff;
}

.product-info {
    padding: 18px;
}

.product-brand {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 42px;
    overflow: hidden;
}

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

.stars {
    color: #FFD700;
    font-size: 13px;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

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

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--pink-primary);
}

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

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: #CCC;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #444;
}

.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

.footer-widget ul li a {
    color: #CCC;
    font-size: 14px;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #3A3A3A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-icon:hover {
    background: var(--pink-primary);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .header-container {
        grid-template-columns: 180px 1fr auto;
    }
}

@media (max-width: 992px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
