/**
 * Halal Mall - Custom Theme
 * Palette de couleurs douce et moderne
 *
 * Couleurs principales:
 * - Primary: Vert sauge doux (#5B8A72)
 * - Secondary: Or doux (#D4A574)
 * - Accent: Vert menthe (#8FBC8F)
 * - Background: Crème (#FDFBF7)
 * - Text: Gris charbon (#3D3D3D)
 */

:root {
 /* Couleurs principales */
 --hm-primary: #5B8A72;
 --hm-primary-light: #7BA393;
 --hm-primary-dark: #4A7260;
 --hm-primary-soft: #E8F0EC;

 /* Couleurs secondaires */
 --hm-secondary: #D4A574;
 --hm-secondary-light: #E5C4A3;
 --hm-secondary-dark: #B8895A;
 --hm-secondary-soft: #FDF5ED;

 /* Couleurs d'accent */
 --hm-accent: #8FBC8F;
 --hm-accent-light: #A8CFA8;
 --hm-accent-dark: #6B9B6B;

 /* Couleurs neutres */
 --hm-white: #FFFFFF;
 --hm-cream: #FDFBF7;
 --hm-light-gray: #F5F5F5;
 --hm-gray: #E0E0E0;
 --hm-dark-gray: #9E9E9E;
 --hm-text: #3D3D3D;
 --hm-text-light: #6B6B6B;

 /* Couleurs de statut */
 --hm-success: #6AAF6A;
 --hm-warning: #E5B85C;
 --hm-danger: #D97373;
 --hm-info: #6B9ECF;

 /* Ombres douces */
 --hm-shadow-sm: 0 2px 8px rgba(91, 138, 114, 0.08);
 --hm-shadow-md: 0 4px 16px rgba(91, 138, 114, 0.12);
 --hm-shadow-lg: 0 8px 32px rgba(91, 138, 114, 0.16);

 /* Transitions */
 --hm-transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
body {
 background-color: var(--hm-cream);
 color: var(--hm-text);
 font-family: 'Poppins', sans-serif;
}

a {
 color: var(--hm-primary);
 transition: var(--hm-transition);
}

a:hover {
 color: var(--hm-primary-dark);
}

/* ===== HEADER ===== */
.header-top-wrap {
 background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%);
}

.header-top-wrap a,
.header-top-wrap li,
.header-top-wrap i {
 color: rgba(255, 255, 255, 0.9) !important;
}

.header-top-wrap a:hover {
 color: var(--hm-secondary-light) !important;
}

#sticky-header.menu-area {
 background: var(--hm-white);
 box-shadow: var(--hm-shadow-sm);
}

.menu-area .navigation>li>a {
 color: var(--hm-text);
 font-weight: 500;
}

.menu-area .navigation>li>a:hover,
.menu-area .navigation>li.active>a {
 color: var(--hm-primary);
}

.menu-area .navigation li .sub-menu {
 background: var(--hm-white);
 border-top: 3px solid var(--hm-primary);
 box-shadow: var(--hm-shadow-md);
}

.menu-area .navigation li .sub-menu li a {
 color: var(--hm-text);
}

.menu-area .navigation li .sub-menu li a:hover {
 color: var(--hm-primary);
 background: var(--hm-primary-soft);
}

/* ===== BUTTONS ===== */
.btn {
 background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%);
 border: none;
 border-radius: 8px;
 color: var(--hm-white);
 font-weight: 500;
 padding: 12px 28px;
 transition: var(--hm-transition);
 box-shadow: var(--hm-shadow-sm);
}

.btn:hover {
 background: linear-gradient(135deg, var(--hm-primary-dark) 0%, var(--hm-primary) 100%);
 transform: translateY(-2px);
 box-shadow: var(--hm-shadow-md);
 color: var(--hm-white);
}

.btn-two,
.btn.btn-two {
 background: linear-gradient(135deg, var(--hm-secondary) 0%, var(--hm-secondary-dark) 100%);
}

.btn-two:hover,
.btn.btn-two:hover {
 background: linear-gradient(135deg, var(--hm-secondary-dark) 0%, var(--hm-secondary) 100%);
}

.btn-outline-primary {
 background: transparent;
 border: 2px solid var(--hm-primary);
 color: var(--hm-primary);
}

