/*
Theme Name: Tapetul Meu — Custom Child
Theme URI: https://tapetulmeu.ro
Description: Custom child theme of Skincare Cosmetic Store for tapetulmeu.ro. Holds all design overrides so parent theme updates never overwrite custom work.
Author: tapetulmeu.ro
Template: skincare-cosmetic-store
Version: 1.0.0
Text Domain: tapetulmeu-child
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

/* Premium-wallpaper layout polish — minimal, additive */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Generous editorial spacing for sections */
.tapet-section {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

/* Body text comfortable line-length */
.tapet-section p {
    max-width: 60ch;
}

/* Centered sections center their inner paragraphs */
.tapet-section.has-text-align-center p {
    margin-left: auto;
    margin-right: auto;
}

/* Hero text: legible against any photo via subtle text shadow */
.tapet-hero-text * {
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

/* Hero CTA: solid dark button — readable against any photo zone */
.tapet-hero-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 1em 2.2em;
    background: #1A1815;
    color: #F4EFE6 !important;
    border: 1px solid #1A1815;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}
.tapet-hero-cta a:hover {
    background: #F4EFE6;
    color: #1A1815 !important;
    border-color: #F4EFE6;
}

/* ============================================================
   HEADER STYLING — dark, premium retail (matches announcement bar)
   ============================================================ */
.tapet-header .tapet-logo-img,
.tapet-header .tapet-logo-img a {
    display: inline-block;
    line-height: 0;
}
.tapet-header .tapet-logo-img img {
    max-width: 200px;
    width: 200px;
    height: auto;
    display: block;
}
.tapet-header .tapet-nav {
    gap: 2.25rem;
}
.tapet-header .tapet-nav a,
.tapet-header .tapet-nav p a {
    color: #E8DDC4 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.25s ease;
}
.tapet-header .tapet-nav a:hover {
    color: #ffffff !important;
}
.tapet-header .tapet-cart-link,
.tapet-header .tapet-cart-link a,
.tapet-header .wp-block-woocommerce-cart-link {
    color: #E8DDC4 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.25s ease;
}
.tapet-header .tapet-cart-link:hover,
.tapet-header .tapet-cart-link a:hover,
.tapet-header .wp-block-woocommerce-cart-link:hover {
    color: #ffffff !important;
}

/* EU / PNRR official-identity strip — thin white bar at the very top */
.tapet-eu-topbar {
    border-bottom: 1px solid #ECE6DA;
}
.tapet-eu-strip-img {
    margin: 0;
}
.tapet-eu-strip-img img {
    height: 44px;          /* keep it a slim strip regardless of source width */
    width: auto;
    display: block;
    margin: 0 auto;
}
@media (max-width: 781px) {
    .tapet-eu-strip-img img {
        height: 30px;
    }
}

/* Announcement bar sits above the dark header — subtle hairline divider */
.tapet-announce {
    border-bottom: 1px solid #2E2A26;
}

/* ============================================================
   HERO SLIDER — grid-stack fade carousel (init JS in functions.php)
   ============================================================ */
.tapet-hero-slider {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    margin: 0 !important;
    isolation: isolate;
    position: relative;
}
.tapet-hero-slider > .wp-block-cover {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 1;
}
/* Active slide */
.tapet-hero-slider > .wp-block-cover.tapet-slide-active {
    opacity: 1;
    z-index: 2;
}
/* Pre-JS fallback: until JS marks the slider "ready", the first child is shown.
   This avoids the brief flash of empty hero on initial load. */
.tapet-hero-slider:not(.tapet-slider-ready) > .wp-block-cover:first-child {
    opacity: 1;
    z-index: 2;
}

/* Slider navigation dots */
.tapet-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.tapet-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.tapet-slider-dots button.tapet-dot-active {
    background: rgba(255, 255, 255, 1);
}
.tapet-slider-dots button:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Eyebrow text — small caps tracked, used across sections */
.tapet-eyebrow {
    color: #6E6962;
    margin-top: 0;
}

/* Hairline separator (subtle decorative divider) */
.wp-block-separator.is-style-tapet-hairline {
    border: 0;
    border-top: 1px solid #DBD7CE;
    width: 60px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    height: auto;
}

/* "Cum funcționează" step numbers and titles */
.tapet-step-num {
    color: #1A1815;
    opacity: 0.85;
}

.tapet-step h3 {
    letter-spacing: -0.005em;
}

.tapet-step p {
    color: #5C5852;
}

/* Brand statement section — italic Cormorant on ink */
.tapet-statement p {
    text-shadow: none;
}
.tapet-statement a {
    color: inherit;
}

/* Editorial section CTA — text link with arrow */
.tapet-text-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.2em;
    transition: opacity 0.2s ease;
}
.tapet-text-link a:hover {
    opacity: 0.7;
}

/* WooCommerce product grid — quieter, editorial */
.tapet-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
.tapet-products .products .product .woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 500;
    font-size: clamp(18px, 1.6vw, 22px);
    letter-spacing: -0.005em;
}
.tapet-products .woocommerce ul.products li.product .price,
.tapet-products .products .product .price {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    font-size: 15px;
    color: inherit;
}

/* ============================================================
   PAGE BANNER (non-homepage pages)
   ============================================================ */
.tapet-page-banner .wp-block-post-title {
    color: #ffffff !important;
    margin: 0;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.005em;
}

.tapet-page-content {
    margin-left: auto;
    margin-right: auto;
}

.tapet-page-content p,
.tapet-page-content li {
    line-height: 1.7;
}

/* ============================================================
   FOOTER STYLING
   ============================================================ */
