/**
 * Mukto Mona - Main Stylesheet
 *
 * Theme: Mukto Mona (Cutly BD)
 * Version: 1.0.0
 * Text Domain: mukto-mona
 *
 * TABLE OF CONTENTS:
 * 1. BASE
 * 2. BUTTONS
 * 3. HEADER
 * 4. HERO SECTION
 * 5. WOOCOMMERCE ADD TO CART (Simple + Variable)
 * 6. TRUST BADGES
 * 7. CROSS-SELLS / PRODUCT CARDS
 * 8. QUICK VIEW MODAL
 * 9. CHECKOUT SECTION
 * 10. RETURN FORM
 * 11. FOOTER
 * 12. FLOATING BUTTONS
 * 13. TOAST NOTIFICATION
 * 14. SPINNER
 * 15. BODY STATES
 */

/* ===== 1. BASE ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    color: var(--mm-dark);
    line-height: 1.6;
    background: var(--mm-bg);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    background: var(--mm-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 999;
}

/* ===== 2. BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: var(--mm-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--mm-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== 3. HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

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

.custom-text-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--mm-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-text-logo strong {
    color: var(--mm-primary);
}

.site-branding {
    flex-shrink: 0;
}

.main-navigation {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.nav-menu {
    list-style: none;
    display: inline-flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.header-track-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mm-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.header-track-link:hover {
    background: var(--mm-primary-hover);
    color: #fff;
}

.nav-menu li a {
    color: var(--mm-dark);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
}

.nav-menu li a:hover {
    color: var(--mm-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon, .account-icon {
    position: relative;
    font-size: 20px;
    color: var(--mm-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-icon {
    margin-right: 5px;
}

.muktomona-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--mm-primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--mm-dark);
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    padding: 60px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-drawer .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--mm-border);
    color: var(--mm-dark);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ===== 4. HERO SECTION ===== */

