/*
Theme Name: Romantica
Theme URI: https://romanticabd.com/
Author: Romantica
Description: Romantica পারফিউম শপের জন্য বানানো কাস্টম WooCommerce থিম। লোগোর লাল রং আর পারফিউম বোতলের খিলান আকৃতি দিয়ে সাজানো।
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: romantica
*/

/* ==========================================================
   1. Tokens
   ========================================================== */
:root {
	--crimson: #C01A1A;
	--crimson-deep: #9C1215;
	--wine: #560B13;
	--ink: #2B1417;
	--petal: #FBEAE7;
	--paper: #FFFBFA;
	--dew: #EBC3BD;
	--muted: #7A5458;
	--on-red: #FBE3DF;

	--f-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-head: "Tiro Bangla", "Marcellus", Georgia, serif;
	--f-latin: "Marcellus", "Tiro Bangla", Georgia, serif;

	--arch: 999px 999px 14px 14px;
	--wrap: 1200px;
	--gap: clamp(16px, 2.4vw, 28px);
	--section: clamp(56px, 8vw, 104px);
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-deep); }

h1, h2, h3, h4 {
	font-family: var(--f-head);
	font-weight: 400;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

.rm-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gap);
	padding-right: var(--gap);
}

.rm-skip {
	position: absolute; left: 12px; top: -60px; z-index: 999;
	background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px;
}
.rm-skip:focus { top: 12px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Buttons */
.rm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 28px;
	border-radius: 999px; border: 1.5px solid var(--crimson);
	background: var(--crimson); color: #fff;
	font-family: var(--f-body); font-size: 16px; font-weight: 600;
	text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.rm-btn:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); color: #fff; }
.rm-btn svg { width: 20px; height: 20px; }
.rm-btn--light { background: var(--paper); border-color: var(--paper); color: var(--crimson); }
.rm-btn--light:hover { background: var(--petal); border-color: var(--petal); color: var(--crimson-deep); }
.rm-btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.rm-btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.rm-link {
	font-weight: 600; text-decoration: none; color: var(--crimson);
	border-bottom: 1.5px solid var(--dew); padding-bottom: 2px; white-space: nowrap;
}
.rm-link:hover { border-color: var(--crimson); }

/* Icons */
svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.rm-fill { fill: currentColor; stroke: none; }

/* The bottle-arch frame used everywhere */
.rm-arch {
	position: relative; display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--arch);
	overflow: hidden;
	background: var(--petal);
	isolation: isolate;
}
.rm-arch img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }

/* ==========================================================
   3. Notice + header
   ========================================================== */
.rm-notice {
	background: var(--wine); color: var(--on-red);
	font-size: 14px; text-align: center; padding: 7px 0; line-height: 1.5;
}

.rm-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--crimson); color: #fff;
	transition: box-shadow .25s;
}
.admin-bar .rm-header { top: 32px; }
.rm-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(60, 4, 8, .7); }

.rm-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

.rm-brand .custom-logo-link { display: block; }
.rm-brand .custom-logo { height: 64px; width: auto; }

.rm-iconbtn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; padding: 0;
	background: transparent; border: 0; border-radius: 50%;
	color: inherit; cursor: pointer; position: relative;
}
.rm-iconbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.rm-iconbtn svg { width: 24px; height: 24px; }

.rm-menu-toggle { display: none; }

.rm-nav { justify-self: center; }
.rm-nav__head, .rm-nav__call { display: none; }

.rm-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.rm-menu > li { position: relative; }
.rm-menu a {
	display: block; padding: 10px 14px;
	color: #fff; text-decoration: none; font-weight: 500; font-size: 16px;
	border-radius: 999px;
}
.rm-menu a:hover,
.rm-menu .current-menu-item > a { background: rgba(255,255,255,.12); color: #fff; }

.rm-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; left: 0; top: 100%; min-width: 210px;
	background: var(--paper); border-radius: 14px;
	box-shadow: 0 20px 40px -20px rgba(60, 4, 8, .5);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.rm-menu li:hover > .sub-menu,
.rm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rm-menu .sub-menu a { color: var(--ink); border-radius: 8px; }
.rm-menu .sub-menu a:hover { background: var(--petal); color: var(--crimson); }

.rm-actions { display: flex; align-items: center; gap: 4px; }

.rm-cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--paper); color: var(--crimson);
	font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.rm-cart-count[data-count="0"] { display: none; }