.tapet-footer h4 {
    color: #ffffff !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.tapet-footer a {
    color: #E8DDC4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tapet-footer a:hover,
.tapet-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.tapet-footer-links ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.tapet-footer-links ul li {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.tapet-footer-contact strong {
    color: #ffffff;
    font-weight: 500;
    margin-right: 0.5em;
}

/* ============================================================
   PRODUCT GALLERY — COLOR-THEME FILTER
   ============================================================
   When a color swatch is clicked, gallery thumbnails NOT matching that
   color get dimmed + desaturated. Untagged thumbnails (no data-color-themes
   attribute) stay neutral. Smooth transition keeps it premium-feeling.
*/
.woocommerce-product-gallery .woocommerce-product-gallery__image {
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.woocommerce-product-gallery.is-color-filtered .woocommerce-product-gallery__image.is-color-dimmed {
    opacity: 0.25;
    filter: grayscale(60%);
}
.woocommerce-product-gallery.is-color-filtered .woocommerce-product-gallery__image.is-color-active {
    opacity: 1;
    filter: none;
}
/* Optional: subtle highlight ring on matched thumbnails */
.woocommerce-product-gallery.is-color-filtered .woocommerce-product-gallery__image.is-color-active img {
    box-shadow: 0 0 0 2px #1A1815;
}

/* ============================================================
   PRODUCT SHARE BUTTONS (single-product page)
   ============================================================ */
.tapet-product-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #EFEAE0;
    font-family: 'Inter', sans-serif;
}
.tapet-product-share-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6E6962;
    margin-right: 0.3rem;
}
.tapet-share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid #DBD7CE;
    border-radius: 0;
    color: #1A1815;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tapet-share-btn:hover,
.tapet-share-btn:focus-visible {
    background: #1A1815;
    color: #F4EFE6;
    border-color: #1A1815;
    transform: translateY(-1px);
}
/* Copied! tooltip for the copy-link button */
.tapet-share-copy .tapet-share-copied {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35em 0.7em;
    background: #1A1815;
    color: #F4EFE6;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.tapet-share-copy.is-copied .tapet-share-copied {
    opacity: 1;
}

/* Trust / legal badges row (ANPC SAL, ANPC SOL, Netopia) */
.tapet-footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}
.tapet-footer-badge {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.tapet-footer-badge:hover,
.tapet-footer-badge:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
}
.tapet-footer-badge img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
}
@media (max-width: 480px) {
    .tapet-footer-badges {
        gap: 0.85rem;
    }
    .tapet-footer-badge img {
        height: 26px;
    }
}

/* PNRR funding banner — small, subtle, never noisy */
.tapet-funding-banner img {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile footer stacking */
@media (max-width: 781px) {
    .tapet-footer .wp-block-columns {
        gap: 2rem;
    }
    .tapet-footer .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ============================================================
   MODERN POLISH — micro-interactions & professional finish
   ============================================================ */

/* --- Smooth scroll & better text rendering --- */
html {
    scroll-behavior: smooth;
}
body {
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern', 'liga', 'calt';
}

/* --- Selection color (brand-aligned) --- */
::selection { background: #1A1815; color: #F4EFE6; }
::-moz-selection { background: #1A1815; color: #F4EFE6; }

/* --- Accessible focus states (keyboard nav) --- */
*:focus-visible {
    outline: 2px solid #1A1815;
    outline-offset: 3px;
}

/* --- Sticky header with backdrop blur (dark version) --- */
.tapet-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(26, 24, 21, 0.92) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    transition: box-shadow 0.35s ease, padding 0.35s ease, background-color 0.35s ease;
}
.tapet-header.is-scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: rgba(26, 24, 21, 0.98) !important;
}

/* --- Nav link underline-wipe hover --- */
.tapet-header .tapet-nav a {
    position: relative;
    padding-bottom: 0.3em;
}
.tapet-header .tapet-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tapet-header .tapet-nav a:hover {
    opacity: 1;
}
.tapet-header .tapet-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* --- Hero CTA: lift on hover --- */
.tapet-hero-cta a {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
                transform 0.3s ease, box-shadow 0.3s ease;
}
.tapet-hero-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* --- Hero slider: slow Ken-Burns motion on the active image --- */
@keyframes tapet-kenburns {
    0%   { transform: scale(1.04) translate(0%, 0%); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.tapet-hero-slider > .wp-block-cover .wp-block-cover__image-background {
    transform: scale(1.04);
    transition: transform 0.9s ease;
}
.tapet-hero-slider > .wp-block-cover.tapet-slide-active .wp-block-cover__image-background,
.tapet-hero-slider:not(.tapet-slider-ready) > .wp-block-cover:first-child .wp-block-cover__image-background {
    animation: tapet-kenburns 12s ease-out forwards;
}

/* Slide content fade-up on activation */
.tapet-hero-slider > .wp-block-cover .tapet-hero-text > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.tapet-hero-slider > .wp-block-cover.tapet-slide-active .tapet-hero-text > *,
.tapet-hero-slider:not(.tapet-slider-ready) > .wp-block-cover:first-child .tapet-hero-text > * {
    opacity: 1;
    transform: translateY(0);
}
.tapet-hero-slider > .wp-block-cover .tapet-hero-text > *:nth-child(2) { transition-delay: 0.15s; }
.tapet-hero-slider > .wp-block-cover .tapet-hero-text > *:nth-child(3) { transition-delay: 0.3s; }
.tapet-hero-slider > .wp-block-cover .tapet-hero-text > *:nth-child(4) { transition-delay: 0.45s; }

/* --- Cum funcționează: subtle decorative line above each step --- */
.tapet-step::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: #1A1815;
    opacity: 0.35;
    margin-bottom: 1.25rem;
}

/* --- WooCommerce product cards: premium hover --- */
.woocommerce ul.products li.product {
    background-color: transparent;
    padding: 0 !important;
    border: none !important;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease;
    overflow: visible;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(26, 24, 21, 0.07);
}
.woocommerce ul.products li.product a img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.04);
}
.woocommerce ul.products li.product a {
    overflow: hidden;
    display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-top: 1rem !important;
    padding-bottom: 0 !important;
}
.woocommerce ul.products li.product .price {
    margin-top: 0.25rem;
    color: #1A1815;
}

/* --- Footer link hover: nudge right + cleaner underline --- */
.tapet-footer-links ul li a {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.tapet-footer-links ul li a:hover {
    transform: translateX(4px);
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   SHOP PAGE — sidebar filters + main grid
   ============================================================ */

/* Sidebar */
.tapet-shop-sidebar {
    font-family: 'Inter', sans-serif;
}
.tapet-filter-title {
    color: #1A1815 !important;
    border-bottom: 1px solid #1A1815;
    padding-bottom: 0.75rem;
}
.tapet-filter-block {
    margin-bottom: 2.5rem !important;
}
.tapet-filter-subtitle {
    color: #6E6962 !important;
}

/* Category buttons (rendered via [tapet_categories] shortcode) */
.tapet-category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tapet-category-btn {
    display: inline-block;
    padding: 0.75em 1em;
    border: 1px solid #DBD7CE;
    border-radius: 0;
    background-color: transparent;
    color: #1A1815;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: left;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.tapet-category-btn:hover {
    background-color: #FBFAF7;
    border-color: #1A1815;
    color: #1A1815;
}
.tapet-category-btn.is-active {
    background-color: #1A1815;
    color: #F4EFE6;
    border-color: #1A1815;
}
.tapet-category-btn.is-active:hover {
    background-color: #1A1815;
    color: #F4EFE6;
}

/* WC active-filters block — inherit our type system */
.wc-block-active-filters,
.tapet-filter-block .wc-block-components-filter-title-placeholder,
.tapet-filter-block .wc-block-active-filters__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-weight: 500 !important;
    color: #6E6962 !important;
}
.wc-block-active-filters__list {
    list-style: none !important;
    padding-left: 0 !important;
}
.wc-block-active-filters__list-item-remove {
    background: transparent !important;
    border: 1px solid #DBD7CE !important;
    color: #1A1815 !important;
    border-radius: 0 !important;
    padding: 0.4em 0.8em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
}

/* WC price-filter block */
.wc-block-price-filter__title,
.wc-block-components-filter-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-weight: 500 !important;
    color: #6E6962 !important;
}
.wc-block-price-filter input[type="text"],
.wc-block-price-filter input[type="number"] {
    border: 1px solid #DBD7CE !important;
    border-radius: 0 !important;
    padding: 0.5em 0.6em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
}
.wc-block-price-filter__range-input-progress,
.wc-block-components-price-slider__range-input-progress {
    --range-color: #1A1815 !important;
}

/* Toolbar */
.tapet-shop-toolbar {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #5C5852;
}
.tapet-shop-toolbar .woocommerce-result-count {
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: #6E6962;
}
.tapet-shop-toolbar .woocommerce-ordering {
    margin: 0 !important;
    position: relative;
}

/* Custom-styled sort dropdown — full appearance reset */
.tapet-shop-toolbar .woocommerce-ordering select.orderby,
.tapet-shop-toolbar select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: #FBFAF7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' stroke='%231A1815' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 1em center !important;
    background-size: 12px auto !important;
    border: 1px solid #1A1815 !important;
    border-radius: 0 !important;
    padding: 0.7em 2.8em 0.7em 1.2em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #1A1815 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
    min-width: 220px;
    transition: background-color 0.2s ease;
}
.tapet-shop-toolbar select:hover,
.tapet-shop-toolbar select:focus {
    background-color: #ffffff !important;
}
/* Strip default Safari/Firefox styling artifacts */
.tapet-shop-toolbar select::-ms-expand {
    display: none;
}
.tapet-shop-toolbar select option {
    background: #FBFAF7;
    color: #1A1815;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    padding: 0.5em;
}

