.breadcrumb_section.page-title-mini {
    padding: 7px 0;
}
.section {
    padding: 10px 0;
}
.form-control {
    padding: 0.1rem 1.0rem;
}
.nav_style5.owl-theme .owl-nav .owl-prev, .nav_style5.owl-theme .owl-nav .owl-next {
    opacity: 1;
	background-color: #a1a2a3;
}
.avatar-xs{
	height:1.5rem;
	width:auto;
	}
.avatar-sm{
	height:2.25rem;
	width:auto;
	}
.avatar-md{
	height:3.5rem;
	width:auto;
}
.avatar-lg{
	height:4.5rem;
	width:auto;
}
.avatar-xl{
	height:6rem;
	width:auto;
}
.avatar-xxl{
	height:7.5rem;
	width:auto;
}
.categories_box img {
    width: auto;
}
.product_img {
    text-align: center;
}
.navbar-nav.attr-nav li .nav-link {
    padding: 10px 10px;
}
.cart_count, .wishlist_count {
    background-color: #FFFFFF;
	color: #FF324D;
}

/* Global image improvements to prevent stretching */
.product img, .product_img img, .categories_box img {
    object-fit: contain !important;
    object-position: center !important;
}

/* Improve overall product card layout */
.product {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Ensure consistent image containers */
.product_img {
    position: relative;
    overflow: hidden;
}

/* Mobile-first responsive images */
@media (max-width: 767px) {
    .product_img {
        height: 180px !important;
    }
    .categories_box img {
        height: 120px !important;
    }
}

/* Enhanced search functionality */
.search-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.newsletter_form {
    position: relative;
}

.newsletter_form button {
    position: absolute;
    right: 0px;
    top: 34%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    border-left: none;
    min-width: 100px;
}

.search-wrapper input {
    border-radius: 0 !important;
    border-right: none !important;
    padding-right: 120px;
}

.search-wrapper button {
    border-radius: 0 !important;
    border-left: none !important;
    white-space: nowrap;
}

.search-wrapper input:focus {
    border-color: #FF324D;
    box-shadow: none;
    outline: none;
}

.search-wrapper input:focus + button {
    border-color: #FF324D;
}

.search-wrapper button:hover {
    background-color: #e02849 !important;
    border-color: #e02849 !important;
}

/* Remove the old positioning styles */
.search-wrapper button {
    transition: background-color 0.3s ease;
}

/* Loading states for better UX */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Improve button states */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 50, 77, 0.25);
}

/* Better form validation styling */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Improve mobile navigation */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .cart_dropdown .nav-link {
        font-weight: bold;
        color: #FF324D !important;
    }
}

/* Image Lazy Loading & Performance */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progressive Web App enhancements */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #FF324D;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}

.pwa-install-banner.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Testimonials Section */
.testimonial_box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.testimonial_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #FF324D;
}

.testimonial_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial_content p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    color: #555;
}

.testimonial_author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF324D, #e02849);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.author_info h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.author_info span {
    color: #666;
    font-size: 14px;
}

.rating {
    margin-bottom: 15px;
}

.rating i {
    margin-right: 2px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 -10px;
}

.trust-item {
    text-align: center;
    flex: 1 1 calc(25% - 20px);
    min-width: 180px;
    max-width: 250px;
    padding: 25px 15px;
    margin: 0 10px 20px 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #FF324D;
}

.trust-item i {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.1);
}

