@charset 'utf-8';
/*
Theme Name: Hot Coffee
Theme URI: http://hotcoffee.themerex.net/
Description: Hot Coffee - Multipurpose and Multiskin Responsive Wordpress theme
Author: themerex
Author URI: http://themerex.net/
Template: hot-coffee
Version: 2.0
Tags: light, responsive-layout, flexible-header, accessibility-ready, custom-background, custom-colors, custom-menu, featured-image-header, featured-images, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
*/


/* Parent theme style.css is now enqueued via PHP in functions.php (musecoffee_enqueue_parent_style)
   so LiteSpeed can combine and minify it together with the rest. Don't restore the @import. */


/* =Theme customization starts here
-------------------------------------------------------------- */

/* Mobile header — CSS safety net. Parent theme toggles .header_mobile ONLY via
   JavaScript (core.init.js compares window.innerWidth against a theme option).
   If that JS fails to run — deferred/combined by a cache plugin, a JS error
   earlier in the page, or the theme option set to 0 — the desktop header stays
   visible on phones. This media query enforces the swap regardless of JS. */
@media (max-width: 1023px) {
    .header_mobile { display: block !important; }
    header.top_panel_wrap { display: none !important; }
}

/* Opening the mobile panel makes the theme set height:100% on <html>
   (style.css:5839) plus height:calc(100% - 32px) when it detects the admin bar.
   At narrow widths WordPress switches the admin bar to position:absolute and
   adds margin-top on <html> instead — the two combined leave an empty band
   above the bar and push the whole page down. height:auto removes the conflict;
   the scroll lock still works because it comes from overflow:hidden on body. */
html.menu_mobile_open,
html.bar.menu_mobile_open {
    height: auto !important;
}

/* iOS Safari only dispatches click on non-interactive elements (like the
   .menu_button <div>) when they look clickable — cursor:pointer is the trigger.
   Without it, tapping the hamburger on iPhone does nothing. */
.header_mobile .menu_button,
.header_mobile .side_wrap .close,
.header_mobile .mask {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
}

/* Mobile menu panel — parent theme sets overflow-y: scroll (style.css:5921),
   which keeps the scrollbar permanently visible. On touch devices scrollbars are
   overlays so it goes unnoticed, but on desktop at narrow widths it renders as a
   persistent grey gutter inside the panel. "auto" shows it only when needed. */
