 :root {
     --bs-primary: #28c76f;
     --bs-primary-rgb: 40, 199, 111;
    --primary-color: #28c76f;
    --secondary-color: #20bf6b;
    --accent-color: #1dd1a1;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Avatar Global Styles - Force all avatars to be perfectly round */
.avatar,
[class*="avatar"],
.rounded-circle {
    border-radius: 50% !important;
    overflow: hidden !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.avatar img,
[class*="avatar"] img,
img.rounded-circle {
    border-radius: 50% !important;
    border: none !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    box-shadow: none !important;
}

/* Override Bootstrap border utilities for avatars */
.avatar.border,
.avatar .border,
[class*="avatar"].border,
[class*="avatar"] .border {
    border: none !important;
}

/* Global Typography & Spacing */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Enhanced Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    letter-spacing: -0.02em !important;
}

/* Navbar Icons Protection */
.navbar svg,
.navbar .icon {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
}

.navbar .cart-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    min-width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    position: absolute !important;
    top: -5px !important;
    right: -2px !important;
    transform: translate(0%, -25%) !important;
    left: auto !important;
}

/* Override Bootstrap fs-5 class specifically in navbar */
.navbar .badge.fs-5 {
    font-size: 0.75rem !important;
}

/* Override Bootstrap positioning classes for cart badge */
.navbar .cart-badge.start-100 {
    left: auto !important;
    right: -2px !important;
}

.navbar .cart-badge.translate-middle {
    transform: translate(0%, -25%) !important;
}

/* Maximum specificity override for cart badge positioning */
.navbar .position-absolute.top-0.start-100.translate-middle.badge.cart-badge {
    left: auto !important;
    right: -2px !important;
    transform: translate(0%, -25%) !important;
}

/* Blog Author Avatar Fixes */
.blog-author-avatar,
.blog-post-author .avatar,
.blog-author img,
.author-avatar img,
.blog-post .rounded-circle,
.blog-post img.rounded-circle {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border: 2px solid #e9ecef !important;
    overflow: hidden !important;
}

