/*
Theme Name: Amor Amar Theme
Theme URI: https://amoramar.md
Author: Amor Amar
Author URI: https://amoramar.md
Description: Custom standalone WooCommerce-ready theme for Amor Amar brand.
Version: 0.1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 7.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amoramartheme1
Tags: woocommerce, custom-logo, custom-menu, full-width-template
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --color-red:    #FF0000;
    --color-white:  #FFFFFF;
    --color-black:  #000000;
    --font-primary: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-max: 1270px;
    --container-max2: 1074px;
    --container-pad: 30px;
    --block-radius: 9px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

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


.sp-add-to-cart .single_add_to_cart_button,
.sp-add-to-cart .single_add_to_cart_button.button,
.woocommerce .sp-add-to-cart button.single_add_to_cart_button,
.woocommerce .sp-add-to-cart .button,
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-main .arrow {
    position: relative;
    top:-2px;
}

.sp-add-to-cart .single_add_to_cart_button,
.sp-add-to-cart .single_add_to_cart_button.button,
.woocommerce .sp-add-to-cart button.single_add_to_cart_button,
.woocommerce .sp-add-to-cart .button,
.btn-main--md {
    font-size: 25px;
    line-height: 1.2;
}

.btn-main--white2 {
    color: var(--color-black);
    background: var(--color-white);
}

.btn-main--white2:hover,
.btn-main--white2:focus-visible {
    background: var(--color-white);
    color: var(--color-red);
    outline: none;
}

.btn-main--white {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.5);
}

.btn-main--white:hover,
.btn-main--white:focus-visible {
    color: var(--color-black);
}

.sp-add-to-cart .single_add_to_cart_button,
.sp-add-to-cart .single_add_to_cart_button.button,
.woocommerce .sp-add-to-cart button.single_add_to_cart_button,
.woocommerce .sp-add-to-cart .button,
.btn-main--red {
    background-color: var(--color-red);
    color: var(--color-white);
}

.sp-add-to-cart .single_add_to_cart_button:hover,
.sp-add-to-cart .single_add_to_cart_button.button:hover,
.woocommerce .sp-add-to-cart button.single_add_to_cart_button:hover,
.woocommerce .sp-add-to-cart .button:hover,
.btn-main--red:hover,
.btn-main--red:focus-visible {
    background-color: #CD0000;
    outline: none;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.aa-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.aa-container2 {
    width: 100%;
    max-width: var(--container-max2);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin: 14px 0;
    background-color: var(--color-white);
}

.hero-banner__picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.hero-banner__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
}

.hero-banner__content {
    position: absolute;
    bottom: 18px;
    left: 17px;
    z-index: 1;
}

/* ============================================================
   TAGLINE SECTION — full-width image
   ============================================================ */
.tagline-section {
    max-width: 1223px;
    margin: 0 auto;
    line-height: 0; /* remove gap under inline image */
}

.tagline-picture {
    display: block;
    width: 100%;
}

.tagline-picture__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================================
   PRODUCT SECTIONS (Preorder / Menu)
   ============================================================ */
.product-section {
    padding-top: clamp(40px, 6vw, 75px);
    background-color: var(--color-white);
}

.product-section + .product-section {
    padding-top: 100px;
}

/* ============================================================
   MENU PAGE
   ============================================================ */
.aa-menu-page {
    padding-top: clamp(40px, 6vw, 75px);
    padding-bottom: 80px;
}

.menu-category-section {
    padding-top: clamp(40px, 6vw, 75px);
}

.menu-category-section:first-child {
    padding-top: 0;
}

.menu-category-section__title {
    margin-bottom: 30px;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-black);
}

.product-section__title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-black);
    margin-bottom: 30px;
    text-transform: none;
}

.product-section__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 19px;
}

.product-section__item {
    display: flex;
    flex-direction: column;
}

/* Card wrapper — holds image, ATC button, info */
.product-section__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image link */
.product-section__link {
    display: block;
    text-decoration: none;
}

.product-section__card:hover .product-section__img {
    transform: scale(1.03);
}

.product-section__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f4f4f4;
}

.product-section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

/* ATC button — hidden until card hover */
.product-section__atc {
    opacity: 0;
    pointer-events: none;
}

.product-section__card:hover .product-section__atc {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Loading state */
.product-section__atc.is-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

/* Added state */
.product-section__atc.is-added {
    background-color: #1a7a1a;
}

/* Hide WooCommerce "View cart" link injected by wc-add-to-cart.js */
a.added_to_cart.wc-forward {
    display: none !important;
}

/* Info row */
.product-section__info-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 15px;
}

.product-section__name {
    font-size: 25px;
    font-weight: 700;
    color: var(--color-black);
}

.product-section__price,
.product-section__price .woocommerce-Price-amount,
.product-section__price .price {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-red);
    white-space: nowrap;
}

/* Hide WooCommerce's default sale badge inside our grid */
.product-section__item .onsale {
    display: none;
}

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker-wrap {
    background-color: var(--color-red);
    overflow: hidden;
    white-space: nowrap;
    padding-block: 3px;
    position: relative;
}

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none !important;
    }
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 28s linear infinite;
    will-change: transform;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.3333%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding-inline: 25px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    white-space: nowrap;
}

.ticker-heart {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-heart svg {
    width: clamp(14px, 1.5vw, 20px);
    height: auto;
    display: block;
}

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    color: var(--color-white);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
    padding: 0 15px;
    background-color: var(--color-red);
    border-radius: var(--block-radius);
}

/* Left — phone */
.header-left {
    flex: 1;
}

.header-phone {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    border-bottom: 1px solid var(--color-white);
}

