/* Homepage Redesign Styles */

/* Enhanced Premium Services Section */
.premium-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.premium-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI3NjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3MS42NCUiIHkxPSIyNS44MSUiIHgyPSI3MC4wNyUiIHkyPSI3NS44JSIgaWQ9ImEiPjxzdG9wIHN0b3AtY29sb3I9IiNGMEYyRjUiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRjBGMkY1IiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0wIDBoMTQ0MHY3NjVIMHoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgb3BhY2l0eT0iLjMiLz48L3N2Zz4=');
    opacity: 0.4;
    z-index: 0;
}

/* Category Showcase with Tabs */
.category-showcase {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
}

/* Advanced Section Header */
.section-header-advanced {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.section-subtitle-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-subtitle-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.3);
}

.premium-services .section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.premium-services .section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Category Header */
.category-header {
    text-align: center;
    margin: 30px 0;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
    border-radius: 3px;
}

.ott-content {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.category-icon {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover .category-icon::before {
    opacity: 1;
    transform: scale(1.1);
}

.category-icon img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.2);
}

.category-card {
background: #fff;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
padding: 25px 20px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.category-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.category-features {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-features span {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
    padding: 4px 0;
    position: relative;
    overflow: hidden;
}

.category-features span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 107, 107, 0.05) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover .category-features span::before {
    transform: scaleX(1);
}

.category-features i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-features i {
    transform: scale(1.2);
    color: #ff6b6b;
}

.category-card:hover .category-features span {
    color: #333;
    transform: translateX(5px);
}

.category-price {
    margin-bottom: 25px;
    position: relative;
    padding: 10px 0;
}

.category-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.category-card:hover .category-price::before {
    width: 60px;
    opacity: 1;
}

.price-from {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.category-card:hover .price-value {
    transform: scale(1.1);
    color: #ff4757;
}

.price-period {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-card:hover .price-from,
.category-card:hover .price-period {
    color: #444;
}

.category-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, var(--primary-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
    color: white;
}

.category-btn:hover::before {
    opacity: 1;
}

.category-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border: 2px solid transparent;
    background: rgba(255, 71, 87, 0.08);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    z-index: -1;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.view-all-btn:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.2);
    border-color: transparent;
}

.view-all-btn:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

.view-all-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .premium-services .section-title {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .benefits-icons {
        gap: 25px;
    }
    
    .benefit-icon {
        width: 100px;
    }
    
    .benefit-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .premium-services .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        max-width: 100%;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .benefits-icons {
        gap: 15px;
    }
    
    .benefit-icon {
        width: 80px;
    }
    
    .benefit-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .benefit-icon-circle i {
        font-size: 24px;
    }
    
    .benefit-icon span {
        font-size: 12px;
    }
    
    .premium-services .section-title {
        font-size: 24px;
    }
    
    .section-subtitle-badge {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .tab-btn {
        width: 100%;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .benefits-icons {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .premium-services .section-subtitle {
        font-size: 14px;
    }
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
    color: white;
}

.category-btn:hover::before {
    opacity: 1;
}

.category-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
}

/* Trending Products Section */
.trending-products {
    padding: 60px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.featured-product-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 350px;
}

.featured-product-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.featured-product-image {
    flex: 1;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.05), rgba(229, 9, 20, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.featured-product-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

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

.featured-product-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.featured-rating {
    margin-bottom: 20px;
    color: #ffc107;
}

.featured-rating span {
    color: #666;
    margin-left: 5px;
    font-size: 14px;
}

.featured-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
}

.spec-item i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.featured-price {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.price-tag {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.original {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.discounted {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.discount-pill {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.featured-actions {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.add-to-cart-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.add-to-cart-btn i {
    margin-right: 8px;
}

.add-to-cart-btn:hover {
    background: #ff2e43;
    transform: translateY(-2px);
}

.view-details-link {
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-details-link:hover {
    color: var(--primary-color);
}

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

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.category-badge.most-popular,
.product-badge.most-popular,
.featured-badge.most-popular {
    background: linear-gradient(135deg, #ff7a00, #ff0000);
}

.category-badge.best-value,
.product-badge.best-value,
.featured-badge.best-value {
    background: linear-gradient(135deg, #00c853, #009688);
}

.category-badge.best-seller,
.product-badge.best-seller,
.featured-badge.best-seller {
    background: linear-gradient(135deg, #6200ea, #3f51b5);
}

.category-badge.new,
.product-badge.new,
.featured-badge.new {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
}

.category-badge.hot-deal,
.product-badge.hot-deal,
.featured-badge.hot-deal {
    background: linear-gradient(135deg, #f50057, #ff4081);
}

.category-badge.popular,
.product-badge.popular,
.featured-badge.popular {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
}

.product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.product-details {
    padding: 20px;
}

.product-details h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    min-height: 40px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating {
    color: #ffc107;
    font-size: 12px;
}

.product-price {
    text-align: right;
}

.product-price .original {
    display: block;
    font-size: 12px;
}

.product-price .discounted {
    font-size: 18px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.quick-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-add-btn:hover {
    background: #ff2e43;
    transform: scale(1.1);
}

.quick-view-btn {
    padding: 8px 15px;
    background: #f1f1f1;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: #e0e0e0;
}

/* Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .category-grid, 
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid, 
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-product-card {
        flex-direction: column;
    }
    
    .featured-product-image {
        min-height: 250px;
    }
    
    .featured-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        max-width: 100%;
        padding: 3px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .featured-product-content {
        padding: 20px;
    }
    
    .featured-product-content h3 {
        font-size: 20px;
    }
    
    .featured-price .discounted {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .category-grid, 
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-showcase,
    .trending-products {
        padding: 40px 0;
    }
    
    .featured-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .add-to-cart-btn {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .view-details-link {
        margin-bottom: 10px;
    }
}

/* Dark Mode Styles */
body.dark-mode .category-showcase {
    background-color: #1e1e1e;
}

body.dark-mode .category-tabs {
    background: #2d2d2d;
}

body.dark-mode .tab-btn {
    color: #ccc;
}

body.dark-mode .category-card,
body.dark-mode .featured-product-card,
body.dark-mode .product-card {
    background: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .category-icon,
body.dark-mode .product-image {
    background: #1e1e1e;
}

body.dark-mode .category-card h3,
body.dark-mode .featured-product-content h3,
body.dark-mode .product-details h4 {
    color: #f1f1f1;
}

body.dark-mode .category-features span,
body.dark-mode .spec-item span {
    color: #ccc;
}

body.dark-mode .quick-view-btn {
    background: #3d3d3d;
    color: #f1f1f1;
}

body.dark-mode .quick-view-btn:hover {
    background: #4d4d4d;
}

body.dark-mode .trending-products {
    background-color: #121212;
}

body.dark-mode .featured-product-image {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(229, 9, 20, 0.15));
}

body.dark-mode .view-details-link {
    color: #ccc;
}
