:root {
    --permo-accent: #ff6b63;
    --permo-pink: #fff0f1;
    --permo-ink: #111;
}

/* WooCommerce shop: only behavioral additions; visual classes remain from shop.html. */
.permo-shop-page .reset-price {
	appearance: none;
	border: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

/*
 * noUiSlider positions RTL handles from the left edge of each translated
 * origin. The preserved template overrides that with `right`, which makes
 * both price handles render at the same end of the track and prevents a
 * usable drag target.
 */
html[dir="rtl"] .permo-shop-page .noUi-horizontal .noUi-handle,
.rtl .permo-shop-page .noUi-horizontal .noUi-handle {
	left: -6px;
	right: auto;
}

.permo-shop-page .woocommerce-notices-wrapper:empty {
	display: none;
}

.permo-shop-page .woocommerce-info {
	grid-column: 1 / -1;
	margin: 0;
}

.permo-shop-page .price-wrap .woocommerce-Price-amount,
.permo-shop-page .price-wrap .woocommerce-Price-currencySymbol {
	font: inherit;
}

.permo-shop-page .price-wrap del,
.permo-shop-page .price-wrap ins {
	color: inherit;
	text-decoration: inherit;
}

.permo-shop-page .permo-shop-description > :last-child {
	margin-bottom: 0;
}

/* WooCommerce single product keeps the source product-single.html geometry. */
.permo-single-product .woocommerce-notices-wrapper:empty { display: none; }
.permo-single-product .product-name.h5 { margin: 0; }
.permo-single-product .product-price .woocommerce-Price-amount,
.permo-single-product .product-price .woocommerce-Price-currencySymbol { font: inherit; }
.permo-single-product .product-price del,
.permo-single-product .product-price ins { color: inherit; text-decoration: inherit; }
.permo-single-product .list-star .is-empty { opacity: .25; }
.permo-single-product .cart.group-btn { display: flex; width: 100%; }
.permo-single-product .cart.group-btn .btn-add-to-cart { flex: 1; border: 0; }
.permo-theme a.added_to_cart.wc-forward { display: none !important; }
.permo-single-product .quantity-product { appearance: textfield; -moz-appearance: textfield; }
.permo-single-product .quantity-product::-webkit-inner-spin-button,
.permo-single-product .quantity-product::-webkit-outer-spin-button { margin: 0; appearance: none; }
.permo-single-product .tf-product-cate-sku .value a { color: inherit; }
.permo-single-product .review-content .text > :last-child { margin-bottom: 0; }
.permo-single-product .comment-form .logged-in-as { margin-bottom: 16px; }
.permo-single-product .comment-form .form-submit { margin: 0; }
.permo-single-product .comment-form.is-submitting,
.permo-single-product .permo-ajax-add-to-cart.is-submitting { pointer-events: none; }
.permo-single-product .comment-form.is-submitting .submit,
.permo-single-product .permo-ajax-add-to-cart.is-submitting .btn-add-to-cart { opacity: .65; }
.permo-review-status {
	width: 100%;
	margin: 0 0 22px;
	padding: 14px 18px;
	border: 1px solid #b8dfc2;
	border-radius: 12px;
	background: #f1fbf4;
	color: #236b36;
	font-size: 14px;
	line-height: 1.8;
}
.permo-review-status.is-error {
	border-color: #ffc6c2;
	background: #fff3f2;
	color: #a82b24;
}
.permo-single-product .permo-native-cart .variations_form,
.permo-single-product .permo-native-cart .cart { width: 100%; }
.permo-recently-viewed:has(#permo-recent-products:empty) { display: none; }

html { scroll-behavior: smooth; }
body.permo-theme { overflow-x: hidden; }
body.admin-bar .offcanvas,
body.admin-bar .popup-search { top: 32px; }

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

.social-telegram { color: inherit; }
.social-telegram svg { display: block; }
.permo-static-link { cursor: default; }
.canvas-mb .mb-other-content .permo-mobile-account-actions {
    flex-direction: column;
    align-items: flex-start;
}
.box-nav-menu > .menu-item > .item-link { white-space: nowrap; }

/* Positioning follows the original HTML mega-menu. */
.box-nav-menu .permo-mega-parent > .mega-menu {
    left: 24px;
    right: 24px;
    width: auto;
    transform: translateY(10px);
}

.box-nav-menu .permo-mega-parent:hover > .mega-menu,
.box-nav-menu .permo-mega-parent:focus-within > .mega-menu {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#header .box-nav-menu .permo-mega-parent > .mega-menu .wrapper-sub-menu {
    width: 67%;
    margin-right: 0;
    margin-left: auto;
    padding: 22px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
}

.permo-mega-parent .mega-menu-item { min-width: 0; }
.permo-mega-parent .menu-heading {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e7e7;
}
.permo-mega-parent .menu-list li + li { margin-top: 12px; }
.box-nav-menu .permo-mega-parent .menu-link-text {
    display: flex;
    align-items: center;
    gap: 8px;
}
.box-nav-menu .permo-mega-parent .demo-label {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: 5px;
    background: #68c85f;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
}
.box-nav-menu .permo-mega-parent .demo-label.bg-primary { background: var(--permo-accent) !important; }

/* Dynamic images keep the dimensions defined by app.css. */
.s-banner-colection .image img,
.wg-cls.asp-1 .image img,
.permo-latest-posts .entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.permo-latest-posts .entry-image {
    aspect-ratio: 1.48;
    overflow: hidden;
}

.permo-footer-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.permo-footer-menu > .footer-menu-list { margin: 0; }
.footer-newsletter img {
    max-width: 130px;
    max-height: 140px;
    object-fit: contain;
}
.footer-info .box-icon .icon { font-size: 14px; }

.popup-search .popular-searches button.link {
    padding: 10px 18px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fafafa;
    color: #111;
    font: inherit;
    cursor: pointer;
}
.popup-search .popular-searches button.link:hover {
    border-color: #111;
    background: #fff;
}
.tf-toolbar-bottom .toolbar-count {
    display: grid;
    place-items: center;
}

/* AJAX add-to-cart confirmation, designed to sit cleanly over every theme page. */
.permo-cart-success-modal .modal-dialog { max-width: 510px; }
.permo-cart-success-modal .modal-content {
	position: relative;
	padding: 38px;
	border: 0;
	border-radius: 28px;
	box-shadow: 0 24px 80px rgba(17, 17, 17, .2);
	text-align: center;
}
.permo-cart-success-close {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
}
.permo-cart-success-mark {
	position: relative;
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ff817a, var(--permo-accent));
	box-shadow: 0 12px 28px rgba(255, 107, 99, .28);
}
.permo-cart-success-mark::before {
	content: '';
	position: absolute;
	top: 21px;
	left: 19px;
	width: 30px;
	height: 17px;
	border: solid #fff;
	border-width: 0 0 4px 4px;
	transform: rotate(-45deg);
}
.permo-cart-success-kicker {
	margin: 0 0 7px;
	color: var(--permo-accent);
	font-size: 13px;
	font-weight: 700;
}
.permo-cart-success-modal h4 { margin: 0 0 24px; font-size: 24px; }
.permo-cart-success-product {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 26px;
	padding: 12px;
	border: 1px solid #ededed;
	border-radius: 18px;
	background: #fafafa;
	text-align: right;
}
.permo-cart-success-product img {
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	border-radius: 13px;
	object-fit: cover;
}
.permo-cart-success-product span { display: block; margin-bottom: 5px; color: #777; font-size: 12px; }
.permo-cart-success-product strong { display: block; color: #111; font-size: 16px; }
.permo-cart-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.permo-cart-success-actions .tf-btn { width: 100%; min-height: 52px; border-radius: 14px; }

/* WooCommerce cart keeps the cart.html controls while using real cart actions. */
.permo-cart-remove {
	padding: 5px;
	border: 0;
	background: transparent;
	color: #aaa;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease;
}
.permo-cart-remove:hover { color: var(--wc-danger); }
.permo-cart-remove svg { display: block; }
.permo-cart-form { transition: opacity .2s ease; }
.permo-cart-form.is-updating {
	opacity: .62;
	pointer-events: none;
}
.permo-cart-page .woocommerce-cart-form .wc-product-inline__img a {
	display: block;
	width: 100%;
	height: 100%;
}
.permo-cart-page .woocommerce-cart-form .wc-product-inline__img img {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	object-fit: cover;
}
.permo-cart-page .wc-product-inline__name a { color: inherit; }
.permo-cart-page .wc-price .woocommerce-Price-amount,
.permo-cart-page .wc-total-row .woocommerce-Price-amount { color: inherit; font: inherit; }
.permo-cart-page .wc-meta .variation {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 4px 0 0;
}
.permo-cart-page .wc-meta .variation dt,
.permo-cart-page .wc-meta .variation dd { margin: 0; }

/* WooCommerce checkout preserves html/checkout.html and its real checkout flow. */
.permo-checkout-page > .woocommerce { width: 100%; }
.permo-checkout-page,
.permo-checkout-main,
.permo-checkout-form,
.permo-checkout-form .wc-grid--checkout,
.permo-checkout-form .wc-grid--checkout > * {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}
.permo-checkout-page .woocommerce-notices-wrapper { margin: 0; }
.permo-checkout-form .wc-grid--checkout { direction: rtl; }
.permo-checkout-form .wc-card,
.permo-checkout-form .wc-notice { direction: rtl; }
.permo-checkout-form .wc-form p { margin: 0; }
.permo-checkout-form .wc-form-group {
	display: grid;
	float: none;
	width: 100%;
	gap: 8px;
}
.permo-checkout-form .wc-form-group > label {
	display: block;
	margin: 0;
	font-size: 13px;
	font-weight: 650;
}
.permo-checkout-form .woocommerce-input-wrapper { display: block; width: 100%; }
.permo-checkout-form .wc-field,
.permo-checkout-form .wc-select,
.permo-checkout-form .wc-textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
}
.permo-checkout-form .wc-field { padding: 11px 15px; }
.permo-checkout-form .wc-textarea { min-height: 120px; }
.permo-checkout-form .wc-required,
.permo-checkout-form abbr.required { color: #e34837; text-decoration: none; }
.permo-checkout-form .optional { color: #999; font-size: 11px; font-weight: 400; }
.permo-checkout-form .form-row.woocommerce-invalid .wc-field,
.permo-checkout-form .form-row.woocommerce-invalid .wc-select,
.permo-checkout-form .form-row.woocommerce-invalid .select2-selection { border-color: #d93b3b !important; }
.permo-checkout-form .form-row.woocommerce-validated:not(.woocommerce-invalid) .wc-field,
.permo-checkout-form .form-row.woocommerce-validated:not(.woocommerce-invalid) .wc-select,
.permo-checkout-form .form-row.woocommerce-validated:not(.woocommerce-invalid) .select2-selection { border-color: #ddd; }
.permo-checkout-form .select2-container { width: 100% !important; }
.permo-checkout-form .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	min-height: 50px;
	padding: 0 15px;
	border: 1px solid #ddd;
	border-radius: 11px;
	background: #fff;
}
.permo-checkout-form .select2-container--default .select2-selection--single .select2-selection__rendered {
	width: 100%;
	padding: 0;
	color: var(--wc-ink);
	line-height: 48px;
}
.permo-checkout-form .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 11px;
	right: auto;
	left: 11px;
}
.permo-checkout-form .shipping_address { padding-top: 4px; }
.permo-checkout-form .permo-shipping-title { margin: 0 0 16px; font-size: 17px; }
.permo-checkout-form .wc-check { margin: 2px 0; cursor: pointer; }
.permo-checkout-form .wc-check input { flex: 0 0 20px; margin: 0; }
.permo-checkout-form .wc-check span { line-height: 1.7; }
.permo-checkout-summary .blockUI.blockOverlay {
	border-radius: inherit;
	background: rgba(255, 255, 255, .72) !important;
}
.permo-checkout-summary .wc-order-item > img,
.permo-checkout-summary .wc-order-item > a img {
	display: block;
	width: 58px !important;
	max-width: none !important;
	height: 66px !important;
	object-fit: cover;
}
.permo-checkout-summary .wc-order-item .variation {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 7px;
	margin: 3px 0 0;
	color: var(--wc-muted);
	font-size: 10px;
}
.permo-checkout-summary .wc-order-item .variation dt,
.permo-checkout-summary .wc-order-item .variation dd { margin: 0; }
.permo-checkout-summary .wc-order-item .woocommerce-Price-amount,
.permo-checkout-summary .wc-total-row .woocommerce-Price-amount { color: inherit; font: inherit; }
.permo-checkout-summary .wc-total-row--grand strong .woocommerce-Price-amount { color: green; }
.permo-checkout-summary .wc-total-row--shipping { align-items: flex-start; }
.permo-checkout-shipping-methods { min-width: 0; text-align: left; }
.permo-checkout-shipping-methods .woocommerce-shipping-methods { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.permo-checkout-shipping-methods .woocommerce-shipping-methods li { display: flex; align-items: center; gap: 9px; }
.permo-checkout-shipping-methods .shipping_method[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: #f8c441; }
.permo-checkout-shipping-methods label { cursor: pointer; color: #111; font-weight: 700; }
.permo-checkout-shipping-empty { max-width: 270px; margin: 0; color: #777; font-size: 13px; line-height: 1.8; }
.permo-checkout-summary .wc_payment_methods {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-checkout .permo-checkout-summary #payment {
	border-radius: 0;
	background: transparent;
}
.woocommerce-checkout .permo-checkout-summary #payment ul.payment_methods {
	padding: 0;
	border: 0;
	text-align: right;
}
.woocommerce-checkout .permo-checkout-summary #payment ul.payment_methods li {
	line-height: 1.7;
	text-align: right;
}
.woocommerce-checkout .permo-checkout-summary #payment ul.payment_methods li input {
	margin: 0;
}
.woocommerce-checkout .permo-checkout-summary #payment div.form-row {
	padding: 0;
}
.permo-checkout-summary .wc_payment_methods::before,
.permo-checkout-summary .wc_payment_methods::after { display: none; }
.permo-checkout-summary .wc-radio { margin: 0; }
.permo-checkout-summary .wc-radio > label { margin: 0; }
.permo-checkout-summary .wc-radio img {
	width: auto;
	max-width: 80px;
	max-height: 28px;
	margin-inline-start: auto;
}
.permo-checkout-summary .payment_box {
	position: static;
	width: auto;
	margin: 9px 25px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wc-muted);
}
.permo-checkout-summary .payment_box::before { display: none; }
.permo-checkout-summary .payment_box p { margin: 0; }
.permo-checkout-summary .place-order { margin: 18px 0 0; padding: 0 !important; }
.permo-checkout-summary .place-order .woocommerce-privacy-policy-text,
.permo-checkout-summary .place-order .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 11px; line-height: 1.8; }
.permo-checkout-summary #place_order {
	float: none;
	width: 100%;
	min-height: 52px;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: var(--wc-primary);
	color: #111;
	font-family: inherit;
	font-weight: 800;
}
.permo-checkout-summary #place_order:hover { background: var(--wc-primary-dark); color: #111; }
.permo-checkout-form .woocommerce-NoticeGroup-checkout:empty { display: none; }

@media (max-width: 1199px) {
	.permo-checkout-form .wc-grid--checkout { grid-template-columns: 1fr; }
	.permo-checkout-summary { order: 2; }
	.permo-checkout-customer { order: 1; }
}
@media (max-width: 767px) {
	.permo-checkout-main { padding-bottom: 90px; }
	.permo-checkout-form .wc-form-row { grid-template-columns: 1fr; }
	.permo-checkout-summary .wc-order-item { grid-template-columns: 50px minmax(0, 1fr); }
	.permo-checkout-summary .wc-order-item > img { width: 50px !important; height: 58px !important; }
	.permo-checkout-summary .wc-order-item > .wc-price { grid-column: 2; }
}
/* Global WooCommerce notices: compact, stacked and detached from page layout. */
.woocommerce-notices-wrapper:empty { display: none !important; }
.permo-toast-region,
.woocommerce-notices-wrapper:has(> .permo-toast) {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 100000;
	display: grid;
	width: min(410px, calc(100vw - 32px));
	gap: 12px;
	pointer-events: none;
}
body.admin-bar .permo-toast-region,
body.admin-bar .woocommerce-notices-wrapper:has(> .permo-toast) { top: 56px; }
.permo-toast-region .permo-toast,
.permo-toast {
	--permo-toast-color: #247a4a;
	position: relative;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 30px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 78px;
	margin: 0 !important;
	padding: 15px 15px 15px 12px !important;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .07) !important;
	border-inline-start: 4px solid var(--permo-toast-color) !important;
	border-radius: 17px !important;
	background: rgba(255, 255, 255, .98) !important;
	box-shadow: 0 18px 50px rgba(20, 20, 20, .16) !important;
	color: #202020 !important;
	font-size: 14px;
	line-height: 1.8;
	list-style: none;
	pointer-events: auto;
	opacity: 0;
	transform: translateX(28px) scale(.98);
	transition: opacity .25s ease, transform .25s ease;
	backdrop-filter: blur(12px);
}
.permo-toast-region .permo-toast.is-visible {
	opacity: 1;
	transform: translateX(0) scale(1);
}
.permo-toast-region .permo-toast.is-leaving {
	opacity: 0;
	transform: translateX(24px) scale(.98);
}
.permo-toast--error { --permo-toast-color: #d94141; }
.permo-toast--info { --permo-toast-color: #2d6cdf; }
.permo-toast__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--permo-toast-color) 12%, white);
	color: var(--permo-toast-color);
	font-size: 20px;
	font-weight: 800;
}
.permo-toast--success .permo-toast__icon::before { content: '✓'; }
.permo-toast--error .permo-toast__icon::before { content: '!'; }
.permo-toast--info .permo-toast__icon::before { content: 'i'; font-family: Arial, sans-serif; }
.permo-toast__content { min-width: 0; }
.permo-toast__content a {
	margin-inline-start: 5px;
	color: var(--permo-toast-color) !important;
	font-weight: 700;
	text-decoration: none;
}
.permo-toast__content a:hover { text-decoration: underline; }
.permo-toast__close {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #777;
	font: 24px/1 Arial, sans-serif;
	cursor: pointer;
}
.permo-toast__close:hover { background: #f1f1f1; color: #111; }
.permo-toast__progress {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--permo-toast-color);
	transform-origin: right center;
	animation: permo-toast-progress var(--permo-toast-duration, 5500ms) linear forwards;
}
.permo-toast.is-paused .permo-toast__progress { animation-play-state: paused; }
@keyframes permo-toast-progress { to { transform: scaleX(0); } }

