/* =========================================
   GLOBAL
========================================= */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
}

.section-title {
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================
   NAVBAR
========================================= */
.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: #dc3545 !important;
}

/* =========================================
   BRAND LOGO
========================================= */
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-10deg);
}

@media (max-width: 768px) {

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}
/* =========================================
   HERO SECTION (RESTORE FULLSCREEN)
========================================= */
.hero-section {
    height: calc(100vh - 76px);
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Picture wrapper */
.hero-section picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Image */
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 70px;
    position: relative;
    z-index: 2;
}

/* Button */
.hero-shop-btn {
    min-width: 220px;
    font-size: 1.4rem;
    padding: 14px 38px;
    border-radius: 50px;
}

/* =========================================
   MOBILE HERO
========================================= */
@media (max-width: 768px) {

    .hero-section {
        min-height: 60vh;
        height: calc(100vh - 70px);
        padding: 0;
    }

    .hero-overlay {
        padding-bottom: 55px; /* Adjust this to move button higher/lower */
    }

    .hero-shop-btn {
        min-width: 180px;
        font-size: 1.1rem;
        padding: 12px 28px;
    }
}
}
/* =========================================
   CATEGORY CARD
========================================= */
.category-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: white;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    height: 280px;
    object-fit: cover;
}

/* =========================================
   PRODUCT CARD
========================================= */
.product-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

.product-card h5 {
    font-size: 1.1rem;
    font-weight: bold;
    min-height: 48px;
}

.product-card p {
    font-size: 0.95rem;
}

.product-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

/* =========================================
   STOCK STATUS
========================================= */
.in-stock {
    color: green;
    font-weight: bold;
}

.out-stock {
    color: red;
    font-weight: bold;
}

/* =========================================
   BUTTONS
========================================= */
.btn-danger {
    border-radius: 30px;
    padding: 10px 20px;
}

.btn-outline-danger {
    border-radius: 30px;
}

/* =========================================
   CART
========================================= */
.cart-table img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* =========================================
   MOBILE FLOATING CART
========================================= */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.floating-cart-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    background: white;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid #dc3545;
}

/* =========================================
   CHECKOUT
========================================= */
.checkout-box {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================================
   FOOTER
========================================= */
footer h5 {
    margin-bottom: 15px;
}

footer a:hover {
    color: #dc3545 !important;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {

    .navbar-brand {
        font-size: 1.4rem;
    }

    .category-card img,
    .product-card img {
        height: 220px;
    }

    .product-card h5 {
        min-height: auto;
    }

    .hero-overlay {
        padding-bottom: 40px;
    }

    .hero-shop-btn {
        min-width: 180px;
        font-size: 1.1rem;
        padding: 12px 28px;
    }

    .btn-danger,
    .btn-outline-danger {
        width: 100%;
    }

    .cart-table img {
        width: 55px;
        height: 55px;
    }
}

@media (min-width: 992px) {
    .floating-cart {
        display: none !important;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: 85px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 70px);
        background-position: center center;
    }

    .hero-overlay {
        padding-bottom: 40px;
    }

    .hero-shop-btn {
        min-width: 180px;
        font-size: 1.1rem;
        padding: 12px 28px;
    }
	
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .btn-danger,
    .btn-outline-danger {
        width: 100%;
    }

    .cart-table img {
        width: 55px;
        height: 55px;
    }
}