.header-phone svg {
    display: none;
}

.header-phone:hover {
    border: none;
}

/* Center — logo */
.header-center {
    flex: 0 0 auto;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo:hover {
    opacity: 0.85;
}

.header-logo span {
    display: block;
}

/* Right — lang + heart + burger */
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

/* Language switcher dropdown */
.header-lang-dropdown {
    position: relative;
}

.lang-current {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    padding: 0;
    line-height: 1;
}

.lang-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.header-lang-dropdown.is-open .lang-chevron {
    transform: rotate(180deg);
}

.lang-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    min-width: 60px;
    z-index: 200;
}

.header-lang-dropdown.is-open .lang-list {
    display: block;
}

.lang-list li a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark, #1a1a1a);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.lang-list li a:hover {
    background: rgba(0,0,0,.06);
}

.header-lang-static {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
}

/* Heart — cart button */
.header-heart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.header-heart svg {
    width: 19px;
    height: auto;
    display: block;
}

.header-cart-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-65%, -50%);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-red);
    line-height: 1;
    pointer-events: none;
}

/* Burger button */
.header-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Burger open state */
.header-burger[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header-burger[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}
.header-burger[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Primary nav drawer */
.primary-nav {
    background-color: var(--color-red);
    padding: 24px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.primary-nav[hidden] {
    display: none;
}

.primary-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.primary-menu-list > li > a {
    display: block;
    padding: 14px 0;
    font-size: 28px;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: -0.01em;
    text-transform: lowercase;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: opacity 0.2s;
}

.primary-menu-list > li:last-child > a {
    border-bottom: none;
}

.primary-menu-list > li > a:hover {
    opacity: 0.75;
}

/* Sub-menu */
.primary-menu-list .sub-menu {
    list-style: none;
    padding-left: 20px;
}

.primary-menu-list .sub-menu a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    transition: opacity 0.2s;
}

.primary-menu-list .sub-menu a:hover {
    opacity: 1;
}

.site-content {
    padding-top: 20px;
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section {
    padding-top: 100px;
}

.events-section__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 24px;
    line-height: 1.1;
}

.events-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.events-section__card {
    display: flex;
    flex-direction: column;
}

.events-section__card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
}

.events-section__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    border-radius: 9px;
}

.events-section__card:hover .events-section__card-img img {
    transform: scale(1.03);
}

.events-section__card-name {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-black);
    line-height: 1.3;
}

.events-section__card-date {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-red);
    text-transform: uppercase;
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-section {
    padding: 0 30px;
    max-width: 1241px;
    margin: 0 auto;
}

.story-section__inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 240px;
    margin-top: 75px;
    padding-bottom: 35px;
}

.story-section__deco {
    position: absolute;
}

.story-section__deco--left {
    left: 0;
    top: 0;
}

.story-section__deco--right {
    right: 0;
    bottom: 0;
}

.story-section__text {
    margin: 0 auto;
    padding-left: 200px;
    padding-right: 200px;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--color-black);
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
    position: relative;
    line-height: 0;
    margin-top: 60px;
}

.map-section__picture {
    display: block;
    width: 100%;
}

.map-section__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.map-section__content {
    position: absolute;
    bottom: 20px;
    left: 50px;
    z-index: 1;
}

.map-section__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-red);
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
}

.map-section__cta:hover,
.map-section__cta:focus-visible {
    opacity: 0.85;
    outline: none;
}

.map-section__cta .arrow {
    position: relative;
    top: -2px;
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ============================================================ */

/* Page wrapper */
.sp-page {
    padding-top: 100px;
    padding-bottom: 150px;
}

/* Breadcrumb */
.sp-breadcrumb .woocommerce-breadcrumb {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-black);
}
.sp-breadcrumb .woocommerce-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.sp-breadcrumb .woocommerce-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.sp-breadcrumb .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Two-column layout — gallery 55%, summary 45% */
.sp-layout {
    display: grid;
    grid-template-columns: 497px 1fr;
    gap: 20px 20px;
    align-items: start;
}

/* ---- Gallery ---- */
.sp-gallery .woocommerce-product-gallery {
    position: relative;
    width: 497px;
    margin: 0;
}
.sp-gallery .woocommerce-product-gallery__wrapper {
    border-radius: var(--block-radius);
    overflow: hidden;
    line-height: 0;
}
.sp-gallery .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.sp-gallery .woocommerce-product-gallery__trigger {
    display: none;
}
/* Thumbnails */
.sp-gallery .flex-control-nav {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}
.sp-gallery .flex-control-thumbs li {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}
.sp-gallery .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s;
    border-radius: 6px;
}
.sp-gallery .flex-control-thumbs img.flex-active,
.sp-gallery .flex-control-thumbs img:hover {
    opacity: 1;
}

/* ---- Summary ---- */
.sp-summary {
    padding-top: 4px;
}

/* Title */
.sp-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
    margin: 0 0 1px;
}

/* Price */
.sp-price p.price,
.sp-price span.price {
    font-size: 25px;
    font-weight: 400;
    color: var(--color-red);
    margin: 0 0 12px;
    display: block;
    line-height: 1;
}

.sp-price .woocommerce-Price-amount,
.sp-price .woocommerce-Price-amount bdi {
    color: var(--color-red);
}

.sp-price .woocommerce-Price-currencySymbol {
    font-size: 0.8em;
}

/* Short description */
.sp-description {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-black);
}

.sp-description p {
    margin: 0;
}

/* Add to cart form */
.sp-add-to-cart form.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
}

/* Quantity wrapper */
.sp-add-to-cart .qty-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 46px;
}

