/*
Theme Name: MG Theme with Flatsome
Description: Child theme for Flatsome – HIMO handmade custom fashion.
Author: MG
Template: flatsome
Version: 1.0.2
Text Domain: mg-child
*/

/* ---------- Tokens ---------- */
:root {
	--hm-cream: #f7f0e6;
	--hm-cream-2: #f1e6d6;
	--hm-sand: #e7d7c1;
	--hm-line: #e4d5c1;
	--hm-ink: #3a2a1f;
	--hm-muted: #7e6b5b;
	--hm-brand: #6b4a33;
	--hm-brand-d: #523523;
	--hm-focus: #b07a4f;
	--hm-radius: 14px;
}

body { background: var(--hm-cream); color: var(--hm-ink); }
h1, h2, h3, h4, h5, h6, .heading-font { color: var(--hm-ink); letter-spacing: 0; }
a { color: var(--hm-brand); }
a:hover { color: var(--hm-brand-d); }
:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }
.container, .row { max-width: 1200px; }
.row.row-collapse { max-width: none; }

/* ---------- Header ---------- */
.header-top { font-size: 13px; letter-spacing: .01em; }
.header-top .html_topbar_left, .header-top .flex-col { justify-content: center; }
#logo a { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 38px; letter-spacing: .02em; color: var(--hm-ink); }
.header-main .nav > li > a { font-size: 15px; font-weight: 500; color: var(--hm-ink); }
.header-main .nav > li.active > a, .header-main .nav > li > a:hover { color: var(--hm-brand); }
.header-main .nav-line-bottom > li > a:before, .header-main .nav-line > li > a:before { background: var(--hm-brand); height: 2px; }
.header-search-form .search-field { border-radius: 10px 0 0 10px; border-color: var(--hm-line); background: #fff; box-shadow: none; height: 40px; }
.header-search-form .ux-search-submit { border-radius: 0 10px 10px 0; background: var(--hm-brand); height: 40px; }
.header-main .header-nav-main .icon-user, .header-main .cart-icon, .header-main .icon-shopping-bag { color: var(--hm-ink); }
.nav-dropdown { border-radius: 12px; border: 1px solid var(--hm-line); box-shadow: 0 12px 30px rgba(90, 59, 38, .12); }
.nav-dropdown > li > a { font-size: 14px; }
.header-button .button.primary, .header-button-1 .button { border-radius: 10px; }

/* Mobile off-canvas menu: compact list, primary button pinned under the links */
.off-canvas .mfp-content, .off-canvas-left .mfp-content { background: var(--hm-cream); }
.off-canvas .nav-sidebar > li > a, .off-canvas .nav-vertical > li > a { font-size: 16px; font-weight: 500; color: var(--hm-ink); padding-top: 13px; padding-bottom: 13px; }
.off-canvas .nav-vertical li li a { font-size: 15px; padding-top: 8px; padding-bottom: 8px; }
.off-canvas .nav-sidebar > li { border-color: var(--hm-line); }
.off-canvas .header-button-1 { padding: 18px 20px 6px; }
.off-canvas .header-button-1 .button { width: 100%; margin: 0; min-height: 48px; line-height: 48px; font-size: 16px; }
.off-canvas .searchform .search-field { border-radius: 10px 0 0 10px; }

/* ---------- Buttons ---------- */
.button.hm-btn, .hm-btn.button { border-radius: 10px; min-height: 46px; line-height: 44px; padding: 0 24px; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15px; transition: background-color .18s, color .18s, box-shadow .18s, transform .12s; margin-right: 10px; }
.button.hm-btn-solid { background: var(--hm-brand); border: 1px solid var(--hm-brand); color: #fff; }
.button.hm-btn-solid:hover { background: var(--hm-brand-d); border-color: var(--hm-brand-d); color: #fff; box-shadow: 0 8px 20px rgba(90, 59, 38, .25); }
.button.hm-btn-line { background: rgba(255, 255, 255, .5); border: 1.5px solid var(--hm-brand); color: var(--hm-brand); }
.button.hm-btn-line:hover { background: var(--hm-brand); color: #fff; }
.button.hm-btn:active { transform: translateY(1px); }
.button.hm-btn:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 3px; }
.button.hm-center { display: table; margin: 20px auto 0; }
.button.primary, .single_add_to_cart_button, .checkout-button, #place_order { border-radius: 10px; text-transform: none; letter-spacing: 0; }
.button.primary:hover, .single_add_to_cart_button:hover { box-shadow: 0 6px 18px rgba(90, 59, 38, .25); }

/* ---------- Typography helpers ---------- */
.hm-eyebrow { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--hm-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.hm-eyebrow:after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .6; }
.text-center .hm-eyebrow, [style*="center"] .hm-eyebrow { justify-content: center; }
.text-center .hm-eyebrow:before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .6; }
.hm-lead { font-size: 17px; line-height: 1.6; color: #5a4636; }
.hm-script-title { font-style: italic; }
.section-title-container.hm-title { margin-bottom: 26px; }
.hm-title .section-title { font-size: 30px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.hm-title .section-title-center span { text-transform: none; }
.hm-title .section-title b { background: #cdb79e; height: 1px; opacity: 1; max-width: 120px; }
.hm-title .section-title-center b:first-of-type { margin-left: auto; }
.hm-title .section-title-center b:last-of-type { margin-right: auto; }

/* ---------- Hero & page heads ---------- */
#wrapper, #main { background-color: var(--hm-cream); }
/* Banner photos sit on the right at native height; the cream banner color fills the left. */
.hm-hero img.bg, .hm-pagehead img.bg { object-fit: contain; object-position: 100% 50%; }
@media (min-width: 850px) {
	.hm-hero .banner-bg:after, .hm-pagehead .banner-bg:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f3ebe0 0, #f3ebe0 32%, rgba(243, 235, 224, .8) 46%, rgba(243, 235, 224, 0) 64%); pointer-events: none; }
}
.hm-hero h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.12; margin-bottom: 14px; }
.hm-hero .text-box .button { margin-top: 10px; }
.hm-pagehead h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 10px; }
.hm-inline-usp { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hm-inline-usp li { margin: 0; padding-left: 22px; position: relative; font-size: 14px; color: #5a4636; }
.hm-inline-usp li:before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 1.5px solid var(--hm-brand); border-radius: 50%; }

/* ---------- Category tiles ---------- */
.hm-cats .box-image { border-radius: var(--hm-radius); background: var(--hm-sand); overflow: hidden; }
.hm-cats .box-image img { transition: transform .35s; }
.hm-cats .product-category:hover .box-image img { transform: scale(1.05); }
.hm-cats .box-text { padding-top: 10px; }
.hm-cats .header-title { font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--hm-ink); }

/* ---------- Product cards (home + shop) ---------- */
.product-small .box-image { border-radius: var(--hm-radius); background: var(--hm-sand); overflow: hidden; }
.product-small .box-text { padding: 12px 4px 4px; }
.product-small .name.product-title a, .product-small .woocommerce-loop-product__title a { font-size: 15px; font-weight: 600; color: var(--hm-ink); }
.product-small .category { display: none; }
.product-small .price { font-weight: 600; color: var(--hm-ink); }
.product-small .box-excerpt { font-size: 13px; color: var(--hm-muted); }
.product-small.box:hover .box-image img { transform: scale(1.03); }
.product-small .box-image img { transition: transform .35s; }
.badge-container .badge-inner { border-radius: 8px; background: var(--hm-brand); }

/* ---------- Steps / USP ---------- */
.hm-steps-title { font-size: 30px; line-height: 1.25; font-weight: 500; margin: 0; }
.hm-steps .featured-box { text-align: center; }
.hm-steps .featured-box .icon-box-img { margin: 0 auto 10px; }
.hm-steps h5, .hm-usp h5 { font-family: "Be Vietnam Pro", sans-serif; font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: 4px; color: var(--hm-ink); }
.hm-steps p, .hm-usp p { font-size: 14px; color: var(--hm-muted); margin: 0; }
.hm-steps .col { position: relative; }
@media (min-width: 850px) {
	.hm-steps .col + .col + .col:before { content: "›"; position: absolute; left: -10px; top: 34px; font-size: 26px; color: #b49a7f; }
	.hm-steps .col:first-child { border-right: 1px solid #cdb79e; }
}

/* ---------- Atelier & images ---------- */
.hm-atelier .hm-atelier-img .img-inner, .hm-round-img .img-inner, .hm-inspire-img .img-inner { border-radius: 0; }
.hm-round-img .img-inner, .hm-inspire-img .img-inner { border-radius: var(--hm-radius); }
.hm-atelier h2, .hm-script-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.hm-inspire { background: rgba(255, 252, 247, .7); border: 1px solid var(--hm-line); border-radius: 20px; padding-top: 28px !important; }
.hm-inspire h2 { font-size: 28px; }
.hm-inspire .text-center p { color: var(--hm-muted); }
.hm-inspire-img { margin-bottom: 14px; }

/* ---------- Shop archive + filters ---------- */
.shop-page-title, .category-page-title { background: var(--hm-cream); }
.woocommerce-result-count { color: var(--hm-muted); }
.woocommerce-ordering select { border-radius: 10px; border-color: var(--hm-line); background-color: #fff; box-shadow: none; height: 40px; }
#shop-sidebar .widget-title, .shop-sidebar .widget-title { font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--hm-ink); }
#shop-sidebar .is-divider { display: none; }
#shop-sidebar .widget { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hm-line); }
/* Categories: rows with a toggle switch instead of a checkbox */
.widget_product_categories ul.product-categories > li { border: 0; margin: 0; }
.widget_product_categories ul.product-categories li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--hm-ink); font-size: 15px; }
.widget_product_categories ul.product-categories li a:after { content: ""; flex: none; width: 36px; height: 20px; border-radius: 20px; background: #dcd0c2 radial-gradient(circle at 10px 10px, #fff 7px, transparent 7.5px); transition: background .2s; }
.widget_product_categories ul.product-categories li.current-cat > a:after { background: var(--hm-brand) radial-gradient(circle at 26px 10px, #fff 7px, transparent 7.5px); }
.widget_product_categories ul.product-categories li a:hover { color: var(--hm-brand); }
.widget_product_categories .count { display: none; }
.widget_product_categories .toggle { display: none; }
/* Size: chips */
.woocommerce-widget-layered-nav-list:not(.ux-swatches-in-loop) { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_layered_nav .woocommerce-widget-layered-nav-list__item { border: 0; margin: 0; padding: 0; }
.widget_layered_nav .woocommerce-widget-layered-nav-list__item > a { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 38px; padding: 0 10px; border: 1.5px solid var(--hm-line); border-radius: 10px; background: #fff; color: var(--hm-ink); font-size: 14px; transition: border-color .15s, background .15s, color .15s; }
.widget_layered_nav .woocommerce-widget-layered-nav-list__item > a:hover { border-color: #c9ad8c; }
.widget_layered_nav .woocommerce-widget-layered-nav-list__item.chosen > a { background: var(--hm-brand); border-color: var(--hm-brand); color: #fff; }
.widget_layered_nav .woocommerce-widget-layered-nav-list__item.chosen > a:before { display: none; }
.widget_layered_nav .count { display: none; }
/* Color: round swatches (Flatsome swatches markup) */
.widget_layered_nav .woocommerce-widget-layered-nav-list__item > a:has(.ux-swatch) { min-width: 0; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8c8b3; background: transparent; }
.widget_layered_nav .woocommerce-widget-layered-nav-list__item.chosen > a:has(.ux-swatch) { box-shadow: 0 0 0 2px var(--hm-brand); background: transparent; }
.widget_layered_nav .ux-swatch-widget-layered-nav-list__graphic { width: 100%; height: 100%; margin: 0; border-radius: 50%; overflow: hidden; }
.widget_layered_nav .ux-swatch__color { border-radius: 50%; }
.widget_layered_nav a:has(.ux-swatch) .nav-text, .widget_layered_nav a:has(.ux-swatch) span:not([class*="ux-swatch"]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Price slider */
.price_slider_wrapper .ui-slider { background: #e3d4c1; height: 4px; border-radius: 4px; }
.price_slider_wrapper .ui-slider .ui-slider-range { background: var(--hm-brand); }
.price_slider_wrapper .ui-slider .ui-slider-handle { width: 20px; height: 20px; top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--hm-brand); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.price_slider_amount .button { border-radius: 8px; background: var(--hm-brand); color: #fff; text-transform: none; }
.widget_layered_nav_filters ul li a { border-radius: 999px; background: var(--hm-cream-2); border-color: var(--hm-line); color: var(--hm-ink); }

/* ---------- Single product ---------- */
.product-main .product-title { font-size: 32px; }
.product-main .price { color: var(--hm-ink); }
.product-gallery .woocommerce-product-gallery__image, .product-gallery-slider img { border-radius: var(--hm-radius); background: var(--hm-sand); }
.quantity input[type=number], .quantity .button { border-color: var(--hm-line); }

/* ---------- Forms ---------- */
.hm-contact-form { background: rgba(255, 252, 247, .85); border: 1px solid var(--hm-line); border-radius: 20px; padding: 28px 28px 18px !important; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select { border-radius: 10px; border-color: #dccbb5; box-shadow: none; background: #fff; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--hm-brand); box-shadow: 0 0 0 3px rgba(107, 74, 51, .12); }
.wpcf7 input[type=submit] { border-radius: 10px; background: var(--hm-brand); color: #fff; text-transform: none; min-height: 48px; padding: 0 28px; }
.wpcf7 input[type=submit]:hover { background: var(--hm-brand-d); }
.hm-contact .featured-box { margin-top: 18px; }
.hm-contact h5 { font-family: "Be Vietnam Pro", sans-serif; text-transform: none; letter-spacing: 0; font-size: 16px; }

/* ---------- Docs / accordion ---------- */
.hm-doc h1 { font-size: 40px; }
.hm-doc .accordion-item { border: 1px solid var(--hm-line); border-radius: 12px; margin-bottom: 10px; background: #fffaf4; overflow: hidden; }
.hm-doc .accordion-title { border: 0; font-size: 16px; font-weight: 600; padding: 16px 44px 16px 18px; color: var(--hm-ink); }
.hm-doc .accordion-title.active { background: var(--hm-cream-2); color: var(--hm-brand); }
.hm-doc .accordion-inner { padding: 4px 18px 16px; }
.hm-doc .toggle { left: auto; right: 10px; }

/* ---------- Footer ---------- */
.hm-footer { font-size: 14px; }
.hm-footer h4 { font-family: "Be Vietnam Pro", sans-serif; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #fff; margin-bottom: 10px; }
.hm-footer ul { list-style: none; margin: 0; padding: 0; }
.hm-footer ul li { margin-left: 0; }
.hm-footer li { margin: 0 0 6px; }
.hm-footer a { color: #ead9c4; }
.hm-footer a:hover { color: #fff; }
.hm-footer-logo { font-family: "Playfair Display", Georgia, serif; font-size: 34px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.hm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; margin-top: 10px; }
.hm-footer-bottom p { margin: 0; color: #cdbba6; font-size: 13px; }
.absolute-footer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 849px) {
	.hm-hero img.bg { object-fit: cover; object-position: 62% 50%; }
	.hm-hero .text-box .text-inner { background: rgba(247, 240, 230, .9); border-radius: 16px; padding: 18px 16px; }
	.hm-pagehead img.bg { object-fit: cover; object-position: 80% 50%; opacity: .45; }
	.hm-steps-title { text-align: center; font-size: 26px; margin-bottom: 8px; }
	.hm-title .section-title { font-size: 26px; }
	.button.hm-btn { margin-right: 6px; }
	#shop-sidebar .widget { margin-bottom: 12px; }
}
@media (max-width: 549px) {
	#logo a { font-size: 30px; }
	.hm-hero h1 { font-size: 34px; }
	.hm-hero .button.hm-btn { width: 100%; margin: 8px 0 0; }
	.hm-pagehead h1 { font-size: 32px; }
	.hm-inline-usp { gap: 6px 14px; }
	.hm-contact-form { padding: 20px 16px 10px !important; }
	.product-small .name.product-title a { font-size: 14px; }
	.mds-design-btn--loop { font-size: 13px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.hm-cats .box-image img, .product-small .box-image img, .button.hm-btn { transition: none; }
}
.hm-inspire .hm-eyebrow { justify-content: center; }
.hm-inspire .hm-eyebrow:before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .6; }
.hm-cats .count, .hm-cats .is-xsmall { display: none; }
.off-canvas .nav-vertical > li > a, .off-canvas .nav-sidebar > li > a { text-transform: none; letter-spacing: 0; }
/* Keep the desktop menu on one line on small laptops / landscape tablets */
@media (min-width: 850px) and (max-width: 1120px) {
	.header-main .nav > li { margin: 0 6px; }
	.header-main .nav > li > a { font-size: 14px; }
	.header-main .header-search-form { max-width: 170px; }
	#logo a { font-size: 32px; }
}
/* Checkout / account checkboxes rendered as toggles */
.woocommerce input[type=checkbox].input-checkbox, .woocommerce input[type=checkbox].woocommerce-form__input-checkbox, #ship-to-different-address-checkbox { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 40px; height: 22px; margin: 0 8px 0 0; border-radius: 22px; background: #d9cfc3; border: 0; vertical-align: middle; cursor: pointer; transition: background .2s; }
.woocommerce input[type=checkbox].input-checkbox:before, .woocommerce input[type=checkbox].woocommerce-form__input-checkbox:before, #ship-to-different-address-checkbox:before { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.woocommerce input[type=checkbox].input-checkbox:checked, .woocommerce input[type=checkbox].woocommerce-form__input-checkbox:checked, #ship-to-different-address-checkbox:checked { background: var(--hm-brand); }
.woocommerce input[type=checkbox].input-checkbox:checked:before, .woocommerce input[type=checkbox].woocommerce-form__input-checkbox:checked:before, #ship-to-different-address-checkbox:checked:before { transform: translateX(18px); }
.woocommerce input[type=checkbox].input-checkbox:focus-visible, .woocommerce input[type=checkbox].woocommerce-form__input-checkbox:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }
/* Color filter: Flatsome renders the swatch before the link; draw a ringed circle and stretch the link over it */
.widget_layered_nav li:has(> .ux-swatch-widget-layered-nav-list__graphic) { position: relative; width: 38px; height: 38px; }
.widget_layered_nav li > .ux-swatch-widget-layered-nav-list__graphic { width: 38px; height: 38px; margin: 0; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #cdbba6; overflow: hidden; transition: box-shadow .15s; }
.widget_layered_nav li > .ux-swatch-widget-layered-nav-list__graphic .ux-swatch__color { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--swatch-color); }
.widget_layered_nav li:has(> .ux-swatch-widget-layered-nav-list__graphic) > a { position: absolute; inset: 0; min-width: 0; width: auto; height: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 0; color: transparent; }
.widget_layered_nav li:has(> .ux-swatch-widget-layered-nav-list__graphic):hover > .ux-swatch-widget-layered-nav-list__graphic { box-shadow: 0 0 0 1.5px #9c7b5c; }
.widget_layered_nav li.chosen > .ux-swatch-widget-layered-nav-list__graphic { box-shadow: 0 0 0 2px var(--hm-brand); }
.widget_layered_nav li.chosen:has(> .ux-swatch-widget-layered-nav-list__graphic) > a { background: transparent; }
.widget_layered_nav li:has(> .ux-swatch-widget-layered-nav-list__graphic) > a:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 3px; }
.widget_price_filter form { padding-top: 14px; }
.widget_price_filter .price_slider_amount .button { background: var(--hm-brand); border-color: var(--hm-brand); color: #fff; border-radius: 8px; }
.widget_price_filter .price_slider_amount .button:hover { background: var(--hm-brand-d); }
