/* ==========================================================================
   Tech Market Ug - Custom Styles
   ========================================================================== */

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #007BFF;
    --secondary-color: #343A40;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.header-section {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 0 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar small {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-bar a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    height: 42px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar {
    padding: 1rem 0 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 1.2rem;
    transition: var(--transition);
    letter-spacing: 0.2px;
    color: #2c3e50;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Services Mega Menu */
.services-mega-menu {
    border: none;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    padding: 1.5rem 0;
    min-width: 750px;
    left: 50%;
    transform: translateX(-50%);
}

.services-mega-menu .dropdown-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.services-mega-menu .service-category {
    border-right: 1px solid var(--border-color);
    padding: 0 1rem;
}

.services-mega-menu .service-category:last-child {
    border-right: none;
}

.services-mega-menu .dropdown-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: normal;
}

.services-mega-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.services-mega-menu .dropdown-item i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.services-mega-menu .dropdown-item strong {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.services-mega-menu .dropdown-item small {
    font-size: 0.75rem;
    line-height: 1.3;
}

.services-dropdown .dropdown-toggle::after {
    display: none;
}

@media (max-width: 991px) {
    .services-mega-menu {
        min-width: 100%;
        left: 0;
        transform: none;
    }
    
    .services-mega-menu .service-category {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    
    .services-mega-menu .service-category:last-child {
        border-bottom: none;
    }
}

/* ==========================================================================
   3. Hero Carousel & Homepage Sections
   ========================================================================== */

/* --- Hero Carousel --- */
.hero-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content.text-center {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content.text-end {
    margin-left: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.35);
}

.btn-hero:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.45);
}

.hero-mobile-img {
    display: none;
}

/* Carousel controls */
.hero-carousel-wrapper .carousel-control-prev,
.hero-carousel-wrapper .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    margin: 0 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-carousel-wrapper:hover .carousel-control-prev,
.hero-carousel-wrapper:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel-wrapper .carousel-indicators {
    margin-bottom: 1.5rem;
}

.hero-carousel-wrapper .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    margin: 0 4px;
    transition: all 0.3s;
}

.hero-carousel-wrapper .carousel-indicators .active {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}

/* --- Trust Bar --- */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.trust-item strong {
    font-size: 0.82rem;
    display: block;
    line-height: 1.2;
}

.trust-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}

/* --- Section Headers --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.section-link:hover {
    color: #0056b3;
}

/* --- Category Strip --- */
.category-strip-section {
    background: #fff;
}

.category-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.25s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.12);
}

.category-chip-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    overflow: hidden;
}

.category-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-chip-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-chip-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 2px;
}

.category-chip-count {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* --- Deals Section --- */
.deals-section {
    background: #fff;
}

.deals-fire-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

/* --- Featured Section --- */
.featured-star-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

/* --- New Arrivals --- */
.new-arrivals-section {
    background: #fff;
}

.arrivals-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

/* --- Product Card Enhancements --- */
.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.product-card .card-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #DC3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    line-height: 1;
}

.product-card .price .price-current {
    font-size: 1rem;
    font-weight: 700;
}

