body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    
}

.navbar-brand { /* Brand Name */
    font-weight: bold;
}


.nav-link.text-uppercase{ /*Navigation Text*/
    font-weight: 600; 
    color: black;
}

.nav-link.text-uppercase:hover{ /* Navigation Text Hover */
    color: #2e3b56;
}

.custom-link i{ /* Icon Size */
    font-size: 13px;
    margin-right: 5px;
}

.custom-link { /* Link decoration */
    font-size: 13px; 
    text-decoration: none;
    color: black;
}

.custom-link span { /* Text Size */
    font-size: 13px;
}

.custom-link:hover { /* Text Hover */
    color: #2e3b56;
}

.navbar{ /* Navigation Box Shadow */
    box-shadow: 0 3px 9px 3px rgba(0, 0, 0, 0.1);
}

.custom-carousel-bg { /* Slide Background Color */
    background-color: #F1F1F3;
}

.custom-carousel{ /* Next Previous Color */
    color: #2e3b56;
}

.carousel-indicators button { /* Slide indicator Color */
    background-color: #2e3b56;
    border-color: #2e3b56;     
}

.carousel-indicators .active { /* Slide indicator Color */
    background-color: #2e3b56; 
}

.custom-btn { /* button Color */
    background-color: #2e3b56;
    border-color: #2e3b56; 
    color: white;
}

.card { /* Card Width */
    position: relative;
    overflow: hidden;
}

.card-body { /* Card move up and down */
    transition: transform 0.3s ease-in-out;
}

.card:hover .card-body { /* size move up down */
    transform: translateY(-20px);
}

.custom-img{ /* image card */
    mix-blend-mode: multiply;
    max-width: 250px;
}

.product-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.custom-bg{
    background-color: #F1F1F3;
}

.custom-footer{
    /* background-color: #eee7e7; */
    background-color: #2e3b56;
    border-radius: 30px 30px 0px 0px;
}

/* Cart Sidebar Styles */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;
    top: 0;
    right: -400px; /* Start off-screen */
    width: 400px;
    height: 100vh;
    padding: 20px;
    background-color: white;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    overflow-y: auto;
    z-index: 1050; /* Higher than backdrop */
    transition: right 0.3s ease-in-out;
}

.cart.active {
    right: 0;
}

/* Ensure cart content is properly styled */
.cart-content {
    margin-top: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Empty cart styling - Human & Friendly */
.empty-cart-container {
    padding: 2.5rem 1rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 1rem;
}

.empty-cart-icon {
    position: relative;
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.empty-cart-emoji {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.empty-cart-content {
    max-width: 300px;
}

.empty-cart-title {
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.empty-cart-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.empty-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

.empty-cart-btn {
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
}

.signin-btn {
    background: #ffffff;
    color: #495057;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.signin-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.shop-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.shop-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

/* Style the close button */
#close-card {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    z-index: 1051; /* Above cart content */
}

#close-card:hover {
    color: #dc3545;
}

/* Ensure cart title is properly positioned */
.cart-title {
    margin-bottom: 1.5rem;
    padding-right: 2rem; /* Make room for close button */
}

/* Style the total section */
.total {
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ensure body doesn't scroll when cart is open */
body.cart-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .cart {
        width: 100%;
        right: -100%;
    }
}

.cart-box{
    display: grid;
    grid-template-columns: 32% 50% 18%;	
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.cart-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.cart-detial{
    display: grid;
    row-gap: 0.5rem;
}
.cart-product-title{
    font-size: 1rem;
    text-transform: uppercase;
}
.cart-price{
    font-weight: 500;
}
.cart-quantity{
    border: 1px solid;
    font-size: 1rem;
    width: 5rem;
    border-radius: 10px;
}
.cart-remove{
    color: red;
    cursor: pointer;
}
.total-item{
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}
.text{
    color: rgb(65, 64, 64);
}
.COL > .COL, .ROW > .col-lg-2 {
    width: 550px;
    height: 180px;
    padding: 30px; 
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .COL > .COL, .ROW > .col-lg-2:hover .overlay{
    opacity: 1;
  }
  
.shop-cate{
    text-decoration: none;
    color: #2e3b56;
}
.shop-cate:hover{
    color: black;
}
.Btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #2e3b56;
}
.COL > .COL, .ROW > .col-lg-2:hover .Btn {
    opacity: 1;
}
.background {
    position: relative;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 200px; /* Adjusted height to make the image shorter */
    display: block;
    object-fit: cover; /* Ensures the image scales properly */
    filter: brightness(50%); /* Darkens the image */
}

.category-card .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.category-card a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.category-card:hover a {
    text-decoration: underline;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body[data-theme="light"] .overlay {
    background-color: rgba(255, 255, 255, 0.3);
}

body[data-theme="dark"] .Btn {
    color: white;
}

body[data-theme="light"] .Btn {
    color: black;
}
li a{
    color: black;
}
.fa-heart {
    font-size: 30px;
    transition: color 0.3s ease;
  }

.fa-heart:hover {
    color: #2e3b56;
}

/* Category-Product */
.shop-card {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.shop-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(1);
}
.shop-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}
.shop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.shop-card:hover .shop-overlay {
    opacity: 1;
}
.shop-title {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76, 76, 76, 0.6);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    text-align: center;
    width: 60%;
}

/* scroll animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sidebar active state */
#profileModal .list-group-item.active {
    background-color: #000 !important; /* Black background */
    color: #fff !important;           /* White text */
    border-color: #000 !important;    /* Match border */
}

/* Ensure icon color also turns white */
#profileModal .list-group-item.active i {
    color: #fff !important;
}

#profileModal .content-section,
#profileModal #editProfileContent,
#profileModal #changePasswordContent,
#profileModal #addressContent {
    height: 500px;   /* exact height */
    width: 100%;     
}