/* +/- buttons */
.sp-add-to-cart .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #E2E2E2;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--color-white);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: background 0.15s;
    flex-shrink: 0;
    border-radius: 3px;
}
.sp-add-to-cart .qty-btn:hover {
    background: #E6E6E6;
}

/* Qty input */
.sp-add-to-cart input.qty {
    width: 55px!important;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 32px;
    font-weight: 600;
    font-family: var(--font-primary);
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    color: var(--color-black);
}

.sp-add-to-cart input.qty::-webkit-inner-spin-button,
.sp-add-to-cart input.qty::-webkit-outer-spin-button {
    display: none;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-top: 3px solid var(--color-red);
    background: #fff8f8;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 3px;
    list-style: none;
}

/* General WC button style (cart page etc.) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-primary);
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover {
    opacity: 0.85;
    color: var(--color-white);
}

/* ============================================================
   FOOTER  — see footer.php + footer-specific styles below
   ============================================================ */
.site-footer {
    padding: 10px 40px;
    margin-top: 100px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-primary);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 10px;
}

.footer-logo img {
    width: 110px;
    height: 67px;
}

.footer-heart {
    flex-shrink: 0;
}

.footer-heart svg {
    width: 40px;
    height: 85px;
}

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 342px;
}

.footer-cta-btn {
    text-decoration: underline;
}

.footer-cta-btn .arrow {
    top:0;
}

.footer-bottom {
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-credit {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.footer-bottom-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.footer-bottom-links li a {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    transition: opacity 0.2s;
}

.footer-bottom-links li a:hover {
    opacity: 0.75;
}

/* ============================================================
   CART MODAL
   ============================================================ */

/* Prevent body scroll when modal is open */
body.cart-modal-open {
    overflow: hidden;
}

/* Full-page overlay */
.cart-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-white);
    height: 100%;
}

.cart-modal-overlay.is-open {
    display: flex;
    flex-direction: column;
}

/* Inner container */
.cart-modal {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 566px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* ---- Header row ---- */
.cart-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 33px 0 22px;

}

.cart-modal__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.cart-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    -webkit-tap-highlight-color: transparent;
}

/* ---- Divider ---- */
.cart-modal__divider {
    height: 1px;
    background: var(--color-black);
}

/* ---- Body / items ---- */
.cart-modal__body {
    flex: 1;
    height: 100%;
    overflow: auto;
    padding-top: 28px;
}

.cart-modal__items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ---- Single item row ---- */
.cart-modal__item {
    display: flex;
    gap: 18px;
    align-items: center;
}

.cart-modal__item-img {
    flex-shrink: 0;
    width: 231px;
    overflow: hidden;
}

.cart-modal__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-modal__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: -10px;
}

.cart-modal__item-name {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 35px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
}

.cart-modal__item-price {
    margin: 0 0 9px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-red);
}

.cart-modal__item-description {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
}

.cart-modal__item-meta {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #444;
    margin: 0 0 14px;
    line-height: 1.7;
}

/* ---- Qty control ---- */
.cart-modal__item-qty {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.cart-modal__qty-btn {
    width: 16px;
    height: 16px;
    background: #E2E2E2;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-primary);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    border: none;
    border-radius: 3px;
}

.cart-modal__qty-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.cart-modal__qty-num {
    min-width: 40px;
    height: 28px;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-black);
    background: var(--color-white);
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}

/* ---- Loading / empty states ---- */
.cart-modal__loading,
.cart-modal__empty {
    font-family: var(--font-primary);
    font-size: 15px;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* ---- Footer / checkout ---- */
.cart-modal__footer {
    padding: 28px 0 24px;
    margin-top: auto;
}

.cart-modal__checkout-btn {
    width: 100%;
    border-radius: 9px;
}


/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.aa-checkout-form {
    margin: 0 auto;
    padding: 100px 0 80px;
    font-family: var(--font-primary);
}

.aa-checkout-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 30px;
    align-items: start;
}

.aa-checkout-col--items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.aa-checkout-col--form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-grid__item {
    display: flex;
    gap: 18px;
    align-items: center;
}

.checkout-grid__item-img {
    flex-shrink: 0;
    width: 231px;
    overflow: hidden;
}

.checkout-grid__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-grid__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: -10px;
}

.checkout-grid__item-name {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 35px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
}

.checkout-grid__item-price {
    margin: 0 0 9px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-red);
}

.checkout-grid__item-description {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
}

.checkout-grid__item-meta {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #444;
    margin: 0 0 14px;
    line-height: 1.7;
}

.checkout-grid__item-qty {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.checkout-grid__qty-btn {
    width: 16px;
    height: 16px;
    background: #E2E2E2;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-primary);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    border: none;
    border-radius: 3px;
}

.checkout-grid__qty-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.checkout-grid__qty-num {
    min-width: 40px;
    height: 28px;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-black);
    background: var(--color-white);
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────
   BILLING FIELD LAYOUT
───────────────────────────────────────── */

/* Hide the "Billing details" h3 heading */
.aa-checkout-form .woocommerce-billing-fields > h3,
.aa-checkout-form .woocommerce-additional-fields > h3,
.aa-checkout-form #order_review_heading {
    display: none;
}

/* Grid layout for the fields wrapper */
.aa-checkout-form .woocommerce-billing-fields__field-wrapper,
.aa-checkout-form .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 23px 12px;
}

