/**
 * ARR Fine Foods - Storefront Stylesheet
 * Shared styles for navigation, drawers, product cards, carousels, and animations.
 */

:root {
    --arr-red: #8e0808;
    --arr-red-hover: #730606;
    --arr-red-tint: #fde8e8;
    --arr-gray-dark: #333e48;
    --arr-gray-light: #f6f6f6;
    --arr-border: #ededed;
    --arr-black: #000000;
}

body { 
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; 
    font-size: 15px;
    background-color: #ffffff; 
    color: #333e48; 
    -webkit-font-smoothing: antialiased;
}

a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}


.header-top {
    background-color: var(--arr-red);
    color: #ffffff;
}

/* Product Card Styling */
.product-item-card {
    background-color: #ffffff;
    border: 1px solid #ededed;
    box-shadow: 0 0 6px rgba(1, 1, 1, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-item-card:hover {
    box-shadow: 0 4px 14px rgba(1, 1, 1, 0.16);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.price-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000;
}

/* Scrollbar Utilities & Carousel Track */
.hide-scrollbar::-webkit-scrollbar { 
    display: none; 
}

.hide-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.product-carousel-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Product Carousel Responsive Card Widths (5 cards in laptop/desktop view) */
.product-carousel-track .product-item-card {
    flex-shrink: 0;
    width: 165px;
}

@media (min-width: 640px) {
    .product-carousel-track .product-item-card {
        width: calc((100% - (2 * 1rem)) / 3);
    }
}

@media (min-width: 768px) {
    .product-carousel-track .product-item-card {
        width: calc((100% - (3 * 1rem)) / 4);
    }
}

/* In laptop view (1024px and up), exactly 5 product cards visible */
@media (min-width: 1024px) {
    .product-carousel-track .product-item-card {
        width: calc((100% - (4 * 1rem)) / 5);
    }
}

/* Offcanvas Drawer Animations */
.drawer-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel-left {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-panel-left.active {
    transform: translateX(0);
}

.drawer-panel-right {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-panel-right.active {
    transform: translateX(0);
}

/* Navigation & Tab Buttons */
.tab-btn {
    color: #333e48;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #8e0808 !important;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: #8e0808;
    border-radius: 2px;
}
