:root{
    --primary1: 204, 0, 0; /* #CC0000 */    
    --primary2: 248, 249, 250; /* #f8f9fa */
    --primary1-dark: 151, 7, 7; /* #970707 */
    /* --primary1: 103, 121, 228;
    --primary1-dark: 114, 88, 180; */
    --clr-white: 255, 255, 255; /* #ffffff */
    --clr-black: 0, 0, 0; /* #000000 */
    --padding: clamp(2.625rem, 2.1rem + 2.625vw, 5.25rem);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: rgba(var(--primary2));
    color: #212529;
}

.pg-login {
    height: 100vh;
    display: flex;
    align-items: center;
    background: rgba(var(--primary2));
}

.text-indigo {
    color: rgba(var(--primary1));
}

.bg-indigo {
    background-color: rgba(var(--primary1));
}

.btn-indigo {
    background-color: rgba(var(--primary1));
    color: rgba(var(--clr-white));
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
}

.btn-indigo:hover {
    background-color: rgba(var(--primary1-dark));
    color: rgba(var(--clr-white));
}

.promo-bar {
    background-color: rgba(var(--primary1));
    color: rgba(var(--clr-white));
    font-size: 0.875rem;
    padding: 8px 0;
    font-weight: 500;
}

.navbar {
    background: rgba(var(--clr-white));
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.dropdown-item.active, .dropdown-item:active{
    background-color: rgba(var(--primary1));
}

.dropdown-item.text-danger.active,.dropdown-item.text-danger:active{
    color: rgba(var(--clr-white)) !important;
}

.nav-link {
    font-weight: 500;
    color: #4b5563;
}

.nav-link:hover {
    color: rgba(var(--primary1));
}

.page-content {padding: var(--padding) 0;}

.hero-about {
    background-color: #f9fafb;
    padding-bottom: calc(var(--padding) / 2);
}

.form-control {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.form-control:focus{
    box-shadow: 0 0 0 .25rem rgba(var(--primary1),0.25);
    border-color: rgba(var(--primary1));
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    color: rgba(var(--clr-white));
    border-radius: 0 0 40px 40px;
}

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(var(--clr-white));
    overflow: hidden;
    position: relative;
}

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

.filter-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.nav-pills .nav-link {
    color: #4b5563;
    font-weight: 500;
    text-align: left;
}

.nav-pills .nav-link.active {
    background-color: rgba(var(--primary1));
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(var(--primary1));
    color: rgba(var(--clr-white));
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

footer {
    background: rgba(var(--clr-white));
    border-top: 1px solid #e5e7eb;
    padding: 80px 0;
}

footer ul li {margin-bottom: 0.375rem;}
footer ul li a {color: var(--bs-secondary-color)!important; text-decoration: none;}
footer ul li a:hover {color: rgba(var(--primary1)) !important;}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.summary-card {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(var(--clr-white));
    position: sticky;
    top: 100px;
}

.product-img {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(var(--clr-white));
}

.nav-tabs .nav-link {
    border: none;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.nav-tabs .nav-link.active {
    color: rgba(var(--primary1));
    border-bottom: 2px solid rgba(var(--primary1));
}

.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.sidebar-nav .nav-link {
    color: #4b5563;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-nav .nav-link.active {
    background: rgba(var(--primary1));
    color: rgba(var(--clr-white));
}

.address-card {
    background: rgba(var(--clr-white));
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.address-card.active {
    border-color: rgba(var(--primary1));
    box-shadow: 0 0 0 1px rgba(var(--primary1));
}

.order-card {
    background: rgba(var(--clr-white));
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 1.5rem;
}

.login-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: rgba(var(--clr-white));
    margin: auto;
}
/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    background: rgba(var(--clr-white));
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid rgba(var(--primary1));
}

.toast-notification.success {
    border-left-color: #10b981;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.info {
    border-left-color: #3b82f6;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success {
    color: #10b981;
}

.toast-icon.error {
    color: #ef4444;
}

.toast-icon.info {
    color: #3b82f6;
}

.toast-icon.warning {
    color: #f59e0b;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

.toast-notification.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        padding: 12px 16px;
    }
}

/* Mega Menu Styles */
.mega-menu {
    position: relative;
}

.mega-dropdown {
    position: static;
}

.mega-dropdown .dropdown-toggle::after {
    display: none; /* Remove default Bootstrap arrow */
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(var(--clr-black)) !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.2s;
}

.nav-link:hover {
    color: rgba(var(--primary1)) !important;
}

.mega-menu-content {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 2.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 0;
    border-radius: 0;
    background: rgba(var(--clr-white));
    transform: none !important;
}

.mega-menu-content .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.mega-menu-content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.mega-menu-column {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    flex: 0 0 auto;
    width: 25%;
}

.mega-menu-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: rgba(var(--clr-black));
    text-transform: capitalize;
    letter-spacing: 0;
}