/* All rows span full 3 columns by default — reset WC floats */
.aa-checkout-form .form-row {
    grid-column: 1 / -1;
    width: 100%;
    float: none;
    clear: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* Three-column row (SCARA / ETAJ / AP) — one column each */
.aa-checkout-form .form-row.aa-field-third {
    grid-column: span 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Hide field labels — placeholder serves as label */
.aa-checkout-form .form-row label,
.aa-checkout-form .form-row > label {
    display: none;
}

/* ─────────────────────────────────────────
   CUSTOMER TYPE TOGGLE (fizică / juridică)
───────────────────────────────────────── */

/* Initially hide juridica-only fields */
.aa-checkout-form .aa-juridica-field {
    display: none;
}

/* Override the global label-hide for radio option labels */
.aa-checkout-form .aa-tip-client-field label {
    display: flex !important;
}

/* Wrapper ul → horizontal flex row */
.aa-checkout-form .aa-tip-client-field .woocommerce-input-wrapper ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 28px;
    align-items: center;
    min-height: 60px;
}

.aa-checkout-form .aa-tip-client-field .woocommerce-input-wrapper ul li {
    display: flex;
    align-items: center;
}

/* Hide native radio but keep it in flow for :checked selector */
.aa-checkout-form .aa-tip-client-field input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Label = custom radio circle + text */
.aa-checkout-form .aa-tip-client-field label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    user-select: none;
    transition: color 0.15s;
    padding: 4px 0;
}

/* Circle via ::before */
.aa-checkout-form .aa-tip-client-field label::before {
    content: '';
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

/* Checked state */
.aa-checkout-form .aa-tip-client-field input[type="radio"]:checked + label {
    color: var(--color-black) !important;
}

.aa-checkout-form .aa-tip-client-field input[type="radio"]:checked + label::before {
    border-color: var(--color-black);
    box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 10px var(--color-black);
}

/* Required star — hidden */
.aa-checkout-form .required {
    display: none;
}

/* Input wrapper — full width */
.aa-checkout-form .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* ─────────────────────────────────────────
   INPUT / TEXTAREA STYLING
───────────────────────────────────────── */
.aa-checkout-form input.input-text,
.aa-checkout-form input[type="text"],
.aa-checkout-form input[type="tel"],
.aa-checkout-form input[type="email"],
.aa-checkout-form input[type="number"],
.aa-checkout-form input[type="password"],
.aa-checkout-form select,
.aa-checkout-form textarea {
    width: 100% !important;
    height: 60px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 9px !important;
    padding: 0 17px !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    color: var(--color-black) !important;
    background: var(--color-white) !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 60px !important;
    display: block !important;
}

.aa-checkout-form textarea {
    height: auto !important;
    min-height: 120px !important;
    padding: 14px 16px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
}

.aa-checkout-form input.input-text::placeholder,
.aa-checkout-form input[type="text"]::placeholder,
.aa-checkout-form input[type="tel"]::placeholder,
.aa-checkout-form input[type="email"]::placeholder,
.aa-checkout-form input[type="number"]::placeholder,
.aa-checkout-form input[type="password"]::placeholder,
.aa-checkout-form textarea::placeholder {
    color: #bbb !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    font-family: var(--font-primary) !important;
    opacity: 1 !important;
}

.aa-checkout-form input.input-text:focus,
.aa-checkout-form input[type="text"]:focus,
.aa-checkout-form input[type="tel"]:focus,
.aa-checkout-form input[type="email"]:focus,
.aa-checkout-form input[type="number"]:focus,
.aa-checkout-form input[type="password"]:focus,
.aa-checkout-form select:focus,
.aa-checkout-form textarea:focus {
    border-color: var(--color-red) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Validation error highlight */
.aa-checkout-form .form-row.woocommerce-invalid input.input-text,
.aa-checkout-form .form-row.woocommerce-invalid input[type="text"],
.aa-checkout-form .form-row.woocommerce-invalid input[type="tel"],
.aa-checkout-form .form-row.woocommerce-invalid input[type="email"],
.aa-checkout-form .form-row.woocommerce-invalid textarea {
    border-color: var(--color-red) !important;
}

/* ─────────────────────────────────────────
   PAYMENT METHODS
───────────────────────────────────────── */
#payment.woocommerce-checkout-payment {
    margin-top: 12px;
}

#payment ul.wc_payment_methods {
    list-style: none!important;
    padding: 0!important;
    margin: 0!important;
    border: none!important;
}

#payment ul.wc_payment_methods li.wc_payment_method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    height: 60px;
    padding: 0 16px;
    border: 1px solid #d9d9d9 !important;
    cursor: pointer;
    background: var(--color-white);
    transition: background 0.15s;
    border-radius: 9px;
    margin-bottom: 23px;
}

/* Custom radio circle */
#payment ul.wc_payment_methods input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
    margin: 0 17px 0 0 !important;
    position: relative;
}

#payment ul.wc_payment_methods input[type="radio"]:checked {
    border-color: #d9d9d9;
    background: radial-gradient(circle, #d9d9d9 45%, transparent 45%);
}

/* Payment label */
#payment ul.wc_payment_methods label {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d9d9d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin: 0;
    padding: 0;
}

/* Payment icons */
#payment ul.wc_payment_methods label img {
    width: auto;
    height: 30px;
    padding: 10px 4px !important;
    margin: 0 !important;
    vertical-align: middle;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

/* Payment description/fields box */
#payment .payment_box {
    width: 100%;
    flex: 0 0 100%;
    padding: 10px 0 4px 30px;
    font-size: 12px;
    color: #666;
    font-family: var(--font-primary);
}

#add_payment_method #payment, 
.woocommerce-cart #payment, 
.woocommerce-checkout #payment {
    background-color: transparent;
}

/* ─────────────────────────────────────────
   PLACE ORDER BUTTON  ("CHECKOUT")
───────────────────────────────────────── */
.aa-checkout-form .form-row.place-order {
    padding: 0;
    margin: 0;
    float: none;
    width: 100%;
}