.rm-search { background: var(--crimson-deep); padding: 16px 0; }
.rm-search form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.rm-search label { flex: 1; }
.rm-search input[type="search"], .rm-search .search-field {
	width: 100%; height: 50px; padding: 0 20px;
	border: 0; border-radius: 999px; font: inherit; color: var(--ink); background: var(--paper);
}
.rm-search button, .rm-search input[type="submit"] {
	height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
	background: var(--wine); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}

.rm-overlay {
	position: fixed; inset: 0; z-index: 150; background: rgba(43, 20, 23, .5);
}

/* ==========================================================
   4. Hero
   ========================================================== */
.rm-hero {
	background: var(--crimson); color: #fff;
	padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 112px);
	overflow: hidden;
}
.rm-hero__grid {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}
.rm-hero__title {
	font-size: clamp(2.6rem, 6.2vw, 5rem);
	line-height: 1.18;
	color: #fff;
	margin-bottom: .45em;
	max-width: 11em;
}
.rm-hero__lead {
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	color: var(--on-red);
	max-width: 32em;
	margin-bottom: 2em;
}
.rm-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.rm-hero__art {
	position: relative; margin: 0;
	width: min(420px, 100%); justify-self: end;
	aspect-ratio: 5 / 7;
}
.rm-hero__window {
	position: absolute; inset: 0;
	border-radius: var(--arch);
	overflow: hidden;
	background: var(--wine);
	display: grid; place-items: center;
}
.rm-hero__window img { width: 100%; height: 100%; object-fit: cover; }
.rm-hero__bottle {
	width: 54%; fill: none; stroke: var(--on-red); stroke-width: 2.2;
	stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.rm-hero__line {
	position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px);
	pointer-events: none; overflow: visible;
}
.rm-hero__line path {
	fill: none; stroke: rgba(255,255,255,.7); stroke-width: .32;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	animation: rm-draw 2.4s .3s cubic-bezier(.6,.1,.3,1) forwards;
}
.rm-hero__window { animation: rm-rise 1.2s .1s ease-out both; }

@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@keyframes rm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   5. Sections
   ========================================================== */
.rm-section { padding: var(--section) 0; }

.rm-head {
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: 20px; margin-bottom: clamp(28px, 4vw, 44px);
}
.rm-head__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .2em; }
.rm-head__sub { color: var(--muted); margin: 0; max-width: 34em; }

.rm-empty {
	padding: 28px; border: 1px dashed var(--dew); border-radius: 14px;
	color: var(--muted); text-align: center;
}

/* Scent families */
.rm-families { padding-bottom: 0; }
.rm-families__row {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--gap);
}
.rm-family {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	text-decoration: none; color: var(--ink);
}
.rm-arch--small { width: 100%; margin-bottom: 14px; background: var(--petal); }
.rm-arch--small::after {
	content: ""; position: absolute; inset: 6px;
	border: 1px solid rgba(192, 26, 26, 0);
	border-radius: var(--arch);
	transition: border-color .3s;
	pointer-events: none;
}
.rm-family:hover .rm-arch--small::after { border-color: rgba(255,255,255,.9); }
.rm-family__letter {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--f-head); font-size: 3rem; color: var(--crimson);
}
.rm-family__name { font-family: var(--f-head); font-size: 1.2rem; line-height: 1.3; }
.rm-family__count { font-size: 14px; color: var(--muted); }
.rm-family:hover .rm-family__name { color: var(--crimson); }