.trust-item h6 {
    margin: 15px 0 8px 0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.trust-item small {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Price Guarantee Section */
.price_guarantee_content ul li {
    padding: 8px 0;
}

.guarantee-badge {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 15px;
    border: 3px dashed #FF324D;
}

.guarantee-badge h4 {
    color: #FF324D;
    font-weight: 700;
    margin: 15px 0 10px 0;
}

/* Device Recommendation Engine */
.recommendation-engine {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin: 50px 0;
}

.recommendation-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.recommendation-card:hover {
    transform: scale(1.05);
}

/* Comparison Tool */
.comparison-toggle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #FF324D;
    color: white;
    padding: 15px;
    border-radius: 50px 0 0 50px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.comparison-toggle:hover {
    background: #e02849;
    padding-left: 25px;
}

.comparison-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.comparison-panel.active {
    right: 0;
}

/* Mobile Responsiveness for new sections */
@media (max-width: 1200px) {
    .trust-item {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .trust-indicators {
        justify-content: center;
        gap: 15px;
        margin: 0;
    }
    
    .trust-item {
        flex: 1 1 calc(50% - 15px);
        min-width: 140px;
        max-width: 180px;
        padding: 20px 10px;
        margin: 0 7px 15px 7px;
    }
    
    .trust-item h6 {
        font-size: 14px;
        margin: 10px 0 5px 0;
    }
    
    .trust-item small {
        font-size: 12px;
    }
    
    .trust-item i {
        margin-bottom: 10px;
    }
    
    .testimonial_author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .guarantee-badge {
        padding: 30px 20px;
    }
    
    .comparison-toggle {
        right: 10px;
        padding: 10px;
        font-size: 14px;
    }
    
    .comparison-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .trust-indicators {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .trust-item {
        flex: none;
        width: 90%;
        max-width: 280px;
        margin: 0 0 15px 0;
    }
}

/* FAQ Page Specific Styles */
.faq-search .search-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.faq-search .search-input:focus::placeholder {
    color: transparent;
}

.faq-item.hidden {
    display: none !important;
}

.faq-item.show {
    display: block !important;
}

/* FAQ Category Badge */
.faq-category-badge {
    position: absolute;
    top: 10px;
    left: 20px;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.faq-category-badge.pricing { background: #28a745; }
.faq-category-badge.shipping { background: #ffc107; color: #212529; }
.faq-category-badge.payment { background: #17a2b8; }
.faq-category-badge.device { background: #fd7e14; }
.faq-category-badge.account { background: #6f42c1; }

/* Loading States */
.faq-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.faq-loading.show {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Mobile FAQ Styles */
@media (max-width: 576px) {
    .faq-search .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 16px 50px 16px 20px;
    }
    
    .category-filters {
        padding: 0 10px;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
        margin: 3px 5px;
    }
    
    .faq-hero h2 {
        font-size: 1.8rem;
    }
    
    .faq-hero p {
        font-size: 1rem;
    }
    
    .action-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Print Styles for FAQ */
@media print {
    .breadcrumb_section,
    .faq-search,
    .category-filters,
    .quick-actions,
    .stats-section,
    .trust-section {
        display: none !important;
    }
    
    .faq-item {
        break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        padding: 15px;
    }
    
    .faq-item.active .faq-answer {
        max-height: none !important;
    }
    
    .faq-icon {
        display: none;
    }
    
    .faq-question {
        font-weight: bold;
        color: #000 !important;
        padding: 0 !important;
    }
    
    .faq-answer-content {
        padding: 10px 0 0 0 !important;
        color: #000 !important;
    }
}

/* Accessibility Improvements */
.faq-question:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.filter-btn:focus,
.search-btn:focus,
.contact-support-btn:focus,
.action-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .faq-item {
        border-color: #000;
    }
    
    .faq-question {
        color: #000;
    }
    
    .faq-answer-content {
        color: #000;
    }
    
    .filter-btn {
        border-color: #000;
        color: #000;
    }
    
    .filter-btn.active {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .stat-card,
    .trust-badge,
    .action-btn,
    .filter-btn,
    .search-btn {
        animation: none;
        transition: none;
    }
    
    .faq-icon {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: transparent;
    }
}

/* Contact Form Enhancements */
.contact-page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 0;
}

.contact-form-container {
    position: relative;
    z-index: 1;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,123,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: -1;
}

/* Form Animation Enhancements */
.form-control {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,123,255,0.15);
}

.form-group {
    position: relative;
}

.form-group .form-label {
    transition: all 0.3s ease;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    transform: translateY(-5px);
    font-size: 0.9rem;
    color: #007bff;
}

/* Success/Error Message Animations */
.alert {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Effects */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Contact Card Hover Effects */
.contact-card {
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,86,179,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-card .contact-icon,
.contact-card h4,
.contact-card p {
    position: relative;
    z-index: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .contact-hero h2 {
        font-size: 1.8rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
    
    .form-container {
        margin: 0 10px;
        padding: 30px 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
    
    .submit-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .form-control,
    .submit-btn,
    .contact-icon {
        transition: none;
    }
    
    .alert {
        animation: none;
    }
}

/* Print styles for contact page */
@media print {
    .contact-form-section,
    .additional-info {
        display: none;
    }
    
    .contact-info-section {
        page-break-inside: avoid;
    }
    
    .contact-card {
        border: 1px solid #000;
        box-shadow: none;
        margin-bottom: 20px;
    }
}