.aa-place-order-btn,
button#place_order {
    display: block;
    width: 100%;
    background: var(--color-red) !important;
    color: var(--color-white) !important;
    text-align: center;
    font-family: var(--font-primary) !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    padding: 5px 24px !important;
    border: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    border-radius: 9px;
}

.aa-place-order-btn:hover,
button#place_order:hover {
    opacity: 0.88;
}

/* Loading spinner state */
button#place_order.disabled,
button#place_order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─────────────────────────────────────────
   WC NOTICES on checkout
───────────────────────────────────────── */
.aa-checkout-form .woocommerce-NoticeGroup {
    margin-bottom: 20px;
}

.aa-checkout-form .woocommerce-error,
.aa-checkout-form .woocommerce-message,
.aa-checkout-form .woocommerce-info {
    font-family: var(--font-primary);
    font-size: 13px;
}

/* ============================================================
   HIDE WOOCOMMERCE PRIVACY POLICY TEXT
   ============================================================ */
.payment_box,
.woocommerce-privacy-policy-text {
    display: none !important;
}

/* ============================================================
   MAIB PAYMENT ICONS — sprite blocks
   ============================================================ */
.aa-payment-icons {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    vertical-align: middle;
    margin-left: 8px;
}

.aa-payment-icon {
    display: inline-block;
    height: 30px;
    background-repeat: no-repeat;
    background-size: 220px 20px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    background-color: #fff;
}

.aa-thankyou-banner {
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 37px 33px;
    border-radius: 7px;
}



/* ============================================================
   HEADER — account icon
   ============================================================ */
.header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    text-decoration: none;
    flex-shrink: 0;
}
.header-account svg {
    display: block;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.aa-contact-page {
    padding-bottom: 80px;
}

/* Map embed */
.aa-contact-map {
    width: 100%;
    height: 420px;
    background: #f0f0f0;
    overflow: hidden;
}

.aa-contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Two-column grid */
.aa-contact-container {
    padding-top: 56px;
}

.aa-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left: info */
.aa-contact-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.aa-contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aa-contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aa-contact-detail__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
}

.aa-contact-detail__value {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.15s;
}

.aa-contact-detail__value:hover {
    color: var(--color-red);
}

/* Right: form */
.aa-contact-form-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.aa-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aa-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
    padding-top: 12px;
    padding-bottom: 12px;
}

.aa-contact-submit {
    width: 100%;
}

/* Notice */
.aa-contact-notice {
    padding: 12px 16px;
    border-radius: var(--block-radius);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.aa-contact-notice--success {
    background: #f0fff4;
    border-left: 3px solid #2e7d32;
    color: #2e7d32;
}

.aa-contact-notice--error {
    background: #fff0f0;
    border-left: 3px solid var(--color-red);
    color: #c00;
}

/* Responsive */
@media ( max-width: 768px ) {
    .aa-contact-map {
        height: 280px;
    }

    .aa-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .aa-contact-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

/* ============================================================
   MY ACCOUNT — login / register page
   ============================================================ */
.aa-account-page {
    max-width: 480px !important;
    margin: 0 auto;
    padding: 40px 0 80px;
    background: var(--color-white);
    min-height: 60vh;
}

/* Tab switcher */
.aa-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid #e2e2e2;
}

.aa-auth-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s, border-color 0.2s;
}

.aa-auth-tab--active {
    color: var(--color-black);
    border-bottom-color: var(--color-red);
}

/* Panels */
.aa-auth-panel {
    display: none;
}
.aa-auth-panel--active {
    display: block;
}

/* Form */
.aa-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aa-form-row {
    display: flex;
    flex-direction: column;
}

.aa-input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #d4d4d4;
    padding: 12px 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-black);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
}

.aa-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.aa-input:focus {
    border-bottom-color: var(--color-black);
}

.aa-input.woocommerce-invalid-required-field,
.aa-input.woocommerce-invalid {
    border-bottom-color: var(--color-red);
}

.aa-form-row--actions {
    margin-top: 10px;
}

.aa-form-submit {
    width: 100%;
}

.aa-lost-password {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.aa-lost-password a {
    color: var(--color-black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* WC notices inside account page */
.aa-account-page .woocommerce-error,
.aa-account-page .woocommerce-message,
.aa-account-page .woocommerce-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--block-radius);
    font-size: 13px;
    list-style: none;
}

.aa-account-page .woocommerce-error {
    background: #fff0f0;
    border-left: 3px solid var(--color-red);
    color: #c00;
}

.aa-account-page .woocommerce-message {
    background: #f0fff4;
    border-left: 3px solid #2e7d32;
    color: #2e7d32;
}

/* ============================================================
   MY ACCOUNT — dashboard layout (logged-in)
   ============================================================ */
.woocommerce-MyAccount-content {
    width: 100%;
}

/* Wrapper added by WC's my-account.php: sidebar + content */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0 80px;
}

/* Navigation sidebar */
.aa-myaccount-nav {
    flex: 0 0 200px;
    min-width: 160px;
}

.aa-myaccount-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aa-myaccount-nav__item a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #666;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.aa-myaccount-nav__item a:hover,
.aa-myaccount-nav__item.is-active a,
.aa-myaccount-nav__item a[aria-current="page"] {
    background: var(--color-black);
    color: var(--color-white);
}

.aa-myaccount-nav__item.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: var(--color-red);
    color: var(--color-white);
}

/* Dashboard text */
.aa-myaccount-dashboard {
    font-size: 14px;
    line-height: 1.7;
}

