/* assets/css/home.css */

/* HERO VIDEO */
.hero-video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.hero-video-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: auto;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}
.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    z-index: 1;
}
.hero-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 4.8rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}
.btn-primary {
    background: #fff; color: #000;
    padding: 14px 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-primary:hover {
    background: #000; color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* NEW ARRIVALS SLIDER */
.section-new-arrivals {
    margin-top: -1px;
    padding: 10px 0 15px 0;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.new-arrivals-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: grab;
    touch-action: pan-x;
}
.new-arrivals-slider.active { cursor: grabbing; }
.slider-track {
    display: flex;
    gap: 8px;
    padding: 0 8px;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.product-slide {
    flex: 0 0 calc(25% - 6px);
    display: flex;
    flex-direction: column;
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 4px;
    pointer-events: none;
    background: #f0f0f0;
}

.product-slide-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: none !important;
    -webkit-user-drag: none;
    pointer-events: none;
    touch-action: none;
}

/* BADGE */
.discount-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

/* INFO */
.product-info-below {
    text-align: left;
    padding: 0 6px;
    margin-top: 2px;
}
.product-name {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 2px 0;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    color: #000;
}
.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
    font-size: 0.75rem;
}
.discount-price {
    color: #000;
    font-weight: 500;
}

/* CATEGORIES */
.section-categories {
    padding: 0;
    margin: 0;
    background: #000;
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}
.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    text-decoration: none;
}
.category-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: none !important;
}
.category-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 32px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
    .product-slide { flex: 0 0 calc(50% - 4px); }
}
@media (max-width: 576px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-new-arrivals { padding: 8px 0 12px 0; }
    .product-slide { flex: 0 0 calc(50% - 4px); }
    .product-name { font-size: 0.85rem; }
    .product-price { font-size: 0.8rem; }
    .original-price { font-size: 0.7rem; }
    .product-info-below { padding: 0 4px; }
    .category-label { font-size: 1rem; padding: 8px 20px; }
    .category-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.product-link:hover .product-slide-img,
.product-link:active .product-slide-img,
.product-link:focus .product-slide-img {
    transform: none !important;
    scale: 1 !important;
}

/* CART BADGE - ANIMASI HALUS */
.cart-count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}