.hero-section {
    padding: 40px 0;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.hero-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-main-image {
    width: 100%;
    background: var(--mm-bg-light);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.hero-main-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-main-image:hover img {
    transform: scale(1.04);
}

.hero-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-thumbnail {
    width: 72px;
    height: 72px;
    border: 2px solid var(--mm-border);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
    padding: 4px;
    background: #fff;
    flex-shrink: 0;
}

.hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-thumbnail.active,
.hero-thumbnail:hover {
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--mm-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.hero-badge {
    display: inline-block;
    background: var(--mm-primary-light);
    color: var(--mm-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.hero-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.hero-rating .stars,
.hero-rating .star-rating {
    color: var(--mm-star);
}

.rating-number {
    font-weight: 600;
}

.review-count {
    color: var(--mm-gray);
    font-size: 14px;
}

.hero-price {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.hero-price ins {
    color: var(--mm-primary);
    text-decoration: none;
}

.hero-price del {
    color: var(--mm-gray);
    font-size: 18px;
    margin-left: 8px;
    font-weight: 400;
}

.hero-price .amount {
    color: var(--mm-primary);
}

.hero-description {
    color: var(--mm-gray);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.hero-features {
    list-style: none;
    margin-bottom: 25px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.hero-features li i {
    color: var(--mm-primary);
    width: 20px;
}

.hero-trust {
    display: flex;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--mm-border);
    margin-top: 20px;
    font-size: 13px;
    color: var(--mm-gray);
    flex-wrap: wrap;
}

.hero-trust div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-trust i {
    color: var(--mm-primary);
}

/* ===== 5. WOOCOMMERCE ADD TO CART (in hero and modal) — CRITICAL FOR VARIABLE PRODUCTS ===== */

form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.variations {
    width: 100%;
    margin-bottom: 15px;
}

.variations tr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.variations label {
    font-weight: 600;
    min-width: 80px;
}

.variations select {
    padding: 10px 12px;
    border: 1px solid var(--mm-border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    min-width: 150px;
}

.variations select:focus {
    outline: none;
    border-color: var(--mm-primary);
}

.reset_variations {
    color: var(--mm-danger);
    font-size: 12px;
    margin-left: 10px;
}

.single_variation_wrap {
    width: 100%;
}

.woocommerce-variation-price {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

form.cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--mm-border);
    border-radius: 8px;
    overflow: hidden;
}

form.cart .quantity input.qty {
    width: 60px;
    text-align: center;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    -moz-appearance: textfield;
}

form.cart .quantity input.qty::-webkit-outer-spin-button,
form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

form.cart button.single_add_to_cart_button {
    background: var(--mm-primary);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    min-height: 46px;
}

form.cart button.single_add_to_cart_button:hover {
    background: var(--mm-primary-hover);
}

form.cart button.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 6. TRUST BADGES ===== */

.trust-badges-section {
    padding: 30px 0;
    background: #fff;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px;
    background: var(--mm-bg-light);
    border-radius: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mm-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.badge-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.badge-subtitle {
    font-size: 12px;
    color: var(--mm-gray);
}

/* ===== 7. CROSS-SELLS / PRODUCT CARDS ===== */

.cross-sells-section {
    padding: 60px 0;
    background: #fff;
}

.cross-sells-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--mm-primary-light);
}

.product-card-image-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.product-card-image {
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Total view, no cropping */
    padding: 10px; /* Some padding around the full image */
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 52, 54, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 3;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.btn-fancy-view {
    background: #fff;
    color: var(--mm-dark);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card:hover .btn-fancy-view {
    transform: translateY(0);
}

.btn-fancy-view:hover {
    background: var(--mm-primary);
    color: #fff;
}

.product-card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: var(--mm-dark);
}

.product-card-title a:hover {
    color: var(--mm-primary);
}

.product-card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--mm-primary);
    margin-bottom: 10px;
}

.product-card-rating {
    margin-top: auto;
}

.product-card-rating .star-rating {
    font-size: 12px;
    color: var(--mm-star);
}

.product-card .sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--mm-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 4;
}

/* ===== 8. QUICK VIEW MODAL ===== */

.muktomona-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muktomona-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.muktomona-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 1020px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.muktomona-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.muktomona-modal-body {
    padding: 24px 24px 0;
}

/* ===== QUICK VIEW WRAP ===== */
.qv-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- TOP: Gallery + Core Info --- */
.qv-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--mm-border);
}

/* Gallery */
.qv-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.qv-main-image-wrap {
    position: relative;
    background: var(--mm-bg-light);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-main-image-wrap img#qv-main-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.qv-main-image-wrap:hover img#qv-main-img {
    transform: scale(1.04);
}

.qv-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qv-thumb {
    width: 66px;
    height: 66px;
    border: 2px solid var(--mm-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--mm-bg-light);
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.qv-thumb.active,
.qv-thumb:hover {
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 2px rgba(108,92,231,0.18);
}

.qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Details */
.qv-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.qv-rating-num {
    font-weight: 700;
    font-size: 14px;
}

.qv-review-count {
    font-size: 13px;
    color: var(--mm-gray);
}

.qv-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
}

.qv-price .amount {
    color: var(--mm-primary);
}

.qv-price ins {
    text-decoration: none;
}

.qv-price del {
    font-size: 16px;
    color: var(--mm-light-gray);
    font-weight: 400;
}

.qv-short-desc {
    font-size: 14px;
    color: var(--mm-gray);
    line-height: 1.7;
    margin-bottom: 14px;
}

.qv-stock {
    margin-bottom: 16px;
}

.qv-add-to-cart {
    margin-bottom: 16px;
}

.qv-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--mm-gray);
    border-top: 1px solid var(--mm-border);
    padding-top: 14px;
}

.qv-trust div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qv-trust i {
    color: var(--mm-primary);
}

/* --- BOTTOM: Tabs --- */
.qv-bottom {
    padding: 0 0 28px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--mm-border);
}

.qv-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mm-border);
    margin-bottom: 24px;
}

.qv-tab-btn {
    padding: 14px 22px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--mm-gray);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.qv-tab-btn:hover {
    color: var(--mm-primary);
}

.qv-tab-btn.active {
    color: var(--mm-primary);
    border-bottom-color: var(--mm-primary);
}

.qv-tab-count {
    background: var(--mm-primary);
    color: #fff;
    font-size: 11px;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 700;
}

