/**
 * 7DINAM Online - Master Stylesheet
 * Supermarket Shelves, Live Rolling Trolley & Cashier Billing Counter Aesthetics
 */

@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-scaleUp {
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Supermarket Wooden Shelf Aesthetics */
.wooden-shelf {
    background: linear-gradient(180deg, #5c3a1e 0%, #3e2410 40%, #291508 100%);
    box-shadow: 0 16px 28px -6px rgba(0,0,0,0.45), inset 0 2px 4px rgba(255,255,255,0.25), inset 0 -2px 4px rgba(0,0,0,0.4);
    border-bottom: 10px solid #1a0b04;
    position: relative;
}

.wooden-shelf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
}

.wooden-shelf::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: #140802;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* Brass Rivet Detail on Wooden Plank Ends */
.shelf-rivet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e6ca65, #a37f26, #4d3809);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.6), inset -1px -1px 2px rgba(0,0,0,0.4);
    display: inline-block;
}

.shelf-lip {
    background: #472b15;
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.5);
}

/* Rolling Trolley Wheels Animation */
@keyframes rollTrolley {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.trolley-wheel-spin {
    animation: rollTrolley 0.8s linear infinite;
}

/* Thermal Billing Register Receipt Styling */
.thermal-receipt {
    background: #ffffff;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
    position: relative;
    border-radius: 8px 8px 0 0;
}

.thermal-receipt::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
    background-size: 16px 16px;
    background-position: 0 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1ebd9;
}
::-webkit-scrollbar-thumb {
    background: #a88157;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a542b;
}

/* Supermarket Shelf Talker Badges */
.shelf-talker {
    position: relative;
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%);
}

/* Sticky Live Trolley Dock */
.sticky-trolley-dock {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Aisle Tab Filter Active State */
.aisle-tab.active {
    background: #2a180e;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(42, 24, 14, 0.4);
    border-color: #2a180e;
}

.product-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    box-shadow: 0 25px 45px -12px rgba(61, 40, 23, 0.22);
    border-color: #d0a778;
}

.product-image-wrap {
    transform-style: preserve-3d;
    transform: translateZ(28px);
    transition: transform 0.3s ease;
}

.product-badges-wrap {
    transform-style: preserve-3d;
    transform: translateZ(42px);
}

.product-actions-wrap {
    transform-style: preserve-3d;
    transform: translateZ(22px);
}

.card-3d-glare {
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
}

/* 3D Hero Canvas Stage */
.hero-3d-stage {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.hero-3d-canvas-wrap {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.5));
}

/* 3D Inspection Badge */
.badge-3d-inspect {
    background: linear-gradient(135deg, #d99b38 0%, #7a542b 100%);
    box-shadow: 0 4px 10px rgba(217, 155, 56, 0.35);
    transition: all 0.25s ease;
}

.badge-3d-inspect:hover {
    transform: scale(1.08) translateZ(48px);
    box-shadow: 0 6px 16px rgba(217, 155, 56, 0.55);
}

.product-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item.hidden-product {
    display: none !important;
}

.matcher-tab.active {
    background: #ffffff;
    border-color: #b8854e;
    box-shadow: 0 8px 20px -6px rgba(184, 133, 78, 0.25);
}
