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

.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.5));
    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.55);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

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

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

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 3rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

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

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

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

.product-card {
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: linear-gradient(150deg, rgba(250, 249, 246, 0.85), rgba(255, 255, 255, 0.55));
    box-shadow: var(--shadow-soft);
    padding: 0.9rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

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

.category-chip {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.65);
    padding: 0.6rem 1.15rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 300ms ease;
}

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

.category-chip.is-active {
    border-color: var(--sage-dark);
    background: var(--sage-dark);
    color: #ffffff;
}

.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-input {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0 1.15rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

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

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

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

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

.cart-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.55);
    padding: 0.9rem;
}

.cart-item-media {
    display: block;
    overflow: hidden;
    width: 5rem;
    height: 6.25rem;
    border-radius: 1rem;
    background: var(--surface-color);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.cart-item-name {
    color: var(--text-color);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 250ms ease;
}

.cart-item-name:hover {
    color: var(--accent-color);
}

.cart-item-unit {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.65rem;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.2rem;
}

.cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 200ms ease;
}

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

.cart-qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-side {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-item-total {
    color: var(--text-color);
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
}

.cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 200ms ease;
}

.cart-remove:hover {
    background: rgba(155, 74, 61, 0.12);
    color: #9B4A3D;
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 90;
    max-width: min(92vw, 26rem);
    border-radius: 999px;
    background: var(--sage-dark);
    padding: 0.85rem 1.4rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 20px 45px 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);
}

.app-toast.is-error {
    background: #9B4A3D;
}

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

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

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

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .cart-item {
        grid-template-columns: 4.5rem 1fr;
    }

    .cart-item-media {
        width: 4.5rem;
        height: 5.6rem;
    }
}

.size-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    padding: 0 1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 250ms ease;
}

.size-option:hover:not(:disabled) {
    border-color: var(--accent-color);
}

.size-option.is-active {
    border-color: var(--sage-dark);
    background: var(--sage-dark);
    color: #ffffff;
}

.size-option.is-sold-out {
    border-style: dashed;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: line-through;
}

.color-option {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    padding: 0 1.1rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 250ms ease;
}

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

.color-option.is-active {
    border-color: var(--sage-dark);
    background: var(--sage-dark);
    color: #ffffff;
}

[data-stock-status].is-error {
    color: #9B4A3D;
}

[data-size-group].is-invalid .form-label {
    color: #9B4A3D;
}

[data-size-group].is-invalid [data-size-options] {
    animation: size-shake 420ms ease;
}

@keyframes size-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

.size-guide-dialog {
    width: min(92vw, 42rem);
    max-width: 100%;
    margin: auto;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--background-color);
    padding: 0;
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.size-guide-dialog::backdrop {
    background: rgba(31, 46, 35, 0.55);
    backdrop-filter: blur(4px);
}

.size-guide-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    transition: all 250ms ease;
}

.size-guide-close:hover {
    border-color: var(--accent-color);
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
}

.size-guide-table th,
.size-guide-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.7rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.size-guide-table thead th {
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.size-guide-table tbody td:first-child {
    color: var(--text-color);
    font-weight: 700;
}

.shop-anchor {
    scroll-margin-top: 6.5rem;
}

.gallery-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.gallery-thumbs {
    display: none;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.gallery-thumbs.has-items {
    display: flex;
}

.gallery-thumb {
    flex: none;
    width: 4.5rem;
    height: 5.75rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--surface-color);
    padding: 0;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: var(--accent-color);
}

.gallery-thumb.is-active {
    border-color: var(--sage-dark);
    box-shadow: 0 0 0 2px var(--sage-dark);
}

.product-price {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.variant-block {
    border-top: 1px solid var(--border-color);
    padding-top: 1.6rem;
}

.variant-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}