/*
Theme Name: Muaz
Theme URI: https://example.com
Author: Muaz
Author URI: https://example.com
Description: A modern, high-performance eCommerce WordPress theme inspired by Othoba.
Version: 1.0.0
Text Domain: muaz
*/

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

body {
    font-family: 'Hind Siliguri', 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    padding-bottom: 0;
}

.muaz-container {
    width: 94%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Top Bar */
.muaz-topbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    color: #666;
    padding: 6px 0;
}

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

.topbar-flex i {
    color: var(--muaz-primary, #f37023);
    margin-right: 4px;
}

/* Main Header */
.muaz-main-header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.muaz-logo {
    flex-shrink: 0;
}

.muaz-logo a {
    text-decoration: none;
    color: var(--muaz-primary, #f37023);
    display: block;
}

.muaz-logo h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muaz-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* Search Bar */
.muaz-search {
    flex: 1;
    max-width: 650px;
}

.muaz-search form {
    display: flex;
    width: 100%;
}

.muaz-search input[type="search"] {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 2px solid var(--muaz-primary, #f37023);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

.muaz-search button {
    background: var(--muaz-primary, #f37023);
    border: 2px solid var(--muaz-primary, #f37023);
    color: #ffffff;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.muaz-search button:hover {
    opacity: 0.9;
}

/* Actions */
.muaz-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

.action-item:hover {
    color: var(--muaz-primary, #f37023);
}

.action-item i {
    font-size: 20px;
    color: var(--muaz-primary, #f37023);
}

.cart-count {
    background: var(--muaz-primary, #f37023);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 6px;
    position: absolute;
    top: -8px;
    left: 12px;
}

/* Navbar & Dropdown */
.muaz-navbar {
    background: var(--muaz-primary, #f37023);
    color: #ffffff;
    position: relative;
    z-index: 99;
}

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

.category-dropdown-wrap {
    position: relative;
    width: 250px;
}

.category-toggle {
    background: rgba(0, 0, 0, 0.18);
    padding: 13px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-toggle .toggle-arrow {
    font-size: 12px;
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 6px 6px;
    display: none;
}

.category-dropdown-wrap:hover .category-dropdown-menu {
    display: block;
}

.category-dropdown-menu ul {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.category-dropdown-menu ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s ease;
}

.category-dropdown-menu ul li a:hover {
    background: #fdf2e9;
    color: var(--muaz-primary, #f37023);
    padding-left: 22px;
}

.primary-nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.primary-nav-links ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 13px 20px;
    display: block;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.primary-nav-links ul li a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Page Base */
.site-content {
    background: #ffffff;
    padding: 20px 0;
}

/* Steps Bar */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
    display: none;
}

.muaz-checkout-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 35px 0;
    font-size: 20px;
    font-weight: 700;
}

.muaz-checkout-steps-bar .step-item {
    color: #666666;
}

.muaz-checkout-steps-bar .step-item.active {
    color: #3498db;
}

.muaz-checkout-steps-bar .step-sep {
    font-size: 15px;
    color: #888888;
}

/* Cart Grid */
.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.woocommerce-cart table.shop_table {
    border-collapse: collapse;
    width: 100%;
    border: none !important;
}

.woocommerce-cart table.shop_table th {
    background: transparent;
    color: #222222;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.woocommerce-cart table.shop_table td {
    padding: 20px 10px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

.woocommerce-cart td.product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 4px;
}

.woocommerce-cart td.product-name a {
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal {
    font-weight: 700;
    color: #222222;
}

.continue-shopping-wrap {
    margin-top: 25px;
}

.muaz-continue-shopping-btn {
    background: #2b2e35;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-cart .coupon input[type="text"] {
    width: 100%;
    max-width: 300px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 12px;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}

.woocommerce-cart .coupon .button {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #222222 !important;
    padding: 0 20px !important;
    height: 38px;
    font-weight: 700 !important;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
}

.woocommerce-cart .cart-collaterals {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 24px;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: #3498db !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 14px 20px !important;
    width: 100%;
    text-align: center;
    border-radius: 4px;
    display: block;
}

/* Checkout Page Grid */
form.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

#customer_details .col-1 {
    width: 100% !important;
    float: none !important;
}

#customer_details .col-2 {
    display: none;
}

.woocommerce-billing-fields h3,
#order_review_heading {
    font-size: 17px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.woocommerce-billing-fields .form-row {
    margin-bottom: 16px;
}

.woocommerce-billing-fields label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="tel"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields textarea {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.woocommerce-billing-fields textarea {
    height: 80px;
    padding: 10px 14px;
}

#order_review {
    background: #fbfbfb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 24px;
}

#order_review table.shop_table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    border: none;
}

#order_review table.shop_table th {
    background: transparent;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

#order_review table.shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

#order_review table.shop_table .product-total,
#order_review table.shop_table tfoot td {
    text-align: right;
    font-weight: 700;
}

#payment {
    background: transparent !important;
    border: none !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
    list-style: none !important;
    padding-left: 0 !important;
}

#payment ul.payment_methods li {
    margin-bottom: 10px;
}

#place_order {
    background: var(--muaz-primary, #f37023) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 14px 20px !important;
    width: 100%;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(243, 112, 35, 0.3);
}

/* ========================================================
   ORDER COMPLETE / THANK YOU PAGE
   ======================================================== */
.woocommerce-order {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    margin: 20px auto 40px auto;
}

.woocommerce-notice.woocommerce-notice--success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 5px solid #2e7d32;
}

ul.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 30px;
}

ul.woocommerce-order-overview li {
    font-size: 13px;
    color: #666;
    border-right: 1px solid #e0e0e0;
    padding-right: 20px;
}

ul.woocommerce-order-overview li:last-child {
    border-right: none;
}

ul.woocommerce-order-overview li strong {
    display: block;
    font-size: 15px;
    color: #222;
    margin-top: 4px;
}

.woocommerce-order h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

/* Single Product Details */
.woocommerce div.product {
    width: 94%;
    max-width: 1240px;
    margin: 0 auto 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce div.product div.images {
    width: 40% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    max-height: 420px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.woocommerce div.product div.images img {
    max-height: 400px;
    width: 100%;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

.woocommerce div.product div.summary {
    width: calc(60% - 30px) !important;
    float: none !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.woocommerce div.product .product_title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.woocommerce div.product p.price {
    font-size: 24px;
    color: var(--muaz-primary, #f37023);
    font-weight: 700;
    margin-bottom: 15px;
}

.muaz-buy-now-btn {
    background: var(--muaz-primary, #f37023) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    height: 42px !important;
    padding: 0 20px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer;
}

.muaz-product-delivery-box {
    background: #fbfbfb;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    font-size: 13px;
}

.delivery-card {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.del-title {
    font-size: 13px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.del-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.del-row i {
    color: #0088cc;
    font-size: 16px;
    margin-top: 3px;
}

.del-call-box {
    background: #fff;
    border: 1px dashed var(--muaz-primary, #f37023);
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.del-call-box i {
    color: var(--muaz-primary, #f37023);
    font-size: 20px;
}

.del-call-box strong {
    color: var(--muaz-primary, #f37023);
    font-size: 14px;
}

/* Footer */
.muaz-footer {
    background: #1e2229;
    color: #aeb4be;
    padding-top: 50px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--muaz-primary, #f37023);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-hotline i {
    color: var(--muaz-primary, #f37023);
}

.footer-time {
    font-size: 12px;
    color: #8c939f;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #aeb4be;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--muaz-primary, #f37023);
    padding-left: 5px;
}

.payment-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-badge {
    background: #2a2f38;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.pay-badge i {
    color: var(--muaz-primary, #f37023);
}

.footer-bottom-bar {
    border-top: 1px solid #2d323d;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #7b8290;
}

/* Mobile Bottom Navigation Bar */
.muaz-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 11px;
    position: relative;
    gap: 3px;
}

.mobile-nav-item i {
    font-size: 18px;
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    right: 6px;
    background: var(--muaz-primary, #f37023);
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    padding: 1px 5px;
    font-weight: 700;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    form.woocommerce-checkout {
        grid-template-columns: 1fr;
    }
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
    }
    .woocommerce div.product div.images {
        width: 100% !important;
    }
    .woocommerce div.product div.summary {
        width: 100% !important;
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    .muaz-mobile-bottom-nav {
        display: flex;
    }
    .header-layout {
        flex-direction: column;
        gap: 15px;
    }
    .muaz-header-actions {
        display: none;
    }
    .category-dropdown-wrap {
        width: 100%;
    }
    .primary-nav-links {
        display: none;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}