.product-card .price .price-old {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hero-section {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    min-height: 500px;
}

.min-vh-50 {
    min-height: 50vh;
}

/* ==========================================================================
   4. Cards & Components
   ========================================================================== */
.product-card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.product-card img {
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.service-card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.category-card {
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover,
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.feature-card,
.value-card,
.feature-box {
    transition: var(--transition);
}

.feature-card:hover,
.value-card:hover,
.feature-box:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    border-radius: 0.375rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   6. Forms
   ========================================================================== */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   7. Page Header / Breadcrumb
   ========================================================================== */
.page-header {
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0.5rem 0 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.footer-section {
    margin-top: auto;
}

.footer-section a {
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* ==========================================================================
   9. Alerts
   ========================================================================== */
.alert {
    border-radius: 0.375rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ==========================================================================
   10. Badge & Labels
   ========================================================================== */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

/* ==========================================================================
   11. Pagination
   ========================================================================== */
.pagination {
    margin-top: 2rem;
    gap: 0.25rem;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin: 0 2px;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fix SVG icon sizing in pagination */
.page-link svg {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

/* Pagination arrow styling */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 1rem;
}

/* Mobile pagination */
@media (max-width: 576px) {
    .pagination {
        font-size: 0.875rem;
        gap: 0.15rem;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
        margin: 0 1px;
    }
    
    .page-link svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* ==========================================================================
   12. Price Display
   ========================================================================== */
.price {
    font-size: 1.125rem;
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

/* ==========================================================================
   14. Responsive Utilities
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.375rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-slide {
        height: 420px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar .col-md-6:last-child {
        text-align: left !important;
        margin-top: 0.5rem;
    }

    .feature-card,
    .service-card {
        margin-bottom: 1rem;
    }

    .hero-slide {
        height: 300px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-hero {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-carousel-wrapper .carousel-control-prev,
    .hero-carousel-wrapper .carousel-control-next {
        width: 36px;
        height: 36px;
        margin: 0 0.5rem;
    }

    .trust-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .trust-item i {
        font-size: 1.1rem;
    }

    .trust-item strong {
        font-size: 0.72rem;
    }

    .trust-item span {
        display: none;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .category-chip {
        min-width: 80px;
        padding: 0.5rem 0.35rem;
    }

    .category-chip-icon {
        width: 40px;
        height: 40px;
    }

    .category-chip-label {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   15. Loading & Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ==========================================================================
   16. Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ==========================================================================
   17. Print Styles
   ========================================================================== */
@media print {
    .navbar,
    .footer-section,
    .btn,
    .breadcrumb {
        display: none !important;
    }
}

/* ==========================================================================
   18. Cart Button States
   ========================================================================== */
.btn-secondary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 1;
    cursor: not-allowed;
}

.product-card .btn-secondary:disabled {
    color: #fff;
}

.add-to-cart-btn {
    transition: all 0.3s ease;
}

/* ==========================================================================
   19. Service Pages Enhancements
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Service Hero Section */
.service-hero {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.service-hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.service-hero .btn {
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-hero .display-1 {
    font-size: 8rem;
    opacity: 0.15;
    animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Reveal Effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Icons */
.feature-icon {
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Service Cards */
.service-card,
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover,
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 2rem;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.pricing-card .badge {
    animation: pulse 2s ease-in-out infinite;
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(102, 16, 242, 0.05) 100%);
}

.pricing-card .price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-card .price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
}

.pricing-card .price-period {
    font-size: 1rem;
    color: #6c757d;
}

.pricing-card .plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card .plan-description {
    color: #6c757d;
    font-size: 0.95rem;
}

.pricing-card .feature-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.pricing-card .feature-item:last-child {
    border-bottom: none;
}

.pricing-card .feature-item:hover {
    background-color: rgba(13, 110, 253, 0.03);
    padding-left: 0.5rem;
}

/* Currency Toggle */
.currency-toggle {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.currency-toggle .btn-currency {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.currency-toggle .btn-currency.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.currency-toggle .btn-currency:hover:not(.active) {
    color: #0d6efd;
}

/* Cart Styles */
.cart-item {
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item .btn-link:hover {
    transform: scale(1.1);
}

.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.checkout-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.checkout-progress-step .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.checkout-progress-step.active .step-icon {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.checkout-progress-step.completed .step-icon {
    background: #198754;
    border-color: #198754;
    color: white;
}

/* Coupon Styles */
.coupon-input-group .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.coupon-applied {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discount-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Section Dividers */
.section-divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 1rem auto 2rem;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Background Patterns */
.pattern-bg {
    background-image: 
        linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
        linear-gradient(-45deg, #f8f9fa 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
        linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Gradient Overlays */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.4) 0%, rgba(0, 86, 179, 0.4) 100%);
    z-index: 1;
}

.gradient-overlay > * {
    position: relative;
    z-index: 2;
}

/* Process Steps */
.process-step {
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: scale(1.05);
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.process-step:last-child::after {
    display: none;
}

/* Icon Boxes */
.icon-box {
    padding: 2rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: white;
}

.icon-box:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.icon-box:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

/* Technology Badges */
.tech-badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* CTA Sections */
.cta-section {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* List Styles */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.custom-list li:hover {
    transform: translateX(5px);
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Hover Effects for Links */
.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Statistics Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Adjustments for Service Pages */
@media (max-width: 991px) {
    .service-hero {
        min-height: 350px;
        background-attachment: scroll;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero .display-1 {
        font-size: 4rem;
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .service-hero {
        min-height: 300px;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero .lead {
        font-size: 1rem;
    }
    
    .service-hero .display-1 {
        font-size: 3rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   Mobile Responsive Improvements for Product Cards
   ========================================================================== */
@media (max-width: 576px) {
    /* Product card optimizations for mobile */
    .product-card {
        font-size: 0.85rem;
    }
    
    .product-card .card-title {
        font-size: 0.85rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem !important;
    }
    
    .product-card .price {
        font-size: 0.9rem !important;
    }
    
    .product-card .price span {
        font-size: 0.9rem !important;
    }
    
    .product-card .btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .product-card .btn i {
        font-size: 0.9rem;
    }
    
    /* Reduce hover effect on mobile */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover img {
        transform: none;
    }
}

/* Extra small devices (portrait phones, less than 375px) */
@media (max-width: 374px) {
    .product-card .card-title {
        font-size: 0.75rem !important;
    }
    
    .product-card .price span {
        font-size: 0.8rem !important;
    }
    
    .product-card small {
        font-size: 0.65rem !important;
    }
}
