/* sellbazar/assets/css/style.css */
:root {
    --primary_color: #047dc3;
    --primary_text_color: #ffffff;
    --primary_hover_color: #ff8000;
    --menu_background_color: #2c3e50;
    --menu_text_color: #ffffff;
    --menu_hover_color: #ff8000;
    --footer_background_color: #2c3e50;
    --footer_text_color: #ffffff;
    --footer_hover_color: #ff8000;
    --border: #ededed;
    --shadow: rgba(0,0,0,0.1);
    --white: #ffffff;
    --black: #323232;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary_color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.section_padding {
    padding: 60px 0;
}

.section_padding_bottom {
    padding-bottom: 60px;
}

.section_gap {
    margin: 40px 0;
}

.text-center {
    text-align: center;
}

/* Header Styles */
.header_top {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 5px 0;
    font-size: 14px;
}

.header_top_list ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.header_middle {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.header_middle_logo img {
    height: 50px;
    object-fit: contain;
}

.header_middle_search {
    position: relative;
    width: 100%;
}

.header_middle_search input {
    width: 100%;
    height: 48px;
    padding: 0 60px 0 20px;
    border: 2px solid var(--primary_color);
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.header_middle_search input:focus {
    box-shadow: 0 0 0 3px rgba(4, 125, 195, 0.2);
}

.header_middle_search_link {
    position: absolute;
    right: 0;
    top: 0;
    height: 48px;
    width: 50px;
    border: none;
    background: transparent;
    color: var(--primary_color);
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 25px 25px 0;
}

.header_middle_table_cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    height: 100%;
}

.header_middle_auth_link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header_middle_icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary_color);
}

.header_middle_text span {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.header_middle_text span:last-child {
    font-weight: 600;
    color: var(--primary_color);
}

/* Header Bottom / Navigation */
.header_bottom {
    background: var(--menu_background_color);
    padding: 0;
}

.main_menu {
    text-align: center;
}

.main_menu > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main_menu > ul > li {
    position: relative;
    padding: 12px 20px;
}

.main_menu > ul > li > a {
    color: var(--menu_text_color);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main_menu > ul > li > a i {
    margin-left: 5px;
    font-size: 12px;
}

.main_menu > ul > li:hover > a {
    color: var(--menu_hover_color);
}

/* Dropdown Menu */
.main_menu ul li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.main_menu ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main_menu ul li .submenu li {
    display: block;
    border-bottom: 1px solid var(--border);
}

.main_menu ul li .submenu li:last-child {
    border-bottom: none;
}

.main_menu ul li .submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--black);
    font-size: 14px;
    text-transform: none;
    transition: all 0.3s ease;
}

.main_menu ul li .submenu li a:hover {
    background: #f5f5f5;
    color: var(--primary_color);
    padding-left: 25px;
}

/* Banner Slider */
.slider_banner_active .slider_banner_item img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.slider_banner_active .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--primary_color) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider_banner_active .owl-nav button:hover {
    background: var(--primary_hover_color) !important;
}

.slider_banner_active .owl-nav .owl-prev {
    left: 15px;
}

.slider_banner_active .owl-nav .owl-next {
    right: 15px;
}

/* Category Section */
.category_area {
    padding: 30px 0;
}

.section_title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.section_title .title_bottom_underline {
    width: 60px;
    height: 3px;
    background: var(--primary_color);
    margin: 0 auto;
}

.category_item {
    padding: 5px;
}

.category_item_link {
    display: block;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.category_item_link:hover {
    box-shadow: 0 5px 20px var(--shadow);
    transform: translateY(-3px);
}

.category_image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.category_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category_name p {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    transition: all 0.3s ease;
}

.category_item_link:hover .category_name p {
    color: var(--primary_color);
}

.category_active .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary_color) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category_active .owl-nav button:hover {
    background: var(--primary_hover_color) !important;
}

.category_active .owl-nav .owl-prev {
    left: -20px;
}

.category_active .owl-nav .owl-next {
    right: -20px;
}

/* Product Card */
.product_card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product_card:hover {
    box-shadow: 0 5px 25px var(--shadow);
    transform: translateY(-5px);
}

