/* -------------------------------------------------------
   home.css — clean, elegant & pet-brand friendly design
--------------------------------------------------------- */

/* ===== GLOBAL UTILITIES ===== */
.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.fw-700 {
    font-weight: 700;
}

.fw-600 {
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.hero-img {
    width: 100%;
    height: calc(100vh - 120px);
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 1.4s ease;
}

.hero-section:hover .hero-img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    z-index: 2;
    color: #111;
}

.hero-section .display-5 {
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
}

.hero-section .lead {
    color: #555;
    font-size: 1.05rem;
}

.hero-search-card {
    max-width: 420px;
    margin-left: auto;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* ===== ABOUT SECTION ===== */
#about img {
    border-radius: 14px;
    transition: transform .5s ease;
}

    #about img:hover {
        transform: scale(1.03);
    }

#about .lead {
    font-size: 1.05rem;
    color: #555;
}

/* ===== FEATURED PRODUCTS ===== */
#products {
    background: #fafafa;
    overflow: hidden;
}

.shopify-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

    .shopify-carousel.active {
        cursor: grabbing;
    }

.product-item {
    scroll-snap-align: start;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    background: #fff;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

    .product-card .ratio {
        flex-shrink: 0;
        overflow: hidden;
    }

    .product-card img {
        transition: transform .6s ease;
    }

    .product-card:hover img {
        transform: scale(1.08);
    }

    .product-card .card-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem 0.75rem 1rem;
        height: 180px;
    }

    .product-card .fw-600 {
        font-size: 0.9rem;
        color: #111;
    }

.product-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5em;
}

.product-card .fw-bold {
    font-size: 0.9rem;
    color: #000;
}

.product-card .btn-outline-dark {
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 12px;
    transition: all .3s ease;
}

    .product-card .btn-outline-dark:hover {
        background-color: #111;
        color: #fff;
    }

/* Discount Badge */
.product-card .position-absolute {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 0 0.4rem 0.4rem 0;
}

/* ===== HOW IT WORKS ===== */
#howitworks .rounded {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all .3s ease;
}

    #howitworks .rounded:hover {
        background-color: #f9f9f9;
        transform: translateY(-3px);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-img {
        height: 60vh;
    }

    .hero-overlay {
        top: 6%;
        padding: 0 20px;
    }

    .hero-search-card {
        max-width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .product-item {
        width: 70%;
    }

    .shopify-carousel {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin: 0 -0.5rem;
        scroll-snap-type: x mandatory;
    }

    .product-card .fw-600 {
        font-size: 0.85rem;
    }

    .product-desc {
        font-size: 0.75rem;
    }

    .product-card .card-body {
        height: 160px;
    }
}

/* ===== SMALL DEVICES ===== */
@media (max-width: 576px) {
    .hero-section .display-5 {
        font-size: 1.6rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    #about .lead {
        font-size: 0.9rem;
    }
}

/* ===== SCROLLBAR ===== */
.shopify-carousel::-webkit-scrollbar {
    height: 5px;
}

.shopify-carousel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
/* ===== SCROLL FADE-IN ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* optional stagger for nicer effect */
.product-card:nth-child(2) {
    transition-delay: 0.1s;
}

.product-card:nth-child(3) {
    transition-delay: 0.2s;
}

.product-card:nth-child(4) {
    transition-delay: 0.3s;
}

.product-card:nth-child(5) {
    transition-delay: 0.4s;
}
/* --- User dropdown in navbar --- */
.user-mini {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

    .user-mini:hover {
        color: #000;
    }

.avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    background-color: #fafafa;
}

.dropdown-menu {
    border-radius: 10px;
    font-size: 0.85rem;
}

.dropdown-item i {
    width: 16px;
}
#cart-toast {
    opacity: 0.95;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
