
/* ========================================
   TANRO FURNITURE HOUSE
   Global Storefront Styles
======================================== */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
}

/* Container */
.tanro-container {
    width: min(100% - 32px, 1320px);
    margin-inline: auto;
}

@media (min-width: 640px) {
    .tanro-container {
        width: min(100% - 64px, 1320px);
    }
}

@media (min-width: 1024px) {
    .tanro-container {
        width: min(100% - 88px, 1320px);
    }
}

/* Buttons */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 9999px;

    transition:
        background 0.2s,
        transform 0.2s;
}

.pill:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* Section kicker */
.kicker {
    display: flex;
    align-items: center;
    gap: 12px;

    text-transform: uppercase;
    letter-spacing: 0.20em;

    font-size: 11px;
    font-weight: 800;
    color: #ed2924;
}

.kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    flex-shrink: 0;
    background: #ed2924;
}

/* Hide scrollbars */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Category image overlay */
.image-shade {
    background: linear-gradient(
        180deg,
        transparent 35%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

/* Product cards */
.product-card {
    border: 1px solid #eae5e2;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.product-card__image {
    height: clamp(155px, 21vw, 270px);
}

@media (max-width: 639px) {
    .product-card__image {
        height: 175px;
    }
}

@media (max-width: 360px) {
    .product-card__image {
        height: 142px;
    }
}

/* ========================================
   CART NOTIFICATION
======================================== */

.cart-toast {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 20px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
}

.cart-toast.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translate(-50%, 0);
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pill,
    .cart-toast {
        transition: none;
    }
}