.mega-menu-title a {
    color: rgba(var(--clr-black));
    text-decoration: none;
    transition: color 0.2s;
}

.mega-menu-title a:hover {
    color: rgba(var(--primary1));
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.75rem;
}

.mega-menu-list a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    display: block;
    padding: 0;
    transition: all 0.2s;
    position: relative;
    padding-left: 0;
    line-height: 1.6;
}

.mega-menu-list a:before {
    display: none; /* Remove arrow */
}

.mega-menu-list a:hover {
    color: rgba(var(--clr-black));
    padding-left: 0;
    font-weight: 500;
}

/* Mobile Responsive Mega Menu */
@media (max-width: 991px) {
    .mega-dropdown .dropdown-menu {
        position: relative !important;
        width: 100%;
        transform: none !important;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-left: 0 !important;
    }
    
    .mega-menu-content {
        padding: 1rem 0;
        border-top: 1px solid #e5e7eb;
        box-shadow: none;
        width: 100% !important;
        margin-left: 0 !important;
        position: relative !important;
    }
    
    .mega-menu-column {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .mega-menu-title {
        font-size: 13px;
        margin-bottom: 0.75rem;
        font-weight: 700;
    }
    
    .mega-menu-list {
        margin-bottom: 1rem;
    }
    
    .mega-menu-list li {
        margin-bottom: 0.5rem;
    }
    
    .mega-menu-list a {
        padding: 0.25rem 0;
        font-size: 12px;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        border-bottom: 1px solid #f3f4f6;
    }
    
    .nav-link {
        padding: 0.875rem 1rem !important;
        font-size: 13px;
    }
}

/* Hover effect for desktop */
@media (min-width: 992px) {
    .mega-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .mega-dropdown .dropdown-toggle {
        cursor: pointer;
    }
    
    /* Add underline on hover for top menu */
    .nav-link {
        position: relative;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: rgba(var(--primary1));
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }
    
    /* Ensure mega menu columns are equal width */
    .mega-menu-column {
        min-width: 200px;
    }
}

/* Active menu item */
.nav-link.active {
    color: rgba(var(--primary1)) !important;
    font-weight: 700;
}

/* Navbar adjustments */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-nav .nav-item {
    border-bottom: none;
}


.sidebar-sticky .accordion-button{background-color: rgba(var(--primary1)); color: rgba(var(--clr-white));}
.sidebar-sticky .accordion-button:focus{box-shadow: 0 0 0 3px rgba(var(--primary1-dark),0.2);}
.accordion-button::after{filter: brightness(0) invert(1);}
.badge.bg-indigo-subtle{background-color: #ffcbcb !important;}

/* Product image styling */
.product-img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Thumbnail styling */
#thumbnailContainer .thumbnail {
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
}
#thumbnailContainer .thumbnail:hover {
    border-color: rgba(var(--primary1));
    transform: scale(1.05);
}
#thumbnailContainer .thumbnail.active {
    border-color: rgba(var(--primary1)) !important;
    box-shadow: 0 0 0 3px rgb(204 0 0 / 20%);
}

/* Variant selector styling */
.variant-options .form-check {
    margin-bottom: 0;
}
.variant-options .form-check-input {
    display: none;
}
.variant-options .form-check-label {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}
.variant-options .form-check-input:checked + .form-check-label {
    background-color: rgba(var(--primary1));
    color: rgba(var(--clr-white));
    border-color: rgba(var(--primary1));
}
.variant-options .form-check-label:hover {
    border-color: rgba(var(--primary1));
    transform: translateY(-1px);
}

         
        
        
/* Nav tabs styling */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}
.nav-tabs .nav-link {
    border: none;
    color: #6b7280;
    font-weight: 500;
    padding: 1rem 1.5rem;
}
.nav-tabs .nav-link.active {
    color: rgba(var(--primary1));
    border-bottom: 2px solid rgba(var(--primary1));
    margin-bottom: -2px;
}
.nav-tabs .nav-link:hover {
    color: rgba(var(--primary1));
}

