/* Explain: Styles for reusable UI components like headers, cards, buttons, and modals. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.62));
    backdrop-filter: blur(18px);
}

.brand-logo {
    background: transparent;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 1px 1px rgba(31, 46, 35, 0.08));
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

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

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(72vh, 700px);
    min-height: 460px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.arch-frame-medium {
    height: 560px;
    max-width: 440px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.product-card {
    overflow: hidden;
    border-radius: 1.8rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.product-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.12);
    transform: translateY(-6px);
}

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

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

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

.product-badge {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.3rem 0.85rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-card {
    display: block;
    overflow: hidden;
    border-radius: 1.8rem;
}

.category-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0.06), rgba(31, 46, 35, 0.76));
}

.category-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.quiet-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.4rem;
}

.quiet-detail i {
    display: inline-flex;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.quiet-detail h3 {
    margin-top: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.quiet-detail p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.testimonial-card {
    height: 100%;
    border-radius: 1.8rem;
    padding: 1.75rem;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
}

.testimonial-avatar {
    height: 3rem;
    width: 3rem;
    border-radius: 999px;
    object-fit: cover;
}

.chip-btn {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.5rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

.chip-btn:hover {
    color: var(--text-color);
    border-color: var(--accent-color);
}

.chip-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1.6rem;
    padding: 1rem;
}

.cart-row-img {
    height: 5rem;
    width: 5rem;
    flex-shrink: 0;
    border-radius: 1.2rem;
    object-fit: cover;
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    color: var(--text-color);
    transition: background-color 250ms ease;
}

.qty-btn:hover {
    background: var(--surface-color);
}

.qty-btn:disabled {
    opacity: 0.5;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

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

.admin-danger-btn {
    border: 1px solid rgba(155, 74, 61, 0.45);
    border-radius: 999px;
    background: transparent;
    color: #9B4A3D;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.admin-danger-btn:hover {
    border-color: rgba(155, 74, 61, 0.7);
    background: rgba(155, 74, 61, 0.12);
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 5.5rem;
    z-index: 90;
    max-width: min(90vw, 26rem);
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 18px 40px rgba(31, 46, 35, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 1rem);
    transition: opacity 250ms ease, transform 250ms ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 480px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 440px);
    }

    .cart-row {
        flex-wrap: wrap;
    }

    .cart-row-img {
        height: 4rem;
        width: 4rem;
    }
}

.product-media img,
.arch-frame img {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 5vw, 3.5rem);
    background: rgba(19, 30, 23, 0.9);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 240ms ease;
}

.image-lightbox.hidden {
    display: none;
}

.image-lightbox.is-open {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    min-width: 2.9rem;
    border: 1px solid rgba(250, 249, 246, 0.35);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.16);
    color: #ffffff;
    transition: background-color 250ms ease, transform 250ms ease;
}

.lightbox-close:hover {
    background: rgba(250, 249, 246, 0.32);
    transform: scale(1.05);
}

.lightbox-figure {
    display: flex;
    max-height: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
}

.lightbox-figure img {
    max-height: 78vh;
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(250, 249, 246, 0.28);
    border-radius: 1.4rem;
    background: var(--surface-color);
    object-fit: contain;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    max-width: min(90vw, 40rem);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.product-card,
.product-card * {
    font-family: Verdana, Geneva, sans-serif !important;
    font-size: 24px !important;
    line-height: 1.5 !important;
}

.product-card h3,
.product-card .text-lg {
    font-size: 24px !important;
}

.product-card .add-to-cart-btn {
    font-size: 18px !important;
}

.product-card [data-mc-price] {
    font-size: 24px !important;
}