/* Explain: Styles for UI components including navigation, cards, forms, and options. */
.site-header {
    background: rgba(253, 247, 234, 0.94);
    border-bottom-color: rgba(76, 95, 61, 0.14);
    box-shadow: 0 6px 22px rgba(90, 74, 42, 0.06);
    backdrop-filter: blur(18px);
}

.nav-more {
    position: relative;
}

.nav-more-trigger {
    background: transparent;
    border: 0;
    padding: 0;
}

.nav-more-panel {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.4rem);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
    z-index: 60;
}

.nav-more:hover .nav-more-panel,
.nav-more:focus-within .nav-more-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-more-inner {
    display: grid;
    min-width: 14rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    padding: 0.5rem;
}

.nav-more-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    border-radius: 0.9rem;
    padding: 0 0.9rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 200ms ease, color 200ms ease;
}

.nav-more-link:hover {
    background: var(--surface-color);
    color: var(--accent-color);
}

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

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 3px;
    border-radius: 999px;
    background: var(--cta-color);
    content: "";
}

.glass-panel {
    border: 1px solid rgba(76, 95, 61, 0.14);
    background: #FFFDF7;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 95, 61, 0.16);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

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

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

.arch-frame-square {
    height: auto;
    min-height: 0;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    border-radius: 1.75rem;
}

.arch-frame-square::after {
    content: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(76, 95, 61, 0.14);
    border-radius: 1.5rem;
    background: #FFFDF7;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 95, 61, 0.4);
    box-shadow: 0 24px 50px rgba(90, 74, 42, 0.14);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(76, 95, 61, 0.14);
    border-radius: 1.5rem;
    background: #FFFDF7;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 95, 61, 0.4);
    box-shadow: 0 24px 50px rgba(90, 74, 42, 0.14);
}

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

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

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

.cat-badge {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.94);
    padding: 0.32rem 0.9rem;
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
}

.cat-badge-sell {
    background: rgba(76, 95, 61, 0.95);
    color: #ffffff;
}

.cat-badge-buy {
    background: rgba(192, 102, 58, 0.95);
    color: #ffffff;
}

.cat-badge-service {
    background: rgba(108, 127, 88, 0.95);
    color: #ffffff;
}

.price-tag {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-buy {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 0;
    background: var(--cta-color);
    padding: 0 1.25rem;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-button);
    transition: background 300ms ease, transform 300ms ease;
}

.btn-buy:hover {
    background: var(--cta-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-soft {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(76, 95, 61, 0.28);
    background: #FFFFFF;
    padding: 0 1.25rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 300ms ease, background 300ms ease;
}

.btn-outline-soft:hover {
    border-color: var(--primary-color);
    background: var(--secondary-color);
}

.filter-chip {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(76, 95, 61, 0.18);
    background: #FFFDF7;
    padding: 0 1.1rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 250ms ease;
}

.filter-chip:hover {
    border-color: var(--primary-color);
}

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

.option-chip {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(76, 95, 61, 0.18);
    background: #FFFDF7;
    padding: 0 1.1rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 250ms ease, background 250ms ease, box-shadow 250ms ease, color 250ms ease;
}

.option-chip:hover {
    border-color: var(--primary-color);
}

.option-chip:has(input:checked) {
    border-color: var(--cta-color);
    background: var(--sage-soft);
    box-shadow: 0 0 0 2px var(--terracotta-soft);
    color: var(--sage-dark);
}

.option-chip:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.info-tile {
    border: 1px solid rgba(76, 95, 61, 0.14);
    border-radius: 1.25rem;
    background: #FFFDF7;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(90, 74, 42, 0.06);
}

.faq-item {
    border: 1px solid rgba(76, 95, 61, 0.14);
    border-radius: 1.25rem;
    background: #FFFDF7;
    padding: 0 1.35rem;
    box-shadow: 0 8px 20px rgba(90, 74, 42, 0.05);
    transition: border-color 300ms ease;
}

.faq-item[open] {
    border-color: rgba(76, 95, 61, 0.4);
}

.faq-item summary {
    display: flex;
    min-height: 3.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    color: var(--accent-color);
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.95;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
}

.qty-stepper button {
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-color);
    transition: background 200ms ease;
}

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

.qty-stepper input {
    width: 3rem;
    height: 2.9rem;
    border: 0;
    background: transparent;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
}

.cart-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.66);
    padding: 1rem;
}

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

