/*
Theme Name:   Pouchelle (Flatsome child)
Description:  Boutique styling for Pouchelle on top of Flatsome.
Template:     flatsome
Version:      1.0.0
Text Domain:  pouchelle-flatsome
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--pq-ink: #1c1c1c;
	--pq-text: #4a4a4a;
	--pq-muted: #8a847a;
	--pq-cream: #f7f2ea;
	--pq-sand: #efe6d9;
	--pq-accent: #b5835a;
	--pq-accent-dark: #8f6540;
	--pq-line: #e8e1d6;
	--pq-sale: #b3402a;
	--pq-radius: 10px;
	--pq-tabbar-h: 62px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--pq-sand); color: var(--pq-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.header-wrapper { box-shadow: none; }
.header-main, .header-bottom { border-bottom: 1px solid var(--pq-line); }
.header-bottom { border-top: 0; }
.header-top { font-size: .78rem; letter-spacing: .04em; }
.header-top .html { font-weight: 500; }
.header-top .nav > li > a { font-size: .78rem; opacity: .85; }
.header-top .nav > li > a:hover { opacity: 1; }

/* Text logo */
#logo a, .logo a {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.9rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--pq-ink);
	line-height: 1;
	white-space: nowrap;
}
#logo a:hover { color: var(--pq-accent-dark); }

/* Main navigation */
.header-bottom .nav > li > a,
.header-main .nav > li > a {
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.header-bottom-nav { gap: .2rem; }
.nav > li.menu-item-hot > a,
.nav > li.pq-hot > a { color: var(--pq-sale); }

/* Dropdowns */
.nav-dropdown { border-radius: 8px; border: 1px solid var(--pq-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .08); padding: 10px 0; }
.nav-dropdown > li > a { font-size: .86rem; padding: 8px 20px; }
.nav-dropdown-has-arrow li.has-dropdown:after { display: none; }

/* Header icons + cart bubble */
.header-cart-title .cart-price { font-weight: 600; }
.cart-icon strong, .icon-shopping-bag + .cart-icon { font-weight: 600; }

/* Search */
.searchform .button.icon, .searchform-wrapper .button { border-radius: 0 999px 999px 0; }
.header .searchform-wrapper .search-field { border-radius: 999px 0 0 999px; background: var(--pq-cream); border-color: var(--pq-line); box-shadow: none; padding-left: 18px; }
.header .searchform-wrapper .ux-search-submit { border-radius: 0 999px 999px 0; }

/* ==========================================================================
   Typography / sections / buttons
   ========================================================================== */
h1, h2, h3, h4, .section-title-container .section-title { letter-spacing: .01em; }
.section-title-normal span, .section-title b { border-color: var(--pq-accent); }
.section-title-center span { text-transform: none; letter-spacing: .01em; }
.section-title-container .section-title-main { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 1.9rem; text-transform: none; letter-spacing: .01em; }

.button, button, input[type="submit"] { letter-spacing: .08em; font-weight: 600; }
.button.is-outline { border-width: 1.5px; }
.pq-eyebrow { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--pq-accent-dark); margin-bottom: 14px; }
.pq-hero-title { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.08; color: var(--pq-ink); margin: 0 0 18px; }
.pq-hero-copy { font-size: 1.05rem; max-width: 30em; color: var(--pq-text); margin-bottom: 28px; }
.pq-hero-card { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 26px 60px rgba(60, 40, 20, .12); }
.pq-hero-card img { border-radius: 14px; width: 100%; }

/* Trust strip */
.pq-usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.pq-usp-item { padding: 6px 10px; }
.pq-usp-item svg { width: 30px; height: 30px; stroke: var(--pq-accent-dark); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.pq-usp-item strong { display: block; color: var(--pq-ink); font-size: .92rem; letter-spacing: .02em; }
.pq-usp-item span { display: block; font-size: .82rem; color: var(--pq-muted); }

/* Editorial band */
.pq-band { text-align: center; }
.pq-band h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; margin-bottom: 10px; }
.pq-band p { color: rgba(255, 255, 255, .78); margin-bottom: 22px; }

/* ==========================================================================
   Category tiles + product cards
   ========================================================================== */
.product-category .box-image img, .product-category .box-image { border-radius: var(--pq-radius); }
.product-category .box-text .header-title { font-family: "DM Sans", sans-serif; font-weight: 600; letter-spacing: .06em; font-size: .84rem; text-transform: uppercase; }
.product-category .count { opacity: .7; }