.qv-tab-panel {
    display: none;
    font-size: 14px;
    color: var(--mm-dark);
    line-height: 1.75;
}

.qv-tab-panel.active {
    display: block;
}

.qv-tab-panel p {
    margin-bottom: 12px;
}

.qv-no-content {
    color: var(--mm-gray);
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: var(--mm-bg-light);
    border-radius: 8px;
}

/* Specs Table */
.qv-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.qv-specs-table tr:nth-child(even) {
    background: var(--mm-bg-light);
}

.qv-specs-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--mm-dark);
    width: 35%;
    border-right: 1px solid var(--mm-border);
}

.qv-specs-table td {
    padding: 10px 14px;
    color: var(--mm-gray);
}

.qv-specs-table tr {
    border-bottom: 1px solid var(--mm-border);
}

/* Review Cards */
.qv-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qv-review-card {
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.qv-review-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.qv-review-head img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.qv-review-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.qv-review-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qv-review-date {
    font-size: 12px;
    color: var(--mm-gray);
}

.qv-review-body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--mm-dark);
}

.qv-error {
    text-align: center;
    padding: 40px;
    color: var(--mm-gray);
}

/* Preserve stock + old classes still used in checkout */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stock-status.in-stock {
    background: rgba(0, 184, 148, 0.1);
    color: var(--mm-success);
}

.stock-status.out-of-stock {
    background: rgba(255, 118, 117, 0.1);
    color: var(--mm-danger);
}

.loading-spinner {
    padding: 60px 20px;
    text-align: center;
}

/* ===== 9. CHECKOUT SECTION ===== */

.checkout-section {
    padding: 60px 0;
    background: #F7F5FF;
}

.checkout-box {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.06);
}

.checkout-header {
    margin-bottom: 28px;
}

.checkout-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 5px;
}

.checkout-header h2 i {
    color: var(--mm-primary);
}

.checkout-header p {
    color: var(--mm-gray);
    font-size: 14px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.checkout-form-col h3,
.checkout-summary-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-summary-card {
    background: var(--mm-bg-light);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 24px;
}

.checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-fields .form-group-full {
    grid-column: 1 / -1;
}

.checkout-fields .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mm-dark);
    margin-bottom: 6px;
    display: block;
}

.checkout-fields .form-group input,
.checkout-fields .form-group select {
    padding: 12px 16px;
    border: 1px solid var(--mm-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    width: 100%;
    transition: all 0.2s ease;
}

.checkout-fields .form-group input:focus,
.checkout-fields .form-group select:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.checkout-variations {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #fff;
    border: 1px dashed var(--mm-border);
    border-radius: 10px;
}

.checkout-variations .form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.checkout-variations select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mm-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.checkout-variations select:focus {
    outline: none;
    border-color: var(--mm-primary);
}

.summary-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    border: 1px solid var(--mm-border);
    border-radius: 8px;
    padding: 2px;
    background: #fff;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--mm-primary-light);
    color: var(--mm-primary);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--mm-primary);
    color: #fff;
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.summary-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--mm-border);
    align-items: center;
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--mm-bg-light);
    border-radius: 8px;
}

.summary-item-info {
    flex: 1;
}

.summary-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-item-info p {
    font-size: 12px;
    color: var(--mm-gray);
}

.summary-item-price {
    font-weight: 700;
    font-size: 14px;
}

.summary-totals {
    padding: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.total-row.grand {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--mm-border);
    padding-top: 15px;
    margin-top: 10px;
}

.total-row.grand .amount {
    color: var(--mm-primary);
}

.checkout-response {
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.checkout-response.success {
    background: rgba(0, 184, 148, 0.12);
    color: #007961;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.checkout-response.error {
    background: rgba(255, 118, 117, 0.12);
    color: #C0392B;
    border: 1px solid rgba(255, 118, 117, 0.3);
}

#muktomona-place-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.checkout-payment-note {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(249, 202, 36, 0.1);
    border-left: 4px solid var(--mm-star);
    border-radius: 8px;
    margin: 20px 0;
}

.checkout-payment-note i {
    color: var(--mm-star);
    font-size: 24px;
}

