/* ================= HERO BANNER ================= */

.hero-banner {
    position: relative;
    width: 100%;
    height: 420px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SHOP NOW BUTTON */
.shop-now-btn {
    position: absolute;
    right: 150px;
    top: 58%;
    background-color: #ff9900;
    color: #000;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.shop-now-btn:hover {
    background-color: #e69500;
    transform: translateY(-3px) scale(1.03);
}

@media (max-width: 768px) {
    .shop-now-btn {
        right: 50%;
        transform: translateX(50%);
        top: 70%;
    }
}

/* ================= CATEGORY / PRODUCTS LIST ================= */

.category-section {
    margin: 50px 0;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-title {
    margin-bottom: 30px;
    font-weight: bold;
}

/* GRID */
.product-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

/* CARD */
.product-card,
.category-card {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* IMAGES */
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.category-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

/* TITLES */
.category-card h5,
.product-card h5 {
    margin-top: 10px;
    font-size: 16px;
}

/* ================= PRICE (FIXED) ================= */

.price {
    margin-top: 8px;
    line-height: 1.3;
}

/* Old price */
.old-price {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-decoration: line-through;
}

/* Final price – SAME everywhere */
.final-price {
    display: block;
    font-size: 18px;
    font-weight: 700 !important;
    color: #000;
}

/* ================= PRODUCT DETAIL ================= */

.product-detail {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.main-product-img {
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* THUMBNAILS */
.thumb-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    padding: 5px;
}

.thumb-img:hover {
    border-color: orange;
}

/* PRODUCT INFO */
.product-info h2 {
    margin-bottom: 15px;
}

.stock {
    color: green;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ADD TO CART */
.add-cart-btn {
    display: inline-block;
    background: orange;
    color: #000;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin: 15px 0;
}

.add-cart-btn:hover {
    background: #ffb300;
}

/* ================= DROPDOWN ================= */

.filter-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.products-title {
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: bold;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    padding: 5px 12px;
    font-size: 14px;
    border: 1px solid #333;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu a.active {
    pointer-events: none;
    background: #000;
    color: #fff;
}

.dropdown-menu.show {
    display: block;
}

/* ================= PAGINATION ================= */

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .disabled {
    color: #aaa;
    cursor: not-allowed;
}

footer a:hover {
    text-decoration: underline;
    color: #ffc107 !important;
}

