/**
 * Base layout/typography for the Orevea theme chrome (header, footer,
 * generic content templates). Built entirely on the design tokens printed
 * by Orevea_Customizer::print_root_css() (assets/css/base.css never
 * hardcodes a color/radius/shadow — always var(--orevea-*)), so editing the
 * Customizer's Design System panel restyles this without touching CSS.
 *
 * Per-page design (homepage sections, product page, mega menu, category
 * grid/filters) is Phase B scope — this file only covers the site-wide
 * chrome that Phase A's header.php/footer.php/index.php etc. render.
 */

body {
    font-family: var(--orevea-font-body);
    color: var(--orevea-ink);
    background: var(--orevea-cream);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--orevea-font-display);
    color: var(--orevea-ink);
    margin: 0 0 .5em;
}

a {
    text-decoration: none;
}

.orevea-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Announcement bar */
.orevea-announce {
    background: #241411;
    color: var(--orevea-white);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .03em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.orevea-announce__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.orevea-announce__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .9);
}

.orevea-announce__phone {
    color: var(--orevea-white);
    font-weight: 600;
}

.orevea-announce__phone:hover {
    color: var(--orevea-gold);
}

/* Header */
.orevea-header {
    background: var(--orevea-white);
    border-bottom: 1px solid rgba(58, 36, 32, .08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .02);
}

.orevea-header__row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.orevea-header__row--main {
    justify-content: space-between;
}

.orevea-header__logo {
    display: flex;
    align-items: center;
    flex: none;
}

.orevea-header__logo,
.orevea-header__brand {
    display: flex;
    align-items: center;
    flex: none;
    max-height: 60px;
}

.custom-logo-link,
.orevea-header__logo a,
.orevea-header__brand a {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 60px !important;
}

.custom-logo,
.custom-logo-link img,
.orevea-header__logo img,
.orevea-header__brand img,
.orevea-custom-logo-wrap img,
.orevea-header-main .orevea-header__brand img {
    max-height: 54px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Reset emoji images so WordPress/Twemoji does not expand emojis to blocks */
img.emoji,
.orevea-topbar img.emoji,
.orevea-announce img.emoji,
.orevea-header-nav img.emoji,
.orevea-elementor-header-widget img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1.15em !important;
    width: 1.15em !important;
    max-height: 1.15em !important;
    max-width: 1.15em !important;
    margin: 0 .25em 0 .2em !important;
    vertical-align: -0.15em !important;
    background: none !important;
    padding: 0 !important;
}

.orevea-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: var(--orevea-ink);
    text-decoration: none;
}

.orevea-brand__name {
    font-family: var(--orevea-font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #4a2822;
    line-height: 1.1;
}

.orevea-brand__sub {
    font-size: 8.5px;
    letter-spacing: .06em;
    color: var(--orevea-taupe);
    text-transform: uppercase;
    margin-top: 2px;
}

.orevea-brand__origin {
    font-size: 9px;
    letter-spacing: .15em;
    color: #4a2822;
    margin-top: 1px;
}

/* Central Search Form */
.orevea-header__search {
    flex: 1;
    max-width: 520px;
}

.orevea-search-form {
    position: relative;
    width: 100%;
}

.orevea-search-form__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 48px 12px 20px;
    border: 1px solid rgba(58, 36, 32, .18);
    border-radius: 999px;
    font-family: var(--orevea-font-body);
    font-size: 13.5px;
    background: #fbfbf9;
    color: var(--orevea-ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.orevea-search-form__input:focus {
    border-color: var(--orevea-burgundy);
    background: var(--orevea-white);
    box-shadow: 0 0 0 3px rgba(107, 46, 42, .08);
}

.orevea-search-form__submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    color: var(--orevea-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color .2s ease;
}

.orevea-search-form__submit:hover {
    color: var(--orevea-burgundy);
}

/* Header Actions */
.orevea-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.orevea-header__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orevea-ink);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}

.orevea-header__action:hover {
    color: var(--orevea-burgundy);
}

.orevea-header__action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.orevea-header__action-text strong {
    font-size: 12.5px;
    font-weight: 600;
}

.orevea-header__action-text small {
    font-size: 11px;
    color: var(--orevea-taupe);
}