.checkout-payment-note strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.checkout-payment-note p {
    font-size: 12px;
    color: var(--mm-gray);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--mm-gray);
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-message i {
    font-size: 48px;
    color: var(--mm-light-gray);
    margin-bottom: 15px;
}

.empty-cart-message p {
    margin-bottom: 20px;
    color: var(--mm-gray);
}

/* ===== 10. RETURN FORM ===== */

.return-section {
    padding: 60px 0;
    background: #fff;
}

.return-section .container {
    max-width: 800px;
}

.return-header {
    margin-bottom: 30px;
}

.return-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 5px;
}

.return-header p {
    color: var(--mm-gray);
}

.return-form {
    background: #E8F5E9;
    border-radius: 16px;
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-single {
    grid-template-columns: 1fr;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.required {
    color: var(--mm-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--mm-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.file-upload-area {
    border: 2px dashed var(--mm-border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--mm-primary);
    background: var(--mm-primary-light);
}

.file-upload-area i {
    font-size: 32px;
    color: var(--mm-primary);
    margin-bottom: 10px;
}

.upload-text {
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 12px;
    color: var(--mm-gray);
}

.file-preview img {
    max-width: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-submit-return {
    width: 100%;
    background: var(--mm-success);
    color: #fff;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-submit-return:hover {
    background: #00A085;
}

.form-response {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.form-response.success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--mm-success);
}

.form-response.error {
    background: rgba(255, 118, 117, 0.1);
    color: var(--mm-danger);
}

/* ===== 11. FOOTER ===== */

.site-footer {
    background: #1A1A2E;
    color: var(--mm-light-gray);
    margin-top: 40px;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    display: block;
    max-width: 100%;
}

img.mm-custom-footer-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.footer-logo .accent {
    color: var(--mm-primary);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--mm-primary);
    transform: translateY(-2px);
    color: #fff;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    padding: 6px 0;
}

.footer-links li a {
    color: var(--mm-light-gray);
    font-size: 14px;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--mm-primary);
    margin-top: 4px;
    width: 16px;
}

.footer-contact li a {
    color: var(--mm-light-gray);
}

.footer-contact li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-legal a {
    color: var(--mm-light-gray);
    margin-left: 15px;
}

.footer-legal a:hover {
    color: #fff;
}

/* ===== 12. FLOATING BUTTONS ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mm-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--mm-primary-hover);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 30px;
    z-index: 90;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ===== 13. TOAST NOTIFICATION ===== */

.muktomona-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--mm-dark);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.muktomona-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.muktomona-toast.success {
    background: var(--mm-success);
}

.muktomona-toast.error {
    background: var(--mm-danger);
}

/* ===== 14. SPINNER ===== */

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: muktomona-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes muktomona-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 15. BODY STATES ===== */

body.modal-open, 
body.side-cart-open {
    overflow: hidden;
}

/* ===== 17. ACCOUNT DRAWER ===== */

.account-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}

.account-drawer-open .account-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

.account-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%; /* Takes up half space as requested */
    min-width: 50vw;
    height: 100vh;
    background: #fff;
    z-index: 20001;
    box-shadow: -14px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.account-drawer-open .account-drawer {
    transform: translateX(0);
}

.account-drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--mm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-drawer-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--mm-gray);
}

.account-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.account-form .form-group {
    margin-bottom: 20px;
}

.account-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.account-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--mm-bg-light);
}

.account-form .form-group input:focus {
    outline: none;
    border-color: var(--mm-primary);
    background: #fff;
}

.form-terms {
    font-size: 12px;
    color: var(--mm-gray);
    margin: 20px 0;
}

.account-benefits {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed var(--mm-border);
}

.account-benefits h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.account-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--mm-gray);
    margin-bottom: 12px;
}

.account-benefits li i {
    color: var(--mm-success);
}