.product-small.box { border: 0; }
.product-small .box-image { border-radius: var(--pq-radius); background: #fff; overflow: hidden; }
.product-small .box-image img { object-fit: cover; }
.product-small .box-text { padding-top: .7em; }
.product-small .box-text .name { font-size: .93rem; line-height: 1.35; font-weight: 500; min-height: 2.6em; }
.product-small .box-text .name a { color: var(--pq-ink); }
.product-small .box-text .category { font-size: .7rem; letter-spacing: .12em; color: var(--pq-muted); }
.product-small .price { font-size: .95rem; font-weight: 600; color: var(--pq-ink); }
.product-small .price del { font-weight: 400; color: var(--pq-muted); opacity: .9; }
.product-small .price ins { color: var(--pq-sale); text-decoration: none; }
.badge-container .badge-inner, .badge-circle-inside .badge-inner { background: var(--pq-sale); }
.badge-container .callout.badge .badge-inner { border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 0 .6em; min-width: 0; }
.image-tools .add-to-cart-button .button, .quick-view { border-radius: 999px; }
.ux-swatches--in-loop { margin-top: 6px; }
.ux-swatch .ux-swatch__color { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ==========================================================================
   Shop archive
   ========================================================================== */
.shop-page-title { background: var(--pq-cream); border-bottom: 1px solid var(--pq-line); }
.shop-page-title .page-title-inner { padding-top: 22px; padding-bottom: 22px; }
.woocommerce-breadcrumb { font-size: .75rem; letter-spacing: .1em; }
.woocommerce-result-count { font-size: .82rem; color: var(--pq-muted); }
.woocommerce-ordering select { border-radius: 999px; border-color: var(--pq-line); background-color: #fff; padding-left: 16px; }
.widget-title, .widget .is-divider { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pq-ink); }
.widget_price_filter .ui-slider .ui-slider-range { background: var(--pq-accent); }
.widget_price_filter .ui-slider .ui-slider-handle { background: var(--pq-ink); }
.woocommerce-widget-layered-nav-list li a { padding: 4px 0; }

/* ==========================================================================
   Product page
   ========================================================================== */
.product-info .product-title { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--pq-ink); }
.product-info .price-wrapper .price { font-size: 1.55rem; font-weight: 600; color: var(--pq-ink); }
.product-info .price del { color: var(--pq-muted); font-weight: 400; }
.product-info .price ins { color: var(--pq-sale); text-decoration: none; }
.product-short-description ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.product-short-description li { margin: 0 0 .35em; font-size: .92rem; }
.product-short-description li strong { color: var(--pq-ink); }
.single_add_to_cart_button { border-radius: 999px; min-height: 3em; padding-left: 2.2em; padding-right: 2.2em; }
.variations th.label, .variations label { font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pq-ink); }
.ux-swatches .ux-swatch { margin-right: 6px; }
.ux-swatch.selected .ux-swatch__color, .ux-swatch.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pq-ink); }
.product-gallery .woocommerce-product-gallery__image img { border-radius: var(--pq-radius); }
.product-thumbnails a, .product-thumbnails img { border-radius: 8px; }
.product-footer .woocommerce-tabs { border-top: 1px solid var(--pq-line); padding-top: 10px; }
.accordion-title { font-weight: 600; letter-spacing: .02em; }
table.pouchelle-specs { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
table.pouchelle-specs th, table.pouchelle-specs td { text-align: left; padding: .65em .6em; border: 0; border-bottom: 1px solid var(--pq-line); font-size: .92rem; background: transparent; }
table.pouchelle-specs th { width: 34%; font-weight: 600; color: var(--pq-ink); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.pouchelle-note { color: var(--pq-muted); font-size: .85rem; }
.product-info .product_meta { font-size: .8rem; color: var(--pq-muted); }
.sticky-add-to-cart--active { box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }

/* ==========================================================================
   Cart / checkout / account
   ========================================================================== */
.woocommerce-cart .cart-container, .woocommerce-checkout .checkout-sidebar { }
.cart_totals, .checkout-sidebar .cart-sidebar-content, .woocommerce-checkout-review-order { border-radius: 14px; }
.cart-sidebar.large-4 .cart-collaterals, .checkout-sidebar { background: var(--pq-cream); border-radius: 14px; padding: 6px 22px 20px; }
.cart-sidebar .widget-title, .cart_totals .shop_table th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.checkout-button, #place_order { border-radius: 999px; min-height: 3.2em; }
.woocommerce-checkout h3, .woocommerce-billing-fields h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.35rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border-radius: 8px; box-shadow: none; border-color: var(--pq-line); min-height: 2.9em; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--pq-ink); }
.checkout-breadcrumbs { text-transform: uppercase; letter-spacing: .12em; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 10px; }
.woocommerce-MyAccount-navigation li a { border-radius: 8px; padding: 10px 14px; }

