/* Explain: Reusable storefront components and interaction styles */
.av-btn-primary {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--surface-color);
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 240ms ease;
}

.av-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.av-btn-secondary {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.72);
    color: var(--charcoal-color);
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    transition: all 240ms ease;
}

.av-btn-secondary:hover {
    border-color: var(--champagne-color);
    background: var(--surface-color);
    transform: translateY(-1px);
}

.av-eyebrow {
    color: var(--olive-color);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.av-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    background: rgba(255, 250, 242, 0.76);
    box-shadow: var(--shadow-card);
}

.av-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: rgba(255, 250, 242, 0.86);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.av-product-card:hover {
    border-color: rgba(217, 195, 165, 0.92);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.av-arch-image {
    overflow: hidden;
    border-radius: var(--radius-arch);
    background: var(--surface-muted);
}

.av-gallery-main-image {
    width: 100%;
    height: auto;
    max-height: min(72vh, 48rem);
    object-fit: contain;
}

.av-gallery-thumb {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.78);
    padding: 0.18rem;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.av-gallery-thumb:hover,
.av-gallery-thumb.is-active {
    border-color: var(--burgundy-color);
    box-shadow: 0 0 0 3px rgba(122, 38, 58, 0.12);
    transform: translateY(-1px);
}

.av-gallery-thumb img {
    opacity: 0.74;
    transition: opacity 200ms ease;
}

.av-gallery-thumb:hover img,
.av-gallery-thumb.is-active img {
    opacity: 1;
}

.av-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.92);
    padding: 0.9rem 1rem;
    color: var(--charcoal-color);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.av-input::placeholder {
    color: rgba(111, 106, 98, 0.68);
}

.av-input:focus {
    border-color: var(--burgundy-color);
    box-shadow: 0 0 0 4px rgba(122, 38, 58, 0.10);
    outline: none;
}

.av-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(111, 116, 95, 0.22);
    border-radius: 999px;
    background: rgba(111, 116, 95, 0.10);
    color: var(--olive-color);
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.av-cart-panel {
    transform: translateX(105%);
    transition: transform 280ms ease;
}

.av-cart-panel.is-open {
    transform: translateX(0);
}

.av-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    max-width: min(24rem, calc(100vw - 2rem));
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--charcoal-color);
    color: var(--surface-color);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-soft);
}