.btn-outline-primary:hover {
 background: var(--hm-primary);
 color: var(--hm-white);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-area {
 background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%) !important;
}

.breadcrumb-content .title {
 color: var(--hm-white);
}

.breadcrumb-content .breadcrumb li a {
 color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-content .breadcrumb li.active {
 color: var(--hm-secondary-light);
}

/* ===== SECTION TITLES ===== */
.section-title .sub-title {
 color: var(--hm-secondary);
 font-weight: 600;
}

.section-title .title {
 color: var(--hm-text);
}

.section-title .title span {
 color: var(--hm-primary);
}

/* ===== PRODUCTS ===== */
.product-item-three,
.inner-product-item {
 background: var(--hm-white);
 border-radius: 16px;
 overflow: hidden;
 box-shadow: var(--hm-shadow-sm);
 transition: var(--hm-transition);
}

.product-item-three:hover,
.inner-product-item:hover {
 transform: translateY(-5px);
 box-shadow: var(--hm-shadow-lg);
}

.product-content-three .title a {
 color: var(--hm-text);
}

.product-content-three .title a:hover {
 color: var(--hm-primary);
}

.product-content-three .price {
 color: var(--hm-primary);
 font-weight: 600;
}

.product-content-three .tag {
 color: var(--hm-secondary);
 font-weight: 500;
}

.product-thumb-three .batch {
 background: var(--hm-secondary);
 border-radius: 8px;
 color: var(--hm-white);
}

.product-shape-two svg path {
 fill: var(--hm-primary-soft);
}

/* ===== SHOP SIDEBAR ===== */
.shop-sidebar .shop-widget {
 background: var(--hm-white);
 border-radius: 12px;
 padding: 20px;
 margin-bottom: 20px;
 box-shadow: var(--hm-shadow-sm);
}

.shop-sidebar .sw-title {
 color: var(--hm-text);
 border-bottom: 2px solid var(--hm-primary-soft);
 padding-bottom: 10px;
}

.shop-cat-list a {
 color: var(--hm-text-light);
}

.shop-cat-list a:hover,
.shop-cat-list a.active {
 color: var(--hm-primary);
}

/* ===== BLOG ===== */
.blog-item {
 background: var(--hm-white);
 border-radius: 16px;
 overflow: hidden;
 box-shadow: var(--hm-shadow-sm);
 margin-bottom: 30px;
}

.blog-content .title a {
 color: var(--hm-text);
}

.blog-content .title a:hover {
 color: var(--hm-primary);
}

.blog-content .link-btn {
 color: var(--hm-primary);
 font-weight: 500;
}

.blog-content .link-btn:hover {
 color: var(--hm-secondary);
}

.blog-meta-two a {
 color: var(--hm-text-light);
}

/* ===== SERVICES ===== */
.services-item {
 background: var(--hm-white);
 border-radius: 16px;
 padding: 30px;
 box-shadow: var(--hm-shadow-sm);
 transition: var(--hm-transition);
}

.services-item:hover {
 transform: translateY(-5px);
 box-shadow: var(--hm-shadow-lg);
}

.services-item .icon {
 color: var(--hm-primary);
}

.services-item .title a {
 color: var(--hm-text);
}

.services-item .number {
 color: var(--hm-primary-soft);
}

/* ===== FEATURES ===== */
.features-item {
 background: var(--hm-white);
 border-radius: 16px;
 padding: 30px;
 box-shadow: var(--hm-shadow-sm);
 transition: var(--hm-transition);
}

.features-item:hover {
 transform: translateY(-3px);
 box-shadow: var(--hm-shadow-md);
}

.features-item .features-icon {
 background: var(--hm-primary-soft);
 color: var(--hm-primary);
 width: 70px;
 height: 70px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 28px;
 margin-bottom: 20px;
}

/* ===== CONTACT ===== */
.contact-info-wrap {
 background: var(--hm-white) !important;
 border-radius: 16px;
 box-shadow: var(--hm-shadow-sm);
}

.contact-info-item .icon {
 background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%) !important;
}

.contact-form-wrap {
 background: var(--hm-white);
 border-radius: 16px;
 box-shadow: var(--hm-shadow-md);
}

.contact-form .form-control {
 border: 2px solid var(--hm-gray);
 border-radius: 10px;
 transition: var(--hm-transition);
}

