/*
Theme Name: Woostify Child
Template: woostify
Version: 1.0
*/

/* =========================
GLOBAL RESET
========================= */
body {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* =========================
PAGE HEADER SPACING FIX
========================= */
.page-header,
.entry-header,
.site-header + div,
.site-header + section,
.header-wrapper + div,
.header-wrapper + section,
.woostify-after-header {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Remove hero/image header spacing */
.page-header-image,
.page-header-overlay,
.page-header-content {
    display: none !important;
}

/* =========================
CUSTOM SEARCH BAR
========================= */
.custom-woo-search-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    margin: 0 !important;
    box-sizing: border-box;
}
.custom-woo-search-bar form {
    display: flex;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    flex-wrap: nowrap;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.custom-woo-search-bar input[type="search"] {
    flex: 1;
    border: none;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
    min-width: 0;
}
.custom-woo-search-bar button {
    background: #0073ff;
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s ease;
}
.custom-woo-search-bar button:hover {
    background: #005fd1;
}

/* =========================
CATEGORY INFINITE SCROLL (MARQUEE)
========================= */
.category-slider-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    overflow: hidden;
    padding: 10px 0 !important;
    box-sizing: border-box;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.category-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}
.category-slider-wrapper:hover .category-slider-track {
    animation-play-state: paused;
}
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 6));
    }
}
.category-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 90px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: transform 0.2s ease;
}
.category-slide:hover {
    transform: scale(1.05);
}
.category-slide img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 6px;
    border: 1px solid #eee;
}
.category-slide span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* =========================
CONTAINER SPACING RESET
========================= */
.site-content,
.content-area,
#primary,
#content,
.woostify-container,
.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================
RESPONSIVE SPACING
========================= */
@media (max-width: 768px) {
    .category-slider-wrapper {
        padding: 8px 0 !important;
    }
    .custom-woo-search-bar {
        padding: 6px 5px;
    }
    .category-slide img {
        width: 60px;
        height: 60px;
    }
    .category-slide {
        min-width: 80px;
    }
    .category-slide span {
        max-width: 80px;
    }
    .category-slider-track {
        animation-duration: 20s;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .category-slider-wrapper {
        padding: 10px 0 !important;
    }
    .custom-woo-search-bar {
        padding: 8px 10px;
    }
}

@media (min-width: 1025px) {
    .category-slider-wrapper {
        padding: 10px 0 !important;
    }
    .custom-woo-search-bar {
        padding: 8px 10px;
    }
}

/* =========================
PRODUCT CARD STYLE
========================= */
/*
.woocommerce ul.products li.product {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    transition: 0.2s ease;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

*/
/* =========================
UNLOCK HORIZONTAL SCROLL
========================= */
.site-header,
.site-content,
.container,
.woostify-container,
#page,
#content {
    overflow-x: visible !important;
}


.jmd-rating {
    margin-top: 5px;
    font-size: 13px;
    text-align: center;
}

.jmd-rating-text {
    margin-left: 5px;
    color: #666;
}

.jmd-checkout-rating {
    margin-top: 4px;
    font-size: 12px;
}

.jmd-checkout-rating .star-rating {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.jmd-rating-text {
    color: #666;
}