/* Hide the duplicate result-count + ordering that the legacy template renders inside the woocommerce wrapper */
.tapet-shop-main .woocommerce > .woocommerce-result-count,
.tapet-shop-main .woocommerce > .woocommerce-notices-wrapper + .woocommerce-result-count,
.tapet-shop-main .woocommerce > .woocommerce-ordering,
.tapet-shop-main .woocommerce-products-header {
    display: none !important;
}

/* Mobile: stack toolbar + filters */
@media (max-width: 781px) {
    .tapet-shop-layout .wp-block-column {
        flex-basis: 100% !important;
    }
    .tapet-shop-sidebar {
        margin-bottom: 3rem;
    }
    .tapet-shop-toolbar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    .tapet-shop-toolbar select {
        width: 100%;
    }
}

/* --- Generous horizontal padding on grid sections (products, blog) --- */
.tapet-products,
.tapet-blog {
    padding-left: clamp(2rem, 5vw, 5rem) !important;
    padding-right: clamp(2rem, 5vw, 5rem) !important;
}

/* --- Back-to-blog link on single posts --- */
.tapet-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #6E6962;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tapet-back-link a:hover {
    color: #1A1815;
    transform: translateX(-3px);
}

/* --- Latest blog posts grid styling --- */
.tapet-blog-grid {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.tapet-blog-grid li {
    list-style: none !important;
    margin: 0 !important;
}
.tapet-blog-grid .wp-block-latest-posts__featured-image {
    margin-bottom: 1rem;
    overflow: hidden;
}
.tapet-blog-grid .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tapet-blog-grid li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.04);
}
.tapet-blog-grid li > a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 500;
    line-height: 1.25;
    color: #1A1815;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
.tapet-blog-grid li > a:hover {
    color: #6E6962;
}
.tapet-blog-grid .wp-block-latest-posts__post-date {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6E6962;
    display: block;
    margin-bottom: 0.75rem;
}
.tapet-blog-grid .wp-block-latest-posts__post-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #5C5852;
    margin-top: 0.5rem;
}
@media (max-width: 781px) {
    .tapet-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Brand statement: oversized opening quote mark --- */
.tapet-statement {
    position: relative;
}
.tapet-statement::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(80px, 10vw, 140px);
    line-height: 1;
    color: rgba(232, 221, 196, 0.18);
    pointer-events: none;
}

/* --- Page banners: same Ken-Burns effect (subtler, longer) --- */
.tapet-page-banner {
    overflow: hidden;
}
.tapet-page-banner .wp-block-cover__image-background {
    animation: tapet-kenburns 20s ease-out forwards;
}

/* --- Refined section transitions on initial paint --- */
@keyframes tapet-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tapet-section {
    animation: tapet-fade-up 0.8s ease-out backwards;
}

/* --- Cleaner separator (the hairline) --- */
.wp-block-separator.is-style-tapet-hairline {
    opacity: 0.4;
}

/* --- Refined cursor / pointer --- */
button, a, [role="button"], .wp-block-button__link {
    cursor: pointer;
}

