/* ============================================
   E-Commerce Optimized Stylesheet
   RoyalTech Computers Limited
   Mobile & Desktop Responsive Optimization
   ============================================ */

/* ============================================
   Product Grid Layout - Enhanced
   ============================================ */

.products-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

@media (max-width: 767px) {
    .products-list {
        margin: 0 -8px;
    }
}

@media (max-width: 575px) {
    .products-list {
        margin: 0 -6px;
    }
}

.product-layout {
    padding: 0 15px;
    margin-bottom: 30px;
}

.product-item-container {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(29, 51, 92, 0.08);
}

.product-item-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(29, 51, 92, 0.2);
    border-color: rgba(29, 51, 92, 0.15);
}

/* Product Image Container - Enhanced */
.product-item-container .left-block {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid rgba(29, 51, 92, 0.05);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Increased for better image prominence */
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(29, 51, 92, 0.03) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-item-container:hover .product-image-container::before {
    opacity: 1;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.product-item-container:hover .product-image-container img {
    transform: scale(1.08);
}

.product-image-container .product-img {
    opacity: 1;
    z-index: 2;
}

.product-image-container .img_0 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
    transform: scale(1);
}

.product-item-container:hover .product-img {
    opacity: 0;
    transform: scale(1.1);
}

.product-item-container:hover .img_0 {
    opacity: 1;
    transform: scale(1.08);
}

/* Quick View Overlay */
.product-item-container .left-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 51, 92, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 4;
    pointer-events: none;
}

.product-item-container:hover .left-block::after {
    opacity: 0;
}

/* Image Zoom Indicator */
.product-item-container .left-block::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 32px;
    z-index: 5;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.product-item-container:hover .left-block::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Product Labels - Enhanced */
.product-item-container .label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.product-item-container:hover .label {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.product-item-container .label-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    font-size: 10px;
    padding: 5px 8px;
    letter-spacing: 0.3px;
}

.product-item-container .label-new {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #ffffff;
}

/* Hide badges on mobile */
@media (max-width: 767px) {
    .product-item-container .label-new {
        display: none !important;
    }
}

.product-item-container .label-percent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    font-size: 9px;
    padding: 3px 6px;
    margin-left: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 3px;
    font-weight: 700;
}

/* Product Content - Enhanced */
.product-item-container .right-block {
    padding: 18px 15px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.product-item-container .caption {
    flex-grow: 0;
    margin-bottom: 8px;
}

.product-item-container .caption h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-item-container .caption h4 a {
    color: #1c2c52;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.product-item-container .caption h4 a:hover {
    color: #4a90e2;
    transform: translateX(2px);
}

/* Ratings */
.product-item-container .ratings {
    margin-bottom: 8px;
}

.product-item-container .rating-box {
    display: flex;
    gap: 2px;
}

.product-item-container .rating-box .fa-stack {
    font-size: 14px;
    color: #ffc107;
}

/* Price Section - Enhanced */
.product-item-container .price {
    margin-bottom: 6px;
    min-height: 24px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 5px 0;
    border-top: 1px solid rgba(29, 51, 92, 0.08);
    border-bottom: 1px solid rgba(29, 51, 92, 0.08);
    white-space: nowrap;
    overflow: hidden;
}

.product-item-container .price-new {
    font-size: 16px;
    font-weight: 800;
    color: #1c2c52;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-item-container .price-old {
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Description */
.product-item-container .description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0;
    display: none; /* Hidden by default in grid view */
}

/* Button Group - Enhanced */
.product-item-container .button-group {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 6px;
    padding-bottom: 0;
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.product-item-container .add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
    background: linear-gradient(135deg, #1c2c52 0%, #2d4a7a 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    gap: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(29, 51, 92, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.product-item-container .buy-now-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    gap: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.product-item-container .buy-now-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-item-container .buy-now-whatsapp:hover::before {
    left: 100%;
}

.product-item-container .buy-now-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.product-item-container .add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-item-container .add-to-cart:hover::before {
    left: 100%;
}

.product-item-container .add-to-cart:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #2d4a7a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 51, 92, 0.4);
}

.product-item-container .add-to-cart:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(29, 51, 92, 0.3);
}

.product-item-container .add-to-cart i {
    font-size: 11px;
}

.product-item-container .buy-now-whatsapp i {
    font-size: 12px;
}