.orevea-header__action-label {
    font-weight: 600;
    font-size: 13px;
}

.orevea-header__cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.orevea-header__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--orevea-ink);
    color: var(--orevea-white);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.orevea-header__hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.orevea-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--orevea-ink);
}

@media (max-width: 900px) {
    .orevea-header__hamburger {
        display: flex;
    }
    .orevea-header__search {
        display: none;
    }
    .orevea-header__action-text,
    .orevea-header__action-label {
        display: none;
    }
}

/* Footer */
.orevea-footer {
    background: #fbf9f5;
    color: var(--orevea-ink);
    border-top: 1px solid rgba(58, 36, 32, .08);
    margin-top: 60px;
    padding-top: 48px;
}

.orevea-footer__columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 44px;
}

.orevea-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orevea-footer__col--brand .orevea-brand {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 8px;
}

.orevea-footer__about-text {
    font-size: 12.5px;
    line-height: 1.65;
    color: #6d5d54;
    margin: 0;
}

.orevea-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.orevea-footer__social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ede8df;
    color: var(--orevea-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.orevea-footer__social a:hover {
    background: var(--orevea-burgundy);
    color: var(--orevea-white);
    transform: translateY(-2px);
}

.orevea-footer-widget__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--orevea-ink);
    margin: 0 0 6px;
}

.orevea-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orevea-footer-menu a {
    font-size: 13px;
    color: #6d5d54;
    transition: color .2s ease;
}

.orevea-footer-menu a:hover {
    color: var(--orevea-burgundy);
}

.orevea-footer__payment-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.orevea-badge-pay {
    display: inline-block;
    padding: 4px 10px;
    background: #ede8df;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #3a2420;
}

.orevea-footer__trust-note {
    font-size: 12px;
    color: #7b6e66;
    margin: 0;
    line-height: 1.5;
}

.orevea-footer__bottom {
    border-top: 1px solid rgba(58, 36, 32, .08);
    padding: 20px 0;
}

.orevea-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #7b6e66;
    flex-wrap: wrap;
    gap: 16px;
}

.orevea-footer__copyright {
    margin: 0;
}

.orevea-footer__legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.orevea-footer__legal-links a {
    color: #7b6e66;
}

.orevea-footer__legal-links a:hover {
    color: var(--orevea-burgundy);
}