.blog-author-avatar img,
.blog-post-author .avatar img,
.blog-author img,
.author-avatar img,
.blog-post .rounded-circle,
.blog-post img.rounded-circle {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Specific fixes for different avatar sizes in blog */
.blog-post .d-flex.align-items-center img.rounded-circle {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

.blog-post .d-flex.align-items-center img.rounded-circle[width="20"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
}

.blog-post-author-image {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Blog Post List Styling */
.blog-post-item .author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-item .author-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.blog-post-item .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Sidebar Styling */
.blog-sidebar .sidebar-widget {
    margin-bottom: 1.5rem;
}

.blog-sidebar .widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-sidebar .card-body {
    font-size: 0.95rem;
}

.blog-sidebar .card-body h5 {
    font-size: 1.1rem;
}

.blog-sidebar .card-body h6 {
    font-size: 1rem;
}

.blog-sidebar .card-body p {
    font-size: 0.95rem;
}

.blog-sidebar .card-body small {
    font-size: 0.85rem;
}

/* Featured Article Author Fix */
.featured-post .d-flex.align-items-center {
    align-items: center !important;
    gap: 0.5rem;
}

.featured-post .d-flex.align-items-center img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.featured-post .d-flex.align-items-center span {
    font-size: 0.9rem;
    line-height: 1.2;
}

.blog-sidebar .card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.blog-sidebar .card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.blog-sidebar .form-control {
    border: none;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.blog-sidebar .form-control:focus {
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

.blog-sidebar .btn {
    padding: 0.75rem 1rem;
    font-weight: 500;
}

/* Category List Styling */
.category-list .category-item {
    margin-bottom: 0;
}

.category-list .category-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color); /* Add border-bottom to all but the last item */
}

.category-list .category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    line-height: 1.2 !important;
    border-radius: 0; /* Ensure no border-radius on the link itself */
}

.category-list .category-item a:hover {
    background-color: transparent !important; /* No background on hover */
    border-radius: 0; /* Ensure no border-radius on hover */
    transform: none;
}

.category-list .badge {
    min-width: 2rem;
    height: 2rem;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0;
    margin-left: auto;
    color: var(--tblr-white) !important; /* Ensure white text for better contrast */
}

.category-list .category-item a .fw-medium.text-dark {
    margin-right: 0.5rem;
}

/* Recent Posts Styling */
.recent-post {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.recent-post:hover {
    background-color: #f8f9fa !important;
    border-color: #e9ecef;
}

.recent-post img {
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.recent-post h6 {
    font-size: 0.9rem;
    line-height: 1.6; /* Increased line-height for better readability */
}

.recent-post a:hover {
    color: var(--primary-color) !important;
}

/* Tags Styling */
.tags .badge {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Hover Effects */
.bg-light-hover {
    transition: all 0.3s ease;
}

.bg-light-hover:hover {
    background-color: #f8f9fa !important;
}

/* Navbar Dropdown Protection */
.navbar .dropdown-menu {
    font-size: 0.9rem !important;
}

.navbar .dropdown-item {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
}

.navbar .dropdown-header {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

/* Cart dropdown specific styling */
.navbar .dropdown-menu .fw-semibold {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

.navbar .dropdown-menu .fw-bold {
    font-weight: 700 !important;
    font-size: 0.875rem !important;
}

.navbar .dropdown-menu .text-muted.small {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
}

/* Navbar Search Form Protection */
.navbar .form-control {
    font-size: 0.9rem !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    padding: 0.375rem 0.75rem !important;
    height: auto !important;
}

.navbar .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25) !important;
}

/* Navbar Button Protection */
.navbar .btn {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 6px !important;
}

.navbar .btn-success {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Navbar Container Protection */
.navbar .container-xl {
    max-width: 1320px !important;
}

.navbar .navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 1rem !important;
}

/* Global Protection: Prevent blog/static page styles from affecting navbar */
.navbar, .navbar * {
    box-sizing: border-box !important;
}

/* Prevent text scaling from affecting navbar specifically */
.navbar .nav-item,
.navbar .nav-item *,
.navbar .dropdown-item,
.navbar .dropdown-item * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.5 !important;
}

/* Prevent any global icon scaling from affecting navbar icons */
.navbar svg,
.navbar .icon,
.navbar img {
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    transition: transform 0.2s ease !important;
}

.navbar svg:hover,
.navbar .icon:hover {
    transform: scale(1.05) !important;
}

/* Badge specific protection */
.navbar .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Hero Slider Enhancements */
#heroCarousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 3rem;
    position: relative;
}

#heroCarousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 199, 111, 0.1), rgba(29, 209, 161, 0.1));
    z-index: 1;
    pointer-events: none;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
    position: relative;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    left: 6rem;
    right: 6rem;
    bottom: 3rem;
    text-align: left;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.8s ease-out;
    z-index: 10;
}

.carousel-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.carousel-caption small {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 15;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: none;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.carousel-indicators .active {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.py-4 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Category Cards */
.category-card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    background: white;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.category-card .card-body {
     padding: 1.5rem;
}

.category-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    background: white;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(40, 199, 111, 0.05));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

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

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
     padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-card .card-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 199, 111, 0.4);
}

.btn-outline-success {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

/* Cart Badge - Global Definition (overridden by navbar-specific rules above) */
 .cart-badge {
    position: absolute;
    top: -5px;
    right: -2px;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(0%, -25%);
    animation: pulse 2s infinite;
}

/* Enhanced Dropdown Menus */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 1rem 0;
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease-out;
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-width: 280px;
}

/* Cart Dropdown Specific */
.dropdown-menu[aria-labelledby="cartDropdown"] {
    padding: 1.5rem;
    min-width: 320px;
}

/* Dropdown Headers */
.dropdown-header {
    padding: 0.5rem 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 0.5rem;
}

/* User Dropdown Items */
.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    position: relative;
    border-radius: 0;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--dark-color);
    transform: none;
    padding-left: 1.5rem;
}

