/* ==============================
   GLOBAL
============================== */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* ==============================
   NAVBAR
============================== */
.header_menu .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header_menu .navbar-brand img {
    height: 50px;
}

.header_menu .nav-link {
    font-weight: 500;
    color: #444 !important;
    padding: 8px 14px !important;
    transition: color 0.2s;
}

.header_menu .nav-link:hover,
.header_menu .nav-item.active .nav-link {
    color: #007bff !important;
}

.header_menu .cart a {
    color: #333;
    position: relative;
}

.header_menu .cart .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 10px;
}

/* ==============================
   CAROUSEL / SLIDER
============================== */
.header_carousel .carousel-item img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* ==============================
   SECTION TITLES
============================== */
.section_title h1 {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section_title h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #007bff;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ==============================
   SHOP BY CATEGORY
============================== */
.shop_by_category .card {
    overflow: hidden;
    transition: transform 0.3s;
    border-radius: 8px;
}

.shop_by_category .card:hover {
    transform: scale(1.03);
}

.shop_by_category .card-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.shop_by_category .card:hover .card-img {
    transform: scale(1.08);
}

/* ==============================
   PRODUCT CARDS
============================== */
.single_product {
    background: #fff;
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    margin-bottom: 30px;
}

.single_product:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    transform: translateY(-4px);
}

.single_product .product_img {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.single_product .product_img img {
    transition: transform 0.4s;
    height: 220px;
    object-fit: contain;
    width: 100%;
    padding: 10px;
}

.single_product:hover .product_img img {
    transform: scale(1.05);
}

.new_product {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-caption h4 a,
.product-caption h5 a {
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.product-caption h4 a:hover,
.product-caption h5 a:hover {
    color: #0056b3;
}

.product-ratting i {
    color: #ffc107;
    font-size: 0.85rem;
}

.product-ratting i.low-star {
    color: #ccc;
}

.price {
    color: #333;
    font-size: 1rem;
}

/* ==============================
   FEATURES SECTION
============================== */
.feature {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
}

.feature .col-md-4 {
    border-radius: 10px;
    transition: background 0.3s;
}

.feature .col-md-4:hover {
    background: rgba(255,255,255,0.15) !important;
}

.feature i {
    color: #fff;
}

/* ==============================
   FOOTER
============================== */
.footer_section {
    background: #1a1a2e;
    color: #ccc;
}

.footer_section a {
    color: #aaa;
    transition: color 0.2s;
}

.footer_section a:hover {
    color: #007bff;
}

.footer_title h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer_links ul {
    list-style: none;
    padding: 0;
}

.footer_links ul li {
    margin-bottom: 8px;
}

.footer_section .border-top {
    border-color: #333 !important;
    color: #888;
}

/* ==============================
   BACK TO TOP BUTTON
============================== */
.backtop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.backtop a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.backtop a:hover {
    background: #007bff;
    border-color: #007bff !important;
    color: #fff !important;
}

.backtop a i {
    transition: color 0.3s;
}

.backtop a:hover i {
    color: #fff !important;
}

/* ==============================
   PRODUCT LIST PAGE - FILTERS
============================== */
.list-group-item {
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.list-group-item:hover {
    background: #007bff;
    color: #fff;
}

/* ==============================
   PRODUCT DETAIL PAGE
============================== */
.product_detail .carousel-indicators li {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.product_detail .carousel-indicators li.active {
    opacity: 1;
    border-color: #007bff;
}

.product_detail .category a {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.05em;
}

.product_detail .rating i {
    font-size: 1.1rem;
}

.product_detail .price {
    font-size: 1.4rem;
    color: #007bff;
}

.quantity {
    width: 70px !important;
    display: inline-block;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px;
}

/* ==============================
   CART PAGE
============================== */
.bg_cart_1 {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
}

/* ==============================
   CHECKOUT PAGE
============================== */
.bg_checkout_1 {
    background: #f0f4ff;
    border-radius: 12px;
    padding: 20px;
}

/* ==============================
   ORDER CONFIRMATION PAGE
============================== */
.order_confirmation .col-md-6 {
    padding: 40px;
    border-radius: 16px;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.order_confirmation img {
    width: 80px;
    margin-bottom: 20px;
}

/* ==============================
   ABOUT PAGE - TESTIMONIALS
============================== */
.testimonial .avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* ==============================
   CONTACT PAGE
============================== */
.contact .border-success {
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact .border-success:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* ==============================
   SEARCH PAGE
============================== */
.search_section .table img {
    border-radius: 6px;
}

.search_section .table tr:hover {
    background: #f0f4ff;
    cursor: pointer;
}

/* ==============================
   RESPONSIVE HELPERS
============================== */
@media (max-width: 768px) {
    .mt-small-5 { margin-top: 20px !important; }
    .mb-small-5 { margin-bottom: 20px !important; }
    .pl-small-15 { padding-left: 15px !important; }
    .mt-small-2 { margin-top: 10px !important; }
    .mb-small-2 { margin-bottom: 10px !important; }

    .header_carousel .carousel-item img {
        max-height: 250px;
    }

    .section_title h1 {
        font-size: 1.5rem;
    }

    .single_product .product_img img {
        height: 180px;
    }

    .backtop {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .footer_section .col-6 {
        margin-bottom: 20px;
    }
}