/* --- Reduce motion for users who prefer it (a11y standard) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* --- Print styles --- */
@media print {
    .tapet-announce, .tapet-header, .tapet-hero-slider, .tapet-statement { display: none; }
    .tapet-funding-banner img { max-width: 200px; }
    body { color: #000; background: #fff; }
}

/* ============================================================
   MOBILE & TABLET (≤1024px) — drawer nav, search bar, accordion filters
   ============================================================ */

/* --- Defaults (desktop) — keep mobile-only elements hidden --- */
.tapet-mobile-actions,
.tapet-mobile-search,
.tapet-drawer,
.tapet-drawer-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    /* --- HEADER: swap desktop nav/cart for hamburger + mobile cart icon --- */
    .tapet-header {
        padding-top: 0.9rem !important;
        padding-bottom: 0.9rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .tapet-header .tapet-header-row {
        gap: 0.75rem;
        flex-wrap: nowrap !important;
    }
    .tapet-header .tapet-logo-img img {
        max-width: 140px;
        width: 140px;
    }
    /* Hide desktop nav + WC cart-link on mobile */
    .tapet-header .tapet-nav,
    .tapet-header .tapet-cart-link,
    .tapet-header .wp-block-woocommerce-cart-link {
        display: none !important;
    }
    /* Show mobile actions cluster */
    .tapet-mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }
    .tapet-mobile-cart,
    .tapet-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: 0;
        color: #E8DDC4;
        cursor: pointer;
    }
    .tapet-mobile-cart:hover,
    .tapet-hamburger:hover {
        color: #ffffff;
    }
    /* Hamburger: 3 lines, animates to X when active */
    .tapet-hamburger span {
        position: absolute;
        display: block;
        width: 22px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
    }
    .tapet-hamburger {
        position: relative;
    }
    .tapet-hamburger span:nth-child(1) { transform: translateY(-6px); }
    .tapet-hamburger span:nth-child(2) { transform: translateY(0); }
    .tapet-hamburger span:nth-child(3) { transform: translateY(6px); }
    .tapet-hamburger.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .tapet-hamburger.is-open span:nth-child(2) { opacity: 0; }
    .tapet-hamburger.is-open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

    /* --- MOBILE SEARCH BAR (always visible below logo row) --- */
    .tapet-mobile-search {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding: 0.55rem 0.85rem;
        background: #2A2622;
        border: 1px solid #3A332D;
        border-radius: 999px;
        transition: border-color 0.25s ease, background-color 0.25s ease;
    }
    .tapet-mobile-search:focus-within {
        border-color: #E8DDC4;
        background: #322C26;
    }
    .tapet-mobile-search-icon {
        color: #B8AE99;
        flex-shrink: 0;
    }
    .tapet-mobile-search input[type="search"] {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: 0;
        outline: none;
        color: #F4EFE6;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        padding: 0.1em 0;
        -webkit-appearance: none;
        appearance: none;
    }
    .tapet-mobile-search input[type="search"]::placeholder {
        color: #8C8478;
        opacity: 1;
    }
    .tapet-mobile-search input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }
    .tapet-mobile-search button[type="submit"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        background: #E8DDC4;
        color: #1A1815;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
        transition: background-color 0.25s ease;
    }
    .tapet-mobile-search button[type="submit"]:hover {
        background: #ffffff;
    }

    /* --- DRAWER (slides in from right) --- */
    .tapet-drawer-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        z-index: 998;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    .tapet-drawer-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s linear 0s;
    }
    .tapet-drawer {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(82vw, 360px);
        background: #1A1815;
        color: #E8DDC4;
        padding: 1.5rem 2rem 2rem;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }
    .tapet-drawer.is-open {
        transform: translateX(0);
    }
    .tapet-drawer-close {
        align-self: flex-end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: 0;
        color: #E8DDC4;
        cursor: pointer;
        margin-bottom: 1.5rem;
        transition: color 0.2s ease;
    }
    .tapet-drawer-close:hover {
        color: #ffffff;
    }
    .tapet-drawer-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .tapet-drawer-nav a {
        display: block;
        padding: 1.1rem 0;
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 22px;
        font-weight: 500;
        color: #E8DDC4;
        text-decoration: none;
        border-bottom: 1px solid #2E2A26;
        letter-spacing: -0.005em;
        transition: color 0.25s ease, padding-left 0.25s ease;
    }
    .tapet-drawer-nav a:hover {
        color: #ffffff;
        padding-left: 0.4rem;
    }
    /* Prevent body scroll while drawer is open (added via JS) */
    body.tapet-drawer-open {
        overflow: hidden;
    }

    /* --- Sticky header: tighter when scrolled on mobile --- */
    .tapet-header.is-scrolled {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }
    .tapet-header.is-scrolled .tapet-mobile-search {
        margin-top: 0.5rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    /* --- TIGHTEN VERTICAL SPACING (the "empty space" problem) --- */
    .tapet-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .tapet-products,
    .tapet-blog {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .tapet-products h2,
    .tapet-blog h2 {
        margin-bottom: 1.75rem !important;
    }
    .tapet-products .tapet-text-link,
    .tapet-blog .tapet-text-link {
        margin-top: 1.75rem !important;
    }

    /* --- HERO: shorter on mobile so the fold lands on real content --- */
    .tapet-hero {
        min-height: 70vh !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .tapet-hero .tapet-hero-text > h1,
    .tapet-hero .tapet-hero-text > h2 {
        font-size: clamp(28px, 7vw, 40px) !important;
        line-height: 1.15;
    }
    .tapet-slider-dots {
        bottom: 1rem;
    }

    /* --- PAGE BANNER: smaller on mobile --- */
    .tapet-page-banner {
        min-height: 180px !important;
    }
    .tapet-page-banner .wp-block-post-title,
    .tapet-page-banner .wp-block-heading {
        font-size: clamp(26px, 6vw, 36px) !important;
    }

    /* --- WOOCOMMERCE PRODUCT GRID: clean 2-col on mobile --- */
    .tapet-products .woocommerce ul.products,
    .tapet-shop-main .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .tapet-products .woocommerce ul.products li.product,
    .tapet-shop-main .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        clear: none !important;
    }
    .tapet-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .tapet-shop-main .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
        margin-top: 0.6rem !important;
        line-height: 1.25;
    }
    .tapet-products .woocommerce ul.products li.product .price,
    .tapet-shop-main .woocommerce ul.products li.product .price {
        font-size: 13px !important;
        margin-top: 0.2rem;
    }
    .tapet-products .woocommerce ul.products li.product .button,
    .tapet-shop-main .woocommerce ul.products li.product .button {
        font-size: 11px !important;
        padding: 0.7em 1em !important;
    }

    /* --- BLOG GRID: single column with tighter spacing --- */
    .tapet-blog-grid {
        gap: 2rem !important;
    }
}

