/*
 Theme Name:   OceanWP Child — Ney's Absolute
 Template:     oceanwp
 Version:      1.0.0
 Description:  Child theme for Ney's Absolute shop.
 Text Domain:  oceanwp-child
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* --- Typography --- */
body {
    font-family: 'Montserrat', sans-serif;
}

/* Use Montserrat for everything including headings */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
#site-navigation,
.dropdown-menu,
.menu {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
}

/* Keep headings dark */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    color: #2c2c2c !important;
}

/* --- Elementor Full Width Fix --- */
.elementor-section > .elementor-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Center content in sections */
.elementor-widget-wrap {
    margin: 0 auto;
}

/* --- Remove Hero Background Image --- */
.elementor-section:first-child:not(.elementor-motion-effects-element-type-background),
.elementor-section:first-child > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
    background: linear-gradient(180deg, #f8f5f0 0%, #ffffff 100%) !important;
}

/* Fix hero text colors without background */
.elementor-section:first-child .elementor-heading-title {
    color: #2c2c2c !important;
}

.elementor-section:first-child .elementor-text-editor p {
    color: #666 !important;
}

/* --- Hide Search Everywhere --- */
#searchform,
.search-form,
#mobile-menu-search,
#medium-searchform,
#medh-search,
.header-searchform-wrap,
.oceanwp-mobile-menu-icon a.search,
.header-search-form,
#site-header .search-toggle,
.search-overlay,
.search-icon,
a[href*="search"],
.site-search {
    display: none !important;
}

/* Show search on shop page only */
body.post-type-archive-product #searchform,
body.post-type-archive-product .search-form,
body.post-type-archive-product .header-search-form,
body.post-type-archive-product #medium-searchform,
body.tax-product_cat #searchform,
body.tax-product_cat .search-form,
body.tax-product_cat #medium-searchform,
body.tax-product_cat .header-search-form {
    display: block !important;
}

/* --- Hide Page Header & Breadcrumbs --- */
.page-header,
.page-header-title,
.site-breadcrumbs {
    display: none !important;
}

/* --- Style Category Cards --- */
.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product-category {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    flex: 1 1 calc(33.333% - 20px) !important;
    min-width: 280px !important;
}

.woocommerce ul.products li.product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.woocommerce ul.products li.product-category img {
    border-radius: 20px 20px 0 0;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.woocommerce ul.products li.product-category h2,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 20px 0 10px 0 !important;
    padding: 0 20px !important;
}

.woocommerce ul.products li.product-category .category-description {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.woocommerce ul.products li.product-category mark {
    background: none;
    color: #c9a96e;
    font-weight: 600;
}

.category-button:hover {
    opacity: 0.85 !important;
}

/* --- Testimonial Avatar Styling --- */
.elementor-widget-image img {
    border-radius: 50% !important;
}

/* Target testimonials section specifically */
.elementor-section .elementor-widget-image[class*="avatar"] img,
.elementor-section:nth-child(5) .elementor-widget-image img,
.elementor-section:nth-child(6) .elementor-widget-image img {
    border-radius: 50% !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    display: block !important;
}

/* --- Hero cover adjustments --- */
.wp-block-cover.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* --- Testimonials --- */
.wp-block-quote {
    border-left: 4px solid #c9a96e;
    padding: 1em 1.5em;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5em;
    font-style: normal;
    font-weight: 600;
    color: #333;
}

/* --- Brand accent color --- */
:root {
    --neys-gold: #c9a96e;
    --neys-dark: #2c2c2c;
}

.wp-block-button__link {
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.wp-block-button__link:hover {
    opacity: 0.85;
}

/* --- OceanWP Content Width --- */
#content-wrap,
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Full width for Elementor sections */
.elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
}
