/* =========================================================
   NUAGE HOME - Components
   ========================================================= */

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: all var(--duration) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--sage);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(107, 123, 94, 0.4), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:hover {
    background: var(--sage-dark);
    box-shadow: 0 8px 28px rgba(107, 123, 94, 0.52);
}
@media (hover: hover) {
    .btn-primary:hover { transform: translateY(-2px); }
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
}

.btn-luxury {
    background: var(--white);
    color: var(--charcoal);
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 18px 48px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-luxury:hover {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
    transform: none;
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(184, 151, 90, 0.45), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, #deb96a 100%);
    box-shadow: 0 8px 28px rgba(184, 151, 90, 0.52);
}
@media (hover: hover) {
    .btn-gold:hover { transform: translateY(-2px); }
}

.btn-sm {
    padding: 11px 24px;
    font-size: 0.72rem;
    font-weight: 600;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ---- PRODUCT CARD ---- */
.product-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}
@media (hover: hover) {
    .product-card:hover { transform: translateY(-6px); }
}

.product-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    background: var(--sand);
}

.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}

.product-card:hover .product-card__img-wrap img {
    transform: scale(1.04);
}

.product-card__badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-sale {
    background: var(--terracotta);
    color: var(--white);
}

.badge-new {
    background: var(--sage);
    color: var(--white);
}

.badge-bestseller {
    background: var(--gold);
    color: var(--white);
}

.product-card__quick-add {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
    z-index: 2;
}

.product-card:hover .product-card__quick-add {
    opacity: 1;
    transform: translateY(0);
}

/* Touch - always visible on mobile */
@media (max-width: 767px) {
    .product-card__quick-add {
        opacity: 1;
        transform: none;
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 0 var(--space-md) var(--space-md);
    }
}

.product-card__info {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-card__category {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
}

.product-card__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.3;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.price-sale {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--terracotta);
    font-weight: 500;
}

.price-original {
    font-size: 0.85rem;
    color: var(--stone-light);
    text-decoration: line-through;
}

.price-regular {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--charcoal);
}

/* ---- CATEGORY CARD ---- */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 60%);
    transition: opacity var(--duration);
}

.category-card:hover .category-card__overlay {
    opacity: 0.8;
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    color: var(--white);
}

.category-card__name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
}

.category-card__count {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 2px;
}

.category-card__arrow {
    display: inline-flex;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--duration) var(--ease-out);
}

.category-card:hover .category-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- TRUST BADGE STRIP ---- */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg) var(--space-xl);
    padding: var(--space-lg) 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--stone);
}

.trust-badge__icon {
    font-size: 1.3rem;
}

/* ---- TESTIMONIAL CARD ---- */
.testimonial-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}

.testimonial-card__stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.testimonial-card__text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.testimonial-card__author {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
}

.testimonial-card__product {
    font-size: 0.72rem;
    color: var(--sage);
    margin-top: 2px;
}

/* ---- QUOTE MARK ---- */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    right: var(--space-xl);
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--sage-pale);
    line-height: 1;
    pointer-events: none;
}

/* ---- SECTION HEADER ---- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header .label {
    color: var(--sage);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-header h2 {
    color: var(--charcoal);
}

.section-header p {
    color: var(--stone);
    max-width: 520px;
    margin: var(--space-md) auto 0;
    font-size: 0.95rem;
}

/* ---- TICKER / MARQUEE ---- */
.ticker-wrap {
    overflow: hidden;
    background: var(--sage);
    color: var(--white);
    padding: 10px 0;
}

.ticker-track {
    display: flex;
    gap: var(--space-2xl);
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.ticker-item::after {
    content: '✦';
    opacity: 0.5;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---- OVERLAY & MODAL BASE ---- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration);
    backdrop-filter: blur(2px);
}

.overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ---- INPUT FIELD ---- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
}

.field input,
.field select,
.field textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-md);
    background: var(--warm-white);
    color: var(--charcoal);
    font-size: 0.9rem;
    transition: border-color var(--duration-fast);
    appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--sage);
}

/* ---- DIVIDER ---- */
.divider {
    height: 1px;
    background: var(--sand);
    margin: var(--space-xl) 0;
}

/* ---- ACCORDION ---- */
.accordion-item {
    border-bottom: 1px solid var(--stone-light);
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: none;
    cursor: pointer;
    text-align: left;
}

.accordion-trigger .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sand);
    font-size: 0.9rem;
    transition: transform var(--duration);
}

.accordion-trigger.is-open .icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--ease-out);
}

.accordion-body-inner {
    padding-bottom: var(--space-lg);
    font-size: 0.9rem;
    color: var(--stone);
    line-height: 1.7;
}

/* ---- STARS ---- */
.stars {
    display: inline-flex;
    color: var(--gold);
    font-size: 0.875rem;
}

/* ---- TOAST NOTIFICATION ---- */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--charcoal);
    color: var(--white);
    padding: 14px var(--space-lg);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 300ms var(--ease-out);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
    .toast { bottom: 84px; }
}

/* ---- STICKY MOBILE ATC ---- */
.mobile-atc-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: var(--warm-white);
    border-top: 1px solid var(--sand);
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .mobile-atc-bar {
        display: flex;
        gap: var(--space-md);
        align-items: center;
    }
}

.mobile-atc-bar__price {
    flex: 1;
}

.mobile-atc-bar__price .price-sale {
    font-size: 1.2rem;
}

/* ---- FLOATING WHATSAPP ---- */
.whatsapp-float {
    position: fixed;
    bottom: max(var(--space-xl), env(safe-area-inset-bottom, 24px));
    right: var(--space-lg);
    z-index: 850;
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 90px;
        /* above mobile ATC bar */
    }
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
}

.whatsapp-float a:hover {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
@media (hover: hover) {
    .whatsapp-float a:hover { transform: scale(1.1); }
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}