/* Re.Design with Julia theme — what Divi used to provide: base type, the section/row/column grid,
   the header, WooCommerce's page layout. Colours, buttons, cards, shop lists and the rest of the
   design come from the julia-shop-ux plugin (loaded after this file, same tokens). */

:root {
	--j-ink: #2f3a33; --j-ink-2: #56635b; --j-line: #e3e0d6; --j-cream: #faf8f3;
	--j-sage-700: #4a6656; --j-sage-600: #5a7a68; --j-sage-500: #7d9a86; --j-sage-100: #eaf0ea;
	--j-accent: #b0567a; --j-radius: 12px;
	--j-serif: "Alegreya", Georgia, serif; --j-sans: "Nunito Sans", "Nunito", system-ui, -apple-system, sans-serif;
	--jt-wrap: min(1180px, calc(100% - 32px));
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--j-ink); font: 400 17px/1.65 var(--j-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--j-sage-700); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--j-serif); font-weight: 700; line-height: 1.2; color: var(--j-ink); }
p, ul, ol { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
	min-height: 48px; padding: 10px 14px; border: 2px solid var(--j-line); border-radius: 8px; background: #fff; font-size: 17px; max-width: 100%;
}
textarea { min-height: 140px; }
:focus-visible { outline: 3px solid var(--j-sage-500); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jt-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100000; padding: 10px 16px; background: #fff; border-radius: 8px; }

/* ------------------------------------------------- Divi's grid, simplified */
.jt-section { padding: 48px 0; }
.jt-row { width: var(--jt-wrap); margin: 0 auto; display: grid; gap: 28px 40px; }
.jt-row + .jt-row { margin-top: 28px; }
.jt-col { min-width: 0; }
@media (min-width: 981px) {
	.jt-row--1_2 { grid-template-columns: 1fr 1fr; }
	.jt-row--1_4.jt-row--3_4 { grid-template-columns: 1fr 3fr; }
	.jt-row--1_3 { grid-template-columns: repeat(3, 1fr); }
}
.jt-text > :last-child { margin-bottom: 0; }
.jt-text ul, .jt-text ol { padding-left: 1.3em; }
.jt-page--divi .jt-text h1 { font-size: clamp(30px, 4.4vw, 46px); }
.jt-wrap { width: var(--jt-wrap); margin: 0 auto; padding: 36px 0 56px; }
.jt-title { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 18px; }
.jt-content { max-width: 820px; }

/* ------------------------------------------------------------------ header */
.jt-site-header .jt-sticky { position: sticky; top: 0; z-index: 1000; padding: 0; background: #fff; box-shadow: 0 1px 0 var(--j-line), 0 6px 18px rgba(47, 58, 51, .06); }
.admin-bar .jt-site-header .jt-sticky { top: 32px; }
.jt-site-header { display: contents; }
.jt-header { position: relative; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.jt-logo { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.jt-logo img { width: 46px; height: 46px; object-fit: contain; }
.jt-wordmark { font: 400 30px/1 "Allura", cursive; color: var(--j-ink); white-space: nowrap; }
.jt-nav { flex: 1; }
.jt-menu { display: flex; align-items: center; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.jt-menu > li { position: relative; }
.jt-menu a { display: flex; align-items: center; min-height: 52px; font: 700 16px/1.2 var(--j-sans); color: var(--j-ink); text-decoration: none; }
.jt-menu > li.current-menu-item > a, .jt-menu > li > a:hover { color: var(--j-sage-700); box-shadow: inset 0 -2px 0 var(--j-sage-500); }
.jt-menu .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.jt-menu .sub-menu { position: absolute; top: 100%; left: -16px; z-index: 5; display: none; min-width: 260px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border-top: 3px solid var(--j-sage-500); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(47, 58, 51, .14); }
.jt-menu li:hover > .sub-menu, .jt-menu li:focus-within > .sub-menu { display: block; }
.jt-menu .sub-menu a { min-height: 44px; padding: 0 18px; font-weight: 600; }
.jt-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.jt-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--j-ink); cursor: pointer; text-decoration: none; }
.jt-icon .julia-cart-count, .jt-icon .julia-favs-count { position: absolute; top: 1px; right: -4px; }
.jt-actions .julia-favs-link { margin-right: 0; }
.jt-menu-toggle { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: 800 15px/1 var(--j-sans); color: var(--j-sage-700); cursor: pointer; }
.jt-search { position: absolute; top: 100%; left: 0; right: 0; z-index: 4; display: flex; gap: 10px; padding: 12px 0; background: #fff; border-bottom: 1px solid var(--j-line); }
.jt-search[hidden] { display: none; }
.jt-search input { flex: 1; }
@media (max-width: 980px) {
	.jt-header { gap: 8px; min-height: 58px; }
	.jt-wordmark { font-size: 24px; }
	.jt-logo img { width: 38px; height: 38px; }
	.jt-menu-toggle { display: inline-flex; }
	.jt-nav { position: absolute; top: 100%; left: calc((100% - 100vw) / 2); right: calc((100% - 100vw) / 2); display: none; max-height: calc(100dvh - 58px); overflow: auto; background: #fff; border-top: 3px solid var(--j-sage-500); box-shadow: 0 16px 28px rgba(47, 58, 51, .16); }
	.jt-nav.is-open { display: block; }
	.jt-menu { display: block; padding: 6px 0 14px; }
	.jt-menu a { min-height: 50px; padding: 0 5%; font-size: 17px; }
	.jt-menu > li > a:hover, .jt-menu > li.current-menu-item > a { box-shadow: none; background: var(--j-sage-100); }
	.jt-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 6px 4%; border: 0; box-shadow: none; }
	.jt-menu .menu-item-has-children > a::after { display: none; }
}
.jt-nav-search { display: none; }
@media (max-width: 980px) {
	.jt-nav-search { display: flex; gap: 8px; padding: 14px 5% 4px; }
	.jt-nav-search input { flex: 1; min-width: 0; }
}
/* Phones: the search lives in the menu panel, so logo, ♡, cart and "Meniu" fit on one line */
@media (max-width: 480px) { .jt-search-toggle { display: none; } }
@media (max-width: 767px) {
	.jt-wordmark { font-size: 20px; }
	.jt-logo img { width: 34px; height: 34px; }
	.jt-logo { gap: 6px; }
	.jt-icon { width: 40px; }
}
/* phone quick links under the header (plugin styles .julia-quicknav; Divi's row padding gone) */
.julia-quicknav-section { padding: 0; }
.julia-quicknav-section .jt-row { width: 100%; }

/* ----------------------------------------------------------- page sections */
.julia-hero { padding: 56px 0; }
.julia-page-head { padding: 34px 0 10px; }
.julia-page-head .jt-text p, .julia-hero .jt-text p { max-width: 760px; }
.julia-shop { padding-top: 8px; }
@media (max-width: 980px) {
	.jt-section { padding: 30px 0; }
	.julia-hero { padding: 26px 0 30px; }
	.julia-page-head { padding: 22px 0 4px; }
	.julia-shop { padding-top: 0; }
	.julia-shop .jt-row { gap: 0; }
}
.julia-footer { padding: 46px 0 30px; }

/* ------------------------------------------------------------- forms */
.jt-form p { margin: 0 0 14px; }
.jt-form label { display: block; margin: 0 0 4px; font-weight: 700; }
.jt-form input, .jt-form textarea { width: 100%; }
.jt-form__ok { padding: 12px 16px; border-radius: 10px; background: var(--j-sage-100); font-weight: 700; }
.jt-hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------- WooCommerce */
.jt-woo .jt-wrap { padding-top: 26px; }
.woocommerce-notices-wrapper:empty { display: none; }
/* WooCommerce notices (added to cart, not enough stock, …): WooCommerce's own icon sits in a left
   column of its own, the text and the "Vezi coșul" button share one row that wraps on phones. */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
	list-style: none; margin: 0 0 18px; padding: 14px 18px 14px 54px !important;
	border: 0 !important; border-left: 5px solid var(--j-sage-700) !important; border-radius: 10px;
	background: var(--j-sage-100); color: var(--j-ink); font: 600 16px/1.5 var(--j-sans);
}
.woocommerce-error { border-left-color: #b03a48 !important; background: #fbe9ee; }
.woocommerce-info { border-left-color: var(--j-sage-500) !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	position: absolute !important; top: 15px !important; left: 18px !important; width: 22px; text-align: center; line-height: 1.5 !important;
}
.woocommerce-message::before { color: var(--j-sage-700) !important; }
.woocommerce-error::before { color: #b03a48 !important; }
.woocommerce-error li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; flex: 1 1 100%; margin: 0; padding: 0; list-style: none; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
	order: 2; float: none !important; display: inline-flex !important; align-items: center; justify-content: center;
	margin: 0 0 0 auto !important; min-height: 40px; padding: 0 16px !important; line-height: 1.2 !important;
	background: #fff !important; color: var(--j-sage-700) !important; box-shadow: inset 0 0 0 2px var(--j-sage-700) !important;
	border-radius: 8px !important; font: 800 15px/1.2 var(--j-sans) !important; text-decoration: none;
}
/* WooCommerce moves the focus to a new notice for screen readers; no keyboard frame around it. */
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus, .woocommerce-NoticeGroup:focus, .woocommerce-notices-wrapper:focus { outline: none; }
@media (max-width: 767px) {
	.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 12px 14px 12px 46px !important; font-size: 15px; }
	.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { left: 14px !important; top: 13px !important; }
	.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { margin-left: 0 !important; }
}
ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1100px) { ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0; }
ul.products li.product img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--j-line); border-radius: var(--j-radius); }
ul.products li.product .woocommerce-loop-product__title { margin: 10px 0 4px; font: 700 17px/1.3 var(--j-serif); color: var(--j-ink); }
ul.products li.product .price { display: block; margin-bottom: 10px; font: 800 17px var(--j-sans); color: var(--j-ink); }
ul.products li.product a { text-decoration: none; }
ul.products li.product .button { margin-top: auto; }
.woocommerce-result-count { margin: 0 0 10px; color: var(--j-ink-2); }
.woocommerce-ordering { margin: 0 0 16px; }
.woocommerce-ordering select { width: 100%; }
.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 2px solid var(--j-line); border-radius: 10px; font-weight: 800; text-decoration: none; color: var(--j-ink); }
.woocommerce-pagination .page-numbers.current { background: var(--j-sage-700); border-color: var(--j-sage-700); color: #fff; }
.button, button.button, a.button, input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--j-radius); background: var(--j-sage-700); color: #fff; font: 800 16px/1.2 var(--j-sans); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--j-ink); }
.button.alt, #place_order { background: var(--j-sage-700); }
.onsale { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: var(--j-accent); color: #fff; font-weight: 800; font-size: 14px; }

/* the product page: Divi's product layout rows */
.jt-product .julia-product { padding-top: 8px; }
.jt-product .julia-product__main { align-items: start; }
.jt-gallery .woocommerce-product-gallery { position: relative; margin: 0; }
.jt-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.jt-gallery img { display: block; width: 100%; border-radius: var(--j-radius); }
.jt-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.jt-gallery .flex-control-thumbs img { cursor: pointer; opacity: .7; border: 1px solid var(--j-line); }
.jt-gallery .flex-control-thumbs img.flex-active { opacity: 1; }
.jt-gallery .woocommerce-product-gallery__trigger { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fff; text-indent: -9999px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.jt-gallery .woocommerce-product-gallery__trigger::before { content: "⤢"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-indent: 0; font-size: 20px; color: var(--j-ink); }
.jt-product .product_title { font-size: clamp(26px, 3.4vw, 36px); }
.jt-product p.price { font: 800 26px var(--j-sans); color: var(--j-sage-700); margin: 0 0 14px; }
.jt-buy form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 4px; }
.jt-buy form.cart .quantity input { width: 80px; text-align: center; }
.jt-buy .single_add_to_cart_button { flex: 1; min-height: 56px; font-size: 19px; }
.jt-buy .stock { font-weight: 700; color: var(--j-sage-700); }
.jt-buy .stock.out-of-stock { color: var(--j-accent); }
.product_meta { margin-top: 18px; font-size: 15px; color: var(--j-ink-2); }
.product_meta > span { display: block; }
.jt-product-desc, .jt-product-info, .jt-reviews { max-width: 880px; margin-top: 26px; }
.jt-product-desc h2, .jt-product-info h2, .jt-reviews h2 { font-size: 26px; }
.woocommerce-product-attributes { border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 8px 14px 8px 0; text-align: left; border-bottom: 1px solid var(--j-line); }
.jt-related-wrap .related > h2 { font-size: clamp(24px, 3vw, 32px); }

/* cart, checkout, account (WooCommerce's general sheet + the plugin do most of it) */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--j-line); text-align: left; }
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea { width: 100%; }
@media (min-width: 981px) {
	.woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: start; }
	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
	.woocommerce-checkout form.checkout > #customer_details { grid-row: span 2; }
	.woocommerce .col2-set { display: block; }
}
@media (max-width: 767px) {
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--j-line); }
	.woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; }
	.woocommerce table.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; }
	.woocommerce table.shop_table_responsive td.product-remove::before, .woocommerce table.shop_table_responsive td.product-thumbnail::before { content: none; }
}