/* --- Phone-only refinements (≤640px) --- */
@media (max-width: 640px) {
    .tapet-announce p {
        font-size: 10px !important;
        letter-spacing: 0.14em !important;
    }
    .tapet-products .woocommerce ul.products,
    .tapet-shop-main .woocommerce ul.products {
        gap: 0.75rem !important;
    }
    .tapet-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .tapet-shop-main .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
}

/* ============================================================
   SHOP FILTERS — accordion behavior on mobile/tablet
   ============================================================ */
@media (max-width: 1024px) {
    /* Sidebar sits above grid — make it compact and decorative-free */
    .tapet-shop-content {
        padding-top: 1.5rem !important;
        padding-bottom: 3rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .tapet-shop-layout {
        gap: 0 !important;
    }
    .tapet-shop-layout > .wp-block-column {
        flex-basis: 100% !important;
    }
    .tapet-shop-sidebar {
        margin-bottom: 1.5rem !important;
        padding: 0;
        border: 1px solid #DBD7CE;
        border-radius: 4px;
        background: #FBFAF7;
    }
    /* Sidebar title "Filtrează" becomes the section header */
    .tapet-shop-sidebar > .tapet-filter-title {
        margin: 0 !important;
        padding: 1rem 1.25rem !important;
        border-bottom: 1px solid #DBD7CE;
        border-top: 0;
        font-size: 12px !important;
        letter-spacing: 0.18em !important;
    }
    /* Each filter block becomes an accordion item */
    .tapet-shop-sidebar .tapet-filter-block {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #DBD7CE !important;
    }
    .tapet-shop-sidebar .tapet-filter-block:last-child {
        border-bottom: 0 !important;
    }
    /* Accordion header (the JS-tagged heading inside each block) */
    .tapet-shop-sidebar .tapet-accordion-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin: 0 !important;
        padding: 1rem 1.25rem !important;
        cursor: pointer;
        user-select: none;
        font-size: 13px !important;
        font-weight: 500 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        color: #1A1815 !important;
        background: transparent;
        position: relative;
    }
    .tapet-shop-sidebar .tapet-accordion-header::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        margin-left: 1rem;
        border-right: 1.5px solid #1A1815;
        border-bottom: 1.5px solid #1A1815;
        transform: rotate(-45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }
    .tapet-shop-sidebar .tapet-filter-block.is-open .tapet-accordion-header::after {
        transform: rotate(45deg);
    }
    .tapet-shop-sidebar .tapet-accordion-content {
        padding: 0 1.25rem 1.25rem;
    }
    /* Toolbar: simpler on mobile */
    .tapet-shop-toolbar {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 1rem !important;
    }
    .tapet-shop-toolbar .woocommerce-result-count {
        font-size: 11px !important;
    }
    .tapet-shop-toolbar select {
        min-width: auto !important;
        font-size: 11px !important;
        padding: 0.55em 2.4em 0.55em 0.9em !important;
    }
}

/* ============================================================
   TABLET-ONLY refinements (769–1024px) — soften, don't transform
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* On tablets, allow 3 product columns where mobile was 2 */
    .tapet-products .woocommerce ul.products,
    .tapet-shop-main .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    .tapet-blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Slightly more breathing room on tablet vs phone */
    .tapet-products,
    .tapet-blog {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .tapet-hero {
        min-height: 60vh !important;
    }
}