.entry-content .title { display: block; }
.permo-content { padding: 90px 0; }
.permo-content .entry-card {
    max-width: 950px;
    margin: 0 auto;
}
.permo-content .entry-card + .entry-card { margin-top: 35px; }
.permo-content .entry-title { margin-bottom: 18px; }
.permo-content .entry-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: 20px;
}
.permo-content .entry-body { line-height: 2; }

@media (max-width: 1199px) {
    .permo-footer-menu { grid-template-columns: 1fr; }
    .footer-newsletter img { max-width: 95px; }
}

@media (max-width: 782px) {
    body.admin-bar .offcanvas,
    body.admin-bar .popup-search { top: 46px; }
	body.admin-bar .permo-toast-region,
	body.admin-bar .woocommerce-notices-wrapper:has(> .permo-toast) { top: 62px; }
}

@media (max-width: 767px) {
	.permo-toast-region,
	.woocommerce-notices-wrapper:has(> .permo-toast) {
		top: 14px;
		right: 16px;
		left: 16px;
		width: auto;
	}
	.permo-toast-region .permo-toast,
	.permo-toast { min-height: 70px; grid-template-columns: 38px minmax(0, 1fr) 28px; gap: 10px; padding: 12px !important; border-radius: 14px !important; }
	.permo-toast__icon { width: 38px; height: 38px; }
    .popup-search .looking-for-wrap { padding-top: 18vh; }
    .popup-search .looking-for-wrap .heading { font-size: 32px; }
    .popup-search .popular-searches { align-items: flex-start; }
    .popup-search .popular-searches ul {
        display: flex;
        flex-wrap: wrap;
    }
    .permo-latest-posts .entry-image { aspect-ratio: 1.4; }
	.permo-single-product .cart.group-btn { align-items: stretch; }
	.permo-cart-success-modal .modal-dialog { margin: 16px; }
	.permo-cart-success-modal .modal-content { padding: 32px 20px 22px; border-radius: 22px; }
	.permo-cart-success-modal h4 { font-size: 20px; }
	.permo-cart-success-actions { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .popup-search .looking-for-wrap .heading { font-size: 27px; }
}

/* Authentication flow additions; the reference wc-auth layout remains unchanged. */
.permo-auth-row,
.permo-auth-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.permo-auth-links { margin-top: 22px; }
.permo-auth-links form { margin: 0; }
.permo-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}
.permo-link-button:hover,
.permo-auth-links a:hover { color: #9a7008; }
.permo-link-button:disabled {
	color: #999;
	cursor: not-allowed;
	opacity: .85;
}
.permo-otp-field {
	direction: ltr;
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: .35em;
}
.wc-notice { margin-bottom: 22px; }
.wc-notice:not(.wc-notice--danger) { border-color: #a9dbc5; background: #eaf8f1; }
.wc-notice:not(.wc-notice--danger) .wc-notice__icon { background: #247a4a; color: #fff; }

/* WooCommerce My Account integration. */
.account-dashboard-page .wc-main > .container,
.account-orders-page .wc-main > .container,
.account-addresses-page .wc-main > .container,
.account-edit-account-page .wc-main > .container {
	max-width: none;
}
.wc-account > .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	min-width: 0;
}
body.woocommerce-account .wc-account > .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
}
.woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 1px solid #ead58d;
	border-radius: 13px;
	background: #fffaf0;
	list-style: none;
}
.woocommerce-MyAccount-content .woocommerce-error { border-color: #edb4b4; background: #fff3f3; }
.woocommerce-MyAccount-content .woocommerce-message { border-color: #a9dbc5; background: #eaf8f1; }
.woocommerce-MyAccount-content .woocommerce-error a,
.woocommerce-MyAccount-content .woocommerce-message a,
.woocommerce-MyAccount-content .woocommerce-info a { font-weight: 700; text-decoration: underline; }
.woocommerce-MyAccount-content .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce-MyAccount-content .wc-order-item dl.variation { margin: 3px 0 0; color: var(--wc-muted); font-size: 11px; }
.woocommerce-MyAccount-content .wc-order-item dl.variation dt,
.woocommerce-MyAccount-content .wc-order-item dl.variation dd { display: inline; margin: 0; }
.woocommerce-MyAccount-content .wc-address address { font-style: normal; }
@media (max-width: 480px) {
	.permo-auth-row { align-items: flex-start; flex-direction: column; }
}

/* WordPress blog content, preserving the reference blog layouts. */
.permo-post-content > p,
.permo-post-content > ul,
.permo-post-content > ol,
.permo-post-content > .wp-block-list {
	width: 100%;
	max-width: 1008px;
	margin: 0 auto 24px;
	color: var(--text);
	font-size: 16px;
	line-height: 32px;
	text-align: justify;
}
.permo-post-content > ul,
.permo-post-content > ol { padding-right: 24px; }
.permo-post-content > blockquote {
	width: 100%;
	max-width: none;
	min-height: 130px;
	margin: 0 0 42px;
	padding: 20px;
	display: flex;
	align-items: center;
	border: 0;
	border-radius: 16px;
	background: #eeffde;
}
.permo-post-content > blockquote p {
	width: 100%;
	max-width: 1008px;
	margin: 0 auto;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-align: center;
}
.permo-post-content > .wp-block-image,
.permo-post-content > .wp-block-gallery,
.permo-post-content > figure {
	max-width: 1008px;
	margin: 0 auto 42px;
	overflow: hidden;
	border-radius: 16px;
}
.permo-post-content img { height: auto; border-radius: 16px; }
.permo-comments-area { max-width: 1008px; margin: 0 auto 80px; }
.permo-comment-list-wrap { margin-bottom: 64px; }
.permo-comment-list-wrap > .title { margin-bottom: 32px; font-size: 28px; font-weight: 500; text-align: center; }
.permo-comment-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.permo-comment-list .children { display: grid; gap: 20px; margin: 20px 48px 0 0; padding: 0; list-style: none; }
.permo-blog-comment-inner { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.permo-blog-comment-inner > .avatar { flex: 0 0 52px; }
.permo-blog-comment-inner > .avatar img { width: 52px; height: 52px; border-radius: 50%; }
.permo-blog-comment-content { flex: 1; min-width: 0; color: var(--text); line-height: 1.9; }
.permo-blog-comment-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--dark); }
.permo-blog-comment-head time { color: var(--text); font-size: 13px; }
.permo-blog-comment-reply { margin-top: 8px; font-weight: 500; }
.permo-comments-area .comment-reply-title small { margin-right: 8px; font-size: 13px; }
.permo-blog-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; }
.s-blog-single .entry_title { margin: 0; }
.s-blog-list-grid > .wg-pagination { grid-column: 1 / -1; }
@media (max-width: 767px) {
	.permo-comment-list .children { margin-right: 18px; }
	.permo-blog-comment-inner { padding: 15px; }
	.permo-post-content > p,
	.permo-post-content > ul,
	.permo-post-content > ol { text-align: right; }
}
.contact-map-actions span img {
	height: 72px;
	width: auto;
	display: block;
}

