:root {
    --primary-purple: #2E1A47;
    --accent-orange: #FF6A00;
    --bg-light: #F8F9FA;
    --text-dark: #333333;
    --text-light: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Top Offer Bar */
.top-offer-bar {
    background-color: var(--primary-purple);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-offer-bar .highlight {
    color: var(--accent-orange);
    font-weight: bold;
}

/* Sliding Animation for Top Offer */
.top-offer-content {
    display: inline-block;
    padding-right: 50px;
    /* space for close button */
}

.animated-slide {
    animation: slideMarquee 15s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

@keyframes slideMarquee {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-150vw);
    }
}

.header-search-form .form-control {
    width: 200px;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.header-search-form .form-control:focus {
    width: 280px;
    background: #fff;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.1);
}

.header-search-form .btn {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
}

.rounded-pill-start {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.rounded-pill-end {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Header */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-purple) !important;
}

.navbar-nav {
    gap: 5px;
    /* Reduced gap between items */
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 8px 10px !important;
    font-size: 0.82rem;
    /* Slightly smaller text */
    gap: 4px;
    /* Reduced space between icon and text */
}

.navbar-nav .nav-link i {
    font-size: 1rem;
    /* Slightly smaller icon */
    margin-bottom: 0;
    display: inline-block;
    line-height: 1;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 10%;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
    border-radius: 50px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
    width: 80%;
}

.btn-primary-custom {
    background-color: var(--accent-orange);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #e65c00;
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #4a2b73 100%);
    color: var(--text-light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Category Cards */
.category-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 30px rgba(255, 106, 0, 0.15);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-price {
    color: var(--primary-purple);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--primary-purple);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-orange);
}

/* Animations & Fake Sales Elements */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 5px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.animation-pulse {
    animation: pulseGlow 2s infinite;
}

/* Fake Sales Popup Notification */
.fake-sales-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 10px;
    z-index: 9999;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border-left: 4px solid var(--accent-orange);
}

.fake-sales-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.fake-sales-popup img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--bg-light);
}

.fake-sales-popup .popup-content p {
    margin: 0;
    line-height: 1.3;
}

.fake-sales-popup .popup-content p strong {
    color: var(--primary-purple);
}

.fake-sales-popup .popup-content small {
    color: #6c757d;
    font-size: 0.75rem;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        max-width: 120px !important;
    }

    .navbar-collapse {
        background: #fff;
        margin-top: 10px;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
        border: 1px solid #eee;
    }

    .header-search-form {
        margin-bottom: 20px;
    }

    .header-search-form .form-control {
        width: 100% !important;
    }

    .navbar-nav {
        gap: 0;
        align-items: flex-start;
    }

    .navbar-nav .nav-link {
        padding: 12px 10px !important;
        border-bottom: 1px solid #f8f9fa;
        font-weight: 600;
        color: var(--primary-purple) !important;
        width: 100%;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .dropdown-menu {
        border: none !important;
        background: #fafafa !important;
        padding: 10px !important;
        margin: 5px 0 !important;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02) !important;
    }

    .dropdown-item {
        padding: 10px 15px !important;
        border-radius: 8px !important;
    }

    /* Compact Sales Notification for Mobile */
    .fake-sales-popup {
        bottom: 15px !important;
        left: 10px !important;
        max-width: 260px !important;
        padding: 6px 12px 6px 6px !important;
        font-size: 0.75rem !important;
    }

    .fake-sales-popup img {
        width: 35px !important;
        height: 35px !important;
        margin-right: 10px !important;
    }
}