.banner-wrapper:hover .banner-img {
    transform: scale(1.05);   /* zoom slightly */
    filter: brightness(90%);   /* brighten a little */
}

.banner-wrapper {
    aspect-ratio: 16 / 9; /* width / height ratio */
    overflow: hidden;
    position: relative;
}

.text-decoration-none{
    color: white;
}

/* Brand Grid Styles */
.brand-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Brand-specific color variations */
.brand-card[data-brand*="apple"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #007AFF;
}

.brand-card[data-brand*="samsung"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #1428A0;
}

.brand-card[data-brand*="huawei"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #C7000B;
}

.brand-card[data-brand*="oppo"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #0082FC;
}

.brand-card[data-brand*="xiaomi"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #FF6700;
}

/* Enhanced brand card styling */
.brand-card {
    cursor: pointer;
    user-select: none;
}

.brand-card .brand-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #2e3b56;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2e3b56;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.brand-icon {
    font-size: 2rem;
    color: #2e3b56;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-icon {
    transform: scale(1.1);
    opacity: 1;
    color: #2e3b56;
}

.brand-card:hover .brand-name {
    color: #2e3b56;
}

.brand-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #2e3b56;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments for brand grid */
@media (max-width: 768px) {
    .brand-card {
        padding: 1.25rem 0.75rem;
        min-height: 100px;
    }
    
    .brand-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .brand-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .brand-card {
        padding: 1rem 0.5rem;
        min-height: 80px;
    }
    
    .brand-name {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .brand-icon {
        font-size: 1.5rem;
    }
}

/* Brand section button styling */
.brand-section .btn-outline-primary {
    border-color: #2e3b56;
    color: #2e3b56;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.brand-section .btn-outline-primary:hover {
    background-color: #2e3b56;
    border-color: #2e3b56;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(46, 59, 86, 0.2);
}

/* Compact brand grid container */
.brand-section .container {
    max-width: 1200px;
}

/* Brand grid title styling */
.brand-section h2 {
    font-weight: 600;
    color: #2e3b56;
    margin-bottom: 1.5rem;
}

/* Hidden brands styling */
.brand-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-hidden.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Toggle button styling */
#brand-toggle-container {
    transition: all 0.3s ease;
}

#brand-toggle-btn {
    transition: all 0.3s ease;
    border-color: #2e3b56;
    color: #2e3b56;
}

#brand-toggle-btn:hover {
    background-color: #2e3b56;
    border-color: #2e3b56;
    color: white;
    transform: translateY(-1px);
}

#brand-toggle-btn.expanded {
    background-color: #2e3b56;
    border-color: #2e3b56;
    color: white;
}

#brand-toggle-btn.expanded i {
    transform: rotate(180deg);
}

#brand-toggle-btn i {
    transition: transform 0.3s ease;
}

/* Brand grid animation */
#brand-grid {
    transition: all 0.4s ease;
}

/* Stagger animation for hidden brands */
.brand-hidden.show:nth-child(1) { transition-delay: 0ms; }
.brand-hidden.show:nth-child(2) { transition-delay: 50ms; }
.brand-hidden.show:nth-child(3) { transition-delay: 100ms; }
.brand-hidden.show:nth-child(4) { transition-delay: 150ms; }
.brand-hidden.show:nth-child(5) { transition-delay: 200ms; }
.brand-hidden.show:nth-child(6) { transition-delay: 250ms; }
.brand-hidden.show:nth-child(7) { transition-delay: 300ms; }
.brand-hidden.show:nth-child(8) { transition-delay: 350ms; }
.brand-hidden.show:nth-child(9) { transition-delay: 400ms; }
.brand-hidden.show:nth-child(10) { transition-delay: 450ms; }
.brand-hidden.show:nth-child(11) { transition-delay: 500ms; }
.brand-hidden.show:nth-child(12) { transition-delay: 550ms; }

/* Loading state for toggle button */
#brand-toggle-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#brand-toggle-btn.loading i {
    animation: spin 1s linear infinite;
}

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