.orevea-scroll-top {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8b7355;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.orevea-scroll-top:hover {
    background: var(--orevea-ink);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .orevea-footer__columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .orevea-footer__columns {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   RICH PRODUCT CARD COMPONENT
   ================================================================ */
.orevea-products-row__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.orevea-product-card {
    position: relative;
    background: var(--orevea-white);
    border: 1px solid rgba(58, 36, 32, .09);
    border-radius: var(--orevea-radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease;
}

.orevea-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(58, 36, 32, .08);
    border-color: rgba(58, 36, 32, .15);
}

.orevea-product-card__img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: #fbf9f5;
    border-radius: var(--orevea-radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orevea-product-card__img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
}

.orevea-product-card__img-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.orevea-product-card:hover .orevea-product-card__img-link img {
    transform: scale(1.05);
}

/* Badges */
.orevea-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.2;
}

.orevea-badge--sale {
    background: #d32f2f;
    color: #ffffff;
}

.orevea-badge--new {
    background: #2e7d32;
    color: #ffffff;
}

/* Wishlist Button */
.orevea-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, .9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b6e66;
    cursor: pointer;
    z-index: 2;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.orevea-wishlist-btn:hover {
    color: #d32f2f;
    background: #ffffff;
    transform: scale(1.1);
}

.orevea-wishlist-btn.is-active {
    color: #d32f2f;
    fill: #d32f2f;
}

.orevea-wishlist-btn.is-active svg {
    fill: #d32f2f;
}

.orevea-product-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.orevea-product-card__brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.orevea-product-card__title {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 6px;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.orevea-product-card__title a {
    color: var(--orevea-ink);
    text-decoration: none;
}

.orevea-product-card__title a:hover {
    color: var(--orevea-burgundy);
}

/* Rating Stars */
.orevea-product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
}

.orevea-stars {
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 11px;
}

.orevea-product-card__review-count {
    color: var(--orevea-taupe);
    font-size: 11px;
}

/* Price */
.orevea-product-card__price {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: auto;
    margin-bottom: 12px;
}

.orevea-product-card__price del {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}

.orevea-product-card__price ins {
    text-decoration: none;
    color: #d32f2f;
}

/* Action Buttons Bar */
.orevea-product-card__actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(58, 36, 32, .06);
    padding-top: 10px;
}

.orevea-btn-action {
    flex: 1;
    height: 34px;
    border-radius: var(--orevea-radius-sm);
    background: #fbf9f5;
    border: 1px solid rgba(58, 36, 32, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orevea-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.orevea-btn-action:hover {
    background: var(--orevea-ink);
    color: var(--orevea-white);
    border-color: var(--orevea-ink);
}

.orevea-btn-action--cart:hover {
    background: #3a2420;
}

/* Global WooCommerce notice classes (wc_print_notice()'s 'notice' type —
   used by the empty-cart message, the checkout coupon/login toggles, and
   anywhere else WC prints an informational notice). */
.woocommerce-info {
    background: var(--orevea-cream);
    border-radius: var(--orevea-radius-md);
    padding: 16px 20px;
    font-size: 13.5px;
    list-style: none;
    margin: 0 0 20px;
}

.woocommerce-info a {
    color: var(--orevea-burgundy);
    font-weight: 600;
}

/* Generic archive/search page heading (archive.php, search.php). */
.orevea-archive-header {
    margin: 32px 0 24px;
}

.orevea-archive-header h1 {
    font-size: clamp(24px, 3vw, 30px);
    margin: 0 0 8px;
}

.orevea-archive-header span {
    color: var(--orevea-burgundy);
}

/* Blog post (single.php) + comments — not a design focus per the spec
   (blog isn't one of the 13 mocked-up templates), but given a baseline so
   nothing renders completely bare. */
.orevea-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.orevea-post__title {
    font-size: clamp(26px, 3.4vw, 36px);
    margin: 0 0 20px;
}

.orevea-post__thumb {
    margin-bottom: 24px;
    border-radius: var(--orevea-radius-lg);
    overflow: hidden;
}

.orevea-post__content {
    font-size: 15px;
    line-height: 1.8;
}

.orevea-comments {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.orevea-comments__title {
    font-size: 18px;
    margin: 0 0 20px;
}

.orevea-comments__closed {
    color: var(--orevea-taupe);
    font-size: 13.5px;
}

/* ==========================================================================
   Live AJAX Search Dropdown & Wishlist System
   ========================================================================== */
.orevea-live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(58, 36, 32, 0.12);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(58, 36, 32, 0.12);
    z-index: 1000;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

.orevea-live-search-dropdown.is-open {
    display: block;
}

.orevea-live-search__loading,
.orevea-live-search__empty {
    padding: 16px;
    font-size: 12.5px;
    color: #7b6e66;
    text-align: center;
}

.orevea-live-search__results {
    display: flex;
    flex-direction: column;
}

.orevea-live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(58, 36, 32, 0.06);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.orevea-live-search-item:last-child {
    border-bottom: none;
}

.orevea-live-search-item:hover {
    background: #fbf9f5;
}

.orevea-live-search-item__img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #f5f5f5;
    overflow: hidden;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orevea-live-search-item__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.orevea-live-search-item__info {
    flex: 1;
    min-width: 0;
}

.orevea-live-search-item__brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8b7355;
    display: block;
    margin-bottom: 2px;
}

.orevea-live-search-item__title {
    font-size: 12.5px;
    font-weight: 600;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #241411;
}

.orevea-live-search-item__price {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}

.orevea-live-search__view-all {
    display: block;
    padding: 12px 16px;
    background: #fbf9f5;
    border-top: 1px solid rgba(58, 36, 32, 0.08);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #241411;
    text-decoration: none;
}

.orevea-live-search__view-all:hover {
    color: var(--orevea-burgundy);
}

.orevea-wishlist-btn.is-active svg {
    fill: #d32f2f;
    stroke: #d32f2f;
}