/* ------------------------------------------------ phones: as compact as the Divi version */
@media (max-width: 767px) {
	/* cart and totals: one label per line (WooCommerce's small-screen rules), no thumbnails */
	.woocommerce table.shop_table_responsive tbody th { display: none; }
	.woocommerce table.cart .product-thumbnail { display: none !important; }
	.woocommerce table.shop_table_responsive td { padding: 4px 0; font-size: 16px; }
	.woocommerce table.shop_table_responsive tr { padding: 8px 0; }
	.woocommerce table.cart td.actions { padding-top: 10px; }
	.cart_totals h2 { margin-top: 18px; }
	/* product page: name, price and the button within the first screen */
	.jt-product .product_title { font-size: 24px; margin-bottom: 6px; }
	.jt-product p.price { font-size: 26px; margin-bottom: 6px; }
	.jt-product .julia-product__main { gap: 14px; }
	.jt-buy form.cart { margin: 10px 0 2px; }
	.jt-product .julia-backlink a { min-height: 36px; }
	.jt-product .jt-section { padding-top: 6px; }
	/* checkout: tighter fields */
	.woocommerce form .form-row { margin: 0 0 10px; }
	.woocommerce form .form-row label { margin-bottom: 2px; }
	/* shop: first products higher */
	.julia-page-head { padding-top: 14px; }
}
.jt-product p.price { color: var(--j-ink); }