/* Gift band */
.rm-gift { background: var(--wine); color: var(--on-red); padding: var(--section) 0; }
.rm-gift__grid {
	display: grid; grid-template-columns: .8fr 1.2fr; align-items: center;
	gap: clamp(32px, 6vw, 88px);
}
.rm-gift__art { position: relative; max-width: 360px; width: 100%; }
.rm-gift__art::before {
	content: ""; position: absolute; inset: -14px;
	border: 1px solid rgba(251, 227, 223, .45);
	border-radius: var(--arch);
	pointer-events: none;
}
.rm-arch--gift { background: var(--crimson); display: grid; place-items: center; }
.rm-gift__ribbon {
	width: 55%; fill: none; stroke: var(--on-red); stroke-width: 2.4;
	stroke-linecap: round; stroke-linejoin: round;
}
.rm-gift__title { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 14em; }
.rm-gift__text p { font-size: 1.1rem; max-width: 30em; margin-bottom: 1.8em; }

/* Promise strip */
.rm-promise { background: var(--petal); padding: clamp(28px, 4vw, 44px) 0; }
.rm-promise__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.rm-promise__item {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 8px clamp(14px, 3vw, 36px);
	border-left: 1px solid var(--dew);
}
.rm-promise__item:first-child { border-left: 0; padding-left: 0; }
.rm-promise__icon {
	flex: none; width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; background: var(--paper); color: var(--crimson);
}
.rm-promise__icon svg { width: 22px; height: 22px; }
.rm-promise h3 { font-size: 1.15rem; margin: 0 0 2px; }
.rm-promise p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ==========================================================
   6. Product grid (shop + homepage)
   ========================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(28px, 3.4vw, 44px) var(--gap);
	margin: 0 0 1em !important; padding: 0 !important; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none !important; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; padding: 0;
	display: flex; flex-direction: column; text-align: center; position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex; flex-direction: column; align-items: center;
	color: var(--ink); text-decoration: none; flex: 1;
}
.woocommerce ul.products li.product .rm-arch { width: 100%; margin-bottom: 16px; }
.woocommerce ul.products li.product .rm-arch img { transition: transform .8s ease; }
.woocommerce ul.products li.product:hover .rm-arch img { transform: scale(1.04); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--f-head); font-size: 1.15rem; line-height: 1.35;
	padding: 0 !important; margin: 0 0 4px; color: var(--ink);
}
.woocommerce ul.products li.product .price {
	font-family: var(--f-latin); color: var(--crimson) !important;
	font-size: 1.05rem !important; margin-bottom: 12px !important;
}
.woocommerce ul.products li.product .price del { color: var(--muted); opacity: .8; font-size: .9em; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 0 auto 6px; color: var(--crimson); font-size: .8em; }

.woocommerce ul.products li.product .button {
	margin-top: auto !important; width: 100%;
	background: transparent !important; color: var(--crimson) !important;
	border: 1.5px solid var(--crimson) !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--crimson) !important; color: #fff !important; }
.woocommerce ul.products li.product .added_to_cart {
	display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--crimson);
}

.woocommerce span.onsale {
	position: absolute; top: 14px !important; left: 50% !important; right: auto !important;
	transform: translateX(-50%); z-index: 2;
	min-width: 0; min-height: 0; margin: 0 !important; padding: 2px 14px;
	border-radius: 999px; line-height: 1.8;
	background: var(--paper); color: var(--crimson); font-size: 13px; font-weight: 600;
}

/* WooCommerce buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px !important;
	border-radius: 999px !important; border: 1.5px solid var(--crimson);
	background: var(--crimson) !important; color: #fff !important;
	font-family: var(--f-body); font-size: 16px !important; font-weight: 600; line-height: 1.2;
	transition: background .2s, color .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--crimson-deep) !important; border-color: var(--crimson-deep);
}
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .5; }

/* Shop page */
.rm-shop { padding: clamp(28px, 4vw, 48px) 0 var(--section); }
.rm-shop .woocommerce-products-header { margin-bottom: 20px; }
.rm-shop .woocommerce-products-header__title,
.rm-shop .page-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .2em; }
.rm-shop .term-description { color: var(--muted); max-width: 40em; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 15px; margin: 10px 0 28px; }
.woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce .woocommerce-ordering select,
.woocommerce select, .woocommerce-page select {
	height: 46px; padding: 0 14px; border: 1px solid var(--dew); border-radius: 999px;
	background: var(--paper); color: var(--ink); font: inherit;
}