.field-input {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--field-bg);
    padding: 0.85rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.field-input::placeholder {
    color: var(--text-muted);
}

.field-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 3.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.15rem;
    background: var(--field-bg);
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.payment-option:hover {
    border-color: var(--accent-color);
}

.payment-option:has(input:checked) {
    border-color: var(--cta-color);
    background: var(--sage-soft);
    box-shadow: 0 0 0 2px var(--terracotta-soft);
}

.payment-option:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.payment-radio {
    margin-top: 0.2rem;
    height: 1.1rem;
    width: 1.1rem;
    flex-shrink: 0;
    accent-color: var(--cta-color);
}

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

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

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 90;
    transform: translate(-50%, 1.5rem);
    opacity: 0;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--text-color);
    padding: 0.8rem 1.4rem;
    color: #FAF9F6;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 20px 50px rgba(31, 46, 35, 0.3);
    transition: opacity 300ms ease, transform 300ms ease;
}

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

.loading-block {
    border: 1px dashed var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    color: var(--text-muted);
}

.staff-view {
    display: none;
}

.staff-view.is-active {
    display: block;
}

.staff-field {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--field-bg);
    padding: 0.85rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.staff-field::placeholder {
    color: var(--text-muted);
}

.staff-field:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.staff-field-password {
    padding-right: 3rem;
}

.staff-field-search {
    border-radius: 999px;
    padding-left: 2.75rem;
    font-size: 0.9rem;
}

.staff-menu {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.staff-nav-btn {
    display: flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--glass-bg);
    padding: 0 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.staff-nav-btn i {
    width: 1.1rem;
    text-align: center;
}

.staff-nav-btn:hover {
    border-color: var(--accent-color);
}

.staff-nav-btn.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.staff-panel {
    display: none;
}

.staff-panel.is-active {
    display: block;
}

.staff-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.66);
    padding: 1.25rem;
}

.staff-kpi-value {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.staff-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
}

.staff-table th {
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.staff-table td {
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    vertical-align: middle;
}

.staff-table tr:last-child td {
    border-bottom: 0;
}

.staff-bar-track {
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sage-soft);
}

.staff-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--accent-color);
    transition: width 500ms ease;
}

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

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

    .cart-row {
        grid-template-columns: 4rem 1fr auto;
        gap: 0.75rem;
        padding: 0.85rem;
    }
}

.floating-contact {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.floating-contact-btn {
    display: inline-flex;
    min-height: 3.25rem;
    min-width: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    padding: 0 1rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(31, 46, 35, 0.28);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.floating-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(31, 46, 35, 0.34);
}

.floating-contact-line {
    background: #06C755;
}

.floating-contact-phone {
    background: var(--accent-color);
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(31, 46, 35, 0.82);
    padding: 1.25rem;
    backdrop-filter: blur(6px);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-panel {
    position: relative;
    width: min(100%, 60rem);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 1.75rem;
    border: 1px solid var(--glass-border);
    background: var(--background-color);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.gallery-lightbox-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
    display: inline-flex;
    height: 2.6rem;
    width: 2.6rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
}

.gallery-lightbox-media {
    display: flex;
    min-height: 16rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--surface-color);
    padding: 0.5rem;
}

.gallery-lightbox-media img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
}

.gallery-lightbox-caption {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 640px) {
    .floating-contact {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .floating-contact-label {
        display: none;
    }
}