.dropdown-item:focus {
    background: #f8f9fa;
    color: var(--dark-color);
    outline: none;
    box-shadow: none;
}

.dropdown-item:active {
    background: #e9ecef;
    color: var(--dark-color);
}

.dropdown-item.text-danger:hover {
    background: #f8d7da;
    color: #721c24;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #f1f3f4;
}



/* Footer */
footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer h4, footer h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Loading States for Images */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .carousel-caption {
        left: 3.5rem;
        bottom: 1rem;
        right: 3.5rem;
        max-width: none;
        padding: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.4rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Extra small screens - ensure caption doesn't overlap navigation */
@media (max-width: 576px) {
    .carousel-caption {
        left: 2.5rem;
        right: 2.5rem;
        bottom: 1rem;
        padding: 1rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption small {
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Products Page Styling */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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

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

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* Removed duplicate page-header - merged above */

/* Category Header */
.category-header {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

/* Product List Header (moved to right) */
.product-list-header {
    background: white; /* Changed background to white */
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light); /* Changed to light shadow */
    transition: var(--transition);
}

.product-list-header:hover {
    box-shadow: var(--shadow-medium); /* Changed to medium shadow on hover */
    transform: none; /* Removed subtle lift effect */
}

.product-list-header .category-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.product-list-header .products-count {
    margin-top: 0.5rem;
}

/* Filter Section (horizontal) */
.filter-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.filter-sidebar-horizontal {
    width: 100%;
}

.filter-sidebar-horizontal .filter-card {
    display: inline-block;
    margin-right: 2rem;
    margin-bottom: 1rem;
    min-width: 200px;
    vertical-align: top;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-label {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.view-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(40, 199, 111, 0.3);
}

.show-dropdown,
.sort-dropdown {
    display: flex;
    align-items: center;
}

.show-dropdown .form-select,
.sort-dropdown .form-select {
    min-width: 80px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.875rem;
}

.products-count {
    font-weight: 500;
}

/* Improved Pagination Styling */
.pagination {
    gap: 0.25rem;
}

.page-link {
    color: #212529;
    background: white;
    border: 2px solid #dee2e6;
    padding: 0.6rem 1rem;
    margin: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    color: white !important;
    background: #28a745 !important;
    border-color: #28a745 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    z-index: 2;
}

.page-link:focus {
    color: white !important;
    background: #28a745 !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.page-item.active .page-link {
    color: white !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(40, 199, 111, 0.5);
}

.page-item.active .page-link:hover {
    color: white !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.page-item.disabled .page-link {
    color: #adb5bd !important;
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    color: #adb5bd !important;
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    transform: none;
    box-shadow: none;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.filter-card:hover {
    box-shadow: var(--shadow-medium);
}

.filter-card .card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
}

/* Product Header */
.product-header {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    min-width: 180px;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

/* Enhanced Product Cards */
.product-grid {
    margin-bottom: 3rem;
}

.product-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    background: white;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.product-badge .badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #212529 !important;
    font-weight: 800;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
}

/* Product Actions removed - favorite button functionality removed */

/* Product Info */
.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    line-height: 1.4;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    font-size: 0.9rem;
    line-height: 1;
}

/* Product Pricing */
.product-price {
    margin-bottom: 1.5rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.price-original {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.75rem;
    display: inline-block;
}

.discount-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Price layout for products with discounts */
.product-price:has(.price-original) {
    display: block;
}

.product-price:has(.price-original) .price-current {
    margin-bottom: 0.5rem;
}

.price-discount-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Pagination Styles */
 .pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 4px;
    border: 2px solid var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

/* Loading Animation for Product Cards */
.product-card.loading {
    opacity: 0;
    transform: translateY(20px);
}

.product-card.loaded {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Products */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .product-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .product-actions {
        opacity: 1;
    }
    
    .form-select {
        min-width: 100%;
    }
}

/* Product Detail Page Styling */
.product-detail .container-xl {
    max-width: 1400px;
}

.product-detail .row {
    --bs-gutter-x: 5rem;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.main-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: zoom-in;
}

.main-image-container:hover .image-zoom-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    color: white;
}

.thumbnail {
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(40, 199, 111, 0.2);
}

/* Product Info */
.product-info {
    padding: 2rem 0;
}

.product-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars-large {
    font-size: 1.5rem;
    line-height: 1;
}

.rating-text {
    color: #6c757d;
    font-weight: 500;
}

/* Product Description */
.product-description {
    padding: 1rem 0;
    border-top: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
    background: rgba(40, 199, 111, 0.02);
    border-radius: 6px;
    padding: 1rem;
}

.description-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Product Pricing */
.product-price-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-original {
    font-size: 1.2rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 1rem;
}

.discount-percent {
    background: #dc3545;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-left: 1rem;
    display: inline-block;
}

/* Product Variants */
.variant-group {
    margin-bottom: 1.5rem;
}

.variant-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    display: block;
}

.variant-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.variant-btn:hover {
    border-color: #28c76f;
    background: rgba(40, 199, 111, 0.05);
    color: #28c76f;
}

.variant-btn.active {
    background: rgba(40, 199, 111, 0.1);
    border-color: #28c76f;
    color: #28c76f;
    font-weight: 500;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-label {
    font-weight: 600;
    color: var(--dark-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    outline: none;
}

.stock-info {
    color: #28a745;
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    margin-bottom: 2rem;
}

.product-actions .d-flex {
    justify-content: flex-start;
    align-items: center;
}

.product-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.add-to-cart {
    padding: 1rem 1.5rem;
    min-width: 180px;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 199, 111, 0.4);
}

.buy-now {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.buy-now:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.favorite-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffc1cc;
    background: white;
    color: #ff6b8a;
}

.favorite-btn:hover {
    background: rgba(255, 107, 138, 0.1);
    border-color: #ff6b8a;
    color: #e91e63;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(255, 107, 138, 0.2);
}

.favorite-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.favorite-btn:active {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.favorite-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.favorite-btn.active:hover {
    background: #c82333;
    border-color: #c82333;
    transform: scale(1.05);
}

/* Product Features */
.product-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 500;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Product Details Tabs */
.product-details-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.product-tabs {
    border-bottom: 2px solid #f8f9fa;
    padding: 0 2rem;
}

.product-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 600;
    padding: 1.5rem 2rem;
    transition: var(--transition);
    position: relative;
}

.product-tabs .nav-link:hover {
    color: var(--primary-color);
    background: transparent;
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 3px solid var(--primary-color);
}

.product-tab-content {
    padding: 2rem;
}

/* Description Content */
.description-content h3,
.description-content h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.description-content .lead {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Specifications Table */
.specifications-content .table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.specifications-content .table td {
    padding: 1rem;
    border-color: #f8f9fa;
}

.specifications-content .table tbody tr:hover {
    background: #f8f9fa;
}

/* Reviews Section */
.reviews-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.rating-overview {
    text-align: center;
}

.overall-rating {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stars-display {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.rating-count {
    color: #6c757d;
    font-weight: 500;
}

.rating-breakdown {
    padding: 1rem 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rating-bar span:first-child {
    min-width: 40px;
    font-size: 0.9rem;
}

.rating-bar span:last-child {
    min-width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}

.rating-bar .progress {
    flex: 1;
    height: 8px;
    background: #e9ecef;
}

/* Review Items */
.review-item {
    border: 1px solid #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.review-item:hover {
    box-shadow: var(--shadow-light);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    overflow: hidden;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-rating {
    font-size: 0.9rem;
}

.review-content p {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-helpful .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Related Products Section */
.related-products-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
    .product-detail .row {
        --bs-gutter-x: 1.5rem;
    }
    
    .product-gallery {
        position: static;
        margin-bottom: 2rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-main {
        font-size: 2rem;
    }
    
    .product-actions .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .add-to-cart {
        min-width: 100%;
    }
    
    .favorite-btn {
        width: 100%;
        height: 50px;
    }
    
    .quantity-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .variant-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .variant-btn {
        min-width: 120px;
    }
    
    .product-tabs {
        padding: 0 1rem;
    }
    
    .product-tabs .nav-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .product-tab-content {
        padding: 1rem;
    }
    
    .related-products-section {
        padding: 2rem 1rem;
    }
}

/* Cart Page Styling */
.cart-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.cart-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.cart-banner {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #b8dabd;
    border-radius: var(--border-radius);
    color: #155724;
    font-weight: 500;
    margin: 1.5rem 0;
}

.cart-items {
    margin: 2rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    gap: 1rem;
    transition: var(--transition);
}

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

.cart-item:hover {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    margin: 0 -1rem;
}

.cart-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

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

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.cart-item-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-remove-btn {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.cart-remove-btn:hover {
    color: #dc3545;
}

.cart-item-quantity {
    flex-shrink: 0;
    margin: 0 1rem;
}

.cart-item-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}

.cart-item-price .price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    display: block;
}

.cart-item-price .price-original {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-top: 0.25rem;
    display: block;
}

.cart-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--dark-color);
}

.summary-divider {
    margin: 1rem 0;
    border-color: #e9ecef;
}

.summary-total {
    font-size: 1.1rem;
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.checkout-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 199, 111, 0.4);
    color: white;
}

.checkout-price {
    font-size: 1.2rem;
    font-weight: 800;
}

.checkout-terms {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    text-align: center;
}

.checkout-terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkout-terms a:hover {
    text-decoration: underline;
}

/* Promo Section */
.promo-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.promo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.promo-input-group .form-control {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
}

.promo-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

.promo-input-group .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.promo-terms {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* Cart Animations */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-section, .order-summary {
        padding: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-quantity {
        margin: 0;
    }
    
    .cart-item-price {
        text-align: left;
        min-width: auto;
    }
    
    .cart-actions .row > div {
        margin-bottom: 1rem;
    }
    
    .cart-actions .text-end {
        text-align: left !important;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
}

/* Checkout Page Styling */
.checkout-header {
    margin-bottom: 2rem;
}

.checkout-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

.checkout-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.checkout-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.checkout-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.section-header .d-flex {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
}

/* Address Cards */
.address-options {
    margin-top: 1.5rem;
}

.address-card {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    height: 100%;
}

.address-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(40, 199, 111, 0.15);
}

.address-card .form-check-input:checked ~ .address-label {
    color: var(--primary-color);
}

.address-card .form-check-input:checked + .address-label .address-card {
    border-color: var(--primary-color);
    background: rgba(40, 199, 111, 0.05);
}

.address-label {
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.address-type {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.address-details {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.address-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Delivery Options */
.delivery-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-weight: 500;
    background-color: white;
}

.delivery-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

.delivery-instructions textarea {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-weight: 500;
    resize: vertical;
}

.delivery-instructions textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

/* Payment Methods */
.payment-methods {
    margin-top: 1rem;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: rgba(40, 199, 111, 0.05);
}

.payment-option .form-check-input:checked ~ .payment-label {
    color: var(--primary-color);
}

.payment-label {
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
}

.payment-icon {
    color: var(--primary-color);
}

/* Order Items in Checkout */
.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    gap: 1rem;
}

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

.order-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.order-item-desc {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

.order-item-quantity {
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-color);
    min-width: 30px;
    text-align: center;
}

.order-item-price {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--dark-color);
    text-align: right;
    min-width: 60px;
}

/* Place Order Button */
.place-order-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.place-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 199, 111, 0.4);
    color: white;
}

.place-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.order-terms {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    text-align: center;
}

.order-terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.order-terms a:hover {
    text-decoration: underline;
}

/* Responsive Checkout */
@media (max-width: 768px) {
    .checkout-title {
        font-size: 2rem;
    }
    
    .checkout-form, .order-summary {
        padding: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header .d-flex {
        width: 100%;
    }
    
    .address-options .row > div {
        margin-bottom: 1rem;
    }
    
    .order-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .order-item-image {
        width: 50px;
        height: 50px;
    }
    
    .order-item-quantity,
    .order-item-price {
        min-width: auto;
    }
}

/* Order Success Page Styling */
.success-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.success-content {
    max-width: 800px;
    text-align: center;
    width: 100%;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-checkmark {
    color: var(--primary-color);
    background: rgba(40, 199, 111, 0.1);
    border-radius: 50%;
    padding: 1.5rem;
    animation: checkmarkPulse 2s infinite;
}

@keyframes checkmarkPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 199, 111, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 199, 111, 0);
    }
}

.success-message {
    margin-bottom: 3rem;
}

.success-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Order Details Card */
.order-details {
    margin-bottom: 3rem;
}

.order-info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    text-align: left;
    border: 1px solid #f1f3f4;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.order-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}



.order-status {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.status-processing {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.status-description {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.delivery-info {
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 150px;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--dark-color);
    line-height: 1.5;
}

.info-value strong {
    color: var(--dark-color);
}

/* Order Summary in Success Page */
.order-summary-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.order-summary-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.summary-items .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--dark-color);
}

.summary-items .summary-total {
    font-size: 1.1rem;
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Success Actions */
.success-actions {
    margin-bottom: 3rem;
}

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

.action-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.action-buttons .btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.action-buttons .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 199, 111, 0.4);
    color: white;
}

.action-buttons .btn-outline-success {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.action-buttons .btn-outline-success:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Additional Info Cards */
.additional-info {
    margin-top: 3rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid #f1f3f4;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.info-card-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.info-card-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Success Page Responsive */
@media (max-width: 768px) {
    .success-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .success-subtitle {
        font-size: 1rem;
    }
    
    .order-info-card {
        padding: 1.5rem;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Authentication Pages Styling */
.auth-page {
    background: #f8f9fa;
}

.auth-image-side {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.auth-image-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.auth-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.auth-form-container {
    width: 100%;
    max-width: 550px;
    padding: 2rem;
}

.auth-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: rgba(40, 199, 111, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.auth-form-content .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form-content .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

.auth-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(40, 199, 111, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 199, 111, 0.4);
    color: white;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    color: #6c757d;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.social-btn {
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-1px);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(40, 199, 111, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Account Settings Styling */
.account-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 100px;
}

.account-profile .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: none;
}

.account-profile .avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.account-nav-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.account-nav-item.active {
    background: var(--primary-color);
    color: white;
}

.account-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
}

.account-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.account-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.account-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

.password-section {
    border-top: 2px solid #f1f3f4;
    padding-top: 2rem;
    margin-top: 2rem;
}

.profile-picture-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.profile-picture-section .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: none;
}

.profile-picture-section .avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .account-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .account-content {
        padding: 1.5rem;
    }
    
    .account-form .row {
        margin-bottom: 1rem;
    }
    
    .account-form .col-sm-3 {
        margin-bottom: 0.5rem;
    }
}

/* Orders Page Styling */
.orders-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
}

.orders-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.orders-filter .form-select {
    min-width: 200px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.order-card {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.order-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.order-number {
    font-weight: 800;
    color: #212529;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.25rem;
    /* Enhanced visibility with background highlight */
    background: rgba(40, 199, 111, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.order-status-badge {
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    border: 2px solid transparent;
}

/* Improved badge colors */
.order-status-badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.order-status-badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #20c997) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
}

.order-status-badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #212529 !important;
    font-weight: 800;
    border-color: rgba(33, 37, 41, 0.1);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.order-status-badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.order-item-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.order-item-variant,
.order-item-qty {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

.order-item-price {
    font-weight: 700;
    color: var(--dark-color);
    flex-shrink: 0;
}

.order-footer {
    display: flex;
    justify-content: between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.total-label {
    color: #6c757d;
}

.total-amount {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

/* Order Detail Styling */
.order-detail-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.status-badge-large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.order-progress-card,
.order-items-card,
.shipping-info-card,
.order-summary-detail {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid #f1f3f4;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Order Timeline */
.order-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 32px;
    width: 2px;
    height: calc(100% + 8px);
    background: #e9ecef;
}

.timeline-item.completed::after {
    background: var(--primary-color);
}

.timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.timeline-item.completed .timeline-marker {
    background: var(--primary-color);
    color: white;
}

.timeline-content h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.tracking-info {
    margin-top: 0.5rem;
}

/* Order Items Detail */
.order-items-list {
    border: 1px solid #f1f3f4;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.order-item-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
}

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

.order-item-info {
    flex: 1;
}

.order-item-sku {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

.order-item-quantity {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.current-price {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* Shipping Info */
.info-section h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.address-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    line-height: 1.6;
}

.shipping-method {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.tracking-code {
    margin: 0;
}

/* Order Summary Detail */
.payment-info h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.payment-method {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.price-breakdown {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.price-row.total-price {
    font-size: 1.1rem;
    padding-top: 1rem;
}

/* Responsive Orders */
@media (max-width: 768px) {
    .orders-content {
        padding: 1.5rem;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-header,
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .order-progress-card,
    .order-items-card,
    .shipping-info-card,
    .order-summary-detail {
        padding: 1.5rem;
    }
    
    .order-item-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-item-quantity {
        align-self: flex-start;
    }
}

/* Address Management Styling */
.addresses-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
}

.addresses-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.address-card {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

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

.address-type-badge {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.address-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.address-details {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.address-phone {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Contact Page Styling */
.contact-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
}

.contact-info-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link.facebook { background: #1877f2; color: white; }
.social-link.instagram { background: #e4405f; color: white; }
.social-link.twitter { background: #1da1f2; color: white; }
.social-link.whatsapp { background: #25d366; color: white; }

.social-link:hover {
    transform: scale(1.1);
    color: white;
}

.contact-form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.25);
}

.faq-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-light);
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

/* 404 Error Page Styling */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem 0;
}

.error-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 3rem 2rem;
    margin: 0 auto;
}

.error-illustration {
    margin-bottom: 3rem;
    position: relative;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-icon {
    margin: 0 auto;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.error-actions {
    margin-bottom: 3rem;
}

.error-search {
    margin-bottom: 3rem;
}

.search-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.popular-links {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 3rem;
}

.popular-links h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.popular-list {
    list-style: none;
    padding: 0;
}

.popular-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    color: var(--primary-color);
    font-weight: 500;
}

.popular-list a:hover {
    color: var(--secondary-color);
}

.help-section {
    margin-top: 2rem;
}

.help-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.help-icon {
    width: 80px;
    height: 80px;
    background: rgba(40, 199, 111, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

/* Responsive Contact & Error Pages */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-info-section {
        position: static;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .error-number {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-actions .btn {
        margin: 0;
    }
}

/* Authentication Page Modern Styling */
.auth-page-modern {
    min-height: 100vh;
    background: #f8f9fa;
}

.auth-illustration-side {
    background: linear-gradient(135deg, #28c76f 0%, #20bf6b 50%, #1dd1a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-illustration-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0.8;
}

.auth-illustration-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 500px;
    padding: 2rem;
}

.auth-brand h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-brand p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

.illustration-container {
    margin: 2rem 0;
    opacity: 0.9;
}



.auth-form-container-modern {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
}

.auth-form-modern {
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-form-modern .auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-form-modern .auth-subtitle {
    font-size: 1.05rem;
    color: #718096;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.auth-form-modern .form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-form-modern .form-control {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-form-modern .form-control:focus {
    border-color: #28c76f;
    box-shadow: 0 0 0 0.2rem rgba(40, 199, 111, 0.15);
    background: white;
}

.auth-form-modern .form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.auth-form-modern .btn-success {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28c76f, #20bf6b);
    border: none;
    text-transform: none;
    letter-spacing: 0.3px;
}

.auth-form-modern .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(40, 199, 111, 0.4);
    background: linear-gradient(135deg, #20bf6b, #1dd1a1);
}

.auth-form-modern .btn-outline-secondary {
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    background: white;
}

.auth-form-modern .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
    background: #f7fafc;
}

.auth-form-modern .form-check-input {
    margin-top: 0.25rem;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
}

.auth-form-modern .form-check-input:checked {
    background-color: #28c76f;
    border-color: #28c76f;
}

.auth-form-modern .form-check-label {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.auth-form-modern a {
    color: #28c76f;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-form-modern a:hover {
    color: #20bf6b;
    text-decoration: none !important;
}

.auth-form-modern hr {
    margin: 0;
    border-color: #e2e8f0;
}

.auth-form-modern .position-relative span {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Input Group Styling */
.auth-form-modern .input-group .btn {
    border: 2px solid #e2e8f0;
    border-left: none;
    background: #fafafa;
    color: #718096;
    border-radius: 0 12px 12px 0;
}

.auth-form-modern .input-group .btn:hover {
    background: #f1f5f9;
    color: #4a5568;
}

.auth-form-modern .input-group .form-control {
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.auth-form-modern .input-group .form-control:focus + .btn {
    border-color: #28c76f;
}

/* Success State Styling */
.bg-success-subtle {
    background-color: rgba(40, 199, 111, 0.1) !important;
}

/* Responsive Design for Modern Auth */
@media (max-width: 991.98px) {
    .auth-illustration-side {
        min-height: 400px;
    }
    
    .auth-form-modern {
        padding: 2.5rem;
        border-radius: 16px;
    }
    
    .auth-form-modern .auth-title {
        font-size: 1.9rem;
    }
    
    .auth-form-modern .auth-subtitle {
        font-size: 1rem;
    }
    
    .auth-brand h2 {
        font-size: 2.2rem;
    }
    
    .illustration-container svg {
        width: 300px;
        height: 225px;
    }
}

@media (max-width: 767.98px) {
    .auth-form-container-modern {
        padding: 1rem;
    }
    
    .auth-form-modern {
        padding: 2rem;
    }
    
    .auth-illustration-side {
        min-height: 300px;
    }
}

/* Blog Post Author Image Specific Override */
.page-header .blog-post-author-image {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Featured Post Image Enhancements */
.featured-post .card img {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    height: 100% !important; /* Ensure height matches container */
    object-fit: cover;
}

/* Blog Post Image Enhancements for Grid */
.blog-post .card-img-top {
    width: 100%;
    height: 250px; /* Adjusted to match common image aspect ratio in HTML */
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Blog Post Detail Featured Image */
.blog-post-content .featured-image img {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    object-fit: cover;
    border-top-left-radius: var(--border-radius); /* Apply radius to top-left */
    border-top-right-radius: var(--border-radius); /* Apply radius to top-right */
    border-bottom-left-radius: 0; /* No radius on bottom-left */
    border-bottom-right-radius: 0; /* No radius on bottom-right */
}

/* Blog Post Detail Featured Image - Custom Full Width */
.card-img-top-custom {
    width: 100% !important;
    height: 400px; /* Adjust height as needed */
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Related Articles Titles */
.related-article h6 {
    line-height: 1.6; /* Increased line-height for readability */
}