/* ============================================
   Filters & Sorting Section - Enhanced
   ============================================ */

.product-filter.filters-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(29, 51, 92, 0.08);
}

.product-filter .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

/* View Mode Buttons - Enhanced */
.product-filter .view-mode {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-filter .view-mode .list-view {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 10px;
}

.product-filter .view-mode button {
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-filter .view-mode button i {
    transition: all 0.3s ease;
}

.product-filter .view-mode button:hover {
    background: rgba(29, 51, 92, 0.1);
    color: #1c2c52;
    transform: scale(1.05);
}

.product-filter .view-mode button.active {
    background: linear-gradient(135deg, #1c2c52, #2d4a7a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 51, 92, 0.3);
    transform: scale(1.05);
}

.product-filter .view-mode button.active i {
    color: #ffffff;
}

/* Short By Show Section - Enhanced */
.product-filter .short-by-show {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-filter .short-by-show.form-inline {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-filter .short-by-show.text-right {
    justify-content: flex-end;
}

.product-filter .form-group {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.product-filter .form-group.short-by {
    position: relative;
}

.product-filter .form-group label {
    margin: 0;
    font-weight: 600;
    color: #1c2c52;
    white-space: nowrap;
    font-size: 14px;
    min-width: fit-content;
}

.product-filter .form-group label.control-label {
    color: #1c2c52;
    font-weight: 600;
}

.product-filter .form-control {
    padding: 10px 14px;
    padding-right: 35px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1c2c52;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231c2c52' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

.product-filter .form-control:hover {
    border-color: #1c2c52;
}

.product-filter .form-control:focus {
    border-color: #1c2c52;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 51, 92, 0.1);
    background-color: #ffffff;
}

.product-filter .form-control option {
    padding: 10px;
    background: #ffffff;
    color: #1c2c52;
}

.product-filter-bottom {
    margin-top: 30px;
}

.product-filter-bottom .form-group {
    margin: 7px 10px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #999999;
}

.breadcrumb li a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #1c2c52;
}

/* ============================================
   Page Title
   ============================================ */

.offset_title {
    font-size: 32px;
    font-weight: 700;
    color: #1c2c52;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4a90e2;
}

/* ============================================
   Main Container
   ============================================ */

.main-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.main-container .container {
    max-width: 1200px;
}

/* ============================================
   Mobile Optimizations
   ============================================ */

@media (max-width: 991px) {
    /* Product Grid - 2 columns on tablet */
    .product-layout {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Filters - Enhanced Mobile Layout */
    .product-filter.filters-panel {
        padding: 20px;
    }
    
    .product-filter .row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .product-filter .short-by-show {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 15px;
        justify-content: stretch;
    }
    
    .product-filter .short-by-show.form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-filter .short-by-show.text-right {
        justify-content: stretch;
    }
    
    .product-filter .form-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }
    
    .product-filter .form-group label {
        margin-bottom: 0;
        font-size: 13px;
        width: 100%;
    }
    
    .product-filter .form-control {
        width: 100%;
        min-width: 100%;
    }
    
    /* Hide view mode on mobile */
    .product-filter .view-mode,
    .product-filter .visible-lg {
        display: none !important;
    }
    
    /* Page Title */
    .offset_title {
        font-size: 24px;
    }
    
    /* Product Item */
    .product-item-container .caption h4 {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-item-container .price-new {
        font-size: 14px;
    }
    
    .product-item-container .price-old {
        font-size: 11px;
    }
    
    .product-item-container .label-percent {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    /* Button */
    .product-item-container .add-to-cart {
        padding: 6px 8px;
        font-size: 9px;
        gap: 3px;
    }
    
    .product-item-container .buy-now-whatsapp {
        padding: 6px 8px;
        font-size: 9px;
        gap: 3px;
    }
    
    .product-item-container .add-to-cart i,
    .product-item-container .buy-now-whatsapp i {
        font-size: 11px;
    }
    
    .product-item-container .add-to-cart .hidden-xs,
    .product-item-container .buy-now-whatsapp .hidden-xs {
        display: none;
    }
    
    .product-item-container .buy-now-whatsapp {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .product-item-container .add-to-cart .hidden-xs,
    .product-item-container .buy-now-whatsapp .hidden-xs {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Product Grid - 2 columns on mobile */
    .product-layout {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
        margin-bottom: 20px;
    }
    
    /* Product Image Aspect Ratio */
    .product-image-container {
        padding-top: 75%; /* Maintain good image prominence on mobile */
    }
    
    .product-item-container .right-block {
        padding: 15px;
        padding-bottom: 10px;
    }
    
    .product-item-container .caption h4 {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-item-container .price-new {
        font-size: 15px;
    }
    
    .product-item-container .add-to-cart {
        padding: 11px 18px;
        font-size: 13px;
    }
    
    /* Filters Panel - Mobile Optimized */
    .product-filter.filters-panel {
        padding: 18px;
        border-radius: 12px;
    }
    
    .product-filter .row {
        gap: 12px;
    }
    
    .product-filter .short-by-show {
        gap: 12px;
    }
    
    .product-filter .form-group {
        gap: 6px;
    }
    
    .product-filter .form-group label {
        font-size: 12px;
    }
    
    .product-filter .form-control {
        padding: 9px 12px;
        padding-right: 32px;
        font-size: 13px;
    }
    
    /* Page Title */
    .offset_title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        padding: 10px 0;
    }
    
    /* Product Content */
    .product-item-container .right-block {
        padding: 12px;
    }
    
    .product-item-container .caption h4 {
        font-size: 13px;
        min-height: 32px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .product-item-container .price {
        margin-bottom: 6px;
        padding: 4px 0;
    }
    
    .product-item-container .price-new {
        font-size: 14px;
    }
    
    .product-item-container .price-old {
        font-size: 10px;
    }
    
    .product-item-container .label-percent {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .product-item-container .button-group {
        padding-top: 6px;
    }
    
    /* Button */
    .product-item-container .add-to-cart {
        padding: 5px 6px;
        font-size: 8px;
        gap: 2px;
    }
    
    .product-item-container .buy-now-whatsapp {
        padding: 5px 6px;
        font-size: 8px;
        gap: 2px;
    }
    
    .product-item-container .add-to-cart i,
    .product-item-container .buy-now-whatsapp i {
        font-size: 10px;
    }
    
    .product-item-container .ratings {
        margin-bottom: 6px;
    }
    
    .product-item-container .rating-box .fa-stack {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    /* Extra small devices - Still 2 columns */
    .product-filter.filters-panel {
        padding: 15px;
        border-radius: 10px;
    }
    
    .product-filter .row {
        gap: 10px;
    }
    
    .product-filter .short-by-show {
        gap: 10px;
    }
    
    .product-filter .form-group label {
        font-size: 11px;
    }
    
    .product-filter .form-control {
        padding: 8px 10px;
        padding-right: 30px;
        font-size: 12px;
    }
    
    .product-layout {
        padding: 0 6px;
        margin-bottom: 15px;
    }
    
    .product-item-container .right-block {
        padding: 10px;
    }
    
    .product-item-container .caption h4 {
        font-size: 12px;
        min-height: 28px;
    }
    
    .product-item-container .price-new {
        font-size: 15px;
    }
    
    .product-item-container .add-to-cart {
        padding: 6px 8px;
        font-size: 9px;
        gap: 3px;
    }
    
    .product-item-container .buy-now-whatsapp {
        padding: 6px 8px;
        font-size: 9px;
        gap: 3px;
    }
    
    .product-item-container .add-to-cart i,
    .product-item-container .buy-now-whatsapp i {
        font-size: 10px;
    }
    
    .offset_title {
        font-size: 18px;
    }
    
    .product-image-container {
        padding-top: 65%;
    }
}

/* ============================================
   Desktop Enhancements
   ============================================ */

@media (min-width: 992px) {
    /* Product Grid - 3 columns on desktop */
    .product-layout {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Larger product images */
    .product-image-container {
        padding-top: 70%; /* Slightly taller on desktop */
    }
    
    /* Enhanced hover effects */
    .product-item-container:hover {
        transform: translateY(-8px);
    }
}

@media (min-width: 1200px) {
    /* Product Grid - 4 columns on large desktop */
    .product-layout {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ============================================
   List View (when activated)
   ============================================ */

.products-list.list .product-layout {
    flex: 0 0 100%;
    max-width: 100%;
}

.products-list.list .product-item-container {
    flex-direction: row;
}

.products-list.list .product-item-container .left-block {
    flex: 0 0 250px;
    max-width: 250px;
}

.products-list.list .product-image-container {
    padding-top: 100%;
}

@media (max-width: 767px) {
    .products-list.list .product-item-container {
        flex-direction: column;
    }
    
    .products-list.list .product-item-container .left-block {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   Loading States & Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-layout {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   Accessibility Improvements
   ============================================ */

.product-item-container .add-to-cart:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

.product-filter .form-control:focus {
    outline: 3px solid rgba(29, 51, 92, 0.1);
    outline-offset: 0;
}

/* ============================================
   Mobile Menu Improvements
   ============================================ */

/* Mobile Menu Toggle Buttons */
@media (max-width: 991px) {
    /* Header Bottom - Mobile Menu */
    .header-bottom {
        position: relative;
    }
    
    /* Categories Menu Button */
    .navbar-header button#show-verticalmenu,
    .megamenuToogle-wrapper {
        width: 100%;
        background: linear-gradient(135deg, #1c2c52 0%, #2d4a7a 100%);
        color: #ffffff;
        border: none;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(29, 51, 92, 0.2);
        margin-bottom: 10px;
    }
    
    .navbar-header button#show-verticalmenu:hover,
    .megamenuToogle-wrapper:hover {
        background: linear-gradient(135deg, #2d4a7a 0%, #1c2c52 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(29, 51, 92, 0.3);
    }
    
    .megamenuToogle-pattern .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #ffffff;
    }
    
    .megamenuToogle-pattern .container > div {
        display: flex;
        gap: 5px;
    }
    
    .megamenuToogle-pattern .container > div span {
        width: 4px;
        height: 4px;
        background: #ffffff;
        border-radius: 50%;
        display: block;
    }
    
    .megamenuToogle-pattern .fa-chevron-circle-up {
        font-size: 20px;
        color: #ffffff;
        transition: transform 0.3s ease;
    }
    
    /* Main Navigation Menu Button */
    .navbar-header button#show-megamenu {
        width: 100%;
        background: linear-gradient(135deg, #1c2c52 0%, #2d4a7a 100%);
        color: #ffffff;
        border: none;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(29, 51, 92, 0.2);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-header button#show-megamenu:hover {
        background: linear-gradient(135deg, #2d4a7a 0%, #1c2c52 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(29, 51, 92, 0.3);
    }
    
    .navbar-header button#show-megamenu .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.3s ease;
    }
    
    /* Mobile Menu Wrapper - Enhanced */
    .megamenu-wrapper,
    .vertical-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .megamenu-wrapper.active,
    .vertical-wrapper.active {
        transform: translateX(0);
    }
    
    /* Close Button */
    #remove-megamenu,
    #remove-verticalmenu {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: #ffffff;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
        z-index: 10000;
    }
    
    #remove-megamenu:hover,
    #remove-verticalmenu:hover {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    }
    
    /* Menu Items - Enhanced */
    .megamenu-wrapper .megamenu,
    .vertical-wrapper .megamenu {
        list-style: none;
        padding: 0;
        margin: 60px 0 0 0;
    }
    
    .megamenu-wrapper .megamenu > li,
    .vertical-wrapper .megamenu > li {
        margin-bottom: 8px;
    }
    
    .megamenu-wrapper .megamenu > li > a,
    .vertical-wrapper .megamenu > li > a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        background: #ffffff;
        color: #1c2c52;
        text-decoration: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .megamenu-wrapper .megamenu > li > a:hover,
    .vertical-wrapper .megamenu > li > a:hover {
        background: linear-gradient(135deg, #1c2c52, #2d4a7a);
        color: #ffffff;
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(29, 51, 92, 0.2);
        border-color: #1c2c52;
    }
    
    .megamenu-wrapper .megamenu > li > a .fa,
    .vertical-wrapper .megamenu > li > a .fa {
        margin-right: 12px;
        font-size: 18px;
        width: 24px;
        text-align: center;
    }
    
    /* Submenu - Enhanced */
    .megamenu-wrapper .sub-menu,
    .vertical-wrapper .sub-menu {
        margin-top: 10px;
        padding-left: 20px;
    }
    
    .megamenu-wrapper .sub-menu .row-list,
    .vertical-wrapper .sub-menu .row-list {
        list-style: none;
        padding: 0;
    }
    
    .megamenu-wrapper .sub-menu .row-list li,
    .vertical-wrapper .sub-menu .row-list li {
        margin-bottom: 5px;
    }
    
    .megamenu-wrapper .sub-menu .row-list li a,
    .vertical-wrapper .sub-menu .row-list li a {
        display: block;
        padding: 12px 20px;
        background: #f8f9fa;
        color: #1c2c52;
        text-decoration: none;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .megamenu-wrapper .sub-menu .row-list li a:hover,
    .vertical-wrapper .sub-menu .row-list li a:hover {
        background: #e8f0fe;
        color: #1c2c52;
        border-left-color: #4a90e2;
        transform: translateX(5px);
    }
    
    /* Category Items - Enhanced */
    .vertical-wrapper .megamenu .item-vertical a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        background: #ffffff;
        color: #1c2c52;
        text-decoration: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 8px;
    }
    
    .vertical-wrapper .megamenu .item-vertical a img {
        width: 30px;
        height: 30px;
        margin-right: 12px;
        border-radius: 6px;
        object-fit: cover;
    }
    
    .vertical-wrapper .megamenu .item-vertical a:hover {
        background: linear-gradient(135deg, #1c2c52, #2d4a7a);
        color: #ffffff;
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(29, 51, 92, 0.2);
        border-color: #1c2c52;
    }
    
    /* Header Top - Mobile */
    .header-top {
        padding: 10px 0;
    }
    
    .header-top .header-top-left,
    .header-top .header-top-right {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .header-top .currencies-block {
        font-size: 12px;
    }
    
    .header-top .currencies-block a {
        color: #1c2c52;
        text-decoration: none;
    }
    
    /* Header Center - Mobile */
    .header-center {
        padding: 15px 0;
    }
    
    .header-center .navbar-logo {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .header-center .navbar-logo img {
        max-height: 60px;
    }
    
    .header-center .search-pro {
        margin-bottom: 15px;
    }
    
    .header-center .shopping_cart {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .megamenu-wrapper,
    .vertical-wrapper {
        padding: 15px;
    }
    
    .megamenu-wrapper .megamenu > li > a,
    .vertical-wrapper .megamenu > li > a {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .vertical-wrapper .megamenu .item-vertical a {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(29, 51, 92, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    padding: 8px 0;
    height: 60px;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: #1d335c;
    background: rgba(29, 51, 92, 0.05);
}

.mobile-bottom-nav .nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover .nav-icon,
.mobile-bottom-nav .nav-item.active .nav-icon {
    transform: scale(1.1);
    color: #1d335c;
}

.mobile-bottom-nav .nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover .nav-label,
.mobile-bottom-nav .nav-item.active .nav-label {
    color: #1d335c;
    font-weight: 700;
}

/* WhatsApp icon styling in bottom nav */
.mobile-bottom-nav .nav-item[data-page="contact"] .nav-icon.fa-whatsapp {
    color: #25D366;
}

.mobile-bottom-nav .nav-item[data-page="contact"]:hover .nav-icon.fa-whatsapp,
.mobile-bottom-nav .nav-item[data-page="contact"].active .nav-icon.fa-whatsapp {
    color: #25D366;
}

/* Show mobile bottom nav only on mobile devices */
@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to wrapper to prevent content from being hidden behind bottom nav */
    #wrapper.wrapper-full {
        padding-bottom: 70px;
    }
    
    body.res.layout-subpage {
        padding-bottom: 70px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        padding: 10px 0;
        height: 65px;
    }
    
    .mobile-bottom-nav .nav-item {
        padding: 10px 4px;
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 22px;
    }
    
    .mobile-bottom-nav .nav-label {
        font-size: 10px;
    }
    
    #wrapper.wrapper-full {
        padding-bottom: 75px;
    }
    
    body.res.layout-subpage {
        padding-bottom: 75px;
    }
}

/* Hide mobile bottom nav on desktop */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    #wrapper.wrapper-full {
        padding-bottom: 0 !important;
    }
    
    body.res.layout-subpage {
        padding-bottom: 0 !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .product-filter,
    .button-group,
    .breadcrumb,
    .mobile-bottom-nav {
        display: none;
    }
    
    .product-item-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