.header_mobile .side_wrap {
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.column-1_3, .column-2_6, .column-3_9, .column-4_12								{ width: auto; }

/* Narrow login popup on desktop only — mobile cascade (≤639px → 260px) stays intact. */
@media (min-width: 640px) {
	#popup_login.popup_wrap { width: 26em; }
}

/* home text — friendly body-like styling. body.home prefix bumps specificity above
   the duplicate rule that exists in Customizer "Additional CSS" (which would otherwise win). */
body.home .list_products .page-description h2 {
    font-family: Montserrat !important;
    font-size: 0.95em !important;
    font-weight: 500 !important;
    line-height: 1.55em !important;
    letter-spacing: 0 !important;
    margin-top: 0 !important;
}
@media (max-width: 767px) {
    body.home .list_products .page-description h2 {
        font-size: 1.1em !important;
        line-height: 1.5em !important;
    }
    .woocommerce .woocommerce-result-count,
    .woocommerce-result-count { font-size: 1.15em !important; }
    /* Shop sort dropdown next to the result count — match the bumped size. */
    html body .woocommerce .woocommerce-ordering,
    html body .woocommerce .woocommerce-ordering select.orderby,
    html body select.orderby {
        font-size: 1.1em !important;
    }
}

/* top image text color */
.top_panel_title_inner .page_title {color:#fff;}

/* breadcrumb color */
.top_panel_title_inner .breadcrumbs a.breadcrumbs_item, .top_panel_title_inner .breadcrumbs span.breadcrumbs_item, .top_panel_title_inner .breadcrumbs span.breadcrumbs_delimiter {color:#fff;}

/* menu uppercase */
#menu_main {text-transform:uppercase;}

/* menu tab spacing */
.menu_main_nav > li > a { margin: 0 1.1em; }

/* bookmark textbox */
input[type="text"] { width: 100%; color:#000; }

/* footer links */
div.copyright_wrap_inner div.copyright_text a:hover {color:#a6a19f;}

/* Shop loop product titles: remove uppercase (inherited from generic h2 in parent skin),
   dark color #222, slightly larger font for readability. */
.woocommerce ul.products li.product h2,
.woocommerce-page ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #222 !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    font-family: Arial, sans-serif !important;
    text-align: center !important;
}
.woocommerce ul.products li.product h2 a,
.woocommerce-page ul.products li.product h2 a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title a {
    color: #222 !important;
    font-weight: 600 !important;
    font-family: Arial, sans-serif !important;
}
/* Hover: brown accent, matches button hover + sidebar hover. */
.woocommerce ul.products li.product h2 a:hover,
.woocommerce-page ul.products li.product h2 a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title a:hover {
    color: #7a4c2f !important;
}

/* Single product specifications table: left-align the labels column (th).
   Parent rules override the default th text-align:left — force it back. */
body.single-product .woocommerce table.shop_attributes th,
body.single-product .woocommerce-page table.shop_attributes th,
.woocommerce table.shop_attributes th,
.woocommerce-page table.shop_attributes th {
    text-align: left !important;
}

/* Variable product variation labels (Cantitate, Profil prăjire, Râșnire):
   left-align the labels column in the cart form variations table. */
body.single-product .woocommerce div.product form.cart .variations th.label,
body.single-product .woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations th.label,
.woocommerce div.product form.cart .variations th {
    text-align: left !important;
    padding-right: 12px !important;
    white-space: nowrap;
}
/* Variation dropdowns: all same width, fill their td cell. Applies desktop + mobile. */
body.single-product .woocommerce div.product form.cart .variations td.value,
.woocommerce div.product form.cart .variations td.value {
    width: 100% !important;
}

/* Variation swatches — modern radio-like buttons that replace WC's default dropdowns.
   Layout A: label above buttons, buttons flex-wrap on full width. Robust on any viewport. */
.woocommerce div.product form.cart .variations td.value select,
.woocommerce div.product form.cart .variations select {
    display: none !important;
}
/* Force .variations <table> to render as a block list — each <tr> becomes a full-width row,
   label above value. Prevents cramped side-by-side layout when many swatches present. */
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.woocommerce div.product form.cart .variations tr {
    margin-bottom: 0.4em !important;
}
.woocommerce div.product form.cart .variations th.label,
.woocommerce div.product form.cart .variations th {
    margin: 0 0 0.5em 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    font-weight: 600;
}
.woocommerce div.product form.cart .variations th.label label,
.woocommerce div.product form.cart .variations th label {
    display: block;
}
.musecoffee-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 0;
    padding: 0;
}
.musecoffee-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7em 1.1em;
    background: transparent;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    color: #222;
    font-family: inherit;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}
.musecoffee-swatch:hover,
.musecoffee-swatch:focus {
    border-color: #7a4c2f !important;
    color: #7a4c2f !important;
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}
.musecoffee-swatch:focus-visible {
    outline: 2px solid #7a4c2f !important;
    outline-offset: 2px;
}
.musecoffee-swatch.selected {
    border-color: #7a4c2f !important;
    border-width: 2px !important;
    background-color: #f5f0e8 !important;
    color: #7a4c2f !important;
    font-weight: 700 !important;
    padding: calc(0.7em - 0.5px) calc(1.1em - 0.5px) !important;
    box-shadow: none !important;
}
.musecoffee-swatch.selected:hover {
    background-color: #ecdfc9 !important;
    color: #7a4c2f !important;
}
/* "Anulează" (reset variations) link: match category meta font size on desktop. */
body.single-product .woocommerce div.product form.cart .reset_variations,
body.single-product a.reset_variations {
    font-size: 1em !important;
}
/* Tab headings (h2 in Description / Specifications panels): Arial, similar size to body copy. */
body.single-product .woocommerce div.product .woocommerce-tabs h2,
body.single-product .woocommerce-tabs .panel h2 {
    font-family: Arial, sans-serif !important;
    font-size: 1.15em !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}
body.single-product .woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Shop loop title: reserve 2 lines of vertical space (most products have 2-line titles
   on desktop). Rare 3-line titles will grow naturally — minor cross-card misalignment
   accepted as trade-off for the simpler/reliable approach.
   Desktop only (≥768px): on mobile cards are 1-per-row so no cross-card alignment. */
@media (min-width: 768px) {
    .woocommerce ul.products li.product h3,
    .woocommerce-page ul.products li.product h3,
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
        min-height: 2.6em !important;
        line-height: 1.3em !important;
        display: block !important;
    }
}

/* sale label */
.woocommerce span.new, .woocommerce-page span.new, .woocommerce span.onsale, .woocommerce-page span.onsale, .woocommerce ul.products li.product span.new, .woocommerce-page ul.products li.product span.new, .woocommerce ul.products li.product span.onsale, .woocommerce-page ul.products li.product span.onsale { margin:1em 0 0 1em; width: 5em; height: 5em; line-height: 5em; background-color:#fff; color: #000; }

/* my account edit forms */
abbr.required {text-decoration:none;}

/* h1, h2 */
h1, h2 { letter-spacing: 0.05em; }

/* Remove uppercase transformation from ALL buttons across the site (parent theme applies
   text-transform: uppercase on .sc_button which cascades to shop CTAs, add-to-cart,
   MC4WP subscribe, contact form, cart/checkout actions, blog readmore, etc). */
html body button,
html body input[type="submit"],
html body input[type="button"],
html body a.button,
html body .button,
html body .sc_button,
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .woocommerce #respond input#submit,
html body .woocommerce-page a.button,
html body .woocommerce-page button.button,
html body .woocommerce-page input.button,
html body .woocommerce-page #respond input#submit,
html body .woocommerce a.button.alt,
html body .woocommerce button.button.alt,
html body .woocommerce input.button.alt,
html body .woocommerce-page a.button.alt,
html body .woocommerce-page button.button.alt,
html body .woocommerce-page input.button.alt,
html body .single_add_to_cart_button,
html body .checkout-button,
html body .wc-forward,
html body .mc4wp-form input[type="submit"],
html body .mc4wp-form button[type="submit"],
html body .sc_form_button button,
html body .post_readmore,
html body .post_item a.sc_button,
html body a.more-link {
    text-transform: none !important;
}

/* buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce #content input.button, .woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button, .woocommerce-page #respond input#submit, .woocommerce-page #content input.button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page a.button.alt, .woocommerce-page button.button.alt, .woocommerce-page input.button.alt, .woocommerce-page #respond input#submit.alt, .woocommerce-page #content input.button.alt, .woocommerce-account .addresses .title .edit, button[type="submit"], input[type="submit"], input[type="button"], button, .sc_button, .mc4wp-form input[type="submit"], .mc4wp-form input[type="button"],
.sc_form .sc_form_item.sc_form_button button {
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none; appearance: none; background-color: transparent; border: 1px solid #000;
color: #000; cursor: pointer;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-item-align: center; align-self: center; text-decoration: none; text-align: center;
-webkit-transition: box-shadow 100ms ease-in-out, background-color 100ms ease-in-out, color 100ms ease-in-out;
transition: box-shadow 100ms ease-in-out, background-color 100ms ease-in-out, color 100ms ease-in-out; padding: 1em 1.5em;
}
a.sc_button, a.checkout-button, a.wc-backward {display:inline !important;}
.woocommerce ul.products .product .post_content a.button {display:inline-block !important;}
button:hover, a.button:hover,.woocommerce ul.products li.product a.button:hover, .mc4wp-form input[type="submit"]:hover, .mc4wp-form input[type="button"]:hover, .sc_form .sc_form_item.sc_form_button button:hover, .woocommerce div.product form.cart .button:hover, a.edit:hover, input[type="submit"]:hover, .sc_button:hover { background-color: #000 !important; box-shadow: 0 0 40px 40px #000 inset; color: #fff !important; }
.woocommerce #respond input#submit.alt.disabled, .woocommerce #respond input#submit.alt.disabled:hover, .woocommerce #respond input#submit.alt:disabled, .woocommerce #respond input#submit.alt:disabled:hover, .woocommerce #respond input#submit.alt:disabled[disabled], .woocommerce #respond input#submit.alt:disabled[disabled]:hover, .woocommerce a.button.alt.disabled, .woocommerce a.button.alt.disabled:hover, .woocommerce a.button.alt:disabled, .woocommerce a.button.alt:disabled:hover, .woocommerce a.button.alt:disabled[disabled], .woocommerce a.button.alt:disabled[disabled]:hover, .woocommerce button.button.alt.disabled, .woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled:hover, .woocommerce button.button.alt:disabled[disabled], .woocommerce button.button.alt:disabled[disabled]:hover, .woocommerce input.button.alt.disabled, .woocommerce input.button.alt.disabled:hover, .woocommerce input.button.alt:disabled, .woocommerce input.button.alt:disabled:hover, .woocommerce input.button.alt:disabled[disabled], .woocommerce input.button.alt:disabled[disabled]:hover { background-color: #000; box-shadow: 0 0 40px 40px #000 inset; color: #fff;}
.woocommerce a.button:before, .woocommerce button.button:before, .woocommerce input.button:before, .woocommerce #respond input#submit:before, .woocommerce #content input.button:before, .woocommerce-page a.button:before, .woocommerce-page button.button:before, .woocommerce-page input.button:before, .woocommerce-page #respond input#submit:before, .woocommerce-page #content input.button:before, .woocommerce a.button.alt:before, .woocommerce button.button.alt:before, .woocommerce input.button.alt:before, .woocommerce #respond input#submit.alt:before, .woocommerce #content input.button.alt:before, .woocommerce-page a.button.alt:before, .woocommerce-page button.button.alt:before, .woocommerce-page input.button.alt:before, .woocommerce-page #respond input#submit.alt:before, .woocommerce-page #content input.button.alt:before, .woocommerce-account .addresses .title .edit:before, button:after, .sc_button:after { border: none; }
.woocommerce .shop_table .actions .button {padding:.618em 1em; margin-right:7px;}
input.search_field {border: 1px solid #999 !important;}
input.search_field:focus {color: #fff;}
button.search_submit,.buttonsearch_submit:hover {background-color:transparent !important;}
.content .search_form_wrap {border:none;}
button#place_order:hover { color: #d0d0d0 !important; }
button[name='apply_coupon']:hover, button[name='update_cart']:hover, button[name='woocommerce_checkout_place_order']:hover {color: #fff; background-color: #000 !important;}

/* Cookie bar */
#cookie-notice { line-height: 2em; }
#cookie-notice a { display: inline; color: #fff; padding: 0.5em 0.8em; border: none; text-transform: none; white-space: nowrap; }
a#cn-accept-cookie { background-color: #29c21e; }
a#cn-accept-cookie:hover { background-color: #4ad440 !important; }
a#cn-refuse-cookie { background-color: #c52626; }
a#cn-refuse-cookie:hover { background-color: #de2c2c !important; }
a#cn-more-info { background-color: #fff; color: #000; }
a#cn-more-info:hover { background-color: #f0f0f0 !important; color: #000 !important; }

/* Sale */
.woocommerce span.onsale, .woocommerce-page span.onsale { background-color: #f00 !important; color: #fff !important; }

/* Prevent slight shift from web fonts */
body { font-display: swap; }

/* Fix CLS: reserve space for top panel banner — responsive */
.top_panel_title_inner { min-height: clamp(100px, 18vw, 220px);}

body.wp-singular .top_panel_title_inner { min-height: clamp(90px, 14vw, 180px);}

/* Mobile readability: bump post content base to 16px on phones/small tablets.
   Parent sets html/body to 14px (<=479px) and 15px (480-767px) — too small for body copy.
   Setting on the .post_content container scales em-based children (paragraphs AND
   headings) proportionally, keeping the title-to-body visual ratio intact. */
@media (max-width: 767px) {
    .post_content { font-size: 1.25em; }
    .page-title-container p { font-size: 1.25em; }
}

/* Darker body text in articles for better legibility (parent uses #a6a19f). */
.post_content { color: #222; }

/* Same darker tone on single product pages (summary block + tabs/specs/description). */
body.single-product div.product .summary,
body.single-product div.product .woocommerce-tabs { color: #222; }

/* Same darker tone on the newsletter subscribe widget (MC4WP). */
.mc4wp-form { color: #222; }

/* Accessibility: darken email/text input text + placeholder.
   Parent skin.css sets .mc4wp-form input color to #a6a19f which the browser also uses as
   fallback base for the placeholder pseudo-element. We override both: text color AND
   the pseudo-element color, plus -webkit-text-fill-color for Safari/Webkit. */
.mc4wp-form input[type="text"],
.mc4wp-form input[type="email"],
.mc4wp-form input[type="search"],
.mc4wp-form input[type="number"],
.mc4wp-form input[type="password"],
.mc4wp-form textarea,
.mc4wp-form select { color: #222 !important; -webkit-text-fill-color: #222 !important; font-size: 15px; }

input::placeholder,
textarea::placeholder,
.mc4wp-form input::placeholder,
.mc4wp-form input[type="email"]::placeholder { color: #222 !important; opacity: 1 !important; -webkit-text-fill-color: #222 !important; }
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.mc4wp-form input::-webkit-input-placeholder,
.mc4wp-form input[type="email"]::-webkit-input-placeholder { color: #222 !important; opacity: 1 !important; -webkit-text-fill-color: #222 !important; }
input::-moz-placeholder,
textarea::-moz-placeholder,
.mc4wp-form input::-moz-placeholder,
.mc4wp-form input[type="email"]::-moz-placeholder { color: #222 !important; opacity: 1 !important; -webkit-text-fill-color: #222 !important; }

/* Same darker tone in the footer area (shipping costs + legal info widgets). */
.footer_wrap { color: #222; }

/* WooCommerce category archive description (above product loop). */
.woocommerce-products-header .term-description,
.term-description { color: #222; }

/* Tighten top spacing of main content wrap (was too generous from parent theme). */
.page_content_wrap { padding-top: 3em !important; }
@media (max-width: 767px) {
    .page_content_wrap { padding-top: 2em !important; }
}

/* Inline link styling in dark-text body zones (color-only differentiation, brown tone). */
.post_content a,
.term-description a,
.mc4wp-form a,
.footer_wrap a,
body.single-product div.product .summary a,
body.single-product div.product .woocommerce-tabs a {
    color: #8b4513;
    text-decoration: none;
    font-weight: 700;
}
/* Reset: don't bold links inside sidebar widgets — bold is only for inline article/page links.
   Also normalize link color to #222 and shrink font very slightly (~5%). */
.sidebar .post_content a,
.sidebar a,
.widget_area a,
.widget_area .post_content a,
.widget .post_content a,
aside .post_content a,
aside a {
    font-weight: 400 !important;
    color: #222 !important;
    font-size: 0.97em !important;
}
/* Keep the brown category badges: bold + saddle-brown color. */
.sidebar .post_cat a,
.widget_area .post_cat a,
aside .post_cat a {
    font-weight: 600 !important;
    color: #8b4513 !important;
}
/* Hover: switch sidebar links to brown accent (matches CTA hover on buttons). */
.sidebar a:hover,
.widget_area a:hover,
aside a:hover {
    color: #7a4c2f !important;
}
/* But keep the brown category badges brown on hover too (no black override). */
.sidebar .post_cat a:hover,
.widget_area .post_cat a:hover,
aside .post_cat a:hover {
    color: #5d2f0b !important;
}
.post_content a:hover,
.term-description a:hover,
.mc4wp-form a:hover,
.footer_wrap a:hover,
body.single-product div.product .summary a:hover,
body.single-product div.product .woocommerce-tabs a:hover {
    color: #5d2f0b;
}

/* Single product page "Adaugă în coș" — same red styling as the shop loop CTA.
   body.single-product prefix bumps specificity to override the duplicate older rule
   that paints the button black via box-shadow inset on :hover. */
body.single-product .woocommerce div.product form.cart .button,
body.single-product .woocommerce div.product form.cart button.button,
body.single-product .woocommerce div.product .single_add_to_cart_button {
    background-color: #c0392b !important;
    border: 1px solid #c0392b !important;
    color: #fff !important;
    padding: 1.1em 1.5em !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
body.single-product .woocommerce div.product form.cart .button:hover,
body.single-product .woocommerce div.product form.cart button.button:hover,
body.single-product .woocommerce div.product .single_add_to_cart_button:hover {
    background-color: #8b2818 !important;
    border-color: #8b2818 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Single product page price — red and bold for visual emphasis. */
body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product .price,
body.single-product .woocommerce div.product span.price,
body.single-product .woocommerce div.product p.price .amount,
body.single-product .woocommerce div.product .price .amount {
    color: #c0392b !important;
    font-weight: 700 !important;
}

/* Shop loop price — bump font-size for readability (color/weight come inline via PHP wrapper). */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce-page ul.products li.product .price .amount {
    font-size: 1.05em !important;
}
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: block !important;
    text-align: center !important;
    margin-bottom: 0.625em !important;
}

/* Shop loop product CTA: filled garnet button, full-width consistent across viewports.
   Same width for "CUMPĂRĂ" and "ADAUGĂ ÎN COȘ" — visual consistency between product types. */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background-color: #c0392b !important;
    border: 1px solid #c0392b !important;
    color: #fff !important;
    padding: 1.1em 1em !important;
    font-weight: 700 !important;
    display: block !important;
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto !important;
    text-align: center !important;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce-page ul.products li.product a.button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background-color: #8b2818 !important;
    border-color: #8b2818 !important;
    box-shadow: none !important;
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product a.button,
    .woocommerce-page ul.products li.product a.button,
    .woocommerce ul.products li.product .button,
    .woocommerce-page ul.products li.product .button {
        max-width: 100% !important;
        padding: 1.2em 1em !important;
    }
}

/* MC4WP newsletter "ABONARE" button — outline #222 (secondary style, evită concurența cu CTA solid). */
.mc4wp-form input[type="submit"],
.mc4wp-form button[type="submit"],
.widget .mc4wp-form input[type="submit"],
.widget .mc4wp-form button[type="submit"] {
    background-color: transparent !important;
    border: 2px solid #222 !important;
    color: #222 !important;
    padding: 1em 1.5em !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #222 !important;
}
.mc4wp-form input[type="submit"]:hover,
.mc4wp-form button[type="submit"]:hover,
.widget .mc4wp-form input[type="submit"]:hover,
.widget .mc4wp-form button[type="submit"]:hover {
    background-color: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #fff !important;
}

/* Hot Coffee custom pagination — outline #222, fill maron (placeholder, TBD). */
.pagination_pages > a,
.pagination_pages > span {
    background-color: transparent !important;
    border: 2px solid #222 !important;
    color: #222 !important;
    font-weight: 700 !important;
}
.pagination_pages > a:hover,
.pagination_pages > a:focus {
    background-color: #444 !important;
    border-color: #444 !important;
    color: #fff !important;
}
.pagination_pages > .active,
.pagination_pages > span.active {
    background-color: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
}
/* Prev/Next/First/Last arrows — same outline #222 treatment. */
.pagination_wrap .pager_next,
.pagination_wrap .pager_prev,
.pagination_wrap .pager_last,
.pagination_wrap .pager_first {
    background-color: transparent !important;
    border: 2px solid #222 !important;
    color: #222 !important;
}
.pagination_wrap .pager_next:hover,
.pagination_wrap .pager_prev:hover,
.pagination_wrap .pager_last:hover,
.pagination_wrap .pager_first:hover {
    background-color: #444 !important;
    border-color: #444 !important;
    color: #fff !important;
}
/* Fallback: standard WC pagination markup. */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background-color: transparent !important;
    border: 2px solid #222 !important;
    color: #222 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #444 !important;
    border-color: #444 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Preserve h1-like typography on .page_title when the tag is degraded to <div>
   on single product pages (see musecoffee_demote_banner_h1_on_products in functions.php).
   Replicates skin.css:40 rule that was tag-bound to h1. */
.page_title { text-transform: uppercase; letter-spacing: 0.1em; line-height: 120%; }
/* Single product: title is demoted from <h1> to <div> for SEO, so it no longer inherits
   h1/h2 tag styling (including font-family). Restate all typography explicitly. */
body.single-product .page_title {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 120% !important;
    font-weight: 600 !important;
}

/* Breadcrumbs — bump from parent's 12px (too small) to a readable ~1em body-relative size. */
.top_panel_title .breadcrumbs,
.top_panel_title .breadcrumbs a,
.top_panel_title .breadcrumbs .breadcrumbs_item,
.top_panel_title .breadcrumbs .breadcrumbs_delimiter,
.breadcrumbs,
.breadcrumbs a,
.breadcrumbs .breadcrumbs_item,
.breadcrumbs .breadcrumbs_delimiter {
    font-size: 1em !important;
}
/* Breadcrumb link hover: keep contrast on dark brown banner background (default hover
   turns black which becomes invisible). Light warm tone + underline for clarity. */
.top_panel_title .breadcrumbs a:hover,
.breadcrumbs a:hover {
    color: #f0d9b5 !important;
}

/* Preserve h5-like typography on .widget_title when the tag is changed to <h3>
   (see musecoffee_a11y_link_labels_buffer in functions.php for heading hierarchy fix).
   Replicates skin.css:43 (h5 styling) + skin.responsive.css h5 font-size. */
.widget_title { font-size: 0.89em; text-transform: uppercase; letter-spacing: 0.06em; }

/* Preserve h6-like font-size on .post_title in recent-posts widget when tag changed to <h4>. */
.widget_recent_posts .post_title,
.widget .post_title { font-size: 0.89em; }

/* Left-align sidebar content (titles + lists). Parent theme centers everything by default. */
.sidebar, .sidebar_inner { text-align: left; }
.sidebar.widget_area .widget_title { padding-left: 0; padding-right: 0; }

/* Sidebar block widgets (Gutenberg "Heading" block) output <h3 class="wp-block-heading">
   instead of <h3 class="widget_title">, so they fall back to the global h3 size (1.667em)
   and look nothing like the surrounding widget titles. Replicate .widget_title typography
   (skin.css:1843 + the .widget_title rule above) on the leading heading of a block widget. */
html body .sidebar.widget_area .widget_block > :is(h1, h2, h3, h4, h5, h6):first-child {
    display: inline-block;
    margin: 0 0 1.6em;
    padding: 0 0 1em;
    border-bottom: 1px solid #d4d4d4;
    font-size: 0.89em !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* A Heading block lives in its own <aside>, so the parent rule `.sidebar aside + aside`
   (margin-top 2.2em + padding-top 2.2em) wedges 4.4em between the title and the widget it
   introduces. Collapse it and let the heading's own bottom margin set the rhythm. */
html body .sidebar.widget_area .widget_block:has(> :is(h1, h2, h3, h4, h5, h6):only-child) {
    margin-bottom: 0;
}
html body .sidebar.widget_area .widget_block:has(> :is(h1, h2, h3, h4, h5, h6):only-child) + aside {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Accessibility: raise contrast on low-contrast text reported by Lighthouse. */
/* Article category badges (Articole recente widget): saddle brown, brand-fit tone.
   !important required because parent skin.css loads after child and uses same specificity. */
.post_item .post_cat a,
.post_item_short .post_cat a,
.widget_recent_posts .post_cat a,
.widget_area_inner .post_cat a,
.post_cat a { color: #8b4513 !important; font-weight: 600 !important; }

/* Blog categories widget + product categories widget + nav menu widget:
   dark text, no uppercase, normal size, tight vertical rhythm. High-specificity
   selectors so they win on shop page (body.woocommerce), where parent's scoped
   rules (body:not(.woocommerce)) don't apply. */
html body .widget_categories li,
html body .widget_categories li a,
html body .widget_product_categories li,
html body .widget_product_categories li a,
html body .widget_product_categories ul.product-categories li,
html body .widget_product_categories ul.product-categories li a,
html body .widget_nav_menu li,
html body .widget_nav_menu li a,
html body .widget_nav_menu .menu li,
html body .widget_nav_menu .menu li a,
html body .widget_nav_menu .sub-menu li,
html body .widget_nav_menu .sub-menu li a {
    color: #222 !important;
    font-size: 0.94em !important;
    font-weight: 400 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
}
html body .widget_categories li,
html body .widget_product_categories li,
html body .widget_product_categories ul.product-categories li,
html body .widget_nav_menu li,
html body .widget_nav_menu .menu li,
html body .widget_nav_menu .sub-menu li {
    margin: 0 0 0.25em 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-indent: 0 !important;
}
/* Mobile: bump widget category font + section titles slightly for readability. */
@media (max-width: 767px) {
    html body .widget_categories li,
    html body .widget_categories li a,
    html body .widget_product_categories li,
    html body .widget_product_categories li a,
    html body .widget_product_categories ul.product-categories li,
    html body .widget_product_categories ul.product-categories li a,
    html body .widget_nav_menu li,
    html body .widget_nav_menu li a,
    html body .widget_nav_menu .menu li,
    html body .widget_nav_menu .menu li a,
    html body .widget_nav_menu .sub-menu li,
    html body .widget_nav_menu .sub-menu li a {
        font-size: 1.05em !important;
    }
    html body .widget_title {
        font-size: 1.08em !important;
    }
    /* Sidebar Heading blocks: same mobile bump as .widget_title above. */
    html body .sidebar.widget_area .widget_block > :is(h1, h2, h3, h4, h5, h6):first-child {
        font-size: 1.08em !important;
    }
    /* Recent posts widget: bump category label + post title on mobile. */
    html body .widget_recent_posts .post_cat,
    html body .widget_recent_posts .post_cat a,
    html body .widget .widget_recent_posts .post_cat a {
        font-size: 0.95em !important;
    }
    html body .widget_recent_posts .post_title,
    html body .widget_recent_posts .post_title a,
    html body .widget .post_title,
    html body .widget .post_title a {
        font-size: 1em !important;
    }
    /* Contact page bordered row (WPBakery generated class): reduce lateral margin
       + remove decorative border + reduce inner padding on mobile.
       High-specificity to beat WPBakery's inline <style>. */
    html body .vc_row.vc_custom_1488228249905,
    html body .vc_custom_1488228249905 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    /* Cascade the width recovery through the WPBakery column wrappers on the Contact page. */
    html body .vc_custom_1488228249905 .vc_col-sm-12,
    html body .vc_custom_1488228249905 .wpb_column,
    html body .vc_custom_1488228249905 .vc_column-inner,
    html body .vc_custom_1488228249905 .wpb_wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Parent theme sets .content_wrap to a FIXED pixel width per breakpoint (280/440/600/...)
       which leaves wasted lateral margins on mobile. Force full-width on EVERY page
       on mobile — content-heavy layouts (Contact, Cart, Checkout, blog, shop, product,
       archives) all benefit from using every pixel of the viewport width. */
    html body .content_wrap,
    html body .content_container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.5em !important;
        padding-right: 0.5em !important;
        box-sizing: border-box !important;
    }

    /* Cart totals — shipping row on mobile: stack title above options,
       everything left-aligned. Default table layout puts <th>Livrare</th> on
       left and <td> options on right with text-align:right, which wraps ugly.
       Uses html-body prefix + tr block + td/th block to beat parent theme
       specificity and force full-width stacked layout. */
    html body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals,
    html body.woocommerce-cart .cart_totals tr.shipping {
        display: block !important;
        width: 100% !important;
        padding: 0.3em 0 !important;
    }
    html body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > th,
    html body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td,
    html body.woocommerce-cart .cart_totals tr.shipping > th,
    html body.woocommerce-cart .cart_totals tr.shipping > td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        padding: 0.3em 0.5em !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    html body.woocommerce-cart .cart_totals ul#shipping_method,
    html body.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
        float: none !important;
    }
    html body.woocommerce-cart .cart_totals ul#shipping_method li,
    html body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
        display: block !important;
        margin: 0 0 0.5em 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    html body.woocommerce-cart .cart_totals ul#shipping_method li label,
    html body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li label {
        display: inline !important;
        margin-left: 0.4em !important;
        text-align: left !important;
    }
    html body.woocommerce-cart .woocommerce-shipping-destination {
        text-align: left !important;
        margin-top: 0.4em !important;
        padding: 0 0.5em !important;
    }
    /* MC4WP subscribe widget: description text + checkbox label larger on mobile. */
    html body .widget .mc4wp-form,
    html body .widget .mc4wp-form p,
    html body .widget .mc4wp-form label,
    html body .mc4wp-form,
    html body .mc4wp-form p,
    html body .mc4wp-form label {
        font-size: 1.05em !important;
        line-height: 1.5 !important;
    }
}


/* Sub-menu (Hario, AeroPress, Filtre hârtie): no left indent — match parent-level items. */
html body .widget_nav_menu .sub-menu,
html body .widget_nav_menu .menu .sub-menu {
    margin: 0.25em 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce-result-count { color: #444; font-size: 1em; }

.woocommerce .woocommerce-ordering select.orderby,
select.orderby { color: #222; }

/* Top bar (dark background): force white text for legibility (default theme value is too dark). */
.top_panel_top,
.top_panel_top a,
.top_panel_top_contact_area,
.top_panel_top_contact_area a { color: #fff; }

/* Single product mobile: bump font-size on description, specs, meta, variations, tabs. */
@media (max-width: 767px) {
    body.single-product .woocommerce-Tabs-panel--description,
    body.single-product #tab-description,
    body.single-product #tab-description p,
    body.single-product .woocommerce-product-details__short-description,
    body.single-product .woocommerce table.shop_attributes,
    body.single-product .woocommerce table.shop_attributes td,
    body.single-product .woocommerce table.shop_attributes th,
    body.single-product .product_meta,
    body.single-product .product_meta > span,
    body.single-product .product_meta .posted_in,
    body.single-product .product_meta .posted_in a,
    body.single-product .product_meta .tagged_as,
    body.single-product .product_meta .tagged_as a,
    body.single-product .product_meta .sku_wrapper,
    body.single-product .product_meta .sku_wrapper .sku,
    body.single-product .woocommerce div.product form.cart .variations,
    body.single-product .woocommerce div.product form.cart .variations td,
    body.single-product .woocommerce div.product form.cart .variations th,
    body.single-product .woocommerce div.product form.cart .variations th.label,
    body.single-product .woocommerce div.product form.cart .variations label,
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a,
    body.single-product .woocommerce div.product .woocommerce-tabs .wc-tabs li a,
    body.single-product .wc-tabs li a {
        font-size: 1.08em !important;
    }
    /* Dropdown selects: font-size 16px prevents iOS auto-zoom on focus (mobile-specific). */
    body.single-product .woocommerce div.product form.cart .variations select,
    body.single-product select {
        font-size: 16px !important;
    }
    /* "Anulează" (reset variations) link below dropdowns — match surrounding font-size. */
    body.single-product .woocommerce div.product form.cart .reset_variations,
    body.single-product a.reset_variations {
        font-size: 1.08em !important;
    }
    /* Variation labels (Cantitate / Profil prăjire / Râșnire) — bumped via inline <style>
       from PHP (see musecoffee_red_cta_style_tag) so it wins over combined LiteSpeed CSS. */
    /* Info badges (livrare + plată) — slightly larger text on mobile. */
    body.single-product .musecoffee-shipping-badge,
    body.single-product .musecoffee-info-badge {
        font-size: 1.1em !important;
    }
    /* WooCommerce "product added to cart" notice — larger text on mobile. Covers both
       classic WC messages and WC Blocks (wc-block-components-notice-banner). */
    html body .woocommerce-notices-wrapper,
    html body .woocommerce-notices-wrapper *,
    html body .woocommerce-message,
    html body .woocommerce-message *,
    html body .woocommerce-info,
    html body .woocommerce-info *,
    html body .woocommerce-error,
    html body .woocommerce-error *,
    html body .wc-block-components-notice-banner,
    html body .wc-block-components-notice-banner *,
    html body .wc-block-components-notice-banner__content {
        font-size: 1.1em !important;
        line-height: 1.5 !important;
    }
    /* Reset the "Vezi coșul" button font-size — was bumped up by the universal selector above. */
    html body .woocommerce-message .button,
    html body .woocommerce-message a.button,
    html body .woocommerce-notices-wrapper .button {
        font-size: 0.9em !important;
    }
    /* Any <table> in the main content area on mobile — force block-level scroll container
       to prevent the article from causing document-wide horizontal scroll.
       Scope: excludes header/menu/sidebar/footer tables. */
    html body .content table,
    html body .page_content_wrap table,
    html body article table,
    html body .wpb_wrapper table,
    html body .wpb_text_column table,
    html body .post_content table,
    html body .entry-content table {
        display: block !important;
        overflow-x: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    /* Safety net: prevent the whole body from scrolling horizontally on mobile.
       Multiple targets — html already has overflow-x:hidden in parent, but body/wrappers
       may still overflow if any child sets min-width or a large absolute width. */
    html,
    html body,
    html body .page_wrap,
    html body .page_content_wrap,
    html body .content,
    html body .post_content,
    html body article.post_item {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    /* WooCommerce category description (above product loop) — larger on mobile. */
    html body .woocommerce-products-header .term-description,
    html body .woocommerce-products-header .term-description p,
    html body .term-description,
    html body .term-description p {
        font-size: 1.1em !important;
        line-height: 1.5 !important;
    }
    /* Footer widget text (Costuri de livrare block) — larger on mobile for readability. */
    .footer_wrap .textwidget,
    .footer_wrap .textwidget p,
    .footer_wrap .widget_text p,
    .footer_wrap p {
        font-size: 1.1em !important;
        line-height: 1.6 !important;
    }
    /* (Footer layout moved outside the media query — applies to all viewports.) */
    .copyright_wrap_inner .copyright_text {
        clear: both;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }
    /* Force uniform font-size on ALL descendants (span, a, strong, etc.) — some
       may have inline styles or other rules setting different sizes. */
    .copyright_wrap_inner .copyright_text,
    .copyright_wrap_inner .copyright_text * {
        font-size: 1.1em !important;
    }
    /* Description tab body + specs table cells — visible bump for mobile readability. */
    body.single-product .woocommerce-Tabs-panel--description,
    body.single-product .woocommerce-Tabs-panel--description p,
    body.single-product #tab-description,
    body.single-product #tab-description p,
    body.single-product .woocommerce table.shop_attributes,
    body.single-product .woocommerce table.shop_attributes tr td,
    body.single-product .woocommerce table.shop_attributes tr th,
    body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td,
    body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
        font-size: 1.18em !important;
    }
    /* Row layout: quantity + button on the same line INSIDE the add-to-cart wrapper only.
       Never on form.cart itself — that would put the variations table on the same row too. */
    body.single-product .woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.6em !important;
    }
    body.single-product .woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    body.single-product .woocommerce div.product form.cart .button,
    body.single-product .woocommerce div.product form.cart button.button,
    body.single-product .woocommerce div.product .single_add_to_cart_button {
        display: inline-flex !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0.9em 2em !important;
        font-size: 1.1em !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}

/* Header search popup results — force white text on dark popup background so titles,
   dates, view counts, and "More results" link are all legible. Parent theme leaves them
   in default body color (#a6a19f) which vanishes on the dark popup. */
.search_results,
.search_results .post_item,
.search_results .post_item .post_title,
.search_results .post_item .post_title a,
.search_results .post_item .post_info,
.search_results .post_item .post_info_item,
.search_results .post_item .post_info_posted,
.search_results .post_item .post_info_date,
.search_results .post_item .post_info_counters,
.search_results .post_item .post_counters_item,
.search_results .post_item .post_counters_number,
.search_results .post_item [class*="icon-"],
.search_results .post_item .post_more,
.search_results .post_item .search_more,
.search_results .post_item a.search_more {
    color: #fff !important;
}
.search_results .post_item .post_title a:hover,
.search_results .post_item .search_more:hover {
    color: #e8dcc4 !important;
}

/* Homepage hero — subtitle + CTA button injected below the banner <h1>.
   Constrain the banner height on desktop so the hero doesn't sprawl vertically. */
/* Banner homepage — flex column center pentru H1 + subtitle + CTA distribuite uniform.
   Aplicat pe AMBELE containere (exterior + interior) ca height-ul să se propage corect. */
body.home .top_panel_title {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    height: clamp(300px, 28vw, 400px) !important;
    max-height: 400px !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
body.home .top_panel_title_inner {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
}
body.home .top_panel_title_inner .content_wrap {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 1em !important;
    margin: 0 auto !important;
}
/* Force ALL direct children of content_wrap out of any float, into flex flow. */
body.home .top_panel_title_inner .content_wrap > * {
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100% !important;
}
body.home .top_panel_title_inner .content_wrap .page_title {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.15 !important;
    text-wrap: balance;
}
body.home .musecoffee-hero-subtitle {
    text-wrap: balance;
}
@media (max-width: 767px) {
    body.home .musecoffee-hero-subtitle {
        font-size: 1.2em !important;
    }
}
/* Kill empty breadcrumbs container on homepage — parent theme reserves 9.8em bottom
   padding for it (even when empty), creating a big void below the CTA. */
body.home .top_panel_title .breadcrumbs {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}
body.home .top_panel_title .page_title {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 900px;
    float: none !important;
    text-align: center !important;
}
body.home .top_panel_title_inner .content_wrap {
    text-align: center;
}
body.home .top_panel_title .page_title {
    text-align: center !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 900px;
}
.musecoffee-hero-subtitle {
    color: #fff;
    font-size: 1.05em;
    line-height: 1.5;
    margin: 0.8em auto 1.4em !important;
    max-width: 700px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.musecoffee-hero-cta {
    margin: 0;
    text-align: center;
}
.musecoffee-hero-cta-btn,
a.musecoffee-hero-cta-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5em;
    padding: 0.9em 1.8em !important;
    background-color: #c0392b !important;
    border: 1px solid #c0392b !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.musecoffee-hero-cta-btn:hover,
a.musecoffee-hero-cta-btn:hover {
    background-color: #8b2818 !important;
    border-color: #8b2818 !important;
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 767px) {
    /* On homepage, banner must accommodate H1 + subtitle + CTA — override the tight
       CLS-reservation min-height so nothing overflows into the content below. */
    body.home .top_panel_title,
    body.home .top_panel_title_inner {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    body.home .top_panel_title_inner {
        padding: 1.5em 1em !important;
    }
    .musecoffee-hero-subtitle {
        font-size: 1.1em;
        line-height: 1.45;
        margin: 0.4em 0 0.9em;
    }
    .musecoffee-hero-cta-btn,
    a.musecoffee-hero-cta-btn {
        padding: 0.75em 1.2em !important;
        font-size: 1em !important;
        display: inline-flex !important;
    }
}

/* 404 page — force the banner background image (parent theme doesn't apply
   Customizer's top_panel_image on error pages). CSS fallback until Hot Coffee
   exposes a filter for the header image on 404. */
body.error404 .top_panel_title_inner {
    background-image: url('/wp-content/uploads/muse-coffee-beans.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Custom 404 page — see 404.php in child theme. */
.musecoffee-404 {
    max-width: 900px;
    margin: 3em auto;
    padding: 0 1em;
    text-align: center;
}
.musecoffee-404-title {
    font-size: 1.6em !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 0 0.6em !important;
    color: #222;
}
.musecoffee-404-subtitle {
    font-size: 1.05em;
    line-height: 1.55;
    color: #444;
    max-width: 680px;
    margin: 0 auto 2em;
}
.musecoffee-404-cta {
    margin: 0 0 2.5em;
}
.musecoffee-404-cta-btn,
a.musecoffee-404-cta-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5em;
    padding: 1em 2em !important;
    background-color: #c0392b !important;
    border: 1px solid #c0392b !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease;
}
.musecoffee-404-cta-btn:hover {
    background-color: #8b2818 !important;
    border-color: #8b2818 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.musecoffee-404-search {
    max-width: 500px;
    margin: 0 auto 3em;
}
.musecoffee-404-search-label {
    color: #444;
    margin: 0 0 0.5em;
    font-size: 0.95em;
}
.musecoffee-404-search-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 0;
    max-width: 100%;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.musecoffee-404-search-form:focus-within {
    border-color: #7a4c2f;
}
.musecoffee-404-search-form input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    padding: 0.7em 1em !important;
    font-size: 1em !important;
    color: #222 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.musecoffee-404-search-form input[type="search"]::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}
.musecoffee-404-search-form button[type="submit"] {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: stretch !important;
    padding: 0 1em !important;
    margin: 0 !important;
    background-color: transparent !important;
    border: none !important;
    color: #7a4c2f !important;
    cursor: pointer;
    transition: color 0.15s ease;
    box-shadow: none !important;
    min-width: 2.8em;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}
.musecoffee-404-search-form button[type="submit"]:hover,
.musecoffee-404-search-form button[type="submit"]:focus {
    background-color: transparent !important;
    color: #5a3820 !important;
    box-shadow: none !important;
}
.musecoffee-404-search-form button[type="submit"] svg {
    display: block;
    color: inherit;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
.musecoffee-404-products {
    margin: 2em 0 0.5em;
    text-align: left;
}
.musecoffee-404-products ul.products li.product {
    padding-bottom: 1.5em !important;
}
.musecoffee-404-products-title {
    text-align: center;
    font-size: 1.3em !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 0 1.5em !important;
    color: #222;
}
.musecoffee-404-links {
    margin: 0 0 1.5em;
    text-align: center;
    padding: 0.6em 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.musecoffee-404-links-label {
    color: #444;
    margin: 0 0 0.6em;
    font-size: 0.95em;
}
.musecoffee-404-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 1.5em;
}
.musecoffee-404-links-list li {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.musecoffee-404-links-list li a {
    color: #7a4c2f !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.musecoffee-404-links-list li a:hover {
    color: #c0392b !important;
    text-decoration: underline !important;
}
.musecoffee-404-offer {
    max-width: 640px;
    margin: 2em auto 0;
    padding: 1.2em 1.5em;
    background-color: #f5f0e8;
    border-left: 3px solid #7a4c2f;
    color: #222;
    text-align: left;
    line-height: 1.5;
}
.musecoffee-404-offer p {
    margin: 0;
}
.musecoffee-404-offer strong {
    color: #7a4c2f;
    display: block;
    margin-bottom: 0.3em;
}
.musecoffee-404-code {
    background-color: rgba(122, 76, 47, 0.15);
    color: #7a4c2f;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.05em;
}
@media (max-width: 767px) {
    .musecoffee-404-title { font-size: 1.3em !important; }
    .musecoffee-404-subtitle { font-size: 1em; }
    .musecoffee-404-cta-btn { padding: 0.9em 1.5em !important; font-size: 1em !important; }
    .musecoffee-404-links-list { gap: 0.4em 1em; }
}

/* Free shipping badge on single product page (see musecoffee_free_shipping_badge in functions.php). */
.musecoffee-shipping-badge {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-top: 1.5em;
    margin-bottom: 5px;
    padding: 0.9em 1.1em;
    background-color: #f5f0e8;
    border-left: 3px solid #7a4c2f;
    color: #222;
    font-size: 0.98em;
    line-height: 1.4;
}
.musecoffee-shipping-badge svg {
    color: #7a4c2f;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}
.musecoffee-shipping-badge strong {
    color: #222;
    font-weight: 700;
}
.musecoffee-shipping-badge a {
    color: #7a4c2f !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.musecoffee-shipping-badge a:hover {
    color: #5a3820 !important;
    text-decoration: underline !important;
}

/* Info row: two 50/50 boxes ALWAYS side-by-side via CSS grid.
   clear: both escapes parent theme's float layout (.images + .summary use floats).
   min-width: 0 lets the boxes shrink below their natural content width (text wraps instead). */
.musecoffee-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8em;
    margin-top: 2em;
    margin-bottom: 2em;
    clear: both;
    width: 100%;
}
.musecoffee-info-row .musecoffee-info-badge {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    min-width: 0;
}
/* Full-width badge on row 1 (shipping): spans both grid columns. Payment + return
   remain 50/50 on row 2 (default grid behavior). */
.musecoffee-info-row .musecoffee-info-full {
    grid-column: 1 / -1;
}
/* Very narrow phones only: stack vertically so text stays readable. */
@media (max-width: 419px) {
    .musecoffee-info-row {
        grid-template-columns: 1fr;
    }
    .musecoffee-info-row .musecoffee-info-full {
        grid-column: auto;
    }
}

/* Remove top padding from copyright inner — the ANPC+SOL badge block now provides
   its own vertical spacing above the copyright text. */
.copyright_wrap_inner {
    padding-top: 0 !important;
}

/* Footer copyright layout — stack social icons above the text, centered, on ALL viewports
   (was mobile-only before, but at intermediate widths the default float:right layout broke). */
.copyright_wrap .content_wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
.copyright_style_socials .sc_socials,
.copyright_wrap .sc_socials {
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 0.3em auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
}

/* Copyright body text (© Muse Coffee + separators |) in cream tone — better contrast
   on the near-black band. Applies desktop + mobile. Links keep white (from parent). */
.copyright_wrap_inner .copyright_text {
    color: #e8dcc4 !important;
}
.copyright_wrap .sc_socials_item,
.copyright_wrap .sc_socials .social_item,
.copyright_wrap .sc_socials a {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* ANPC + SOL badges injected in the copyright top area (see musecoffee_a11y_link_labels_buffer).
   Outer band is full-width (matches copyright bg); inner content is boxed to 1170px to align
   with the rest of the footer content (same as .content_wrap in parent). */
.musecoffee-anpc-sol {
    background-color: #211f1e;
    padding: 1.5em 0 0.5em;
}
.musecoffee-anpc-sol-inner {
    max-width: 1170px;
    margin: 0 auto !important;
    padding: 0 1em;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1em;
    flex-wrap: wrap;
    box-sizing: border-box;
    text-align: center;
}
.musecoffee-anpc-sol a {
    display: inline-block;
    line-height: 0;
    float: none !important;
    margin: 0 !important;
}
.musecoffee-anpc-sol img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Quick-contact bar between ANPC/SOL and copyright — phone + email, click-to-call/mail.
   Background continuous with the copyright band (near-black). */
.musecoffee-contact-bar {
    background-color: #211f1e;
    padding: 0.6em 1em 0.2em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.musecoffee-contact-bar-inner {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    font-size: 0.95em;
    line-height: 1.4;
}
.musecoffee-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: #e8dcc4 !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 0.2em 0.4em;
    transition: color 0.15s ease;
}
.musecoffee-contact-item:hover,
.musecoffee-contact-item:focus {
    color: #fff !important;
    text-decoration: none !important;
}
.musecoffee-contact-item svg {
    color: #c78e5e;
    flex-shrink: 0;
}
.musecoffee-contact-item:hover svg,
.musecoffee-contact-item:focus svg {
    color: #e8dcc4;
}
.musecoffee-contact-sep {
    color: rgba(232, 220, 196, 0.4);
    user-select: none;
}
/* Social icons injected in the contact bar (right side, after email).
   padding-left matches .musecoffee-contact-item's internal padding — so the visual
   gap between separator | and the first social icon equals the gap between phone/email
   text and their separator. */
.musecoffee-contact-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding-left: 0.4em;
}
.musecoffee-contact-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    height: 1.75em;
    color: #c78e5e !important;
    text-decoration: none !important;
    transition: color 0.15s ease, transform 0.15s ease;
}
.musecoffee-contact-social:hover,
.musecoffee-contact-social:focus {
    color: #e8dcc4 !important;
    transform: scale(1.15);
}

/* Hide the original social icons block inside the copyright wrap — moved to contact bar. */
.copyright_wrap .content_wrap > .sc_socials,
.copyright_style_socials .sc_socials {
    display: none !important;
}

/* Legal info line — dual layout: full on desktop, condensed on mobile.
   Aligned in size/color with the copyright text below. */
.musecoffee-legal-line {
    text-align: center;
    color: #e8dcc4;
    font-size: 0.889em;
    line-height: 1.5;
    padding: 0.2em 1em 0.4em;
    max-width: 1170px;
    margin: 0 auto;
}
.musecoffee-legal-line .legal-full { display: inline; }
.musecoffee-legal-line .legal-short { display: none; }

@media (max-width: 767px) {
    .musecoffee-contact-bar-inner {
        flex-direction: column;
        gap: 0.4em;
    }
    .musecoffee-contact-sep {
        display: none;
    }
    .musecoffee-legal-line {
        font-size: 1.1em;
        padding: 0.5em 0.8em;
    }
    .musecoffee-legal-line .legal-full { display: none; }
    .musecoffee-legal-line .legal-short { display: inline; }
}

/* Homepage trust bar — 4 reassurance boxes injected via PHP hook (musecoffee_home_trust_bar)
   in the front-page shop loop, replacing the removed toolbar. Font sizes + spacing in em. */
.muse-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875em;
    margin: 0.25em 0 0.275em;
    padding: 0.4em 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}
.muse-trust__item {
    display: flex;
    align-items: center;
    gap: 0.625em;
    font-size: 0.875em;
    line-height: 1.35;
    font-weight: 600;
    color: #333;
}
.muse-trust__icon {
    flex: 0 0 2.5em;
    width: 2.5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(242, 103, 34, 0.10);
    color: #F26722;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.muse-trust__icon svg {
    width: 1.25em;
    height: 1.25em;
    display: block;
}
.muse-trust .lbl-short { display: none; }

/* Boxurile clickabile (Livrare, Plată, Retur) — link fără underline, culoare inherit;
   la hover: text maron + iconița se colorează maron cu bg gradient subtil + puls scale. */
.muse-trust__item--link {
    text-decoration: none !important;
    color: #333 !important;
    cursor: pointer;
    transition: color 0.2s ease;
}
.muse-trust__item--link:hover,
.muse-trust__item--link:focus {
    color: #c0392b !important;
    text-decoration: none !important;
    outline: none;
}
.muse-trust__item--link:focus-visible {
    outline: 2px solid #c0392b;
    outline-offset: 3px;
    border-radius: 4px;
}
.muse-trust__item--link:hover .muse-trust__icon,
.muse-trust__item--link:focus .muse-trust__icon {
    background: rgba(192, 57, 43, 0.15);
    color: #c0392b;
    transform: scale(1.08);
}
@media (max-width: 900px) {
    .muse-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .muse-trust {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625em 0.5em;
        padding: 0;
        margin: 0.25em 0 0.275em;
    }
    .muse-trust__item { font-size: 1em; gap: 0.5em; }
    .muse-trust__icon { flex: 0 0 1.875em; width: 1.875em; height: 1.875em; }
    .muse-trust__icon svg { width: 1em; height: 1em; }
    .muse-trust .lbl-full { display: none; }
    .muse-trust .lbl-short { display: inline; }
}

/* Homepage — section heading between trust bar and shop description AND the
   shop description H2 ("Prăjitorie de cafea de specialitate din Craiova") —
   same eyebrow-style: wide letter-spacing, coffee-brown, semi-bold, short bar. */
.muse-home-selection-heading,
html body.home .page-description h2,
html body.home .page-description .wpb_wrapper h2,
html body.home .page-description .wpb_text_column .wpb_wrapper h2 {
    font-family: inherit !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    font-style: normal !important;
    margin: 2em 0 0.85em !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0.1em !important;
    color: #7a4c2f !important;
    text-align: left !important;
    line-height: 1.3 !important;
}
.muse-home-selection-heading::after,
html body.home .page-description h2::after,
html body.home .page-description .wpb_wrapper h2::after,
html body.home .page-description .wpb_text_column .wpb_wrapper h2::after {
    content: "";
    display: block;
    width: 5em;
    height: 0.15em;
    background: #7a4c2f;
    margin: 0.55em 0 0;
    border-radius: 0.075em;
}
/* Mobile: bump section heading font-size slightly for readability. */
@media (max-width: 767px) {
    .muse-home-selection-heading,
    html body.home .page-description h2,
    html body.home .page-description .wpb_wrapper h2,
    html body.home .page-description .wpb_text_column .wpb_wrapper h2 {
        font-size: 1.2em !important;
    }
}

/* Products grid — reduce the excessive bottom padding on each product tile
   (theme default is 0 30px 100px 0 which leaves a huge gap between rows).
   Everywhere the WC loop is used (shop, homepage, category, search). */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    padding: 0 1.875em 2.5em 0 !important;
}

/* Mobile: tighter vertical rhythm between product tiles. Reduce bottom padding
   + kill margin-bottom on tile itself and on the "Alege opțiunile" button. */
@media (max-width: 767px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        padding-bottom: 1.375em !important;
        margin-bottom: 0 !important;
    }
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.add_to_cart_button,
    .woocommerce-page ul.products li.product .button,
    .woocommerce-page ul.products li.product a.add_to_cart_button {
        margin-bottom: 0 !important;
    }
}

/* Homepage shop-page description paragraph ("Muse Coffee — micro-prăjitorie...") —
   near-black text for readability instead of the theme's default light gray. */
body.home .page-description p,
body.home .page-description p a {
    color: #222 !important;
}

/* Homepage — cream box with coffee brown left accent bar around ONLY the PHP
   wrapper .muse-home-intro-box (which contains .page-description with H2
   "Prăjitorie de cafea..." + paragraph). Never touches other H2s. */
body.home .muse-home-intro-box {
    background: #f7f1ea;
    border-left: 4px solid #7a4c2f;
    border-radius: 0.5em;
    padding: 0em 1.5em;
    margin: 0.5em 0 2em;
}

/* Blog page — categories navigation grid between hero and article list.
   Matches the homepage trust bar visual language (cream chips + SVG icons). */
.muse-blog-categories {
    margin: 2em 0 2.5em;
}
.muse-blog-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1em;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.muse-blog-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em 1em;
    background: #faf1de;
    border-radius: 0.5em;
    border: 1px solid rgba(122, 76, 47, 0.12);
    color: #7a4c2f !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}
.muse-blog-cat-card:hover,
.muse-blog-cat-card:focus {
    background: #f5ead2;
    border-color: rgba(122, 76, 47, 0.35);
    color: #5d3a1e !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}
.muse-blog-cat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75em;
    height: 2.75em;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 0.7em;
    color: #7a4c2f;
    box-shadow: 0 2px 6px rgba(122, 76, 47, 0.08);
}
.muse-blog-cat-card__icon svg {
    width: 1.5em;
    height: 1.5em;
}
.muse-blog-cat-card__label {
    font-size: 0.95em;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
@media (max-width: 767px) {
    .muse-blog-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75em;
    }
    .muse-blog-cat-card {
        padding: 1em 0.75em;
    }
    .muse-blog-cat-card__icon {
        width: 2.25em;
        height: 2.25em;
        margin-bottom: 0.5em;
    }
    .muse-blog-cat-card__icon svg {
        width: 1.2em;
        height: 1.2em;
    }
}

/* Homepage — accessories showcase strip (3 random products from accesorii-cafea). */
.muse-home-accessories {
    margin: 2em 0 !important;
}
.muse-home-accessories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5em !important;
    list-style: none !important;
    margin: 1em 0 0.4em !important;
    padding: 0 !important;
    align-items: stretch !important;
}
.muse-home-accessories-grid::before,
.muse-home-accessories-grid::after {
    display: none !important;
}
.woocommerce ul.products li.product.muse-accessory-tile,
.woocommerce-page ul.products li.product.muse-accessory-tile,
.muse-accessory-tile {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    float: none !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
.muse-accessory-tile .post_item_wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.muse-accessory-tile .post_content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}
.muse-accessory-tile__image {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.muse-accessory-tile__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.muse-accessory-tile__image:hover img {
    transform: scale(1.06);
    opacity: 0.92;
}

/* Product grid image hover — subtle scale + opacity, matching accessories.
   Applied on every WC products loop (homepage, shop, category, search).
   The .hover_icon <a> wrapper contains the image (don't hide it!); we only
   hide its ::before pseudo-icon (the ugly gray magnifier overlay). */
.woocommerce ul.products li.product .post_thumb,
.woocommerce-page ul.products li.product .post_thumb {
    overflow: hidden;
}
.woocommerce ul.products li.product .hover_icon img,
.woocommerce-page ul.products li.product .hover_icon img {
    transition: transform 0.4s ease, opacity 0.3s ease !important;
    display: block;
}
.woocommerce ul.products li.product .hover_icon:hover img,
.woocommerce-page ul.products li.product .hover_icon:hover img {
    transform: scale(1.06) !important;
    opacity: 0.92 !important;
}
.woocommerce ul.products li.product .hover_icon::before,
.woocommerce-page ul.products li.product .hover_icon::before,
.woocommerce ul.products li.product .hover_icon::after,
.woocommerce-page ul.products li.product .hover_icon::after {
    display: none !important;
}
.muse-accessory-tile__title,
h3.muse-accessory-tile__title {
    display: block;
    margin: 0.75em 0 0.4em !important;
    padding: 0 !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    width: 100%;
    min-height: 2.6em;
}
.muse-accessory-tile__title a,
h3.muse-accessory-tile__title a {
    color: #222 !important;
    text-decoration: none !important;
    font-weight: inherit !important;
    font-family: Arial, sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.muse-accessory-tile__title a:hover,
h3.muse-accessory-tile__title a:hover {
    color: #7a4c2f !important;
}
.muse-accessory-tile .price,
.woocommerce ul.products li.product.muse-accessory-tile .price,
.woocommerce ul.products li.product.muse-accessory-tile .price .amount {
    display: block;
    margin: 0 0 0.625em !important;
    font-size: 1.05em !important;
    font-weight: 700;
}
/* "Adaugă în coș" button on accessory tiles — fixed 10px gap above (matches
   the ~10px gap between price and button on standard WC product grids). */
.woocommerce ul.products li.product.muse-accessory-tile a.button,
.woocommerce ul.products li.product.muse-accessory-tile .button,
.woocommerce-page ul.products li.product.muse-accessory-tile a.button,
.woocommerce-page ul.products li.product.muse-accessory-tile .button {
    margin: 0 auto !important;
    margin-top: 0 !important;
}
.muse-home-accessories-cta {
    text-align: left !important;
    margin: 1.25em 0 1em !important;
}
.muse-home-accessories-cta a {
    display: inline-block;
    font-weight: 600;
    color: #7a4c2f;
    text-decoration: none;
    padding: 0.6em 1.2em;
    border: 2px solid #7a4c2f;
    border-radius: 0.3em;
    transition: background-color 0.2s, color 0.2s;
}
.muse-home-accessories-cta a:hover {
    background: #7a4c2f;
    color: #fff;
}
@media (max-width: 767px) {
    .muse-home-accessories-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5em !important;
    }
    /* Match "Adaugă în coș" button dimensions with the standard WC product grid
       buttons on mobile. Font-size inherits from .post_item_wrap context. */
    .woocommerce ul.products li.product.muse-accessory-tile a.button,
    .woocommerce ul.products li.product.muse-accessory-tile .button,
    .woocommerce-page ul.products li.product.muse-accessory-tile a.button,
    .woocommerce-page ul.products li.product.muse-accessory-tile .button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.1em 1em !important;
        font-weight: 700 !important;
        align-self: stretch !important;
    }
    /* "Vezi toate accesoriile" CTA — match font-weight/size with product buttons. */
    .muse-home-accessories-cta a {
        font-size: 1em !important;
        font-weight: 700 !important;
        padding: 0.9em 1.5em !important;
    }
}

/* Homepage shop-description paragraph — bump font-size on mobile for readability. */
@media (max-width: 767px) {
    html body.home .page-description .wpb_text_column .wpb_wrapper p,
    html body.home .page-description p {
        font-size: 1.25em !important;
        line-height: 1.55 !important;
    }
}

/* Cart page cross-sells — moved via PHP from .cart-collaterals to after_cart hook so they
   render below cart totals (full-width). Constrain to 3-col grid on desktop, 2-col on
   tablet, 1-col on mobile, matching the shop loop's layout. */
.woocommerce-cart .cross-sells {
    max-width: 1170px;
    margin: 2.5em auto 0;
    clear: both;
    text-align: left !important;
}
.woocommerce-cart .cross-sells h2 {
    margin: 0 0 1em;
    text-align: left !important;
}
.woocommerce-cart .cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
    justify-content: start !important;
    justify-items: start !important;
    gap: 1.5em;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    list-style: none !important;
}
/* Kill the WC clearfix pseudo-elements — they occupy grid cells and push products right. */
.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after {
    display: none !important;
    content: none !important;
}
.woocommerce-cart .cross-sells ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    text-align: left !important;
    list-style: none !important;
}
.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title,
.woocommerce-cart .cross-sells ul.products li.product h2,
.woocommerce-cart .cross-sells ul.products li.product h3,
.woocommerce-cart .cross-sells ul.products li.product .price {
    text-align: left !important;
}
/* Mobile: single full-width box per row. */
@media (max-width: 767px) {
    .woocommerce-cart .cross-sells ul.products {
        grid-template-columns: 1fr;
    }
    .woocommerce-cart .cross-sells ul.products li.product {
        width: 100% !important;
    }
}

/* Cart page: left-align the "Produs" column (header + rows) — parent theme centers all cells. */
.woocommerce-cart table.shop_table th.product-name,
.woocommerce-cart table.shop_table td.product-name,
.woocommerce-cart table.shop_table td.product-name a,
.woocommerce-cart table.shop_table .product-name dl.variation,
.woocommerce-cart table.shop_table .product-name dl.variation dt,
.woocommerce-cart table.shop_table .product-name dl.variation dd,
.woocommerce-cart table.shop_table .product-name dl.variation p {
    text-align: left !important;
}

/* Cart page: force the Cart Totals block to span the full row width */
.woocommerce .cart-collaterals .cart_totals,
.cart_totals.woocommerce-page .cart-collaterals,
.cart_totals { float: none; width: 100%; }
.cart_totals h2 { text-align: left !important; }

/* Blog "Continuare" (read more) button — same dark style as shop CTA.
   Broad scope: blog page, archives, search, single post — anywhere sc_button + more-link + readmore appear inside post context. */
body.blog a.sc_button,
body.archive a.sc_button,
body.search a.sc_button,
body.single-post a.sc_button,
.post_item a.sc_button,
.post_content a.sc_button,
.post_item .post_readmore,
.post_item a.post_readmore,
.post_item a.more-link,
.post_content a.more-link,
a.more-link {
    background-color: #222 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    padding: 0.9em 1.6em !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: none !important;
}
body.blog a.sc_button *,
body.archive a.sc_button *,
body.search a.sc_button *,
body.single-post a.sc_button *,
.post_item a.sc_button *,
.post_content a.sc_button *,
.post_item .post_readmore .post_readmore_label,
.post_item a.post_readmore .post_readmore_label,
.post_item a.more-link span,
a.more-link span {
    color: #fff !important;
}
body.blog a.sc_button:hover,
body.archive a.sc_button:hover,
body.search a.sc_button:hover,
body.single-post a.sc_button:hover,
.post_item a.sc_button:hover,
.post_content a.sc_button:hover,
.post_item .post_readmore:hover,
.post_item a.post_readmore:hover,
.post_item a.more-link:hover,
.post_content a.more-link:hover,
a.more-link:hover {
    background-color: #7a4c2f !important;
    border-color: #7a4c2f !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.blog a.sc_button:hover *,
body.archive a.sc_button:hover *,
body.search a.sc_button:hover *,
body.single-post a.sc_button:hover *,
.post_item a.sc_button:hover *,
.post_content a.sc_button:hover *,
.post_item .post_readmore:hover .post_readmore_label,
.post_item a.post_readmore:hover .post_readmore_label,
.post_item a.more-link:hover span,
a.more-link:hover span {
    color: #fff !important;
}

/* Contact form (Hot Coffee sc_form) — same dark style as shop CTA. */
.sc_form .sc_form_item.sc_form_button button,
.sc_form_button button {
    background-color: #222 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
.sc_form .sc_form_item.sc_form_button button:hover,
.sc_form_button button:hover {
    background-color: #7a4c2f !important;
    border-color: #7a4c2f !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Cart + Checkout action buttons — same dark style as shop CTA (#222 → #7a4c2f hover).
   Covers: Apply coupon, Update cart, Proceed to checkout, Place order. */
.woocommerce-cart button[name="apply_coupon"],
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.checkout-button.wc-forward,
.woocommerce-checkout button#place_order,
.woocommerce-checkout button[name="woocommerce_checkout_place_order"],
button[name="apply_coupon"],
button[name="update_cart"] {
    background-color: #222 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    padding: 1.1em 1.5em !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
.woocommerce-cart button[name="apply_coupon"]:hover,
.woocommerce-cart button[name="update_cart"]:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.checkout-button.wc-forward:hover,
.woocommerce-checkout button#place_order:hover,
.woocommerce-checkout button[name="woocommerce_checkout_place_order"]:hover,
button[name="apply_coupon"]:hover,
button[name="update_cart"]:hover {
    background-color: #7a4c2f !important;
    border-color: #7a4c2f !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* "Actualizează coșul" — cocoa/latte brown, secondary CTA style. Distinct from
   the primary black "Aplică cuponul" button, keeps the theme's warm palette,
   and never looks grayed-out even when WC toggles the disabled attribute. */
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart button[name="update_cart"][disabled],
.woocommerce-cart button[name="update_cart"]:disabled,
button[name="update_cart"],
button[name="update_cart"][disabled],
button[name="update_cart"]:disabled {
    background-color: #8b6f4e !important;
    border-color: #8b6f4e !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
}
.woocommerce-cart button[name="update_cart"]:hover,
.woocommerce-cart button[name="update_cart"]:not([disabled]):hover,
button[name="update_cart"]:hover,
button[name="update_cart"]:not([disabled]):hover {
    background-color: #7a4c2f !important;
    border-color: #7a4c2f !important;
    color: #fff !important;
}


/* Card brand icons under EuPlătesc payment method description on checkout.
   Trust signal via recognized brands (Visa/Mastercard/Maestro) + 3D Secure line. */
.muse-payment-cards {
    margin-top: 0.75em;
}
.muse-payment-cards__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: center;
    margin: 0;
}
.muse-payment-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75em;
    height: 1.75em;
    border-radius: 0.25em;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    line-height: 0;
}
.muse-payment-card svg {
    width: 100%;
    height: 100%;
    display: block;
}
.muse-payment-cards__note {
    margin: 0.5em 0 0 !important;
    padding: 0 !important;
    font-size: 0.8em;
    line-height: 1.4;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 0.4em;
    background: transparent !important;
}
.muse-payment-cards__note svg {
    flex-shrink: 0;
}

/* Checkout — cream palette scoped ONLY to the order-review block on the right side
   (order summary table + payment methods). The billing/shipping form on the left
   is NOT affected. Two warm shades from the same family. */

/* Outer order-review container (was green-blue) → quasi-white, minimal warm */
.woocommerce-checkout #order_review {
    background-color: #fefefa !important;
}

/* Payment methods wrapper (all methods + terms + place order) → near-white,
   matching #order_review for a continuous look. */
.woocommerce-checkout #order_review #payment {
    background: #fefefa !important;
    border-radius: 0.35em;
}

/* Active payment method description box → stronger cream, clearly visible
   against the near-white wrapper — highlights the active method. */
.woocommerce-checkout #order_review #payment div.payment_box {
    background: #f5ead2 !important;
    border-radius: 0.35em;
}

/* Triangle pointer above the payment description (::before on .payment_box) —
   default color is gray; recolor to match the cream background so it
   visually merges into the container. */
.woocommerce-checkout #order_review #payment div.payment_box::before {
    border-bottom-color: #f5ead2 !important;
}

/* Payment method row layout — keep radio + label side-by-side even when the
   label is long (mobile-friendly). Description (.payment_box) drops to a full-
   width row below. Uses !important + explicit float:none to override parent
   theme rules that force block/float on inputs and labels. */
.woocommerce-checkout #order_review #payment ul.payment_methods > li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 0.5em !important;
    row-gap: 0.6em !important;
}
.woocommerce-checkout #order_review #payment ul.payment_methods > li > input[type="radio"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle;
}
.woocommerce-checkout #order_review #payment ul.payment_methods > li > label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-block !important;
    width: auto !important;
    line-height: 1.4;
}
.woocommerce-checkout #order_review #payment ul.payment_methods > li > .payment_box {
    flex: 1 0 100% !important;
    width: 100% !important;
    float: none !important;
}

/* Tablet + small desktop (768-1199px) — Hot Coffee parent theme sets a narrow
   fixed width on .content_wrap here, leaving a big empty gutter on the right
   of the cart/checkout page. Force full-width on ONLY these two selectors —
   nothing more, so other layout pieces stay intact. */
@media (min-width: 768px) and (max-width: 1199px) {
    html body.woocommerce-cart .content_wrap,
    html body.woocommerce-cart .content_container,
    html body.woocommerce-checkout .content_wrap,
    html body.woocommerce-checkout .content_container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Fix CLS on sidebar recent-posts widget thumbnails.
   Parent theme sets height: auto on all widget images, which prevents the
   browser from reserving vertical space before the (lazyloaded) image loads
   → layout shift. Lighthouse audit measured CLS 0.319 on homepage.
   Force fixed square dimensions on wp-post-image inside widgets/sidebar. */
.widget img.wp-post-image,
.widget_recent_posts img.wp-post-image,
.widget_recent_entries img.wp-post-image,
aside .widget img.wp-post-image,
.sidebar img.wp-post-image,
.sidebar_wrap img.wp-post-image,
.sidebar_inner img.wp-post-image {
    width: 4.6875em !important;
    height: 4.6875em !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    max-width: 4.6875em !important;
}
}

/* ---------------------------------------------------------------------------
   Homepage — "Nu știi ce cafea să alegi?" Discovery Box block.
   Rendered by musecoffee_home_discovery_promo() on woocommerce_after_shop_loop
   at priority 18, i.e. directly below the product grid. Text-only on purpose:
   nothing above the fold, and no image that could become an LCP candidate.
   --------------------------------------------------------------------------- */
.muse-home-discovery {
    margin: 2.5em 0 1.5em;
    padding: 1.6em 1.8em;
    background: #faf7f4;
    border: 0.0625em solid #e8ddd4;
    border-left: 0.25em solid #7a4c2f;
    border-radius: 0.3em;
}
/* The shared heading class carries a 2em top margin for standalone use; inside
   the box it would push the title away from the border. */
.muse-home-discovery .muse-home-selection-heading {
    margin-top: 0 !important;
}
.muse-home-discovery p {
    margin: 0 0 0.6em;
    line-height: 1.55;
}
.muse-discovery__lede {
    font-size: 1.15em;
    font-weight: 600;
    color: #3a2a20;
}
.muse-discovery__origins {
    color: #5c4436;
}
/* No colour here: the price arrives already wrapped in the red span from
   musecoffee_red_bold_price_single, and "Transport gratuit" reads better in the
   body colour than shouted in red alongside it. */
.muse-discovery__price {
    font-weight: 600;
    color: #3a2a20;
}
.muse-discovery__cta {
    margin: 1.1em 0 0 !important;
}
/* Matches .muse-home-accessories-cta a — same outline button, em-based border. */
.muse-discovery__cta a {
    display: inline-block;
    font-weight: 600;
    color: #7a4c2f;
    text-decoration: none;
    padding: 0.6em 1.2em;
    border: 0.125em solid #7a4c2f;
    border-radius: 0.3em;
    transition: background-color 0.2s, color 0.2s;
}
.muse-discovery__cta a:hover,
.muse-discovery__cta a:focus {
    background: #7a4c2f;
    color: #fff;
}
@media (max-width: 767px) {
    .muse-home-discovery {
        margin: 2em 0 1.2em;
        padding: 1.3em 1.2em;
    }
    .muse-discovery__lede {
        font-size: 1.2em;
    }
    .muse-discovery__origins {
        font-size: 1.05em;
    }
    /* Full-width tap target, matching the accessories CTA on mobile. */
    .muse-discovery__cta a {
        display: block;
        text-align: center;
        font-weight: 700;
        padding: 0.9em 1.2em;
    }
}
/* Pinned overrides for the Discovery block.
   The plain class selectors declared above lose against the parent theme inside
   the combined stylesheet — verified live: the background/border never applies.
   So anything that must actually hold is restated here at body.home + class
   specificity, the same shape as the .muse-home-intro-box rule that is known to
   work, plus !important (the file already carries ~630 of them for this reason). */

/* Spacing above the block, and breathing room before the cream "Prăjitorie de
   cafea de specialitate din Craiova" box below. */
body.home .muse-home-discovery {
    margin-top: 0 !important;
}
/* The 1.5em that used to sit below the button now belongs to the quiz link
   underneath it, so the total distance down to the cream box is unchanged. */
body.home .muse-home-discovery .muse-discovery__cta {
    margin: 1.1em 0 0.8em !important;
}
/* Post listings — author name is now plain text instead of a link to the author
   archive (see templates/_parts/post-info.php). The theme only colours the
   anchor version, `.post_info a.post_info_author`, so without this the name
   would lose its darker tone and blend into the surrounding meta line. */
.post_info span.post_info_author {
    color: #453e3c !important;
}

/* Secondary button to /ce-cafea-sa-aleg/.
   Same size, font, padding, border and radius as the Discovery Box button above
   — the two read as a matched pair, and the only difference is the fill: white
   for the primary action, cream for this one.
   A plain underlined link was tried first and disappeared: sitting between an
   outlined button above and the cream box below it had neither border nor
   background nor colour contrast, so the eye skipped it entirely. */
body.home .muse-home-discovery .muse-discovery__quiz-link {
    margin: 0 0 1.5em !important;
    line-height: 1.5 !important;
}
/* Filled red, matching the site's action-CTA palette (#c0392b with #8b2818 on
   hover) used for "Adaugă în coș" and the shop-loop buttons. Geometry stays
   identical to the Discovery Box button above — same padding, border width and
   radius — so only the colour separates them. box-shadow is zeroed because the
   theme fills buttons on hover with an inset shadow rather than a background. */
body.home .muse-home-discovery .muse-discovery__quiz-link a {
    display: inline-block !important;
    padding: 0.6em 1.2em !important;
    background: #c0392b !important;
    border: 0.125em solid #c0392b !important;
    border-radius: 0.3em !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.2s, border-color 0.2s !important;
}
body.home .muse-home-discovery .muse-discovery__quiz-link a:hover,
body.home .muse-home-discovery .muse-discovery__quiz-link a:focus {
    background: #8b2818 !important;
    border-color: #8b2818 !important;
    box-shadow: none !important;
    color: #fff !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    /* The origins line was rendering too small on phones. Sized just under the
       lede so it stays clearly secondary, and explicitly non-bold — the lede is
       the only bold line in the block. */
    body.home .muse-home-discovery .muse-discovery__lede {
        font-size: 1.2em !important;
    }
    body.home .muse-home-discovery .muse-discovery__origins {
        font-size: 1.1em !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
    }
    /* Mirrors the primary button's mobile treatment — full-width tap target,
       centred, same padding — so the pair stays visually matched on phones. */
    body.home .muse-home-discovery .muse-discovery__quiz-link a {
        display: block !important;
        text-align: center !important;
        font-weight: 700 !important;
        padding: 0.9em 1.2em !important;
    }
}