.contact-form .form-control:focus {
 border-color: var(--hm-primary);
 box-shadow: 0 0 0 3px var(--hm-primary-soft);
}

/* ===== FOOTER ===== */
.footer-area {
 background: linear-gradient(180deg, var(--hm-primary-dark) 0%, #3A5A4A 100%);
}

.footer-logo-area {
 background: var(--hm-primary-dark);
}

.footer-widget .fw-title {
 color: var(--hm-white);
}

.footer-link a,
.footer-contact li,
.footer-contact a {
 color: rgba(255, 255, 255, 0.8);
}

.footer-link a:hover,
.footer-contact a:hover {
 color: var(--hm-secondary-light);
}

.footer-social a {
 background: rgba(255, 255, 255, 0.1);
 color: var(--hm-white);
 transition: var(--hm-transition);
}

.footer-social a:hover {
 background: var(--hm-secondary);
 color: var(--hm-white);
}

.footer-newsletter input {
 border-radius: 8px;
 border: none;
}

.footer-newsletter button {
 background: var(--hm-secondary);
 border-radius: 8px;
 color: var(--hm-white);
}

.footer-newsletter button:hover {
 background: var(--hm-secondary-dark);
}

.footer-bottom {
 background: rgba(0, 0, 0, 0.2);
}

/* ===== CTA SECTION ===== */
.cta-area {
 background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%);
}

.cta-content .title {
 color: var(--hm-white);
}

/* ===== FAQ ===== */
.accordion-button {
 background: var(--hm-white);
 color: var(--hm-text);
 font-weight: 500;
}

.accordion-button:not(.collapsed) {
 background: var(--hm-primary-soft);
 color: var(--hm-primary);
}

.accordion-button:focus {
 box-shadow: 0 0 0 3px var(--hm-primary-soft);
}

/* ===== BADGES ===== */
.badge.bg-success {
 background: var(--hm-success) !important;
}

.badge.bg-warning {
 background: var(--hm-warning) !important;
}

.badge.bg-danger {
 background: var(--hm-danger) !important;
}

.badge.bg-info {
 background: var(--hm-info) !important;
}

/* ===== ALERTS ===== */
.alert-success {
 background: var(--hm-primary-soft);
 border-color: var(--hm-primary);
 color: var(--hm-primary-dark);
}

.alert-warning {
 background: var(--hm-secondary-soft);
 border-color: var(--hm-secondary);
 color: var(--hm-secondary-dark);
}

/* ===== FORMS ===== */
.form-control:focus,
.form-select:focus {
 border-color: var(--hm-primary);
 box-shadow: 0 0 0 3px var(--hm-primary-soft);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
 color: var(--hm-primary);
 border-radius: 8px;
 margin: 0 3px;
}

.pagination .page-item.active .page-link {
 background: var(--hm-primary);
 border-color: var(--hm-primary);
}

/* ===== PRELOADER ===== */
.loader-outter {
 border: 4px solid var(--hm-primary);
 border-top-color: transparent;
}

.loader-inner {
 border: 4px solid var(--hm-secondary);
 border-bottom-color: transparent;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
 background: var(--hm-primary);
 border-radius: 50%;
 box-shadow: var(--hm-shadow-md);
}

.scroll-top:hover {
 background: var(--hm-primary-dark);
}

/* ===== MOBILE MENU ===== */
.mobile-menu .menu-box {
 background: var(--hm-white);
}

.mobile-menu .navigation li a {
 color: var(--hm-text);
}

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

.mobile-nav-toggler {
 color: var(--hm-primary);
}

/* ===== HEADER USER DROPDOWN ===== */
.header-user .dropdown-menu {
 border-radius: 12px;
 box-shadow: var(--hm-shadow-lg);
 border: none;
}

.header-user .dropdown-item:hover {
 background: var(--hm-primary-soft);
 color: var(--hm-primary);
}

/* ===== CART ===== */
.header-shop-cart span {
 background: var(--hm-secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
 from {
  opacity: 0;
  transform: translateY(20px);
 }

 to {
  opacity: 1;
  transform: translateY(0);
 }
}

.wow {
 animation-duration: 0.8s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
 .menu-area {
  padding: 15px 0;
 }
}