/* ========== MOBILE PAGE SPECIFIC STYLES ========== */

/* Page Title Section */
.page-title-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    color: white;
    text-align: center;
}

.page-title-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-title-section h1 i {
    margin-right: 10px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Price Filter Section */
.price-filter-section {
    padding: 40px 0 20px;
    background: #f8f9fa;
}

.filter-title {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.filter-title i {
    color: #667eea;
}

.price-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.price-tab {
    padding: 12px 25px;
    border: none;
    background: white;
    border-radius: 30px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.price-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.price-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Active Filter Section */
.active-filter-section {
    padding: 0 0 20px;
    background: #f8f9fa;
}

.active-filter {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.active-filter i {
    color: #28a745;
    margin-right: 8px;
}

.active-filter span {
    font-weight: 600;
    color: #667eea;
}

/* Mobile Products Section */
.mobile-products-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.results-count {
    color: #666;
    margin: 0;
    padding: 8px 0;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sort-dropdown label {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.sort-dropdown select {
    width: auto;
    display: inline-block;
    border-radius: 25px;
    padding: 8px 30px 8px 15px;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* Enhanced Product Cards */
.mobile-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
}

.mobile-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102,126,234,0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.bestseller {
    background: #ffd700;
    color: #333;
}

.product-badge.trending {
    background: #28a745;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mobile-product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.quick-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mobile-product-card:hover .quick-actions {
    bottom: 20px;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.quick-action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: normal;
}

.product-specs {
    margin-bottom: 15px;
    font-size: 14px;
}

.product-specs span {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.product-specs i {
    color: #667eea;
    width: 20px;
    margin-right: 5px;
}

.product-rating {
    margin-bottom: 15px;
}

.stars {
    color: #ffd700;
    margin-right: 5px;
}

.rating-count {
    color: #999;
    font-size: 13px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-buy {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-compare {
    width: 50px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-compare.active {
    background: #667eea;
    color: white;
}

.btn-buy:hover, .btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* Comparison Section */
.comparison-section {
    padding: 60px 0;
    background: white;
}

.comparison-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comparison-select {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.btn-compare-now {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-compare-now:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.btn-compare-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-compare-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.compare-item {
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.compare-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.compare-item .remove-item {
    color: #ff6b6b;
    cursor: pointer;
    margin-left: 5px;
}

/* Brands Section */
.brands-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.brand-item {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.2);
}

.brand-item i {
    font-size: 24px;
    color: #667eea;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .price-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .sort-dropdown {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .quick-actions {
        bottom: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-compare {
        width: 100%;
    }
}

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

.mobile-product-card {
    animation: fadeIn 0.5s ease forwards;
}
/* Reduce image height in mobile product cards */
.mobile-product-card .product-image-wrapper {
    height: 300px; /* Fixed height for image container */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    padding: 10px;
}

.mobile-product-card .product-image-wrapper img {
    width: auto;
    height: 250px; /* Fixed height for images */
    max-width: 100%;
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.3s ease;
}

/* For smaller screens */
@media (max-width: 768px) {
    .mobile-product-card .product-image-wrapper {
        height: 250px;
    }
    
    .mobile-product-card .product-image-wrapper img {
        height: 250px;
    }
}