.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	width: 42px; height: 42px; line-height: 42px; padding: 0; border-radius: 50%;
	color: var(--ink);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--crimson); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--petal); }

/* ==========================================================
   7. Single product
   ========================================================== */
.woocommerce div.product div.images { margin-bottom: 2em; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport {
	border-radius: 240px 240px 16px 16px; overflow: hidden; background: var(--petal);
}
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 40px 40px 6px 6px; opacity: .6; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; }

.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.25; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	font-family: var(--f-latin); color: var(--crimson); font-size: 1.7rem;
}
.woocommerce div.product p.price del { color: var(--muted); font-size: .7em; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); }

.woocommerce div.product form.cart {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 1.4em 0;
}
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; flex: 1 1 180px; }
.woocommerce div.product form.cart .rm-buy-now {
	background: var(--wine) !important; border-color: var(--wine) !important; flex: 1 1 180px;
}
.woocommerce div.product form.cart .rm-buy-now:hover { background: var(--ink) !important; }
.woocommerce div.product form.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 14px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: 4px 0; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }

.woocommerce .quantity .qty {
	width: 84px; height: 48px; border: 1px solid var(--dew); border-radius: 999px;
	font: inherit; text-align: center; background: var(--paper);
}

/* Scent pyramid */
.rm-notes { margin: 1.6em 0; padding-top: 1.4em; border-top: 1px solid var(--dew); }
.rm-notes__title { font-size: 1.2rem; margin-bottom: .8em; }
.rm-notes__pyramid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rm-notes__tier {
	padding: 12px 18px; text-align: center; background: var(--petal); color: var(--ink);
	line-height: 1.5;
}
.rm-notes__tier span {
	display: block; font-size: 13px; font-weight: 600; color: var(--crimson); margin-bottom: 2px;
}
.rm-notes__tier--top { width: 62%; border-radius: 999px 999px 6px 6px; padding-top: 18px; }
.rm-notes__tier--heart { width: 82%; border-radius: 6px; background: #F6D9D4; }
.rm-notes__tier--base { width: 100%; border-radius: 6px 6px 14px 14px; background: var(--wine); color: var(--on-red); }
.rm-notes__tier--base span { color: #fff; }
.rm-notes__life { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 15px; justify-content: center; }
.rm-notes__life svg { width: 18px; height: 18px; color: var(--crimson); }

.rm-trust { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.rm-trust li { display: flex; align-items: center; gap: 10px; }
.rm-trust svg { width: 20px; height: 20px; color: var(--crimson); flex: none; }
.rm-trust a { font-weight: 600; }

.woocommerce div.product .product_meta { font-size: 14px; color: var(--muted); }
.woocommerce div.product .product_meta > span { display: block; }

.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 2em; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 1.4em; border-bottom: 1px solid var(--dew); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: none; border: 0; border-radius: 0; margin: 0 18px 0 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; color: var(--muted); font-weight: 500; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--crimson); box-shadow: inset 0 -2px 0 var(--crimson); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-of-type { font-size: 1.4rem; }

.woocommerce .related > h2, .woocommerce .upsells > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.4em 0 1em; }

/* ==========================================================
   8. Cart, checkout, account, notices, forms
   ========================================================== */
.rm-pagehead { background: var(--petal); padding: clamp(32px, 5vw, 56px) 0; }
.rm-pagehead__title { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; }
.rm-pagehead__meta { color: var(--muted); margin: 6px 0 0; }

.rm-page .rm-content { max-width: 760px; }
.rm-page--wide .rm-content { max-width: none; }
.rm-content h2 { font-size: 1.7rem; margin-top: 1.4em; }
.rm-content h3 { font-size: 1.35rem; margin-top: 1.2em; }
.rm-post-thumb { margin: 0 0 1.6em; }
.rm-post-thumb img { border-radius: 16px; }

.woocommerce form .form-row label { font-weight: 500; margin-bottom: 4px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce .select2-container .select2-selection--single {
	min-height: 50px; padding: 12px 16px;
	border: 1px solid var(--dew); border-radius: 12px; background: #fff;
	font: inherit; color: var(--ink);
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 10px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--crimson); outline: none; box-shadow: 0 0 0 3px rgba(192, 26, 26, .12); }
.woocommerce form .form-row textarea { min-height: 100px; }

.woocommerce-checkout #customer_details { margin-bottom: 1.5em; }
.woocommerce-checkout h3 { font-size: 1.4rem; }
.woocommerce-checkout #order_review_heading { margin-top: .5em; }
.woocommerce-checkout #order_review,
.woocommerce .cart-collaterals .cart_totals {
	background: var(--petal); border-radius: 18px; padding: clamp(18px, 3vw, 28px);
}
.woocommerce table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-top: 1px solid var(--dew); padding: 14px 10px; }
.woocommerce table.shop_table .amount { font-family: var(--f-latin); }
.woocommerce table.shop_table img { width: 64px; border-radius: 32px 32px 6px 6px; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--dew); padding: 0 0 1em; }
.woocommerce-checkout #payment div.payment_box { background: var(--paper); border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce #payment #place_order { width: 100%; min-height: 56px; font-size: 18px !important; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: 0; border-left: 3px solid var(--crimson); border-radius: 10px;
	background: var(--petal); color: var(--ink);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--crimson); }