/* Dashboard Drawer */
.dashboard-drawer-body {
    padding: 28px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.dashboard-sidebar-card {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-user-box {
    background: #0f4f3c;
    color: #fff;
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.dashboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f9b31c;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

.dashboard-user-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-user-box p {
    font-size: 14px;
    opacity: 0.85;
}

.dashboard-nav-list {
    list-style: none;
    padding: 16px;
    margin: 0;
}

.dashboard-nav-list li + li {
    margin-top: 8px;
}

.dashboard-nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--mm-dark);
    font-weight: 600;
}

/* Large Refund Link as seen in screenshot */
.dashboard-nav-list a[href="#return-section"] {
    flex-direction: column;
    text-align: center;
    padding: 30px 10px;
    font-size: 24px;
    gap: 15px;
}

.dashboard-nav-list a[href="#return-section"] i {
    font-size: 32px;
}

.dashboard-nav-list a:hover {
    background: var(--mm-primary-light);
    color: var(--mm-primary);
}

.dashboard-logout {
    color: var(--mm-danger) !important;
}

.dashboard-main-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-hero-card {
    background: #0f4f3c;
    color: #fff;
    border-radius: 18px;
    padding: 28px 34px;
}

.dashboard-greeting {
    display: inline-block;
    color: #f9b31c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    margin-bottom: 10px;
}

.dashboard-hero-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-hero-card p {
    color: rgba(255,255,255,0.82);
    max-width: 520px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dashboard-stat-card {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 22px 18px;
}

.dashboard-stat-card .stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mm-primary-light);
    color: var(--mm-primary);
    margin-bottom: 18px;
}

.dashboard-stat-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.dashboard-stat-card span:last-child {
    font-size: 14px;
    color: var(--mm-gray);
}

.dashboard-recent-card {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 22px 26px;
}

.dashboard-recent-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-recent-head h4 {
    font-size: 20px;
    font-weight: 700;
}

.dashboard-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dashboard-order-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.dashboard-order-item p {
    color: var(--mm-gray);
    font-size: 14px;
}

.dashboard-order-status {
    background: rgba(249, 202, 36, 0.18);
    color: #b7791f;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--mm-border);
}

.dashboard-order-footer span {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .account-drawer {
        width: 80%;
        right: -80%;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .account-drawer {
        width: 100%;
        right: -100%;
    }
    .account-form div[style*="display:flex"] {
        flex-direction: column;
    }
}

/* ===== 18. SIDE CART DRAWER ===== */

.side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.side-cart-open .side-cart-overlay {
    opacity: 1;
    visibility: visible;
}

.side-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
}

.side-cart-open .side-cart-drawer {
    right: 0;
}

.side-cart-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--mm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--mm-bg-light);
}

.side-cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-cart-header h3 i {
    color: var(--mm-primary);
}

.side-cart-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--mm-gray);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.side-cart-close:hover {
    color: var(--mm-danger);
    background: rgba(255, 118, 117, 0.1);
}

.side-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.side-cart-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--mm-border);
    background: var(--mm-bg-light);
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.side-cart-total-amount {
    color: var(--mm-primary);
}

.side-cart-checkout-btn {
    margin-bottom: 8px;
}

.side-cart-continue {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--mm-gray);
}

/* ===== Mini Cart Items ===== */

.widget_shopping_cart_content {
    padding: 0;
}

.widget_shopping_cart .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item {
    display: flex;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--mm-border);
    position: relative;
    align-items: center;
    transition: background 0.2s;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item:hover {
    background: var(--mm-bg-light);
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item img,
.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .attachment-woocommerce_thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--mm-bg-light);
    border: 1px solid var(--mm-border);
    flex-shrink: 0;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item > a:first-child {
    display: contents;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item a:not(.remove) {
    color: var(--mm-dark);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .quantity {
    display: block;
    font-size: 13px;
    color: var(--mm-gray);
    margin-top: 4px;
    font-weight: 400;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .amount {
    color: var(--mm-primary);
    font-weight: 700;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .remove,
.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .remove_from_cart_button {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 118, 117, 0.1);
    color: var(--mm-danger) !important;
    font-size: 16px;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s;
}

.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .remove:hover,
.widget_shopping_cart .woocommerce-mini-cart .mini_cart_item .remove_from_cart_button:hover {
    background: var(--mm-danger);
    color: #fff !important;
    transform: scale(1.1);
}

/* WC Default Totals and Buttons (hidden — we use our own footer) */
.widget_shopping_cart .woocommerce-mini-cart__total,
.widget_shopping_cart .woocommerce-mini-cart__buttons {
    display: none;
}

/* Empty Cart */
.widget_shopping_cart .woocommerce-mini-cart__empty-message,
.widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 60px 24px;
    color: var(--mm-gray);
    font-size: 15px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__empty-message::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: 48px;
    color: var(--mm-light-gray);
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .side-cart-drawer {
        width: 100%;
    }
}

/* ===== 16. COMBO OFFER ===== */

.mm-combo-offer {
    width: 100%;
    margin: 0 0 18px;
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    padding: 14px;
}

.mm-combo-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--mm-primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mm-combo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--mm-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fff;
}

.mm-combo-item:hover {
    border-color: var(--mm-primary);
    background: var(--mm-bg-light);
}

.mm-combo-item.active {
    border-color: var(--mm-primary);
    background: var(--mm-primary-light);
}

.mm-combo-item input[type="checkbox"] {
    display: none;
}

.mm-combo-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--mm-border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
}

