/* Explain: Styles for various UI components including buttons, cards, and forms. */
/* ===== Header, brand and icon buttons ===== */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.96), rgba(250, 249, 246, 0.8));
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 300ms ease;
}

.brand:hover {
    opacity: 0.75;
}

.brand__name {
    color: var(--primary-color);
    font-family: var(--font-logo);
    font-size: clamp(1.05rem, 3.1vw, 1.6rem);
    line-height: 1.3;
}

.brand__sub {
    margin-top: 0.1rem;
    color: var(--gold-dark);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--nav-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    transition: all 300ms ease;
}

.icon-btn:hover {
    background: var(--surface-color);
    color: var(--gold-dark);
    border-color: var(--gold-color);
}

.cart-count {
    position: absolute;
    top: -0.25rem;
    inset-inline-start: -0.25rem;
    display: none;
    min-width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--background-color);
    border-radius: 999px;
    background: var(--gold-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.3rem;
}

.cart-count.is-visible {
    display: inline-flex;
}

/* ===== Overlays: nav drawer, cart drawer, search sheet ===== */
.overlay-shell {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.overlay-shell.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 32, 24, 0.45);
    backdrop-filter: blur(6px);
}

.overlay-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    display: flex;
    width: min(92vw, 24rem);
    flex-direction: column;
    overflow-y: auto;
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.24);
    transform: translateX(100%);
    transition: transform 320ms ease;
}

.overlay-shell.is-open .overlay-panel {
    transform: translateX(0);
}

.nav-link {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 300ms ease, color 300ms ease;
}

.nav-link:hover {
    background: var(--surface-color);
    color: var(--gold-dark);
}

.nav-link i {
    color: var(--gold-dark);
    font-size: 0.9rem;
}

.search-panel {
    position: absolute;
    inset-inline: 0;
    top: 0;
    width: min(100%, 46rem);
    max-height: 92vh;
    margin: 0 auto;
    overflow-y: auto;
    border-radius: 0 0 2rem 2rem;
    background: var(--background-color);
    padding: 1.5rem;
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.2);
    transform: translateY(-100%);
    transition: transform 320ms ease;
}

.overlay-shell.is-open .search-panel {
    transform: translateY(0);
}

.toast-note {
    position: fixed;
    top: 5.5rem;
    inset-inline: 1rem;
    z-index: 110;
    width: fit-content;
    max-width: 90vw;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--primary-color);
    padding: 0.75rem 1.4rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.toast-note.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wa-float {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 50;
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-color);
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, background 300ms ease;
}

.wa-float:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

/* ===== Typography accents ===== */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 1px;
    background: var(--gold-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.9), rgba(255, 255, 255, 0.6));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

/* ===== Buttons ===== */
.btn-gold {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: var(--gold-gradient);
    padding: 0.7rem 1.6rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 14px 30px rgba(198, 161, 91, 0.34);
    transition: filter 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.btn-gold:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(198, 161, 91, 0.4);
}

.btn-ghost {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.7rem 1.5rem;
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    transition: all 300ms ease;
}

.btn-ghost:hover {
    border-color: var(--gold-color);
    background: var(--surface-color);
    color: var(--gold-dark);
}

.btn-ghost-light {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.7rem 1.5rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: background 300ms ease;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.26);
}

.btn-gold:disabled,
.btn-ghost:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Hero banner ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(198, 161, 91, 0.4);
    border-radius: 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.hero-banner__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(20, 32, 24, 0.88), rgba(20, 32, 24, 0.55) 55%, rgba(20, 32, 24, 0.2));
}

.hero-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.4rem 0.95rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

/* ===== Category circles ===== */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}

.category-ring {
    display: block;
    width: 100%;
    max-width: 11rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: var(--gold-gradient);
    box-shadow: var(--shadow-soft);
    transition: transform 350ms ease;
}

.category-item:hover .category-ring {
    transform: translateY(-6px);
}

.category-ring__inner {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--background-color);
    border-radius: 999px;
    background: var(--surface-color);
}

.category-ring__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ===== Product cards ===== */
.product-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.product-card:hover {
    border-color: var(--gold-color);
    box-shadow: 0 26px 60px rgba(31, 46, 35, 0.14);
    transform: translateY(-6px);
}

.product-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--surface-color);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.product-media__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-color), var(--secondary-color));
    color: var(--gold-dark);
    font-size: 2rem;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem 1.25rem;
}

