:root {
    --primary: #2563EB;
}

/* Shop Grid */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

/* Card Design */
.fmb-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.fmb-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fmb-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.fmb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fmb-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.fmb-card-body {
    padding: 15px;
    text-align: center;
}

.fmb-title {
    font-size: 16px;
    margin: 10px 0;
}

.fmb-title a {
    text-decoration: none;
    color: #333;
}

.fmb-price {
    font-weight: bold;
    color: #2563EB;
    margin-bottom: 10px;
}

/* Buttons */
.fmb-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-order {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
}

.btn-view {
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    padding: 8px;
    display: block;
    border-radius: 4px;
}

/* Modal CSS */
.fmb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fmb-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.fmb-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.fmb-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.fmb-form-group input,
.fmb-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.fmb-submit-btn {
    width: 100%;
    padding: 10px;
    background: #2563EB;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 4px;
}

/* --- WooCommerce My Account Fixes --- */

/* Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    float: none !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background-color: transparent;
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Active Menu Item */
.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation-link--is-active a {
    background-color: var(--primary, #2563EB) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* My Account Content Area */
.woocommerce-MyAccount-content {
    font-size: 15px;
    color: #374151;
    float: none !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.woocommerce-MyAccount-content mark {
    background: transparent;
    font-weight: 700;
    color: #111827;
}

/* Orders Table Design */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-orders-table,
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-orders-table th,
.woocommerce-table--order-details th {
    background-color: #f9fafb;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.woocommerce-MyAccount-content table.shop_table td,
.woocommerce-orders-table td,
.woocommerce-table--order-details td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: middle;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges in Orders Table */
.order-status {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.order-status.status-processing { background: #dbeafe; color: #1e40af; }
.order-status.status-completed { background: #d1fae5; color: #065f46; }
.order-status.status-on-hold { background: #fef3c7; color: #92400e; }
.order-status.status-pending { background: #f3f4f6; color: #4b5563; }
.order-status.status-cancelled, .order-status.status-failed { background: #fee2e2; color: #991b1b; }

/* Buttons inside Account */
.woocommerce-MyAccount-content .button,
.woocommerce-Button,
.order-again .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary, #2563EB) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-Button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Secondary Buttons (View Order, etc.) */
.woocommerce-orders-table__cell-order-actions .button {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #d1d5db;
}

.woocommerce-orders-table__cell-order-actions .button:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Addresses Grid */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (min-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce-Address {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.woocommerce-Address-title .edit {
    font-size: 14px;
    color: var(--primary, #2563EB);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-Address-title .edit:hover {
    text-decoration: underline;
}

.woocommerce-Address address {
    font-style: normal;
    color: #4b5563;
    line-height: 1.6;
}

/* Forms in My Account */
.woocommerce-MyAccount-content form {
    background: #fff;
    max-width: 600px;
}

.woocommerce-MyAccount-content .woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background-color: #f9fafb;
}

.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-MyAccount-content input[type="tel"]:focus {
    border-color: var(--primary, #2563EB);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.woocommerce-MyAccount-content fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
    background: #fafafa;
}

.woocommerce-MyAccount-content legend {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    padding: 0 10px;
}

/* Alerts (Success/Error/Info) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-message .button,
.woocommerce-info .button {
    background: transparent !important;
    border: 1px solid currentColor !important;
    padding: 4px 12px !important;
}

/* Success (Green) */
.woocommerce-message {
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

/* Info (Blue) */
.woocommerce-info {
    background-color: #eff6ff;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

/* Error (Red) */
.woocommerce-error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    list-style: none;
    margin-left: 0;
    padding-left: 20px;
}
.woocommerce-error li {
    margin-bottom: 4px;
}
.woocommerce-error li:last-child {
    margin-bottom: 0;
}


/* --- Checkout & Cart Styles --- */

/* Input Fields (WooCommerce Default Inputs) */
.woocommerce-input-wrapper {
    width: 100%;
}

.input-text,
select,
.woocommerce textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.input-text:focus,
select:focus,
.woocommerce textarea:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Labels */
.woocommerce-form__label,
label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

/* Cart Totals Table */
.cart_totals h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart_totals th,
.cart_totals td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart_totals th {
    text-align: left;
    color: #555;
    font-weight: normal;
}

.cart_totals td {
    text-align: right;
    font-weight: bold;
    color: #000;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background-color: #2563EB !important;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #000;
}

/* Checkout Payment Methods */
#payment {
    background: #fff;
    border-radius: 6px;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

#payment ul.payment_methods li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

#payment ul.payment_methods li:last-child {
    border: none;
}

#payment div.payment_box {
    background-color: #f3f4f6;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    border-radius: 4px;
}

/* Place Order Button */
#place_order {
    width: 100%;
    background-color: #2563EB !important;
    color: white;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

#place_order:hover {
    background-color: #000;
}

/* WooCommerce Blocks Support */
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
button.wc-block-components-button.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wc-block-components-button {
    background-color: #2563EB !important;
    color: white !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover,
button.wc-block-components-button.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-button:hover {
    background-color: #000 !important;
}







/*----------------------------------------------
----------------------------------------------*/


/* Global Layout Fix for WooCommerce Pages */
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-account,
.page-template-default {
    background-color: #f9fafb;
    /* হালকা গ্রে ব্যাকগ্রাউন্ড */
}

/* কন্টেন্ট মাঝখানে আনা এবং সাইডে জায়গা রাখা */
.woocommerce-cart .fmb-container,
.woocommerce-checkout .fmb-container,
.woocommerce-account .fmb-container,
div#content,
.site-content,
.page-content {
    max-width: 1280px;
    /* সর্বোচ্চ চওড়া */
    margin: 0 auto;
    /* মাঝখানে আনবে */
    padding: 40px 20px;
    /* ডানে-বামে ২০ পিক্সেল জায়গা রাখবে */
}

/* সাদা বক্স এফেক্ট */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}