/* ============================================================
   PRODUCT GRID — NUCLEAR OVERRIDE for mobile/tablet
   ============================================================
   The parent theme's `.products li { width: 24.30% !important }` and
   WooCommerce's own mobile media query both fight us. We escalate
   specificity with `body` + multiple class chains AND reset every
   inherited property so the card looks intentional, not stitched-together.
*/
@media (max-width: 1024px) {
    /* --- The <ul> becomes a CSS grid (defeats floats outright) --- */
    body .woocommerce ul.products,
    body .woocommerce-page ul.products,
    body ul.products,
    body ul.products.columns-1,
    body ul.products.columns-2,
    body ul.products.columns-3,
    body ul.products.columns-4,
    body ul.products.columns-5,
    body ul.products.columns-6 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: dense !important;
        gap: 1rem !important;
        margin: 0 0 2rem 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    /* --- CRITICAL: kill WC core's ::before/::after clearfix pseudo-elements.
           They were invisible utilities in a float layout, but with `display: grid`
           on the <ul> they become real grid items, claiming cell (1,1) and the
           last cell — causing the empty top-left cell + first product pushed to
           column 2. WC's clearfix is useless once we're not using floats. --- */
    body .woocommerce .products ul::before,
    body .woocommerce .products ul::after,
    body .woocommerce ul.products::before,
    body .woocommerce ul.products::after,
    body ul.products::before,
    body ul.products::after {
        content: none !important;
        display: none !important;
    }

    /* --- Defensive: no <li> child can claim a specific grid cell.
           Resets any potential `grid-column`/`grid-row`/`order`/`float`/`clear`
           set by parent theme, WC core CSS, or plugins. --- */
    body .woocommerce ul.products > *,
    body ul.products > * {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 0 !important;
        float: none !important;
        clear: none !important;
    }

    /* --- Remove any genuinely empty <li> (likely plugin-injected ghost) --- */
    body .woocommerce ul.products > li:empty,
    body ul.products > li:empty {
        display: none !important;
    }

    /* --- Remove any non-<li> direct child of the products list
           (script tags, divs from plugin injection, etc.) --- */
    body .woocommerce ul.products > :not(li),
    body ul.products > :not(li) {
        display: none !important;
    }

    /* --- Each <li> becomes a clean BLOCK card; reset parent shadow/padding/width.
           Force `display: block` to defeat any flex/grid set by plugins (Elementor,
           wallpaper-configurator, etc.) that were pushing the button to the cell
           bottom and creating a huge empty gap below the price. --- */
    body .woocommerce ul.products li.product,
    body .woocommerce-page ul.products li.product,
    body ul.products li.product,
    body .products li,
    body .products li.product {
        display: block !important;
        flex-direction: initial !important;
        justify-content: initial !important;
        align-items: initial !important;
        align-self: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: none !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
        list-style: none !important;
    }

    /* --- FORCE product title visibility (some plugin or parent CSS is hiding it).
           Maximum-specificity overrides for every property that could hide content. --- */
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
    body .woocommerce ul.products li.product h3.woocommerce-loop-product__title,
    body ul.products li.product .woocommerce-loop-product__title,
    body .products li .woocommerce-loop-product__title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 1em !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        position: static !important;
        text-indent: 0 !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
        color: #1A1815 !important;
    }

    /* The product link is normal flow — DO NOT let it inherit a hidden/transparent
       color from a wrapping element. */
    body .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
        color: #1A1815 !important;
    }
    body .woocommerce ul.products li.product a.woocommerce-LoopProduct-link h2,
    body .woocommerce ul.products li.product a.woocommerce-LoopProduct-link .woocommerce-loop-product__title {
        color: #1A1815 !important;
    }

    /* --- Product image: 1:1 square crop applied DIRECTLY to the <img>.
           Earlier I tried making the wrapping <a> the square container, but that
           clipped the title + price (which live inside the same <a> as the image
           in WC's template) AND accidentally squared the "Add to cart" button. --- */
    body .woocommerce ul.products li.product img,
    body .woocommerce ul.products li.product picture img,
    body .woocommerce ul.products li.product figure img,
    body .products li img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        object-position: center center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        border-radius: 0 !important;
        position: static !important;
    }
    /* The image-link wrapper stays in normal flow — DO NOT make it a square box,
       because it contains the title + price as siblings of the <img>. */
    body .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
        color: inherit !important;
    }

    /* --- Title: left-aligned, smaller, no parent-theme uppercase/center --- */
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .products li .woocommerce-loop-product__title,
    body .products li h2,
    body .products li h3 {
        font-family: 'Cormorant Garamond', Georgia, serif !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        text-transform: none !important;
        color: #1A1815 !important;
        padding: 0 !important;
        margin: 0.7rem 0 0.25rem !important;
    }

    /* --- Price: left-aligned, compact --- */
    body .woocommerce ul.products li.product .price,
    body .products li .price {
        font-family: 'Inter', sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        text-align: left !important;
        color: #1A1815 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
    }
    body .woocommerce ul.products li.product .price ins {
        background: transparent !important;
        text-decoration: none !important;
    }

    /* --- Add-to-cart button: full-width, squared, brand --- */
    body .woocommerce ul.products li.product .button,
    body .woocommerce ul.products li.product a.button,
    body .products li .button {
        display: block !important;
        width: 100% !important;
        margin: 0.7rem 0 0 !important;
        padding: 0.75em 0.5em !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        border-radius: 0 !important;
        background: #1A1815 !important;
        color: #F4EFE6 !important;
        border: 1px solid #1A1815 !important;
        line-height: 1.3 !important;
    }
    body .woocommerce ul.products li.product .button:hover,
    body .products li .button:hover {
        background: #F4EFE6 !important;
        color: #1A1815 !important;
    }

    /* --- Star rating: align left, smaller --- */
    body .woocommerce ul.products li.product .star-rating {
        margin: 0.4rem 0 0 !important;
        font-size: 12px !important;
    }

    /* --- On-sale badge: small, top-left of card --- */
    body .woocommerce ul.products li.product .onsale {
        top: 0.5rem !important;
        left: 0.5rem !important;
        right: auto !important;
        min-height: auto !important;
        min-width: auto !important;
        padding: 0.25em 0.6em !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        border-radius: 0 !important;
        letter-spacing: 0.06em !important;
    }

    /* --- TOOLBAR STRATEGY ON MOBILE ---
           Custom .tapet-shop-toolbar uses WC dynamic blocks that don't always
           mount on mobile (leaving an empty wrapper). The legacy server-rendered
           result-count + ordering form ALWAYS render — so on mobile we hide the
           unreliable custom toolbar and style the legacy outputs in its place.
           Also hide breadcrumb + shop-header on mobile (low value, eats space). */
    body .tapet-shop-main .tapet-shop-toolbar {
        display: none !important;
    }
    body .tapet-shop-main .woocommerce-breadcrumb,
    body .tapet-shop-main nav.woocommerce-breadcrumb,
    body .tapet-shop-main .woocommerce-products-header {
        display: none !important;
    }

    /* --- STYLE legacy result-count + ordering as a clean inline toolbar --- */
    body .tapet-shop-main .site-main > p.woocommerce-result-count,
    body .tapet-shop-main p.woocommerce-result-count {
        display: inline-block !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.12em !important;
        color: #6E6962 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    body .tapet-shop-main .site-main > form.woocommerce-ordering,
    body .tapet-shop-main form.woocommerce-ordering {
        display: inline-block !important;
        float: right !important;
        margin: 0 0 1rem !important;
        padding: 0 !important;
    }
    body .tapet-shop-main form.woocommerce-ordering select {
        font-family: 'Inter', sans-serif !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        padding: 0.55em 2.4em 0.55em 0.9em !important;
        min-width: auto !important;
    }
    /* Clearfix the row that holds result-count (inline) + ordering (float:right) */
    body .tapet-shop-main .site-main > p.woocommerce-result-count {
        margin-bottom: 1rem !important;
    }

    /* --- Pagination: center, give breathing room --- */
    body .tapet-shop-main .woocommerce-pagination {
        margin-top: 1.5rem !important;
        text-align: center !important;
    }
    body .tapet-shop-main .woocommerce-pagination ul {
        border: 0 !important;
    }
    body .tapet-shop-main .woocommerce-pagination ul li {
        border: 0 !important;
        margin: 0 0.2rem !important;
    }
    body .tapet-shop-main .woocommerce-pagination ul li a,
    body .tapet-shop-main .woocommerce-pagination ul li span {
        font-family: 'Inter', sans-serif !important;
        font-size: 13px !important;
        padding: 0.6em 0.9em !important;
        border: 1px solid #DBD7CE !important;
        background: transparent !important;
        color: #1A1815 !important;
    }
    body .tapet-shop-main .woocommerce-pagination ul li span.current {
        background: #1A1815 !important;
        color: #F4EFE6 !important;
    }
}