.mm-combo-item.active .mm-combo-radio {
    border-color: var(--mm-primary);
    background: var(--mm-primary);
}

.mm-combo-item.active .mm-combo-radio::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.mm-combo-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--mm-border);
    background: var(--mm-bg-light);
    flex-shrink: 0;
}

.mm-combo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-combo-info {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.mm-combo-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--mm-dark);
}

.mm-combo-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--mm-primary);
    white-space: nowrap;
}

.variations select.mm-combo-disabled {
    opacity: 0.55;
    background: #f2f2f2;
    pointer-events: none;
}

.variations tr.mm-combo-hidden-row {
    display: none !important;
}

/* Hide standard product prices when combo is active to prevent flickering */
.mm-combo-active .hero-price,
.mm-combo-active .qv-price,
.mm-combo-active .woocommerce-variation-price,
.mm-combo-active .single_variation .price {
    display: none !important;
}

/* Show only the combo price placeholder when combo is active */
.mm-combo-active .mm-combo-price-display {
    display: block !important;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    color: var(--mm-primary);
}

.mm-combo-active .single_add_to_cart_button {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: all !important;
}

.mm-combo-price-display {
    display: none;
}

/* ===== 17. SHOP MODAL ===== */

.shop-modal-content {
    max-width: 1200px;
    width: 95%;
    padding: 0;
    height: 90vh;
    border-radius: 20px;
}

.shop-modal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100%;
}

/* Sidebar */
.shop-sidebar {
    background: #fff;
    border-right: 1px solid var(--mm-border);
    padding: 30px;
    overflow-y: auto;
}

.shop-sidebar-section {
    margin-bottom: 35px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--mm-dark);
    letter-spacing: 0.5px;
}

.shop-category-list, .shop-filter-list {
    list-style: none;
    padding: 0;
}