.aa-myaccount-welcome {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.aa-myaccount-dashboard a {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   MY ACCOUNT — orders table
   ============================================================ */
.aa-orders-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.aa-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.aa-orders-table thead tr {
    border-bottom: 2px solid var(--color-black);
}

.aa-orders-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 11px;
    color: #888;
}

.aa-orders-table__row {
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

.aa-orders-table__row:hover {
    background: #fafafa;
}

.aa-orders-table__cell {
    padding: 14px 14px;
    vertical-align: middle;
}

.aa-orders-table__cell--order-number a {
    font-weight: 700;
    color: var(--color-black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Status badge */
.aa-order-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f0f0f0;
    color: #555;
}

.aa-order-status--completed   { background: #e8f5e9; color: #2e7d32; }
.aa-order-status--processing  { background: #fff3e0; color: #e65100; }
.aa-order-status--pending     { background: #fce4ec; color: #c62828; }
.aa-order-status--on-hold     { background: #e3f2fd; color: #1565c0; }
.aa-order-status--cancelled   { background: #f3e5f5; color: #6a1b9a; }
.aa-order-status--refunded    { background: #f5f5f5; color: #777; }
.aa-order-status--failed      { background: #ffebee; color: #b71c1c; }

.aa-order-action-btn {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px solid var(--color-black);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-right: 4px;
}

.aa-order-action-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.aa-orders-empty {
    font-size: 15px;
    color: #888;
    padding: 30px 0;
}

.aa-orders-empty a {
    color: var(--color-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aa-orders-pagination {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.aa-orders-pagination__btn {
    padding: 8px 18px;
    border: 1.5px solid var(--color-black);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.aa-orders-pagination__btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ============================================================
   MY ACCOUNT — edit account / edit address forms
   ============================================================ */
.woocommerce-MyAccount-content .woocommerce-form-row input,
.woocommerce-MyAccount-content .woocommerce-Input,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"] {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #d4d4d4;
    padding: 10px 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
}

.woocommerce-MyAccount-content .woocommerce-form-row input:focus,
.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="tel"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus {
    border-bottom-color: var(--color-black);
}

.woocommerce-MyAccount-content .woocommerce-form-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 3px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: 14px;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
    background: var(--color-red);
}

/* Responsive — stack nav above content on mobile */
@media ( max-width: 768px ) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0 60px;
    }

    .aa-myaccount-nav {
        flex: none;
        width: 100%;
    }

    .aa-myaccount-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .aa-myaccount-nav__item a {
        padding: 7px 10px;
        font-size: 11px;
    }

    .aa-orders-table th {
        display: none;
    }

    .aa-orders-table__cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: none;
    }

    .aa-orders-table__cell::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #888;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .aa-orders-table__row {
        display: block;
        border-bottom: 1.5px solid #eee;
        padding: 12px 0;
    }
}

/* ============================================================
   ADD-TO-CART TOAST NOTIFICATION
   ============================================================ */
.aa-cart-toast {
    position: fixed;
    top: 80px;
    right: max(24px, calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-left: 4px solid var(--color-red);
    border-radius: 8px;
    padding: 14px 18px;
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.aa-cart-toast--visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.aa-cart-toast__img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.aa-cart-toast__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.aa-cart-toast__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-red);
}

.aa-cart-toast__name {
    font-size: 13px;
    color: #111;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
    .aa-cart-toast {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ============================================================
   CATEGORY LINKS GRID (front page 2x2 block)
   ============================================================ */
.aa-cat-links-section {
    padding-top: 100px;
}

.aa-cat-links-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
}

.aa-cat-links-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
     background: var(--color-red);
    border-radius: var(--block-radius);
    text-decoration: none;
    transition: background 0.2s;
}

.aa-cat-links-card:hover {
    background: var(--color-black);
}

.aa-cat-links-label {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1;
}

@media (max-width: 799px) {
    .aa-cat-links-grid {
        gap: 12px;
    }

    .aa-cat-links-card {
        min-height: 120px;
    }

    .aa-cat-links-label {
        font-size: 26px;
    }
}

/* ============================================================
   FRANCHISE SECTION BANNER
   ============================================================ */
.aa-franchise-section {
    padding-top: 100px;
}

.aa-franchise-banner {
    display: block;
    width: 100%;
    border-radius: var(--block-radius);
    overflow: hidden;
    transition: opacity 0.2s;
}

.aa-franchise-banner:hover {
    opacity: 0.9;
}

.aa-franchise-banner__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ── Gift checkbox on checkout ─────────────────────────────── */
.aa-is-gift-checkbox-field label.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-black);
    padding: 4px 0;
}

.aa-is-gift-checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--color-red);
    cursor: pointer;
}

/* Conditional gift fields — hidden until JS shows them */
.aa-gift-field {
    display: none;
}

@media (max-width: 1024px) {
    .sp-add-to-cart .single_add_to_cart_button,
    .sp-add-to-cart .single_add_to_cart_button.button,
    .woocommerce .sp-add-to-cart button.single_add_to_cart_button,
    .woocommerce .sp-add-to-cart .button,
    .btn-main--md {
        font-size: 14px;
    }

    .site-header {
        top: 15px;
    }

    .header-inner {
        height: 38px;
        border-radius: 6px;
    }

    .header-phone {
        font-size: 13px;
    }

    .header-logo img {
        width: 45px;
        height: 27px;
    }

    .lang-current {
        font-size: 13px;
    }

    .header-right {
        gap: 14px;
    }

    .header-heart svg {
        width: 12px;
    }

    .header-cart-count {
        font-size: 9px;
        transform: translate(-95%, -50%);
    }

    .site-content {
        padding-top: 10px;
    }

    .aa-container {
        padding-inline: 20px;
    }

    .aa-container2 {
        max-width: 695px;
    }

    .ticker-wrap {
        padding-top: 0;
        padding-bottom: 0;
    }

    .ticker-item {
        gap: 15px;
        padding-inline: 15px;
        font-size: 10px;
    }

    .ticker-heart {
        width: 8px;
        height: 17px;
    }

    .product-section__title {
        font-size: 31px;
        margin-bottom: 20px;
    }

    .product-section__grid {
        row-gap: 20px;
        column-gap: 12px;
    }

    .product-section__info-link {
        padding-top: 10px;
    }

    .product-section__name {
        font-size: 16px;
    }

    .product-section__price,
    .product-section__price .woocommerce-Price-amount,
    .product-section__price .price {
        font-size: 13px;
    }

    .events-section__grid {
        gap: 12px;
    }

    .events-section__card-name {
        margin-top: 10px;
        font-size: 16px;
    }

    .events-section__card-date {
        margin-top: 1px;
        font-size: 12px;
    }

    .story-section__inner {
        height: 150px;
        padding-bottom: 25px;
    }

    .story-section__deco--left img {
        width: 115px;
        height: auto;
    }

    .story-section__deco--right img {
        width: 82px;
        height: auto;
    }

    .story-section__text {
        padding-left: 115px;
        padding-right: 115px;
        font-size: 31px;
    }

    .map-section {
        margin-top: 30px;
    }

    .map-section__content {
        bottom: 12px;
        left: 32px;
    }

    .menu-category-section__title {
        margin-bottom: 18px;
        font-size: 31px;
    }

    .sp-page {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .sp-breadcrumb .woocommerce-breadcrumb {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .sp-layout {
        grid-template-columns: 310px 1fr;
        gap: 12px;
    }

    .sp-gallery .woocommerce-product-gallery {
        width: 310px;
    }

    .sp-title {
        font-size: 31px;
    }

    .sp-price p.price,
    .sp-price span.price {
        font-size: 16px;
        margin: 0 0 7px;
    }

    .sp-description {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .sp-add-to-cart input.qty {
        width: 35px!important;
        font-size: 21px;
    }

    .sp-add-to-cart form.cart {
        gap: 7px;
    }

    .aa-checkout-grid {
        grid-template-columns: 300px 1fr;
        gap: 18px;
    }

    .checkout-grid__item {
        gap: 12px;
    }

    .checkout-grid__item-img {
        width: 144px;
    }

    .checkout-grid__item-name {
        font-size: 22px;
    }

    .checkout-grid__item-price {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .checkout-grid__item-description {
        font-size: 10px;
    }

    .checkout-grid__qty-num {
        font-size: 14px;
    }

    .checkout-grid__qty-num {
        min-width: 30px;
    }

    .aa-checkout-form input.input-text,
    .aa-checkout-form input[type="text"],
    .aa-checkout-form input[type="tel"],
    .aa-checkout-form input[type="email"],
    .aa-checkout-form input[type="number"],
    .aa-checkout-form input[type="password"],
    .aa-checkout-form select,
    .aa-checkout-form textarea {
        height: 38px !important;
        border-radius: 6px !important;
        padding: 0 12px !important;
        font-size: 8px !important;
        line-height: 38px !important;
    }

    .aa-checkout-form textarea {
        min-height: 70px !important;
        padding: 10px 12px !important;
    }

    .aa-checkout-form input.input-text::placeholder,
    .aa-checkout-form input[type="text"]::placeholder,
    .aa-checkout-form input[type="tel"]::placeholder,
    .aa-checkout-form input[type="email"]::placeholder,
    .aa-checkout-form input[type="number"]::placeholder,
    .aa-checkout-form input[type="password"]::placeholder,
    .aa-checkout-form textarea::placeholder {
        font-size: 8px !important;
    }

    .aa-place-order-btn,
    button#place_order {
        font-size: 16px !important;
        padding: 3px 24px !important;
        margin-top: 18px;
        border-radius: 6px;
    }

    .cart-modal {
        max-width: 376px;
    }

    .cart-modal__header {
        padding: 20px 0 14px;
    }

    .cart-modal__title {
        font-size: 23px;
    }

    .cart-modal__item-img {
        width: 144px;
    }

    .cart-modal__item-name {
        font-size: 22px;
    }

    .cart-modal__item-price {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .cart-modal__item-description {
        font-size: 10px;
    }

    .cart-modal__qty-num {
        min-width: 30px;
        font-size: 14px;
    }

    .site-footer {
        padding: 10px 0;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .footer-bottom-links {
        gap: 24px;
    }
}

@media (max-width: 799px) {
    :root {
        --container-pad: 20px;
    }

    .sp-add-to-cart .single_add_to_cart_button,
    .sp-add-to-cart .single_add_to_cart_button.button,
    .woocommerce .sp-add-to-cart button.single_add_to_cart_button,
    .woocommerce .sp-add-to-cart .button,
    .btn-main--md {
        font-size: 18px;
    }

    .aa-container .aa-container2 {
        padding-inline: 0;
    }

    .aa-container2,
    .aa-container {
        padding-inline: 9px;
    }

    .site-header {
        top: 12px;
    }

    .header-inner {
        position: relative;
        height: 61px;
        padding: 0 10px;
        border-radius: 9px;
    }

    .lang-current {
        font-size: 17px;
    }

    .header-right,
    .header-left {
        flex: initial;
    }

    .header-left {
        margin-left: 50px;
    }

    .header-phone span {
        display: none;
    }

    .header-phone svg {
        display: block;
    }

    .header-logo img {
        width: 76px;
        height: 46px;
    }

    .header-lang-dropdown {
        position: absolute;
        left: 13px;
    }

    .header-heart svg {
        width: 16px;
    }

    .header-cart-count {
        font-size: 11px;
        transform: translate(-95%, -50%);
    }

    .site-content {
        padding-top: 10px;
    }

    .hero-banner {
        height: auto;
    }

    .hero-banner__content {
        left: 12px;
        bottom: 17px;
    }

    .tagline-section {
        padding: 0 10px;
    }

    .ticker-item {
        gap: 13px;
        padding-left: 13px;
        padding-right: 0;
        font-size: 8px;
    }

    .product-section__grid {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 50px;
    }

    .product-section__name {
        font-size: 18px;
    }

    .product-section__price,
    .product-section__price .woocommerce-Price-amount,
    .product-section__price .price {
        font-size: 15px;
    }

    .events-section__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .events-section__card-name {
        font-size: 18px;
    }

    .events-section__card-date {
        font-size: 15px;
    }

    .story-section {
        padding: 0 10px;
    }

    .map-section__content {
        left: initial;
        right: 25px;
        bottom: 15px;
    }

    .story-section__inner {
        height: auto;
        margin-top: 100px;
        padding-bottom: 0;
    }

    .story-section__deco--left {
        top: -100px;
        right: -10px;
        left: initial;
    }

    .story-section__deco--left img {
        width: 150px;
    }

    .story-section__deco--right {
        display: none;
    }

    .story-section__text {
        padding: 0 50px 0 0;
        font-size: 35px;
        text-align: left;
        line-height: 1.1;
    }

    .menu-category-section__title {
        margin-bottom: 22px;
        font-size: 35px;
    }

    .sp-page {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .sp-breadcrumb .woocommerce-breadcrumb {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .sp-layout {
        grid-template-columns: 1fr;
    }

    .sp-gallery .woocommerce-product-gallery {
        width: 100%;
    }

    .sp-title {
        font-size: 36px;
    }

    .sp-price p.price,
    .sp-price span.price {
        font-size: 18px;
        margin: 0 0 9px;
    }

    .sp-description {
        font-size: 12px;
    }

    .aa-checkout-form .form-row.aa-field-third {
        grid-column: 1 / -1 !important;
    }

    .aa-checkout-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .aa-checkout-form {
        padding: 30px 0;
    }

    .aa-checkout-col--items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 9px;
    }

    .checkout-grid__item {
        flex-direction: column;
        gap: 0;
        width: calc(50% - 4.5px);
    }

    .checkout-grid__item-img {
        width: 100%;
    }

    .checkout-grid__item-info {
        width: 100%;
        margin-top: 18px;
    }

    .checkout-grid__item-name {
        font-size: 17px;
    }

    .checkout-grid__item-price {
        font-size: 14px;
    }

    .checkout-grid__item-description {
        font-size: 12px;
    }

    .checkout-grid__qty-num {
        min-width: 45px;
        font-size: 25px;
    }

    .aa-checkout-form input.input-text,
    .aa-checkout-form input[type="text"],
    .aa-checkout-form input[type="tel"],
    .aa-checkout-form input[type="email"],
    .aa-checkout-form input[type="number"],
    .aa-checkout-form input[type="password"],
    .aa-checkout-form select,
    .aa-checkout-form textarea {
        height: 60px !important;
        border-radius: 9px !important;
        padding: 0 17px !important;
        font-size: 12px !important;
        line-height: 60px !important;
    }

    .aa-checkout-form textarea {
        min-height: 114px !important;
        padding: 10px 17px !important;
    }

    .aa-checkout-form input.input-text::placeholder,
    .aa-checkout-form input[type="text"]::placeholder,
    .aa-checkout-form input[type="tel"]::placeholder,
    .aa-checkout-form input[type="email"]::placeholder,
    .aa-checkout-form input[type="number"]::placeholder,
    .aa-checkout-form input[type="password"]::placeholder,
    .aa-checkout-form textarea::placeholder {
        font-size: 12px !important;
    }

    .aa-place-order-btn,
    button#place_order {
        font-size: 23px !important;
        padding: 5px 24px !important;
        margin-top: 18px;
        border-radius: 9px;
        line-height: 1.4 !important;
    }

    .cart-modal {
        max-width: 100%;
        padding: 0 10px;
    }

    .cart-modal__header {
        padding: 23px 0 12px;
    }

    .cart-modal__title {
        font-size: 36px;
        line-height: 1.2;
    }

    .cart-modal__body {
        padding-top: 20px;
    }

    .cart-modal__item {
        flex-direction: column;
        gap: 18px;
    }

    .cart-modal__item-img {
        width: 100%;
    }

    .cart-modal__item-info {
        width: 100%;
        margin-top: 0;
    }

    .cart-modal__item-name {
        font-size: 35px;
    }

    .cart-modal__item-price {
        margin-bottom: 5px;
        font-size: 18px;
    }

    .cart-modal__item-description {
        font-size: 12px;
    }

    .cart-modal__qty-num {
        min-width: 30px;
        font-size: 28px;
    }

    .site-footer .aa-container {
        display: flex;
        flex-direction: column;
    }

    .site-footer {
        padding: 10px 22px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .footer-top {
        order: 1;
    }

    .footer-logo img {
        width: 178px;
        height: 108px;
    }

    .footer-cta {
        order: 3;
    }

    .footer-bottom {
        order: 2;
        margin-top: 0;
        margin-bottom: 55px;
    }

    .footer-bottom-credit {
        display: none;
    }

    .footer-bottom-links {
        display: block;
    }

    .footer-heart svg {
        width: 54px;
        height: 114px;
    }
}
