/*
Theme Name: Beauty Shop
Theme URI: https://beautyshop.com
Author: Beauty Shop Team
Author URI: https://beautyshop.com
Description: Un thème élégant pour une boutique de produits de beauté et parapharmacie, inspiré de drest.tn
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beautyshop
Tags: e-commerce, beauty, responsive, woocommerce
*/

/* Variables */
:root {
    /* Palette de couleurs inspirée de drest.tn */
    --primary-color: #e5345b; /* Rose/rouge vif */
    --primary-color-light: #f06c8a;
    --primary-color-dark: #c42a4c;
    --secondary-color: #317AC1; /* Bleu */
    --secondary-color-light: #76CDCD;
    --secondary-color-dark: #26474E;
    --accent-color: #E1A624; /* Or/jaune */
    --accent-color-light: #FEEAA1;
    --accent-color-dark: #D6955B;
    
    /* Couleurs neutres */
    --text-color: #333333;
    --text-color-light: #666666;
    --light-gray: #f8f3f0; /* Beige très clair */
    --medium-gray: #e0e0e0;
    --dark-gray: #4A4A4A;
    --white: #ffffff;
    --black: #000000;
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Effets */
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --border-radius-large: 8px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-color-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header Top */
.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left .contact-info {
    display: flex;
    gap: 20px;
}

.header-top-left .contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.header-top-menu a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-top-menu a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    color: var(--white);
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.header-top {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 10px 0;
}

.header-contact a {
    color: var(--white);
    margin-right: 20px;
    font-size: 14px;
}

.header-contact a:hover {
    color: var(--accent-color-light);
}

/* Header Main */
.header-main {
	padding: 15px 0;
	background: var(--white);
}

.header-main-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.header-left {
	flex: 1;
}

.header-right {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.site-branding {
	flex: 0 0 auto;
	text-align: center;
	margin: 0 20px;
	padding: 20px 0;
}

.site-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: var(--primary-color);
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: 5px 0 0;
	font-size: 14px;
	color: var(--text-color-light);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions a {
    color: var(--text-color);
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
}

.header-actions a:hover {
    color: var(--primary-color);
    background: var(--primary-color-light);
}

.header-actions .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.hero-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 0 0 50%;
    padding-right: 30px;
}

.slide-subtitle {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.slide-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.hero-image {
    flex: 0 0 50%;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.category-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    opacity: 0.8;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-item {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: rgba(0,0,0,0.7);
    transition: var(--transition);
}

.product-item:hover .product-actions {
    bottom: 0;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: var(--transition);
}

.product-action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-content {
    padding: 20px;
}

.product-category {
    font-size: 14px;
    color: var(--text-color-light);
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.old-price {
    font-size: 16px;
    color: var(--text-color-light);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--primary-color-dark);
}

/* Banner Section */
.banner-section {
    padding: 60px 0;
    background-color: var(--white);
}

.banner-content {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color-light);
    border-radius: var(--border-radius-large);
    overflow: hidden;
}

.banner-text {
    flex: 0 0 50%;
    padding: 40px;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.banner-description {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 30px;
}

.banner-image {
    flex: 0 0 50%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-position {
    font-size: 14px;
    color: var(--text-color-light);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.newsletter-description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.newsletter-button {
    padding: 15px 30px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widgets-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
}

.footer-widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-text {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

.footer-copyright {
    opacity: 0.8;
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Image Overlay */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close-overlay:hover {
    color: #ccc;
}

/* Search Form */
.search-form-container {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--white);
	border-bottom: 1px solid var(--medium-gray);
	padding: 20px 0;
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
}

.search-form-container.active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.search-form-inner {
	display: flex;
	align-items: center;
	max-width: 600px;
	margin: 0 auto;
	position: relative;
}

.search-field {
	flex: 1;
	padding: 15px 20px;
	border: 2px solid var(--medium-gray);
	border-radius: 50px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.3s ease;
}

.search-field:focus {
	border-color: var(--primary-color);
}

.search-submit {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.search-submit:hover {
	background: var(--primary-color-dark);
}

.search-close {
	position: absolute;
	top: 10px;
	right: 20px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: var(--text-color-light);
}

/* Mobile Menu */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: var(--text-color);
	transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .categories-grid,
    .products-grid,
    .footer-widgets-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-slide {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content {
        flex-direction: column;
    }
    
    .banner-text,
    .banner-image {
        flex: 0 0 100%;
    }
    
    .footer-widgets-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-main-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-left,
    .header-right {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Header Mobile */
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-main-inner {
        justify-content: space-between;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .site-branding {
        margin: 0;
        flex: 1;
        text-align: left;
        padding: 10px 0;
    }
    
    .header-right {
        flex: 0 0 auto;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--medium-gray);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .main-navigation a {
        padding: 15px 0;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-actions a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .newsletter-input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
        width: 100%;
    }
    
    .newsletter-button {
        border-radius: var(--border-radius);
        width: 100%;
        padding: 15px;
    }
    
    .footer-widgets-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .categories-grid,
    .products-grid,
    .footer-widgets-wrap {
        grid-template-columns: 1fr;
    }
    
    /* Header Mobile Small */
    .site-title {
        font-size: 24px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-actions a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
    
    .newsletter-description {
        font-size: 14px;
    }
    
    .footer-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Back to top Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}