.shop-category-list li, .shop-filter-list li {
    font-size: 14px;
    padding: 8px 0;
    color: var(--mm-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.shop-category-list li {
    display: block;
}

.shop-filter-list li {
    display: flex;
    justify-content: space-between;
}

.shop-category-list li:hover > .category-item-main, 
.shop-filter-list li:hover,
.shop-category-list li.active > .category-item-main, 
.shop-filter-list li.active {
    color: var(--mm-primary);
    font-weight: 600;
}

.category-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.toggle-sub {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.has-children.open > .category-item-main .toggle-sub {
    transform: rotate(180deg);
}

.shop-sub-category-list {
    list-style: none;
    padding: 5px 0 5px 15px;
    border-left: 1px solid var(--mm-border);
    margin-bottom: 10px;
}

.shop-sub-category-list .shop-sub-category-list {
    margin-top: 6px;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px dashed var(--mm-border);
}

.shop-sub-category-list li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--mm-gray);
    transition: all 0.2s;
}

.shop-sub-category-list li:hover,
.shop-sub-category-list li.active {
    color: var(--mm-primary);
    font-weight: 600;
}

.cat-count {
    color: var(--mm-light-gray);
    font-size: 12px;
}

.rating-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-filter button {
    background: #fff;
    border: 1px solid var(--mm-border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.rating-filter button.active {
    background: var(--mm-primary);
    color: #fff;
    border-color: var(--mm-primary);
}

/* Shop Content */
.shop-main-content {
    background: var(--mm-bg-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Force shop cards to match "You May Also Like" exactly */
.shop-grid .product-card {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-grid .product-card-image {
    background: var(--mm-bg-light);
    padding: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-grid .product-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 0;
}

.shop-grid .product-card-info {
    padding: 16px;
}

.shop-grid .product-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-grid .product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--mm-primary);
    margin-bottom: 0;
}

/* Hide any leftover shop-only CTA/overlay if cached HTML remains */
.shop-grid .product-card-overlay,
.shop-grid .btn-fancy-view,
.shop-grid .product-card .btn,
.shop-grid .product-card-rating {
    display: none !important;
}

.shop-header {
    background: #fff;
    padding: 25px 40px;
    border-bottom: 1px solid var(--mm-border);
}

.shop-breadcrumbs {
    font-size: 12px;
    color: var(--mm-light-gray);
    margin-bottom: 8px;
}

.shop-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.shop-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#shop-result-count {
    font-size: 13px;
    color: var(--mm-gray);
}

.shop-sort-select {
    padding: 6px 12px;
    border: 1px solid var(--mm-border);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.shop-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    overflow-y: auto;
    flex: 1;
}

/* Reusing .product-card from Section 7 */
.shop-grid .product-card {
    height: 100%;
}

.shop-grid .product-card-image {
    aspect-ratio: 1;
    position: relative;
    padding: 0; /* Remove padding to make image fill card */
}

.shop-grid .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the box perfectly */
}

.shop-grid .sale-badge {
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    font-size: 10px;
}

.shop-loading {
    grid-column: 1 / -1;
    padding: 100px;
    text-align: center;
}

/* Gallery Trigger in Features */
.shop-gallery-trigger-wrap {
    text-align: center;
    margin-top: 50px;
}

.mm-shop-gallery-btn {
    background: var(--mm-primary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
    animation: mmPulse 2.5s infinite;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@keyframes mmPulse {
    0% { transform: scale(1); box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4); }
    100% { transform: scale(1); box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2); }
}

/* ===== 18. TRACK PARCEL MODAL ===== */

.tracking-modal-content {
    max-width: 800px;
    width: 95%;
    padding: 0;
    overflow-y: auto; /* Enable scrolling */
    background: #F8F9FA;
}

.tracking-modal-header {
    background: linear-gradient(135deg, var(--mm-primary) 0%, var(--mm-primary-hover) 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.tracking-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tracking-modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.tracking-modal-header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.tracking-form {
    max-width: 500px;
    margin: 0 auto;
}

.tracking-input-group {
    display: flex;
    background: #fff;
    border-radius: 30px;
    padding: 5px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tracking-input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #636E72;
}

.tracking-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px 12px 50px;
    font-size: 15px;
    outline: none;
    border-radius: 30px;
    color: #2D3436;
}

.tracking-btn {
    background: #F9CA24;
    color: #2D3436;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 700;
}

.tracking-btn:hover {
    background: #f1c40f;
    transform: translateY(0);
}

.tracking-results-wrap {
    padding: 30px;
    background: #F8F9FA;
    min-height: 200px;
}

.tracking-result-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mm-border);
}

.tr-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--mm-gray);
    letter-spacing: 1px;
}

.tr-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0;
}

.tr-header p {
    font-size: 14px;
    color: var(--mm-gray);
}

.tr-status-pill {
    background: rgba(0, 184, 148, 0.1);
    color: var(--mm-success);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.tr-status-pill.status-processing,
.tr-status-pill.status-pending,
.tr-status-pill.status-on-hold {
    background: rgba(249, 202, 36, 0.1);
    color: #e67e22;
}

.tr-status-pill.status-cancelled,
.tr-status-pill.status-failed,
.tr-status-pill.status-refunded {
    background: rgba(255, 118, 117, 0.1);
    color: var(--mm-danger);
}

.tr-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.tr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 60px;
}

.tr-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--mm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-light-gray);
    font-size: 16px;
    transition: all 0.3s ease;
}