.product_image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product_card:hover .product_image img {
    transform: scale(1.05);
}

.product_discount {
    position: absolute;
    top: 10px;
    left: 0;
    background: #ff4757;
    color: var(--white);
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0 20px 20px 0;
}

.product_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.product_name {
    flex: 1;
}

.product_name_link {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 5px;
}

.product_name_link:hover {
    color: var(--primary_color);
}

.product_price {
    margin: 8px 0;
    text-align: center;
}

.product_new_price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary_color);
}

.product_discount_price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product_btn {
    margin-top: auto;
}

.product_btn_link {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: var(--primary_color);
    color: var(--white);
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product_btn_link:hover {
    background: var(--primary_hover_color);
    color: var(--white);
}

/* Products Tabs */
.products_tabs_list .nav-tabs {
    border-bottom: 2px solid var(--border);
    justify-content: center;
    margin-bottom: 25px;
}

.products_tabs_list .nav-tabs .nav-link {
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
}

.products_tabs_list .nav-tabs .nav-link.active {
    color: var(--primary_color);
    border-bottom: 3px solid var(--primary_color);
    background: transparent;
}

.products_tabs_list .nav-tabs .nav-link:hover {
    color: var(--primary_color);
}

/* Footer */
.footer_area {
    background: var(--footer_background_color);
    padding: 60px 0 20px;
    margin-top: 60px;
    color: var(--footer_text_color);
}

.footer_logo img {
    height: 50px;
    object-fit: contain;
}

.footer_description p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 10px;
}

.footer_title h4 {
    color: var(--footer_text_color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer_title h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary_color);
}

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

.footer_list ul li a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer_list ul li a:hover {
    color: var(--footer_hover_color);
    padding-left: 5px;
}

.footer_social ul {
    display: flex;
    gap: 10px;
}

.footer_social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer_social ul li a:hover {
    background: var(--primary_color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer_bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer_bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
}

/* Fixed Footer Menu (Mobile) */
.fixed_footer_menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 20px var(--shadow);
    padding: 8px 15px;
    z-index: 999;
}

.fixed_footer_menu ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.fixed_footer_menu ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--black);
    transition: all 0.3s ease;
}

.fixed_footer_menu ul li a i {
    font-size: 22px;
    color: var(--primary_color);
    margin-bottom: 2px;
}

.fixed_footer_menu ul li a:hover {
    color: var(--primary_color);
}

/* Responsive */
@media (max-width: 991px) {
    .header_bottom {
        display: none !important;
    }
    
    .fixed_footer_menu {
        display: block;
    }
    
    .header_middle_logo {
        text-align: center;
    }
    
    .header_middle_logo img {
        height: 40px;
    }
    
    .header_middle_table_cell {
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .section_padding {
        padding: 30px 0;
    }
    
    .slider_banner_active .slider_banner_item img {
        max-height: 250px;
    }
    
    .category_active .owl-nav button {
        display: none !important;
    }
    
    .products_tabs_list .nav-tabs .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .header_middle {
        padding: 10px 0;
    }
    
    .header_middle_search input {
        height: 40px;
        font-size: 14px;
    }
    
    .header_middle_search_link {
        height: 40px;
        width: 40px;
        font-size: 16px;
    }
    
    .slider_banner_active .slider_banner_item img {
        max-height: 180px;
        border-radius: 5px;
    }
    
    .section_title h2 {
        font-size: 22px;
    }
    
    .product_name_link {
        font-size: 13px;
    }
    
    .product_new_price {
        font-size: 15px;
    }
    
    .product_card {
        padding: 8px;
    }
}

/* Mobile Header */
.header_mobile_device {
    padding: 5px 0;
}

.header_mobile_table_cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_mobile_device_home_link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--black);
}

.header_mobile_device_home_link i {
    font-size: 20px;
    color: var(--primary_color);
}

.header_mobile_logo img {
    height: 35px;
    object-fit: contain;
}

.header_mobile_search {
    cursor: pointer;
}

.header_mobile_search i {
    font-size: 22px;
    color: var(--primary_color);
}