/* Product Image Slider Styles */
.product-image-slider {
    position: relative;
}

.product-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: zoom-in;
    margin-bottom: 1.5rem;
    background: rgba(var(--primary2));
}

.product-img {
    border-radius: 12px;
    transition: transform 0.4s ease, opacity 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform-origin: center center;
}

.product-img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

.product-img.fade-out {
    opacity: 0;
}

.product-img.fade-in {
    opacity: 1;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(var(--clr-white));
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
    stroke: rgba(var(--primary1));
}

/* Thumbnail Styles */
#thumbnailContainer {
    margin-top: 20px;
}

#thumbnailContainer .thumbnail {
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    height: 80px;
    width: 100%;
}

#thumbnailContainer .thumbnail:hover {
    border-color: rgba(var(--primary1));
    transform: scale(1.05);
}

#thumbnailContainer .thumbnail.active {
    border-color: rgba(var(--primary1)) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary1),0.2);
}

/* Variant Selector Styling */
.variant-options .form-check {
    margin-bottom: 0;
}

.variant-options .form-check-input {
    display: none;
}

.variant-options .form-check-label {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.variant-options .form-check-input:checked + .form-check-label {
    background-color: rgba(var(--primary1));
    color: rgba(var(--clr-white));
    border-color: rgba(var(--primary1));
}

.variant-options .form-check-label:hover {
    border-color: rgba(var(--primary1));
    transform: translateY(-1px);
}

/* Badge Styling */
.badge.bg-indigo-subtle {
    background-color:  rgba(var(--primary1),0.1) !important;
    color: rgba(var(--primary1)) !important;
}

.text-indigo {
    color: rgba(var(--primary1)) !important;
}

/* Lucide Icons */
.fill-current {
    fill: currentColor;
}

#productForm .form-check{padding-left: 0; padding-right: 1em;}

.breadcrumb{background-color: rgba(var(--clr-white)); border-radius: 10px;
padding: 10px 15px;
}
.breadcrumb a{color: rgba(var(--primary1)); text-decoration: none;}

.form-select:focus{
    box-shadow: 0 0 0 3px rgba(var(--primary1-dark),0.2);
    border-color: rgba(var(--primary1));
}
.form-check-input:checked{
    background-color: rgba(var(--primary1));
    border-color: rgba(var(--primary1));
}
.form-check-input:focus{
    box-shadow: 0 0 0 3px rgba(var(--primary1-dark),0.2);
}

input[type=range]{
    accent-color: rgba(var(--primary1));
}


/* cart */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
    color: rgba(var(--clr-white));
    transform: scale(1.1);
}

.step.completed .step-number {
    background: rgba(var(--primary1),0.5);
    color: rgba(var(--clr-white));
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: rgba(var(--clr-black));
    font-weight: 600;
}

.step-divider {
    height: 2px;
    background: #e5e7eb;
    flex: 1;
    margin: 0 1rem 2rem 1rem;
}

.checkout-content-card {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(var(--clr-white));
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.address-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.address-card:hover {
    border-color: rgba(var(--primary1));
    background: rgba(var(--primary2));
}

.address-card input[type="radio"] {
    margin-right: 1rem;
}

.address-card.selected {
    border-color: rgba(var(--primary1));
    background: #f8faff;
}

.payment-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-option:hover {
    border-color: rgba(var(--primary1));
    background: rgba(var(--primary2));
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: rgba(var(--primary1));
}

.payment-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary2));
    border-radius: 12px;
}

