/* ===== MODERN MEGA MENU & NAVIGATION STYLES ===== */

.mm-shop-item { position: static !important; }
.mm-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid #eee;
}
.mm-shop-item:hover .mm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mm-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
}
.mm-categories {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}
.mm-col-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.2s;
}
.mm-col-heading:hover { color: #c0392b; }
.mm-col-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}
.mm-col-icon-placeholder {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
}
.mm-sublist { list-style: none; padding: 0; margin: 0; }
.mm-sublink {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-left: -10px;
}
.mm-sublink:hover {
    color: #1a1a1a;
    background: #f9f9f9;
    transform: translateX(5px);
}
.mm-sub-arrow {
    font-size: 10px;
    margin-right: 10px;
    opacity: 0;
    transition: all 0.2s;
}
.mm-sublink:hover .mm-sub-arrow { opacity: 1; color: #c0392b; }
.mm-sub-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.mm-sublink:hover .mm-sub-img { opacity: 1; }

/* Promo Banner */
.mm-promo { flex: 1.2; }
.mm-promo-card { display: block; height: 100%; text-decoration: none; overflow: hidden; border-radius: 12px; }
.mm-promo-bg {
    height: 100%;
    padding: 40px 30px;
    display: flex;
    align-items: flex-end;
    position: relative;
    transition: transform 0.4s ease;
}
.mm-promo-card:hover .mm-promo-bg { transform: scale(1.03); }
.mm-promo-content { position: relative; z-index: 2; }
.mm-promo-badge {
    background: #c0392b;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
}
.mm-promo-title { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.mm-promo-sub { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 20px; }
.mm-promo-btn {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mm-promo-btn i { font-size: 12px; transition: transform 0.2s; }
.mm-promo-card:hover .mm-promo-btn i { transform: translateX(5px); }

/* General Navigation Enhancements */
.box-nav-menu .item-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    padding: 20px 0;
    position: relative;
    color: #1a1a1a;
    transition: color 0.3s;
}

.box-nav-menu .item-link:hover {
    color: #c0392b;
}

.mm-arrow { font-size: 10px; margin-left: 4px; transition: transform 0.3s; }
.mm-shop-item:hover .mm-arrow { transform: rotate(180deg); }

/* Mobile View Header Enhancements */
@media (max-width: 1199px) {
    .tf-header {
        padding: 5px 0;
    }
    .logo-site img {
        max-height: 44px;
    }
    .nav-icon-list {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
    }
    .nav-icon-list > li {
        display: flex !important;
        align-items: center;
    }
    .nav-icon-item .icon {
        font-size: 20px;
    }
    .shop-cart .count {
        top: -5px;
        right: -8px;
    }

    /* Mobile Menu Accordion */
    .nav-ul-mb {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mb-menu-link-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f0f0f0;
    }
    .mb-menu-link {
        flex: 1;
        padding: 14px 10px;
        font-size: 15px;
        font-weight: 500;
        color: #444;
        text-decoration: none;
        display: block;
    }
    .mb-menu-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #888;
        transition: transform 0.3s;
    }
    .mb-menu-toggle.active {
        transform: rotate(180deg);
        color: #c0392b;
    }
    .mb-submenu {
        list-style: none;
        padding-left: 20px;
        display: none; /* Controlled by JS */
        background: #fafafa;
    }
    .mb-submenu .mb-menu-link {
        font-size: 14px;
        padding: 12px 10px;
        color: #666;
    }
    .mb-menu-item-has-children.active > .mb-submenu {
        display: block;
    }
.cursor-pointer { cursor: pointer; }
}

/* Product Detail Tabs & Reviews */
.widget-menu-tab {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
    margin-bottom: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.widget-menu-tab::-webkit-scrollbar { display: none; }

.widget-menu-tab .item-title {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: #888;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}
.widget-menu-tab .item-title.active {
    color: #000;
}
.widget-menu-tab .item-title.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
}

/* Policy Content */
.pd-policy-icons .policy-item {
    background: #fcfcfc;
    padding: 25px 15px;
    border-radius: 12px;
    height: 100%;
    border: 1px solid #f5f5f5;
    transition: all 0.3s;
}
.pd-policy-icons .policy-item:hover {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.pd-policy-icons .policy-item i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

/* Review Summary */
.pd-review-summary-card {
    padding: 45px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    position: sticky;
    top: 100px;
}
.text-star { color: #f39c12; }
.pd-avg-total .h1 { font-size: 3.5rem; }
.pd-rating-bar-item .r-num { width: 50px; font-weight: 500; }
.pd-rating-bar-item .progress { background-color: #f0f0f0; border-radius: 10px; }
.pd-rating-bar-item .progress-bar { background-color: #000; }

/* Review List */
.pd-review-item {
    transition: background 0.2s;
}
.pd-review-item:hover {
    background: #fafafa;
}
.pd-review-item .avatar-sm { font-size: 18px; }

/* General spacing enhancements */
.flat-spacing-10 { padding: 80px 0; }

/* Related Products Slider Fixes */
.card-product .card-product_info {
    text-align: left;
}
.card-product .name-product {
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-badge_list {
    position: absolute;
    top: 10px;
    left: 10px;
    list-style: none;
    padding: 0;
}
.product-badge_item {
    padding: 2px 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .widget-menu-tab { gap: 20px; }
    .widget-menu-tab .item-title { font-size: 15px; }
    .pd-review-summary-card { padding: 25px; margin-bottom: 30px; position: static; }
}

/* Star Rating v2 (Modal) */
.star-rating-v2 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}
.star-rating-v2 input {
    display: none;
}
.star-rating-v2 label {
    font-size: 32px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 5px;
}
.star-rating-v2 label:hover,
.star-rating-v2 label:hover ~ label,
.star-rating-v2 input:checked ~ label {
    color: #f39c12;
}

.pd-review-form .form-control {
    border: 1px solid #e5e5e5;
    background-color: #fcfcfc;
}
.pd-review-form .form-control:focus {
    background-color: #fff;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}
.pd-review-form label {
    font-weight: 500;
}



/* ================== PREMIUM BAGS PRODUCT CARD DESIGN ================== */
.card-product {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.card-product_wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Soft premium corners */
    background: #f7f7f7;
    display: block;
    aspect-ratio: 5/6; /* Premium fashion portrait style */
}

.card-product_wrapper .product-img {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-product_wrapper .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Slide-up Action Button inside Wrapper */
.product-action_bot {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.card-product_wrapper:hover .product-action_bot {
    bottom: 25px;
    opacity: 1;
    pointer-events: auto;
}

.product-action_bot .tf-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    background: #1a1a1a; 
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.product-action_bot .tf-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: #fff;
}

/* Info Section (Title & Price) */
.card-product_info {
    text-align: left;
    padding: 20px 5px 10px 5px;
}

.card-product_info .name-product {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.card-product_info .name-product:hover {
    color: #c0392b;
}

.card-product_info .price-wrap {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: baseline;
}
.card-product_info .price-wrap .price-old {
    text-decoration: line-through;
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 400;
}
.card-product_info .price-wrap .price-new {
    color: #d90429;
    font-weight: 700;
    font-size: 17px;
}

/* Float actions (Wishlist/Eye/Compare) */
.product-action_list {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(10px);
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
}
.card-product_wrapper:hover .product-action_list {
    opacity: 1;
    transform: translateX(0);
}
.product-action_list .box-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}
.product-action_list .box-icon:hover {
    background: #48664b;
    color: #fff;
}
.product-badge_list {
    position: absolute;
    top: 15px;
    left: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}
.product-badge_item {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}



/* Premium Shopping Cart Sidebar Override */
.popup-shopping-cart.offcanvas {
    width: 100% !important;
    border-left: none;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
}

@media (min-width: 576px) {
    .popup-shopping-cart.offcanvas {
        width: 450px !important;
    }
}

@media (min-width: 992px) {
    .popup-shopping-cart.offcanvas {
        width: 780px !important;
    }
    
    .popup-shopping-cart.offcanvas {
        display: flex !important;
        flex-direction: row !important;
    }
}

.tf-mini-cart-item {
    transition: all 0.3s ease;
}

.tf-mini-cart-item:hover {
    background: #fcfcfc;
}

.tf-mini-cart-item .remove {
    cursor: pointer;
    transition: all 0.2s;
}

.tf-mini-cart-item .remove:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.last-child-mb-0:last-child {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.transition-03 {
    transition: all 0.3s ease;
}

.hover-danger:hover {
    color: #d9534f !important;
}

.tf-mini-cart-bottom .tf-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.tf-progress-bar .value {
    border-radius: 10px;
}

@media(max-width:767px){
    .card-product_info {
    text-align: left;
    padding: 5px;
}
}