.woocommerce-error { border-left-color: var(--wine); }

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 2em; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block; padding: 10px 16px; border-radius: 999px; color: var(--ink); text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--petal); color: var(--crimson); }

/* Blog list */
.rm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.rm-post__link { text-decoration: none; color: var(--ink); }
.rm-arch--post { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.rm-post__title { font-size: 1.35rem; margin-bottom: .3em; }
.rm-post__link:hover .rm-post__title { color: var(--crimson); }
.rm-post__excerpt { color: var(--muted); font-size: 15px; }
.rm-pagination { margin-top: 40px; }
.rm-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
	border-radius: 999px; text-decoration: none; color: var(--ink);
}
.rm-pagination .page-numbers.current { background: var(--crimson); color: #fff; }

/* 404 */
.rm-404 { text-align: center; }
.rm-404__num { font-family: var(--f-head); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--dew); margin: 0 0 .1em; }
.rm-404 .rm-head__sub { margin: 0 auto 1.6em; }

/* ==========================================================
   9. Footer
   ========================================================== */
.rm-footer { background: #3E0810; color: var(--on-red); font-size: 15px; }
.rm-footer a { color: var(--on-red); text-decoration: none; }
.rm-footer a:hover { color: #fff; text-decoration: underline; }
.rm-footer__grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(32px, 5vw, 64px);
	padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 56px);
}
.rm-footer__brand .custom-logo { height: 84px; width: auto; margin-bottom: 14px; }
.rm-footer__brand .custom-logo-link { display: inline-block; border-radius: 12px; overflow: hidden; }
.rm-footer__brand p { max-width: 30em; opacity: .9; }
.rm-footer__title { font-size: 1.15rem; color: #fff; margin-bottom: .9em; }
.rm-footer-links, .rm-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm-footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.rm-footer-contact svg { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.rm-footer-contact__addr { opacity: .85; }
.rm-social { display: flex; gap: 10px; margin-top: 18px; }
.rm-social a {
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 1px solid rgba(251, 227, 223, .35); border-radius: 50%;
}
.rm-social a:hover { background: var(--crimson); border-color: var(--crimson); text-decoration: none; }
.rm-social svg { width: 18px; height: 18px; }
.rm-footer__bottom { border-top: 1px solid rgba(251, 227, 223, .15); padding: 18px 0; font-size: 14px; opacity: .8; text-align: center; }

.rm-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25D366; color: #fff;
	box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
}
.rm-wa-float:hover { color: #fff; transform: translateY(-2px); }
.rm-wa-float svg { width: 30px; height: 30px; }

/* ==========================================================
   10. Responsive
   ========================================================== */
@media (max-width: 1024px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rm-families__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.rm-menu-toggle { display: inline-grid; }
	.rm-header__bar { grid-template-columns: auto 1fr auto; gap: 8px; min-height: 70px; }
	.rm-brand { justify-self: center; }
	.rm-brand .custom-logo { height: 52px; }

	.rm-nav {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 200;
		width: min(330px, 86vw);
		background: var(--wine); padding: 18px;
		transform: translateX(-100%); transition: transform .3s ease;
		overflow-y: auto; visibility: hidden;
		display: flex; flex-direction: column;
	}
	.rm-nav-open .rm-nav { transform: none; visibility: visible; }
	.rm-nav-open { overflow: hidden; }
	.rm-nav__head {
		display: flex; justify-content: space-between; align-items: center;
		font-family: var(--f-head); font-size: 1.3rem; margin-bottom: 14px;
	}
	.rm-menu { flex-direction: column; gap: 2px; }
	.rm-menu a { padding: 12px 14px; font-size: 17px; border-radius: 10px; }
	.rm-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: transparent; box-shadow: none; padding: 0 0 0 12px;
	}
	.rm-menu .sub-menu a { color: var(--on-red); }
	.rm-menu .sub-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
	.rm-nav__call {
		display: flex; align-items: center; gap: 10px; margin-top: auto;
		padding: 14px; border-radius: 12px; background: var(--crimson);
		color: #fff; text-decoration: none; font-weight: 600;
	}
	.rm-nav__call svg { width: 20px; height: 20px; }

	.rm-hero__grid { grid-template-columns: 1fr; }
	.rm-hero__art { order: -1; justify-self: center; width: min(280px, 72vw); margin-top: 8px; }
	.rm-hero__text { text-align: center; }
	.rm-hero__title, .rm-hero__lead { margin-left: auto; margin-right: auto; }
	.rm-hero__btns { justify-content: center; }

	.rm-gift__grid { grid-template-columns: 1fr; text-align: center; }
	.rm-gift__art { max-width: 240px; margin: 0 auto; }
	.rm-gift__title, .rm-gift__text p { margin-left: auto; margin-right: auto; }

	.rm-promise__row { grid-template-columns: 1fr; gap: 18px; }
	.rm-promise__item, .rm-promise__item:first-child { border-left: 0; padding: 0; }

	.rm-footer__grid { grid-template-columns: 1fr 1fr; }
	.rm-footer__brand { grid-column: 1 / -1; }

	.rm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.woocommerce div.product div.images,
	.woocommerce div.product div.summary { width: 100% !important; float: none !important; }
}

@media (max-width: 782px) {
	.admin-bar .rm-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .rm-header { top: 0; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.woocommerce ul.products, .woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 28px 14px;
	}
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; }
	.woocommerce ul.products li.product .button { min-height: 42px; padding: 0 10px !important; font-size: 14px !important; }

	.rm-families__row {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
		margin: 0 calc(var(--gap) * -1); padding: 0 var(--gap) 6px;
		scrollbar-width: none;
	}
	.rm-families__row::-webkit-scrollbar { display: none; }
	.rm-family { flex: 0 0 36%; scroll-snap-align: start; }
	.rm-family__name { font-size: 1.05rem; }

	.rm-head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.rm-btn { width: 100%; }
	.rm-hero__btns { flex-direction: column; }

	.rm-footer__grid { grid-template-columns: 1fr; }
	.rm-posts { grid-template-columns: 1fr; }

	.woocommerce table.shop_table_responsive tr td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.rm-hero__line path { stroke-dashoffset: 0; }
}