.review-section {
    background: rgba(var(--primary2));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.change-link {
    color: rgba(var(--primary1));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.change-link:hover {
    text-decoration: underline;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}


.checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}


.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.order-items-table th {
    background: rgba(var(--primary2));
    font-weight: 600;
}

.order-items-table tfoot td {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid rgba(var(--clr-black));
}



.btn-outline-dark {
    border: 2px solid #343a40;
    background: rgba(var(--clr-white));
    color: #343a40;
}

.btn-outline-dark:hover {
    background: #343a40;
    color: rgba(var(--clr-white));
}

.form-row.address-checkbox input{width: auto;}

.success-card {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(var(--clr-white));
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    width: 100px;
    height: 100px;    
    background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: rgba(var(--clr-white));
    margin: 0 auto 2rem;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.order-info-box {
    background: rgba(var(--primary2));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.order-info-row:last-child {
    border-bottom: none;
}

.email-notification {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.email-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.order-summary-table {
    width: 100%;
    margin: 2rem 0;
    text-align: left;
}

.order-summary-table th {
    background: rgba(var(--primary2));
    padding: 1rem;
    font-weight: 600;
}

.order-summary-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-table tfoot td {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid rgba(var(--clr-black));
}

.next-steps {
    text-align: left;
    background: rgba(var(--primary2));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.next-steps li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
 

.dashboard-header {
background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
color: rgba(var(--clr-white));
padding: 3rem 0;
margin-bottom: 2rem;
}

.stats-card {
background: rgba(var(--clr-white));
border-radius: 15px;
padding: 1.5rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}

.stats-card:hover {
transform: translateY(-5px);
}

.stats-icon {
width: 50px;
height: 50px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}

.icon-purple { background: #f3f0ff; color: rgba(var(--primary1)); }
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-orange { background: #ffedd5; color: #ea580c; }

.dashboard-menu {
background: rgba(var(--clr-white));
border-radius: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

.menu-item {
display: flex;
align-items: center;
padding: 1rem 1.5rem;
border-bottom: 1px solid #f3f4f6;
text-decoration: none;
color: #374151;
transition: all 0.3s;
}

.menu-item:last-child {
border-bottom: none;
}

.menu-item:hover {
background: #f9fafb;
color: rgba(var(--primary1));
}

.menu-item i {
margin-right: 1rem;
}

.order-card-dashboard {
background: rgba(var(--clr-white));
border-radius: 15px;
padding: 1.5rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 1rem;
}

.status-badge {
padding: 0.375rem 0.75rem;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }


 
.orders-header {
    background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
    color: rgba(var(--clr-white));
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    border: 2px solid #e5e7eb;
    background: rgba(var(--clr-white));
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.filter-pill:hover {
    border-color: rgba(var(--primary1));
    color: rgba(var(--primary1));
    transform: translateY(-2px);
}

.filter-pill.active {
    background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
    color: rgba(var(--clr-white));
    border-color: rgba(var(--primary1));
}

.order-card {
    background: rgba(var(--clr-white));
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.btn-outline-indigo {
    border: 2px solid rgba(var(--primary1));
    color: rgba(var(--primary1));
    background: rgba(var(--clr-white));
    transition: all 0.3s;
}

.btn-outline-indigo:hover {
    background: rgba(var(--primary1));
    color: rgba(var(--clr-white));
}

.text-indigo {
    color: rgba(var(--primary1)) !important;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(var(--clr-white));
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    display: none;
}

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

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid rgba(var(--primary1));
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.orders-summary {
    background: rgba(var(--clr-white));
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
}

.breadcrumb-item a {
    color: rgba(var(--primary1));
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* cart */
.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.summary-card {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(var(--clr-white));
    position: sticky;
    top: 100px;
}

.quantity-controls {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(var(--clr-white));
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-controls button:hover {
    background: rgba(var(--primary2));
    color: rgba(var(--clr-black));
}

.quantity-controls input {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-weight: 500;
}

.quantity-controls input:focus {
    outline: none;
    background: rgba(var(--primary2));
}

#addToCartBtn{padding: 12px 24px;}

/* order */
.order-header {
    background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
    color: rgba(var(--clr-white));
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.order-detail-card {
    background: rgba(var(--clr-white));
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.status-badge1 {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* .status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; } */

.order-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.order-item-details {
    flex-grow: 1;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    width: 150px;
    flex-shrink: 0;
}

.info-value {
    color: #374151;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-print {
    background: rgba(var(--primary1));
    color: rgba(var(--clr-white));
    border: none;
}

.btn-print:hover {
    background: rgba(var(--primary1-dark));
    color: rgba(var(--clr-white));
}

.btn-cancel {
    background: #dc3545;
    color: rgba(var(--clr-white));
    border: none;
}

.btn-cancel:hover {
    background: #c82333;
    color: rgba(var(--clr-white));
}

.btn-return {
    background: #ff9800;
    color: rgba(var(--clr-white));
    border: none;
}

.btn-return:hover {
    background: #e68900;
    color: rgba(var(--clr-white));
}


.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Print Styles - Invoice Format */
@media print {
    @page {
        size: A4;
        margin: 10mm;
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    html, body {
        background: rgba(var(--clr-white));
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    body * {
        visibility: hidden;
    }
    
    .print-invoice {
        display: block !important;
        visibility: visible;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        background: rgba(var(--clr-white));
        padding: 10px;
        margin: 0;
        overflow: visible;
    }
    
    .print-invoice, .print-invoice * {
        visibility: visible;
    }
    
    .no-print, .print-area, .modal, nav, header, footer {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Invoice Header Styles */
    .invoice-header {
        border-bottom: 3px solid #000;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .invoice-header h1 {
        font-size: 24px;
        margin: 0;
    }
    
    .invoice-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .invoice-section {
        border: 1px solid #ddd;
        padding: 10px;
    }
    
    .invoice-section h3 {
        font-size: 12px;
        font-weight: bold;
        margin: 0 0 8px 0;
        text-transform: uppercase;
    }
    
    .invoice-section p {
        font-size: 11px;
        margin: 3px 0;
        line-height: 1.4;
    }
    
    /* Invoice Table */
    .invoice-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 10px;
        font-size: 10px;
        page-break-inside: avoid;
    }
    
    .invoice-table th {
        background: #f5f5f5;
        border: 1px solid #000;
        padding: 5px;
        text-align: left;
        font-weight: bold;
        font-size: 9px;
    }
    
    .invoice-table td {
        border: 1px solid #ddd;
        padding: 5px;
        vertical-align: top;
    }
    
    .invoice-table .text-right {
        text-align: right;
    }
    
    .invoice-table .text-center {
        text-align: center;
    }
    
    /* Invoice Totals */
    .invoice-totals {
        width: 100%;
        margin-top: 5px;
        font-size: 10px;
        page-break-inside: avoid;
    }
    
    .invoice-totals td {
        padding: 3px;
    }
    
    .invoice-totals .total-row {
        font-weight: bold;
        font-size: 11px;
        border-top: 2px solid #000;
    }
    
    /* Invoice Footer */
    .invoice-footer {
        margin-top: 15px;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }
    
    .invoice-footer p {
        font-size: 10px;
        margin: 3px 0;
    }
    
    .signature-section {
        margin-top: 40px;
        text-align: right;
    }
    
    .signature-line {
        border-top: 1px solid #000;
        width: 200px;
        display: inline-block;
        margin-top: 30px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(var(--clr-white));
    padding: 2rem;
    border-radius: 15px;
    max-width1: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

/* Return Modal Styles */
.return-items-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.return-item-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.return-item-card:hover:not(.disabled) {
    border-color: rgba(var(--primary1));
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

.return-item-card.disabled {
    opacity: 0.6;
    background: #f3f4f6;
}

.return-item-checkbox {
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-top: 0.5rem;
}

.return-item-checkbox:checked ~ label {
    color: rgba(var(--primary1));
}

.return-item-details {
    background: rgba(var(--clr-white));
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
}

.breadcrumb-item a {
    color: rgba(var(--primary1));
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* address-card */
.address-card.default {
    border-color: rgba(var(--primary1),0.7);
    background: rgba(var(--primary1),0.05);
}
.address-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-left: auto;
}
.default-badge {
    background: #28a745;
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}
.address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.add-address-card {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--primary2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#addressForm .form-select{padding-top: 12px; padding-bottom: 12px; border-radius: 12px;}
.add-address-card:hover {
    border-color: rgba(var(--primary1),0.7);    
    background: rgba(var(--primary1),0.05);
}
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
/* Fix modal z-index and backdrop issues */
.modal-backdrop {
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal {
    z-index: 1050 !important;
}
.modal-dialog {    
    margin: 1.75rem auto;
}
.modal.show .modal-dialog {
    transform: none;
}

.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* profile */
.profile-header {
    background: linear-gradient(135deg, rgba(var(--primary1)) 0%, rgba(var(--primary1-dark)) 100%);
    color: rgba(var(--clr-white));
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(var(--clr-white));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(var(--primary1));
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.stats-card {
    background: rgba(var(--clr-white));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(var(--primary1));
}
.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.profile-section {
    background: rgba(var(--clr-white));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
 
.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.quick-link-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.quick-link-btn:hover {
    border-color: rgba(var(--primary1));
    color: rgba(var(--primary1));
    background: #f8f9ff;
}

.predictive-search-input:focus{
    border-color: rgba(var(--primary1));
}