.tr-step.active .tr-step-icon {
    border-color: var(--mm-primary);
    background: var(--mm-primary);
    color: #fff;
}

.tr-step span {
    font-size: 12px;
    font-weight: 600;
    color: var(--mm-gray);
}

.tr-step.active span {
    color: var(--mm-dark);
}

.tr-step-line {
    flex: 1;
    height: 4px;
    background: var(--mm-border);
    margin: -20px 0 0 0;
    z-index: 1;
    position: relative;
}

.tr-step-line.active {
    background: var(--mm-primary);
}

.tr-history {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 25px;
}

.tr-history h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tr-timeline {
    position: relative;
    padding-left: 20px;
}

.tr-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: var(--mm-border);
}

.tr-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.tr-timeline-item:last-child {
    margin-bottom: 0;
}

.tr-timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mm-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--mm-primary);
}

.tr-timeline-item:not(:first-child) .tr-timeline-dot {
    background: var(--mm-light-gray);
    box-shadow: none;
    border-color: var(--mm-light-gray);
}

.tr-timeline-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--mm-border);
}

.tr-timeline-content strong {
    display: block;
    font-size: 12px;
    color: var(--mm-gray);
    margin-bottom: 5px;
}

.tr-timeline-content p {
    font-size: 14px;
    font-weight: 500;
    color: var(--mm-dark);
}

/* ===== 18. CUSTOMER REVIEWS ===== */

.reviews-section {
    padding: 60px 0;
    background: #fff;
}

.reviews-header {
    text-align: center;
    margin-bottom: 36px;
}

.reviews-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.reviews-header p {
    color: var(--mm-gray);
    font-size: 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.reviews-summary-card {
    background: var(--mm-bg-light);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    position: sticky;
    top: 90px;
}

.reviews-average-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--mm-dark);
}

.reviews-average-stars {
    margin: 12px 0 6px;
    display: flex;
    justify-content: center;
}

.reviews-average-stars .star-rating {
    color: var(--mm-star);
    font-size: 18px;
}

.reviews-total {
    font-size: 13px;
    color: var(--mm-gray);
    margin-bottom: 20px;
}

.reviews-breakdown {
    margin-bottom: 22px;
    text-align: left;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
}

.breakdown-label {
    min-width: 44px;
    font-weight: 600;
    color: var(--mm-dark);
}

.breakdown-label i {
    color: var(--mm-star);
    font-size: 11px;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: var(--mm-border);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--mm-star);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.breakdown-count {
    min-width: 36px;
    text-align: right;
    color: var(--mm-gray);
    font-size: 12px;
}

.reviews-list {
    display: grid;
    gap: 18px;
}

.review-card {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.review-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mm-success);
    background: rgba(0, 184, 148, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

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

.review-stars .star-rating {
    color: var(--mm-star);
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: var(--mm-gray);
}

.review-content {
    font-size: 14px;
    color: var(--mm-dark);
    line-height: 1.7;
}

.review-content p {
    margin-bottom: 8px;
}

.review-content p:last-child {
    margin-bottom: 0;
}

.reviews-empty {
    text-align: center;
    padding: 50px 20px;
    background: var(--mm-bg-light);
    border: 1px dashed var(--mm-border);
    border-radius: 12px;
    color: var(--mm-gray);
}

.reviews-empty i {
    font-size: 40px;
    color: var(--mm-light-gray);
    margin-bottom: 12px;
}

.review-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: var(--mm-bg-light);
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 32px;
}

.review-form-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.review-form .form-row-single {
    grid-template-columns: 1fr;
}

.review-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.review-form .form-group input,
.review-form .form-group select,
.review-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--mm-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.review-form .form-group input:focus,
.review-form .form-group select:focus,
.review-form .form-group textarea:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.review-star-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 2px;
}

.mm-review-star {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 24px;
    line-height: 1;
    color: #D9D9D9;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.mm-review-star:hover,
.mm-review-star.active {
    color: var(--mm-star);
    transform: scale(1.08);
}

.mm-review-star:focus {
    outline: none;
}

.review-form .must-log-in {
    text-align: center;
    color: var(--mm-gray);
}