/* Public WooCommerce order tracking. */
.order-tracking-page .wc-tracking { max-width: 780px; margin-inline: auto; }
.permo-tracking-form { align-items: end; }
.permo-tracking-submit { grid-column: 1 / -1; justify-self: start; }
.permo-tracking-error { margin-top: 24px; }
.permo-tracking-result { margin-top: 24px; }
.wc-pill--pending { color: #8a6300; background: #fff2c6; }
.wc-pill--draft { color: #5f6368; background: #eef0f2; }
.wc-pill--on-hold { color: #6c4aa0; background: #f1e8ff; }
.wc-pill--processing { color: #12618a; background: #e1f4ff; }
.wc-pill--completed { color: #247a4a; background: #e3f6ec; }
.wc-pill--cancelled,
.wc-pill--failed { color: #a52929; background: #ffe5e5; }
.wc-pill--refunded { color: #70418f; background: #f1e5f8; }
.wc-pill--other { color: #50555a; background: #eceff1; }
.wc-timeline.is-terminal .wc-timeline__step.is-active .wc-timeline__dot { border-color: #c53b3b; background: #c53b3b; color: #fff; }
.permo-post-tracking {
	margin-top: 20px;
	padding: 18px 20px;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 5px 18px;
	border: 1px dashed #d7aa35;
	border-radius: 14px;
	background: #fffaf0;
}
.permo-post-tracking span { color: #6d603d; font-size: 13px; font-weight: 600; }
.permo-post-tracking strong { color: #181818; font-size: 20px; font-weight: 800; letter-spacing: .06em; text-align: left; }
.permo-post-tracking small { grid-column: 1 / -1; color: #777; font-size: 12px; }
.permo-account-post-tracking { margin: 0 0 22px; }
.permo-order-customer-note strong { color: #1f513a; }
@media (max-width: 767px) {
	.permo-tracking-submit { width: 100%; justify-content: center; }
	.permo-tracking-result .wc-card__title { align-items: flex-start; flex-direction: column; gap: 12px; }
	.permo-post-tracking { grid-template-columns: 1fr; }
	.permo-post-tracking strong { text-align: right; }
	.permo-post-tracking small { grid-column: auto; }
}

/* Keep authentication and My Account accents aligned with the theme palette. */
.wc-auth,
.wc-account,
.permo-cart-page,
.permo-checkout-page,
.order-tracking-page {
	--wc-primary: #c17477;
	--wc-primary-dark: #c17477;
}
.wc-auth__panel--intro { background: #f2bec3; }
.wc-auth__panel--intro p { color: #70484b; }
.wc-auth .wc-btn--primary {
	border-color: #c17477;
	background: #c17477;
	color: #fff !important;
}
.wc-auth .wc-btn--primary:hover { background: #c17477; color: #fff !important; filter: brightness(.92); }
.wc-auth .wc-auth__tab:hover { background: #f2bec3; }
.wc-auth .wc-auth__tab.is-active { background: #c17477; color: #fff !important; }
.wc-auth .wc-field:focus,
.wc-auth .wc-select:focus,
.wc-auth .wc-textarea:focus,
.wc-account .wc-field:focus,
.wc-account .wc-select:focus,
.wc-account .wc-textarea:focus {
	border-color: #c17477 !important;
	box-shadow: 0 0 0 3px rgba(242, 190, 195, .45);
}
.wc-auth .wc-check input,
.wc-account .wc-check input { accent-color: #c17477; }
.permo-link-button:hover,
.permo-auth-links a:hover { color: #c17477; }
.wc-account .wc-avatar { background: #c17477; color: #fff; }
.wc-account .wc-account-menu a:hover,
.wc-account .wc-account-menu a.is-active { background: #f2bec3; color: #8b4f53; }
.wc-account .wc-btn--primary {
	border-color: #c17477;
	background: #c17477;
	color: #fff !important;
}
.wc-account .wc-btn--primary:hover { background: #c17477; color: #fff !important; filter: brightness(.92); }
.wc-account .wc-pill--warning,
.wc-account .wc-pill--pending { background: #f2bec3; color: #8b4f53; }
.woocommerce-MyAccount-content .woocommerce-info {
	border-color: #c17477;
	background: #f2bec3;
}
.permo-account-post-tracking {
	border-color: #c17477;
	background: #f2bec3;
}
.permo-account-post-tracking span { color: #70484b; }

/* Cart and checkout color overrides only; layout and spacing stay untouched. */
.permo-cart-page .wc-btn--primary,
.permo-checkout-page .wc-btn--primary,
.permo-checkout-page .permo-checkout-summary #place_order {
	border-color: #c17477;
	background: #c17477;
	color: #fff !important;
}
.permo-cart-page .wc-btn--primary:hover,
.permo-checkout-page .wc-btn--primary:hover,
.permo-checkout-page .permo-checkout-summary #place_order:hover {
	background: #c17477;
	color: #fff !important;
	filter: brightness(.92);
}
.permo-cart-page .wc-step.is-active .wc-step__num,
.permo-cart-page .wc-step.is-done .wc-step__num,
.permo-checkout-page .wc-step.is-active .wc-step__num,
.permo-checkout-page .wc-step.is-done .wc-step__num { color: #fff; }
.permo-cart-page .wc-shipping-progress:not(.is-complete) {
	border-color: #c17477;
	background: #f2bec3;
}
.permo-cart-page .wc-qty button:hover { background: #c17477; color: #fff; }
.permo-cart-page .wc-empty__art { background: #f2bec3; }
.permo-cart-page .wc-field:focus,
.permo-cart-page .wc-select:focus,
.permo-cart-page .wc-textarea:focus,
.permo-checkout-page .wc-field:focus,
.permo-checkout-page .wc-select:focus,
.permo-checkout-page .wc-textarea:focus,
.permo-checkout-page .select2-container--focus .select2-selection,
.permo-checkout-page .select2-container--open .select2-selection {
	border-color: #c17477 !important;
	box-shadow: 0 0 0 3px rgba(242, 190, 195, .45);
}
.permo-checkout-page .wc-check input,
.permo-checkout-page .wc-radio input,
.permo-checkout-page .shipping_method[type="radio"] { accent-color: #c17477; }
.permo-checkout-page .wc-notice:not(.wc-notice--danger) {
	border-color: #c17477;
	background: #f2bec3;
}
.permo-checkout-page .wc-notice:not(.wc-notice--danger) .wc-notice__icon {
	background: #c17477;
	color: #fff;
}

/* Order tracking uses the same pink palette without changing its layout. */
.order-tracking-page .wc-btn--primary {
	border-color: #c17477;
	background: #c17477;
	color: #fff !important;
}
.order-tracking-page .wc-btn--primary:hover {
	background: #c17477;
	color: #fff !important;
	filter: brightness(.92);
}
.order-tracking-page .wc-field:focus,
.order-tracking-page .wc-select:focus,
.order-tracking-page .wc-textarea:focus {
	border-color: #c17477 !important;
	box-shadow: 0 0 0 3px rgba(242, 190, 195, .45);
}
.order-tracking-page .wc-timeline__step.is-done .wc-timeline__dot,
.order-tracking-page .wc-timeline__step.is-active .wc-timeline__dot { color: #fff; }
.order-tracking-page .wc-pill--pending { background: #f2bec3; color: #8b4f53; }
.box-title h1.title {
    font-size: 45px;
    font-weight: 700;
}