.product-title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 600;
}

.product-short {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.75;
}

.price-tag {
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-rich {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ===== Trust / authenticity ===== */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(74, 107, 83, 0.3);
    border-radius: 999px;
    background: rgba(74, 107, 83, 0.08);
    padding: 0.5rem 1.1rem 0.5rem 0.6rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-check {
    display: inline-flex;
    width: 1.85rem;
    height: 1.85rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    box-shadow: 0 6px 16px rgba(74, 107, 83, 0.3);
}

.feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 1rem;
}

.feature-row h3 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.feature-row p {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.feature-icon {
    color: var(--gold-dark);
    font-size: 1.1rem;
    margin-top: 0.35rem;
}

.trust-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.25rem;
    text-align: center;
}

.trust-card i {
    color: var(--gold-dark);
    font-size: 1.4rem;
}

.trust-card h3 {
    margin-top: 0.6rem;
    font-size: 1rem;
}

.trust-card p {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

/* ===== Cart ===== */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
}

.cart-item__media {
    display: flex;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--surface-color);
    color: var(--gold-dark);
}

.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__body {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.5;
}

.cart-item__unit {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.cart-item__line-total {
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.cart-item__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.55rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.15rem;
}

.qty-btn {
    display: inline-flex;
    min-width: 2.2rem;
    min-height: 2.2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.75rem;
    transition: background 250ms ease;
}

.qty-btn:hover {
    background: var(--sage-soft);
}

.qty-value {
    min-width: 1.7rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.qty-input {
    width: 3rem;
    min-height: 2.2rem;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-remove {
    display: inline-flex;
    min-height: 2.2rem;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(155, 74, 61, 0.3);
    border-radius: 999px;
    background: rgba(155, 74, 61, 0.06);
    padding: 0.2rem 0.7rem;
    color: #9B4A3D;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 250ms ease;
}

.cart-remove:hover {
    background: rgba(155, 74, 61, 0.14);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty i {
    color: var(--gold-color);
    font-size: 2rem;
}

.cart-empty p {
    font-size: 0.9rem;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.summary-row strong {
    color: var(--text-color);
}

.summary-row--muted strong {
    color: var(--text-muted);
    font-weight: 600;
}

.summary-row--total {
    margin-top: 0.4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.6rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.form-status {
    min-height: 1.2rem;
    font-size: 0.85rem;
}

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

/* ===== Testimonials ===== */
.testimonial-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.62);
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease;
}

.testimonial-card:hover {
    border-color: var(--gold-color);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    color: var(--gold-color);
    font-size: 0.82rem;
}

.testimonial-stars .is-muted {
    color: rgba(31, 46, 35, 0.2);
}

.testimonial-quote {
    flex: 1;
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.9;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.testimonial-avatar {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gold-gradient);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.testimonial-name {
    display: block;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.testimonial-city {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

/* ===== Footer ===== */
.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 300ms ease;
}

.footer-link:hover {
    color: var(--gold-dark);
}

@media (min-width: 768px) {
    .qty-btn {
        min-width: 2.6rem;
        min-height: 2.6rem;
    }

    .cart-remove {
        min-height: 2.4rem;
    }
}

/* ===== Product weight / size options ===== */
.variant-picker {
    margin-top: 0.4rem;
}

.variant-select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.35rem 0.9rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.variant-select:focus {
    border-color: var(--gold-color);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.6rem;
}

.option-card {
    position: relative;
    display: block;
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    transition: border-color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.option-card:hover {
    border-color: var(--gold-color);
}

.option-card__input {
    position: absolute;
    top: 0.95rem;
    inset-inline-start: 0.9rem;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-card__title {
    display: block;
    padding-inline-start: 1.5rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.option-card__price {
    display: block;
    padding-inline-start: 1.5rem;
    margin-top: 0.15rem;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.option-card:has(.option-card__input:checked) {
    border-color: var(--gold-color);
    background: rgba(198, 161, 91, 0.14);
    box-shadow: 0 10px 26px rgba(198, 161, 91, 0.18);
}

.cart-item__option {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.3rem;
    border-radius: 999px;
    background: var(--gold-soft);
    padding: 0.1rem 0.6rem;
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .overlay-panel {
        width: min(94vw, 22rem);
    }

    .category-ring {
        max-width: 9rem;
    }

    .search-panel {
        padding: 1.1rem;
    }
}