/* ============================================================
   PRODUCT GRID — tablet (769–1024px): 3 columns
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    body .woocommerce ul.products,
    body .woocommerce-page ul.products,
    body ul.products,
    body ul.products[class*="columns-"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .products li .woocommerce-loop-product__title {
        font-size: 17px !important;
    }
}

/* ============================================================
   Phone-narrow (≤480px): keep 2 columns but tighter spacing
   ============================================================ */
@media (max-width: 480px) {
    body .woocommerce ul.products,
    body .woocommerce-page ul.products,
    body ul.products,
    body ul.products[class*="columns-"] {
        gap: 0.7rem !important;
    }
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .products li .woocommerce-loop-product__title {
        font-size: 14px !important;
        margin-top: 0.5rem !important;
    }
    body .woocommerce ul.products li.product .price,
    body .products li .price {
        font-size: 12px !important;
    }
    body .woocommerce ul.products li.product .button,
    body .products li .button {
        font-size: 10px !important;
        padding: 0.65em 0.4em !important;
        margin-top: 0.5rem !important;
    }
}

/* ============================================================
   WOOCOMMERCE ORDER, CART, CHECKOUT & ACCOUNT PAGES
   ============================================================
   Brand-aligned styling that hooks into WC's existing class names —
   no template overrides needed, so theme stays update-safe.
*/

/* --- Wrapping container for order pages: give it editorial breathing room --- */
.woocommerce-order,
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-MyAccount-content,
.woocommerce-account .woocommerce {
    font-family: 'Inter', sans-serif;
    color: #1A1815;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

/* --- Thank-you / success notice --- */
.woocommerce-order .woocommerce-thankyou-order-received,
.woocommerce-notice--success {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(20px, 2vw, 24px) !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #1A1815 !important;
    margin: 0 0 2.5rem !important;
    padding: 1.5rem 1.75rem !important;
    background: #FBFAF7 !important;
    border-left: 3px solid #1A1815 !important;
    letter-spacing: -0.005em !important;
}

/* --- Order overview row (Order # | Date | Total | Email | Payment) --- */
.woocommerce-order-overview {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 3rem !important;
    border-top: 1px solid #DBD7CE !important;
    border-bottom: 1px solid #DBD7CE !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 !important;
}
.woocommerce-order-overview > li {
    flex: 1 1 0;
    min-width: 0;
    list-style: none !important;
    margin: 0 !important;
    padding: 1.25rem 1.5rem !important;
    border-right: 1px solid #DBD7CE;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6E6962;
}
.woocommerce-order-overview > li:last-child {
    border-right: 0;
}
.woocommerce-order-overview > li strong {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: #1A1815;
    letter-spacing: -0.005em;
    text-transform: none;
}

/* --- Section titles ("Order details", "Billing address", etc.) --- */
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-MyAccount-content h2,
.cart_totals h2,
.cross-sells > h2,
.woocommerce h3#order_review_heading,
.woocommerce-checkout h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    font-weight: 500 !important;
    color: #1A1815 !important;
    letter-spacing: -0.005em !important;
    margin: 3rem 0 1.25rem !important;
    padding: 0 !important;
}

/* --- WC tables (order details, cart, my-account orders list, etc.) --- */
.woocommerce table.shop_table,
.woocommerce-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 0 !important;
    border-top: 1px solid #DBD7CE !important;
    border-bottom: 1px solid #DBD7CE !important;
    margin: 0 0 2.5rem !important;
    border-radius: 0 !important;
}
.woocommerce table.shop_table thead th,
.woocommerce-table thead th {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #6E6962 !important;
    padding: 1rem 0.75rem !important;
    border: 0 !important;
    border-bottom: 1px solid #DBD7CE !important;
    background: transparent !important;
    text-align: left !important;
}
.woocommerce table.shop_table tbody td,
.woocommerce-table tbody td,
.woocommerce table.shop_table tbody th,
.woocommerce-table tbody th {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #1A1815 !important;
    padding: 1rem 0.75rem !important;
    border: 0 !important;
    border-bottom: 1px solid #EFEAE0 !important;
    background: transparent !important;
    vertical-align: middle !important;
}
.woocommerce table.shop_table tbody tr:last-child td,
.woocommerce table.shop_table tbody tr:last-child th {
    border-bottom: 0 !important;
}
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td,
.woocommerce-table tfoot th,
.woocommerce-table tfoot td {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #1A1815 !important;
    padding: 0.85rem 0.75rem !important;
    border: 0 !important;
    border-top: 1px solid #EFEAE0 !important;
    background: transparent !important;
}
.woocommerce table.shop_table tfoot th {
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 11px !important;
    color: #6E6962 !important;
}
.woocommerce table.shop_table tfoot tr:last-child th,
.woocommerce table.shop_table tfoot tr:last-child td {
    border-top: 1px solid #DBD7CE !important;
    font-size: 16px !important;
    color: #1A1815 !important;
    font-weight: 500 !important;
}
.woocommerce table.shop_table tfoot tr:last-child th {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    text-transform: none !important;
    letter-spacing: -0.005em !important;
    font-size: 20px !important;
}
/* Right-align numeric / amount columns */
.woocommerce table.shop_table th:last-child,
.woocommerce table.shop_table td:last-child,
.woocommerce-table th:last-child,
.woocommerce-table td:last-child {
    text-align: right !important;
}
/* Product name links in tables */
.woocommerce table.shop_table .product-name a,
.woocommerce-table .product-name a,
.woocommerce table.shop_table .woocommerce-table__product-name a {
    color: #1A1815 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #DBD7CE !important;
    padding-bottom: 1px !important;
    transition: border-color 0.2s ease, color 0.2s ease !important;
}
.woocommerce table.shop_table .product-name a:hover,
.woocommerce-table .product-name a:hover {
    border-bottom-color: #1A1815 !important;
}

