/*
 * Modern Design Overrides for spa2000.co.il
 * Goal: Compact, Premium, Purple-Blue Aesthetic + Final Bug Fixes
 */

:root {
    --primary: #483D8B;
    /* Dark Slate Blue */
    --accent: #5D5CDE;
    /* Modern Indigo/Purple-Blue */
    --accent-light: #7B68EE;
    /* Medium Slate Blue */
    --bg-main: #FDFDFE;
    /* Uniform Clean Off-white */
    --text-main: #2C3E50;
    --text-muted: #546E7A;
    --white: #ffffff;
    --shadow-subtle: 0 4px 20px rgba(72, 61, 139, 0.05);
    --border-radius: 12px;
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact Global Spacing & Typography */
body {
    background-color: var(--bg-main) !important;
    background-image: none !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* Force Content to Top - Pulling content up as requested */
#inner-wrap,
#primary,
#main,
article,
.site-container,
.content-container,
.kadence-content-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.entry-content {
    padding-top: 5px !important;
}

h1,
h2,
h3,
h4,
.entry-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 300 !important;
    /* Thin Aesthetic */
    letter-spacing: -0.01em;
    color: var(--primary);
    margin-bottom: 0.5em !important;
}

/* Compact Header */
#site-header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(72, 61, 139, 0.08);
    padding: 4px 0 !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.main-navigation ul li a {
    font-weight: 300 !important;
    font-size: 15px !important;
    color: var(--primary) !important;
    padding: 6px 12px !important;
}

/* Compact Service Cards - Uniform Height Fix */
.kadence-column,
.wp-block-kadence-column,
ul.products li.product {
    background: var(--white);
    border-radius: var(--border-radius) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(72, 61, 139, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: 100% !important;
    padding-bottom: 15px !important;
    overflow: hidden;
    transition: var(--transition-fast) !important;
    text-align: right !important;
    position: relative !important;
    /* Ensure labels can be positioned absolutely */
}

ul.products li.product:hover,
.kadence-column:hover {
    border-color: rgba(72, 61, 139, 0.25) !important;
    box-shadow: 0 8px 24px rgba(72, 61, 139, 0.08) !important;
}

/* Ensure the inner wrapper also expands */
.kt-inside-inner-col {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

.kadence-column img,
ul.products li.product img {
    border-radius: 8px 8px 0 0 !important;
    width: 100% !important;
    max-height: 250px !important;
    object-fit: cover !important;
}

/* Content within card */
.kadence-column .kt-inside-inner-col>*:not(img),
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .product-details,
ul.products li.product .price,
.entry-content {
    padding: 0 15px !important;
    margin-top: 8px !important;
    text-align: right !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

/* Push buttons to the very bottom */
.kadence-column .kt-inside-inner-col>a.zvon,
.kadence-column .kt-inside-inner-col>a.zvon2,
ul.products li.product .button {
    margin-top: auto !important;
}

/* Labels - RELOCATED TO BOTTOM-RIGHT OF IMAGE */
span.city1,
.city1 {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    position: absolute !important;
    top: -45px !important;
    /* Move UP from the text area onto the bottom of the image */
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    border-radius: 4px;
    z-index: 30 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure card is the relative parent */
.kadence-column,
ul.products li.product {
    position: relative !important;
}

/* Wishlist Heart Icon - High Specificity Color Fix */
ul.products li.product .tinvwl_add_to_wishlist_button::before,
.tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus::before {
    color: var(--accent) !important;
    /* Indigo Purple */
}

/* Button Visibility Fix - GUARANTEED VISIBLE */
a.zvon,
a.zvon2,
.button,
.woocommerce-loop-product__link+.button {
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    /* Space between icon and text */
    text-decoration: none !important;
    text-decoration: none !important;
    text-decoration: none !important;
    margin: 5px auto !important;
    /* Centered layout */
    width: 85% !important;
    transition: var(--transition-fast) !important;
    position: relative;
    overflow: hidden;
}

/* Reset icon positioning to work with flex */
a.zvon::before,
a.zvon2::before,
.button::before {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Call Button - Purple */
a.zvon,
.button {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

/* WhatsApp Button - Solid Green (Fixed invisible text) */
a.zvon2 {
    background-color: #25D366 !important;
    /* WhatsApp Green - Guaranteed visible */
    color: var(--white) !important;
    border: none !important;
}

a.zvon:hover,
.button:hover {
    background-color: var(--accent) !important;
}

a.zvon2:hover {
    background-color: #128C7E !important;
}

/* Dropdowns */
.sub-menu {
    background: var(--white) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile Fixes */
@media (max-width: 768px) {

    .kadence-column,
    ul.products li.product {
        margin-bottom: 20px !important;
    }
}

/*
 * ULTIMATE OVERRIDE: Centered, Aligned & Compact
 * This block forces centering and removes the misaligning margins.
 */
.product-details,
.kadence-column .kt-inside-inner-col .product-details,
.entry-content-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* CENTER everything */
    text-align: center !important;
    width: 100% !important;
    /* Flush with image edges */
    margin: 0 !important;
    /* Fixes the 0 .5em margin seen in inspector */
    padding: 10px 25px !important;
    /* Internal padding for "smaller" look */
    box-sizing: border-box !important;
    transition: var(--transition-fast) !important;
}

/* Hover Effect: Compact contraction */
.kadence-column:hover .product-details,
ul.products li.product:hover .product-details {
    transform: scale(0.98) !important;
    background: rgba(72, 61, 139, 0.02) !important;
    border-radius: 8px !important;
}

/* Typography Overrides */
ul.products li.product .woocommerce-loop-product__title,
.product-details>*,
.kt-inside-inner-col>*:not(img) {
    font-size: 13px !important;
    text-align: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
    width: auto;
}

ul.products li.product .woocommerce-loop-product__title a {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* 
 * PREMIUM FOOTER DESIGN
 */
#colophon,
.site-footer {
    background-color: #1a1a2e !important;
    /* Elegant Deep Purple-Black */
    color: #e0e0f0 !important;
    padding: 0;
    border-top: 3px solid var(--primary) !important;
}

/* 
 * CLEAN FOOTER Cleanup - Removing extra space 
 */
.site-top-footer-wrap,
.site-footer-bottom-section-2,
.footer-widget-area:empty,
.site-footer-row:empty,
.footer-shadow-bottom:empty {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-widget-area {
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    text-align: center !important;
}

.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area .widget-title {
    color: var(--white) !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.05em;
    font-weight: 300 !important;
}

.footer-widget-area a,
.site-footer .menu li a {
    color: #b0b0d0 !important;
    text-decoration: none !important;
    transition: var(--transition-fast) !important;
    font-size: 14px !important;
    display: inline-block !important;
    margin: 4px 0 !important;
    /* Reduced from 8px */
}

.footer-widget-area a:hover,
.site-footer .menu li a:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Footer Bottom Section (Copyright) */
.site-footer-bottom-section-1,
.footer-shadow-bottom,
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 0;
    /* Reduced from 30px */
    margin-top: 0;
    /* Reduced from 40px */
    color: #8080a0 !important;
    font-size: 13px !important;
    text-align: center !important;
}

#colophon .powered-by-kadence {
    display: none !important;
    /* Clean premium look */
}

.site-bottom-footer-inner-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 
 * SERVICE PAGE PREMIUM REFINEMENTS
 */

/* 1. Thumbnail Gallery */
.woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 15px !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    padding: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 85px !important;
    /* Larger thumbnails */
    float: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: 10px !important;
    opacity: 0.8 !important;
    transition: var(--transition-fast) !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    opacity: 1 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(72, 61, 139, 0.2) !important;
}

/* 2. Attributes Table (Area, City, etc.) */
.woocommerce-product-attributes.shop_attributes {
    border: none !important;
    background: transparent !important;
    margin: 25px auto !important;
    width: 100% !important;
}

.woocommerce-product-attributes.shop_attributes th,
.woocommerce-product-attributes.shop_attributes td {
    padding: 14px 18px !important;
    border: none !important;
    border-bottom: 1px solid rgba(72, 61, 139, 0.08) !important;
    font-size: 15px !important;
}

.woocommerce-product-attributes.shop_attributes th {
    color: var(--primary) !important;
    font-weight: 400 !important;
    background: rgba(72, 61, 139, 0.03) !important;
    border-radius: 6px 0 0 6px !important;
}

/* 3. Description & Spacing */
.woocommerce-product-details__short-description {
    line-height: 1.8 !important;
    color: var(--text-muted) !important;
    font-size: 16px !important;
    margin: 30px 0 !important;
    text-align: center !important;
}

/* 4. Contact/Action Buttons reinforcement for Single Product */
.single-product .summary .zvon,
.single-product .summary .zvon2,
.single-product .summary .button2,
.single-product .summary .button3 {
    height: 52px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    /* Match homepage card style */
    margin: 10px auto !important;
    max-width: 450px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: var(--transition-fast) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.single-product .summary .button3 {
    background-color: #25D366 !important;
    /* Pure WhatsApp Green */
    border: none !important;
}

.single-product .summary .button2 a.zvon3,
.single-product .summary .button3 a.zvon4 {
    display: flex !important;
    flex-direction: row-reverse !important;
    /* Perfect for Hebrew text + Icon */
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    position: relative !important;
    background: transparent !important;
    padding: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Fix Icons (pseudo-elements) */
.single-product .summary .button2 a.zvon3::before,
.single-product .summary .button3 a.zvon4::before {
    position: static !important;
    /* Remove absolute positioning */
    display: inline-block !important;
    margin: 0 10px !important;
    font-size: 18px !important;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
}

.single-product .summary .button2:hover,
.single-product .summary .button3:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}


/*
 * SERVICE PAGE TITLE & CATEGORY REFINEMENT
 * Targeting the correct selectors identified in inspector
 */
.single-product .product_title.entry-title,
.site .product-hero-section .extra-title {
    font-size: 24px !important;
    /* Elegant reduced size */
    line-height: 1.3 !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    color: var(--primary) !important;
    display: block !important;
}

.single-category,
.product-above-category,
.entry-taxonomies a {
    font-size: 15px !important;
    /* Reduced from 32px for a neater look */
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    margin-bottom: 10px !important;
    display: inline-block !important;
}

/* 
 * COMPACT SERVICE HEADER REFINEMENT
 * Collapsing the fixed 200px height to auto for a neater look
 */
.entry-hero,
.product-hero-section,
.entry-hero-container-inner,
.hero-container {
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
    /* Compression from top & bottom */
}

.entry-hero-container-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.entry-hero.product-hero-section .entry-header {
    min-height: 0;
}

/* 
 * SERVICE PAGE SUMMARY BORDER
 * Creating a refined card-like container for the product details
 */
.single-product div.product .summary.entry-summary {
    border: 1px solid rgba(72, 61, 139, 0.1) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01) !important;
    margin-bottom: 25px !important;
    margin-top: 15px !important;
}