/* Rectangular Search Bar */
.search-container-rect {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.search-container-rect input:focus {
    background-color: #fcfcfc;
}

.btn-orange-rect {
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.btn-orange-rect:hover {
    background: #e65c00 !important;
    transform: scale(1.02);
}

/* Envato Style Product Cards */
.product-card {
    border: 1px solid #efefef !important;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    border-radius: 4px !important;
    overflow: hidden;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

.product-card .card-img-top {
    border-radius: 0 !important;
}

.product-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    /* Reduced from 3rem */
    line-height: 1.3rem;
    margin-bottom: 0.35rem !important;
    /* Reduced from 0.5rem */
}

.product-card .card-title a {
    color: #333 !important;
    font-weight: 500;
}

.product-card .card-title a:hover {
    color: #0084B4 !important;
}

.product-price {
    font-family: 'Inter', sans-serif;
}

.btn-outline-primary.btn-sm {
    border-color: #0084B4 !important;
    color: #0084B4 !important;
}

.btn-outline-primary.btn-sm:hover {
    background-color: #0084B4 !important;
    color: #fff !important;
}

/* Product Card Refinements */
.product-card .card-body {
    padding: 0.85rem !important;
    /* More compact padding */
}

.product-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    line-height: 1.3rem;
    margin-bottom: 0.5rem !important;
}

.product-pricing-row {
    gap: 5px;
}

@media (max-width: 576px) {
    .product-card .card-body {
        padding: 0.8rem !important;
    }

    .product-price {
        font-size: 0.95rem !important;
    }

    .text-warning i {
        font-size: 0.65rem;
    }

    .product-card .card-title {
        font-size: 0.85rem;
        height: 2.2rem;
        line-height: 1.1rem;
        margin-bottom: 0.4rem !important;
    }

    .product-card .btn-sm {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .product-card .gap-2 {
        gap: 8px !important;
    }
}

/* Product Single Page Responsiveness */
.product-single-title {
    font-size: 2.2rem;
    line-height: 1.2;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .product-single-title {
        font-size: 1.75rem;
        margin-top: 15px;
    }

    .container.py-5.mt-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .product-single-title {
        font-size: 1.5rem;
    }

    #productGallery img,
    .bg-light.rounded.d-flex.align-items-center.justify-content-center.shadow-sm[style*="height: 400px"] {
        height: 280px !important;
    }

    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    /* Stack buttons on extra small mobile if needed */
    .row.g-2.mb-3 .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    .product-card img.card-img-top[style*="height: 200px"] {
        height: 150px !important;
    }
}

/* Premium Breadcrumbs */
.premium-breadcrumb-nav {
    background: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f1f1;
    display: inline-block;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ccc;
    font-size: 0.8rem;
}

.premium-breadcrumb-nav .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.premium-breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--primary-purple);
}

.premium-breadcrumb-nav .breadcrumb-item.active {
    color: #999;
    font-weight: 400;
    font-size: 0.9rem;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .premium-breadcrumb-nav {
        padding: 8px 15px;
        border-radius: 12px;
        display: block;
    }

    .premium-breadcrumb-nav .breadcrumb-item.active {
        max-width: 150px;
    }
}

/* Hero Style 2 Specifics */
.hero-style-2 {
    background-color: #fff !important;
}

.service-icon-card {
    transition: all 0.3s ease;
    background: #fff;
    cursor: default;
}

.service-icon-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.expert-card {
    position: relative;
    z-index: 1;
}

.expert-image-wrapper {
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

.expert-stats h4 {
    font-family: 'Inter', sans-serif;
}

@media (max-width: 991.98px) {
    .hero-style-2 {
        text-align: center;
    }

    .hero-style-2 h1 {
        font-size: 2.5rem;
    }

    .service-grid .col-3 {
        width: 50%;
    }
}

/* About Page & Team Section */
.about-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    padding: 100px 0;
    color: #fff;
}

.team-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    background: transparent;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: rgba(255, 87, 34, 0.9);
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.team-social a:hover {
    opacity: 0.8;
}

.stat-item {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF5722;
    margin-bottom: 5px;
}

.value-card {
    border: none;
    border-radius: 20px;
    padding: 30px;
    background: #F8F9FA;
    transition: all 0.3s;
    height: 100% !important;
}

.value-card:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}