/*
Theme Name:   XStore Child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

/* ===============================
   CUSTOM CSS FOR MANYATA HERBALS
   =============================== */

/* Hide sidebar everywhere by default */
.sidebar-position-right .sidebar,
.sidebar-position-right #sidebar,
.sidebar-position-right .sidebar-widget,
.sidebar-position-right .widget-area {
    display: none !important;
}

/* Expand main content full width when sidebar is hidden */
.sidebar-position-right .content.col-md-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Show sidebar only on blog pages & single blog posts */
.blog .sidebar,
.single-post .sidebar {
    display: block !important;
}

.blog .content.col-md-9,
.single-post .content.col-md-9 {
    width: 75% !important;  /* restore default width */
    flex: 0 0 75% !important;
}

/* =========================
   Manyata Herbals - Home Styles
   Add to xstore-child/style.css
   ========================= */

/* Basic container spacing */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- SLIDER ---------- */
.mh-slider-section { margin: 0; padding: 0; position: relative; }
.mh-swiper-container { width: 100%; height: 65vh; max-height: 850px; position: relative; }
.mh-swiper-container .swiper-slide { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mh-slide-link { display: block; width: 100%; height: 100%; position: relative; text-decoration: none; color: inherit; }
.mh-slide-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-slide-caption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; background: rgba(0,0,0,0.35); padding: 20px 30px; border-radius: 8px; }
.mh-slide-caption h2 { font-size: 36px; margin: 0; }

/* Swiper nav (if Swiper available) */
.swiper-button-prev, .swiper-button-next { color: #fff; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.8); }

/* ============ Category Section Fix ============ */
.mh-categories {
    text-align: center;
    padding: 50px 20px;
}

.mh-categories .section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
}

/* Force horizontal layout */
.mh-categories-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* Category Card */
.mh-cat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 10px; /* less padding so card looks compact */
    text-align: center;
    width: 140px; /* reduced card width */
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mh-cat-card img {
    width: 80px;   /* fixed smaller image size */
    height: 80px;  /* equal height to keep all icons uniform */
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.mh-cat-card span {
    display: block;
    font-size: 14px; /* slightly smaller font */
    font-weight: 500;
    color: #444;
}

/* Hover Effect */
.mh-cat-card:hover {
    transform: translateY(-5px);
    border-color: #d63384;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.mh-cat-card:hover img {
    transform: scale(1.05);
}

/* View More Button */
.mh-categories-more {
    margin-top: 30px;
}

.mh-categories-more .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    background: #d63384;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mh-categories-more .btn:hover {
    background: #b82a6e;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .mh-cat-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .mh-cat-card {
        width: 100%;
    }
}



/* ---------- PRODUCTS ---------- */
.mh-featured { padding: 60px 0; text-align: center; }
.mh-featured .section-title { font-size: 30px; margin-bottom: 30px; }
.mh-products .product { margin-bottom: 20px; } /* minor spacing if theme provides product markup */

/* ---------- CATEGORY HIGHLIGHTS ---------- */
.mh-category-highlight { padding: 60px 0; }
.mh-two-cols { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.mh-two-cols .mh-col { flex: 1; min-width: 280px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.highlight-title { font-size: 22px; margin-bottom: 15px; }

/* ---------- NAIL PAINT ---------- */
.mh-nail { padding: 40px 0; text-align: center; }

/* ---------- BLOG / Skin Guides ---------- */
.mh-blog { padding: 60px 0; text-align: center; }
.mh-blog-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.mh-blog-card { width: 280px; background: #fff; border-radius: 12px; overflow: hidden; text-align: left; box-shadow: 0 8px 30px rgba(0,0,0,0.04); padding: 0; }
.mh-blog-thumb img { width: 100%; height: 170px; object-fit: cover; display: block; }
.mh-blog-card h3 { padding: 16px; font-size: 18px; margin: 0; }
.mh-blog-card p { padding: 0 16px 20px; margin: 0; color: #666; }

/* ---------- TESTIMONIALS ---------- */
.mh-testimonials { padding: 60px 0; text-align: center; }
.mh-testimonial-rotator { max-width: 900px; margin: 0 auto; }

/* ---------- COMMON BUTTONS ---------- */
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; text-decoration: none; }
.btn-primary { background: #b13a4b; color: #fff; }
.btn-secondary { background: #fff; color: #b13a4b; border: 2px solid #b13a4b; }
.btn-link { display: inline-block; margin-top: 12px; color: #b13a4b; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .mh-swiper-container { height: 55vh; }
    .mh-slide-caption h2 { font-size: 28px; padding: 14px 18px; }
    .mh-categories-grid { gap: 16px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .mh-swiper-container { height: 40vh; }
    .mh-slide-caption h2 { font-size: 20px; }
    .mh-categories-grid { justify-content: center; }
    .mh-cat-card { width: 48%; padding: 16px; }
    .mh-two-cols { flex-direction: column; }
    .mh-blog-card { width: 100%; max-width: 480px; }
    .mh-categories { padding: 30px 0; }
    .mh-featured { padding: 40px 0; }
}

/* small phones */
@media (max-width: 420px) {
    .mh-cat-card { width: 100%; }
    .mh-slide-caption { padding: 12px; }
    .mh-slide-caption h2 { font-size: 18px; }
}