.search_class {
    display: block;
}

.search_toggle {
    display: none !important;
}

/* Header Search Results */
.header_search_item_content {
    position: relative;
}

.header_search_item {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    border-radius: 0 0 10px 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 999;
}

.header_search_item ul li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header_search_item ul li:hover {
    background: #f5f5f5;
}

.header_search_item_product_image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.header_search_item_product_name p {
    font-size: 14px;
    margin: 0;
}

.header_search_item_product_new_price {
    font-weight: 600;
    color: var(--primary_color);
}

.header_search_item_product_discount_price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* Auth Pages */
.auth_wrap {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px var(--shadow);
    max-width: 450px;
    margin: 0 auto;
}

.auth_title h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

.auth_title p {
    color: #999;
    font-size: 14px;
}

.auth_item {
    margin-bottom: 18px;
}

.auth_item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.auth_item input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth_item input:focus {
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(4, 125, 195, 0.2);
    outline: none;
}

.auth_sub_btn_link {
    width: 100%;
    padding: 12px;
    background: var(--primary_color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth_sub_btn_link:hover {
    background: var(--primary_hover_color);
}

.auth_link_page {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth_link_page a {
    color: var(--primary_color);
    font-weight: 500;
}

.auth_link_page a:hover {
    color: var(--primary_hover_color);
}

.auth_forgotten_pass {
    text-align: right;
    margin-bottom: 15px;
}

.auth_forgotten_pass a {
    font-size: 14px;
    color: #999;
}

.auth_forgotten_pass a:hover {
    color: var(--primary_color);
}

/* Cart Page */
.view_cart_right_side {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.view_cart_subtotal {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.view_cart_total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.view_cart_process_checkout_link {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary_color);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view_cart_process_checkout_link:hover {
    background: var(--primary_hover_color);
    color: var(--white);
}

.view_cart_qty {
    display: flex;
    align-items: center;
}

.view_cart_qty_minus,
.view_cart_qty_plus {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view_cart_qty_minus:hover,
.view_cart_qty_plus:hover {
    background: var(--primary_color);
    color: var(--white);
}

.view_cart_qty input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
}

/* Checkout */
.checkout_form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.checkout_form_group {
    margin-bottom: 18px;
}

.checkout_form_group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.checkout_form_group input,
.checkout_form_group textarea,
.checkout_form_group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.checkout_form_group input:focus,
.checkout_form_group textarea:focus {
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(4, 125, 195, 0.2);
    outline: none;
}

.checkout_form_btn_link {
    width: 100%;
    padding: 12px;
    background: var(--primary_color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout_form_btn_link:hover {
    background: var(--primary_hover_color);
}

.checkout_order_summary {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

/* Success Page */
.success_icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

/* Profile */
.profile_left_side {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
}

.profile_pic img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile_name h5 {
    margin-top: 15px;
    font-size: 18px;
}

.profile_menu_list ul li {
    border-bottom: 1px solid var(--border);
}

.profile_menu_list ul li:last-child {
    border-bottom: none;
}

.profile_menu_list ul li a {
    display: block;
    padding: 10px 0;
    color: var(--black);
    transition: all 0.3s ease;
}

.profile_menu_list ul li a:hover,
.profile_menu_list ul li.active a {
    color: var(--primary_color);
}

.profile_menu_list ul li a i {
    margin-right: 10px;
    width: 20px;
}

.profile_right_side {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.profile_form_item {
    margin-bottom: 18px;
}

.profile_form_item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.profile_form_item input,
.profile_form_item textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.profile_form_item input:focus,
.profile_form_item textarea:focus {
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(4, 125, 195, 0.2);
    outline: none;
}

.profile_form_submit_btn_link {
    width: 100%;
    padding: 12px;
    background: var(--primary_color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile_form_submit_btn_link:hover {
    background: var(--primary_hover_color);
}

/* Order Tracking */
.order_tracking_content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.order_tracking_header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.order_tracking_search input {
    height: 45px;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.order_tracking_search input:focus {
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(4, 125, 195, 0.2);
    outline: none;
}

/* Sticky Header */
.sticky_header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
}