/* --- Customer details: billing + shipping as side-by-side cards --- */
.woocommerce-customer-details {
    margin: 2rem 0 0 !important;
}
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0 !important;
}
.woocommerce-customer-details .woocommerce-column {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}
.woocommerce-customer-details .woocommerce-column__title {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #6E6962 !important;
}
.woocommerce-customer-details address {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #1A1815 !important;
    font-style: normal !important;
    padding: 1.5rem !important;
    background: #FBFAF7 !important;
    border: 1px solid #DBD7CE !important;
    border-radius: 0 !important;
}

/* --- Cart-page-specific: quantity input, coupon row --- */
.woocommerce .quantity .qty {
    border: 1px solid #DBD7CE !important;
    border-radius: 0 !important;
    padding: 0.55em 0.7em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #1A1815 !important;
    width: 4em !important;
    text-align: center !important;
}
.woocommerce-cart-form .coupon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}
.woocommerce-cart-form .coupon input[type="text"] {
    flex: 1;
    max-width: 240px;
    border: 1px solid #DBD7CE !important;
    border-radius: 0 !important;
    padding: 0.7em 0.9em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
}
.woocommerce-cart .cart-collaterals {
    margin-top: 3rem;
}
.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 480px;
    margin-left: auto;
}
.wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 1.25rem !important;
}

/* --- All WC buttons: brand them --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
    display: inline-block !important;
    background: #1A1815 !important;
    color: #F4EFE6 !important;
    border: 1px solid #1A1815 !important;
    border-radius: 0 !important;
    padding: 0.95em 1.8em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, color 0.25s ease !important;
    opacity: 1 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #place_order:hover {
    background: #F4EFE6 !important;
    color: #1A1815 !important;
    border-color: #1A1815 !important;
}
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce button.button.alt,
.wc-proceed-to-checkout a.checkout-button.alt {
    background: #1A1815 !important;
    color: #F4EFE6 !important;
}

/* --- Checkout form fields: brand them consistently --- */
.woocommerce-checkout .form-row label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #6E6962 !important;
    margin-bottom: 0.4rem !important;
}
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
    border: 1px solid #DBD7CE !important;
    border-radius: 0 !important;
    padding: 0.75em 0.9em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #1A1815 !important;
    background: #ffffff !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1A1815 !important;
    outline: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4 !important;
    padding: 0.75em 0.9em !important;
    color: #1A1815 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.6em !important;
}

/* --- Checkout: two-column layout (billing + order review) --- */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
}
.woocommerce-checkout #customer_details {
    grid-column: 1;
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    grid-column: 2;
}
.woocommerce-checkout #order_review_heading {
    margin-top: 0 !important;
}

/* --- My Account: side nav + content --- */
.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.woocommerce-MyAccount-navigation {
    width: auto !important;
    float: none !important;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-MyAccount-navigation ul li {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #EFEAE0 !important;
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: 0 !important;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.85rem 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #6E6962 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.25s ease !important;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #1A1815 !important;
    padding-left: 0.4rem !important;
}
.woocommerce-MyAccount-content {
    padding: 0 !important;
    max-width: none;
}

/* --- WC messages / notices (info, success, error) --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #FBFAF7 !important;
    border: 0 !important;
    border-left: 3px solid #1A1815 !important;
    border-radius: 0 !important;
    color: #1A1815 !important;
    padding: 1rem 1.25rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 1.5rem !important;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}
.woocommerce-error {
    border-left-color: #A04040 !important;
}

/* --- MOBILE: stack everything --- */
@media (max-width: 768px) {
    /* Order overview: stack vertically with subtle dividers */
    .woocommerce-order-overview {
        display: block !important;
    }
    .woocommerce-order-overview > li {
        border-right: 0 !important;
        border-bottom: 1px solid #DBD7CE !important;
        padding: 1rem 0 !important;
    }
    .woocommerce-order-overview > li:last-child {
        border-bottom: 0 !important;
    }
    /* Customer addresses: 1 col */
    .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }
    /* Checkout: stack billing above order review */
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        grid-column: 1 !important;
    }
    /* My Account: stack nav above content */
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        border-top: 1px solid #DBD7CE;
        border-bottom: 1px solid #DBD7CE;
        padding: 0.5rem 0 !important;
    }
    .woocommerce-MyAccount-navigation ul li {
        border-bottom: 0 !important;
        margin: 0 1rem 0 0 !important;
    }
    .woocommerce-MyAccount-navigation ul li a {
        padding: 0.5rem 0 !important;
        font-size: 11px !important;
    }
    /* Cart: stack totals full-width */
    .woocommerce-cart .cart_totals {
        max-width: none !important;
    }
    /* Tables: smaller text */
    .woocommerce table.shop_table thead th,
    .woocommerce-table thead th {
        font-size: 10px !important;
        padding: 0.75rem 0.5rem !important;
    }
    .woocommerce table.shop_table tbody td,
    .woocommerce-table tbody td {
        font-size: 13px !important;
        padding: 0.75rem 0.5rem !important;
    }
    .woocommerce table.shop_table tfoot tr:last-child th {
        font-size: 17px !important;
    }
}

/* ============================================================
   CHECKOUT & CART — FULL WIDTH FALLBACK
   ============================================================
   WordPress generates per-container CSS like
     `.wp-container-core-group-is-layout-XXXX.wp-container-core-group-is-layout-XXXX > :where(...)`
   The DUPLICATED class is WP's specificity-boost trick → (0,0,2,0).
   To beat it we duplicate OUR class too → (0,0,2,2). The doubled selector
   may look redundant but it's the only reliable way to win this cascade.
*/
body main.tapet-checkout-content.tapet-checkout-content,
body main.tapet-cart-content.tapet-cart-content {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body main.tapet-checkout-content.tapet-checkout-content > *,
body main.tapet-cart-content.tapet-cart-content > * {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* The WooCommerce block roots: also pinned to full width with doubled class */
body .wp-block-woocommerce-checkout.wp-block-woocommerce-checkout,
body .wp-block-woocommerce-cart.wp-block-woocommerce-cart {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}
body .wc-block-checkout.wc-block-checkout,
body .wc-block-cart.wc-block-cart {
    max-width: none !important;
    width: 100% !important;
}