/* Mini cart drawer */
.cart-popup-inner .woocommerce-mini-cart__buttons .button { border-radius: 999px; }
.widget_shopping_cart .woocommerce-mini-cart-item { padding: 12px 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-wrapper { font-size: .92rem; }
.pq-footer { background: #1c1c1c; color: #cfc8bd; }
.pq-footer a { color: #cfc8bd; }
.pq-footer a:hover { color: #fff; }
.pq-footer .pq-brand { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 12px; display: block; }
.pq-footer h4 { color: #fff; font-family: "DM Sans", sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.pq-footer ul { list-style: none; margin: 0; padding: 0; }
.pq-footer li { margin: 0 0 8px; }
.pq-footer .pq-muted { color: #8f877b; font-size: .85rem; }
.absolute-footer { background: #151515; color: #8f877b; font-size: .8rem; border-top: 1px solid #2a2a2a; }
.absolute-footer a { color: #cfc8bd; }
.back-to-top { border-radius: 999px; }

/* ==========================================================================
   Mobile
   ========================================================================== */
.pq-tabbar { display: none; }

@media (max-width: 849px) {
	body { padding-bottom: 0; }
	body.pq-has-tabbar { padding-bottom: calc(var(--pq-tabbar-h) + env(safe-area-inset-bottom)); }

	#logo a, .logo a { font-size: 1.35rem; letter-spacing: .18em; }
	.header-main { border-bottom: 1px solid var(--pq-line); }
	.header-top { font-size: .72rem; }

	/* Drawer menu */
	.mobile-sidebar { font-size: 1rem; }
	.mobile-sidebar .nav-sidebar > li > a { font-size: .92rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--pq-line); }
	.mobile-sidebar .nav-sidebar > li.header-search-form { padding: 6px 0 14px; }
	.mobile-sidebar .searchform-wrapper .search-field { border-radius: 999px; background: var(--pq-cream); border-color: var(--pq-line); }
	.mobile-sidebar .children a, .mobile-sidebar .sub-menu a { font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 500; }

	/* Cards */
	.product-small .box-text .name { font-size: .86rem; min-height: 2.5em; }
	.product-small .price { font-size: .9rem; }
	.product-small .box-image { border-radius: 8px; }
	.row-small > .col, .row-small > .flickity-viewport > .flickity-slider > .col { padding-left: 6px; padding-right: 6px; }
	.section-title-container .section-title-main { font-size: 1.5rem; }
	.pq-usp { grid-template-columns: 1fr; gap: 6px; text-align: left; }
	.pq-usp-item { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 6px 0; }
	.pq-usp-item svg { grid-row: span 2; margin: 0; width: 28px; height: 28px; }
	.pq-hero-card { padding: 10px; border-radius: 16px; }

	/* Tap targets */
	.button, button, .nav > li > a, .widget_product_categories li a { min-height: 44px; }
	.woocommerce-ordering select { min-height: 44px; }
	.variations select { min-height: 46px; }

	/* Product page */
	.product-info .product-title { font-size: 1.45rem; }
	.product-info .price-wrapper .price { font-size: 1.35rem; }
	.single_add_to_cart_button { width: 100%; }
	.quantity { margin-right: 10px; }

	/* Bottom tab bar */
	.pq-tabbar {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 999;
		height: calc(var(--pq-tabbar-h) + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
		border-top: 1px solid var(--pq-line);
		box-shadow: 0 -6px 22px rgba(0, 0, 0, .05);
	}
	.pq-tabbar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center;
		gap: 3px; color: var(--pq-muted); font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
		position: relative; text-decoration: none; min-height: 0;
	}
	.pq-tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
	.pq-tabbar a.is-active { color: var(--pq-ink); }
	.pq-tabbar a.is-active svg { stroke: var(--pq-ink); }
	.pq-cart-count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--pq-accent); color: #fff; font-size: .62rem; line-height: 17px; text-align: center; font-weight: 700; letter-spacing: 0; }
	.pq-cart-count[data-count="0"] { display: none; }
	.back-to-top, .back-to-top.active { bottom: calc(var(--pq-tabbar-h) + 14px); }
	body.single-product .pq-tabbar, body.woocommerce-checkout .pq-tabbar { display: none; }
	body.single-product.pq-has-tabbar, body.woocommerce-checkout.pq-has-tabbar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Content pages (shipping table etc.)
   ========================================================================== */
.entry-content table.pq-table, .page-wrapper table.pq-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; }
table.pq-table th, table.pq-table td { text-align: left; padding: .75em .9em; border: 0; border-bottom: 1px solid var(--pq-line); }
table.pq-table thead th { background: var(--pq-cream); color: var(--pq-ink); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 549px) {
	table.pq-table, table.pq-table thead, table.pq-table tbody, table.pq-table tr, table.pq-table td, table.pq-table th { display: block; }
	table.pq-table thead { display: none; }
	table.pq-table tr { border: 1px solid var(--pq-line); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; }
	table.pq-table td { border: 0; padding: .35em .9em; }
	table.pq-table td:first-child { font-weight: 600; color: var(--pq-ink); }
	table.pq-table td:nth-child(2):before { content: "Shipping: "; color: var(--pq-muted); }
	table.pq-table td:nth-child(3):before { content: "Total: "; color: var(--pq-muted); }
}
