/* Refurbished Mobile Shop - Main CSS */
/* Mobile-First Responsive Design */

/* CSS Variables for Color Scheme */
:root {
    --primary-color: #065F46;       /* bg-emerald-800 */
    --secondary-color: #34D399;     /* bg-emerald-400 */
    --accent-color: #F43F5E;        /* bg-pink-500 */
    --background-color: #ECFCCB;    /* bg-lime-100 */
    --text-color: #0F172A;          /* text-slate-900 */
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --gray-50: #F9FAFB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --star-color: #fbbf24;
    
    /* Enhanced Color Variables */
    --primary-color-light: rgba(6, 95, 70, 0.1);
    --secondary-color-light: rgba(52, 211, 153, 0.1);
    --success-light: rgba(16, 185, 129, 0.1);
    --warning-light: rgba(245, 158, 11, 0.1);
    --text-success: #059669;
    
    /* Shadow Variables */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Mobile-First Spacing Variables */
    --container-padding: 0.75rem;
    --section-padding: 2rem 0;
    --element-margin: 1rem;
    
    /* Mobile-First Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Touch-Optimized Variables */
    --touch-target-min: 44px;
    --mobile-font-small: 0.875rem;
    --mobile-font-normal: 1rem;
    --mobile-font-large: 1.125rem;
    --mobile-line-height: 1.5;
    
    /* Performance Variables */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Desktop Override Variables */
@media (min-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
        --element-margin: 1.5rem;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.col {
    flex: 1;
    padding: 0.5rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }

/* Spacing utilities */
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }

/* Section spacing */
section {
    padding: var(--section-padding);
}

section + section {
    margin-top: 0;
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
}

header.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.header-top {
    background: var(--gray-100);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.header-main {
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-toggle {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.cart-icon {
    position: relative;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Desktop - Nav Close Button Hide */
.nav-close-btn {
    display: none !important;
}

/* Mobile Menu Close Button - Show only in mobile */
@media (max-width: 768px) {
    .nav-close-btn {
        display: flex !important;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--gray-100);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1000;
        border: none;
        color: var(--gray-600);
        font-size: 1.5rem;
    }

    .nav-close-btn:hover {
        background: var(--gray-200);
        color: var(--gray-800);
    }

    .nav-toggle {
        display: flex !important;
    }
}

/* Desktop - Force hide nav-close-btn */
@media (min-width: 769px) {
    .nav-close-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    .nav-toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Breadcrumb Styles - Made horizontal */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
    margin-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--gray-500);
    margin-right: 0.5rem;
    font-weight: 400;
}

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

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* Mobile-First Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    font-size: var(--mobile-font-normal);
    line-height: var(--mobile-line-height);
    gap: 0.5rem;
    min-height: var(--touch-target-min);
    
    /* Touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -ms-touch-action: manipulation;
    
    /* Improved focus state for accessibility */
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    transition: var(--transition-fast);
}

/* Touch feedback for mobile */
.btn:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* Touch active states */
.touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: all 0.1s ease;
}

.btn.touch-active {
    background: rgba(6, 95, 70, 0.8);
}

.nav-link.touch-active {
    background: rgba(6, 95, 70, 0.1);
}

.mobile-nav-item.touch-active {
    background: rgba(6, 95, 70, 0.1);
    transform: scale(0.95);
}

/* Mobile-specific image optimizations - UPDATED */
@media (max-width: 768px) {
    .product-image img {
        width: 100% !important;
        height: 280px !important; /* Force consistent height on mobile */
        object-fit: contain !important; /* Show full image without cropping */
        object-position: center !important;
        background-color: #f8f9fa !important; /* Light background */
        border-radius: var(--radius-md);
        transition: transform 0.3s ease;
        padding: 8px !important; /* Small padding for mobile */
    }
    
    /* Mobile checkout item images - optimized for small screens */
    .item-image,
    .item-image-enhanced {
        flex: 0 0 100px !important;
        min-width: 100px !important;
    }
    
    .item-image img,
    .item-image-enhanced img {
        width: 100px !important;
        height: 100px !important;
        border-radius: 0.4rem !important; /* Slightly smaller radius for mobile */
    }
    
    .product-image img.loaded {
        opacity: 1;
        transform: scale(1);
    }
    
    .product-image img[data-src] {
        opacity: 0;
        transform: scale(0.9);
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    
    /* Optimize banner images */
    .banner-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Remove conflicting product grid images rules - handled by main styles */
}

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

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

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

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

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: #E11D48;
    color: var(--white);
}

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

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

.btn-sm {
    padding: 0.75rem 1rem;
    font-size: var(--mobile-font-small);
    min-height: var(--touch-target-min);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--mobile-font-large);
    min-height: 52px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.btn-group .btn {
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* Desktop button adjustments */
@media (min-width: 768px) {
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn-group {
        flex-wrap: nowrap;
    }
    
    .btn-group .btn {
        flex: none;
        min-width: 120px;
    }
}

/* Navigation Tabs Styles */
.tabs-container {
    margin: 2rem 0;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 0.5rem 0.5rem 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.nav-tabs .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

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

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: var(--white);
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-tabs .nav-link:hover::before {
    width: 100%;
}

.nav-tabs .nav-link.active::before {
    display: none;
}

/* Tab Content Styles */
.tab-content {
    background: var(--white);
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-top: none;
    min-height: 300px;
}

.tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Tab Content Specific Styles */
.tab-pane h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.tab-pane h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.tab-pane p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tab-pane ul {
    margin-bottom: 1.5rem;
}

.tab-pane ul li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.tab-pane ul li strong {
    color: var(--text-color);
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
}

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

.spec-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-color);
    min-width: 150px;
}

.spec-value {
    flex: 2;
    color: var(--gray-700);
}

/* Reviews Section */
.reviews-list {
    margin-bottom: 2rem;
}

.review-item {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

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

.reviewer-info strong {
    color: var(--text-color);
    font-weight: 600;
}

.review-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.review-rating .stars {
    display: flex;
    gap: 0.25rem;
}

.review-rating .stars i {
    color: var(--gray-300);
    font-size: 1rem;
}

.review-rating .stars i.active {
    color: var(--star-color);
}

.review-text {
    color: var(--gray-700);
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 2rem;
}

/* Add Review Form */
.add-review-form {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--gray-200);
}

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

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    color: var(--gray-300);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
    color: var(--star-color);
}

.rating-input input[type="radio"]:checked ~ label {
    color: var(--star-color);
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input input[type="radio"]:checked ~ label ~ label {
    color: var(--star-color);
}

/* FAQ Section */
.faq-list {
    margin-top: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    color: var(--gray-700);
    line-height: 1.6;
}

.faq-answer.active {
    display: block;
}

.faq-answer p {
    margin: 0;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

/* Product Card Styles */
.product-card {
    position: relative;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix spacing for "You might also like" sections */
.you-might-like .col-3,
.related-products .col-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 2rem;
}

.you-might-like .row,
.related-products .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

/* PERFECT SQUARE IMAGES - NO EMPTY SPACE - v20250804_184911 */
.product-image,
.product-grid .product-image,
.products-grid .product-image {
    width: 100% !important;
    height: 100% !important; /* Full container height */
    object-fit: cover !important; /* Fill entire container */
    object-position: center !important;
    background-color: #f8f9fa !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    transition: transform 0.3s ease;
    display: block !important;
    padding: 0 !important; /* Remove padding to fill completely */
}

.product-image-container,
.product-grid .product-image-container,
.products-grid .product-image-container {
    width: 100% !important;
    height: 0 !important; /* Use padding-bottom for aspect ratio */
    padding-bottom: 100% !important; /* Perfect square (1:1 aspect ratio) */
    position: relative !important;
    overflow: hidden !important;
    background-color: #f8f9fa !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.product-image-container img,
.product-grid .product-image-container img,
.products-grid .product-image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Fill square completely */
    object-position: center !important;
}

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

/* Loading state for images - maintains square shape */
.product-image[src=""], 
.product-image:not([src]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23f8f9fa'/%3E%3Ctext x='50' y='50' text-anchor='middle' dy='.3em' fill='%23adb5bd' font-size='12'%3ELoading...%3C/text%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Image fade-in effect */
.product-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image.loaded,
.product-image[style*="opacity: 1"] {
    opacity: 1;
}

/* GLOBAL CHECKOUT ITEM IMAGE STYLES - Responsive across all devices */

/* Desktop (993px and above) */
.item-image,
.item-image-enhanced {
    flex: 0 0 120px !important;
    min-width: 120px !important;
}

.item-image img,
.item-image-enhanced img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important; /* Show full image without cropping */
    object-position: center !important;
    background-color: #f8f9fa !important; /* Light background */
    border-radius: 0.5rem !important;
    border: 1px solid var(--gray-200) !important;
    transition: transform 0.3s ease;
    padding: 5px !important; /* Small padding for better appearance */
}

.item-image img:hover,
.item-image-enhanced img:hover {
    transform: scale(1.02);
}

/* Tablet (769px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .item-image,
    .item-image-enhanced {
        flex: 0 0 110px !important;
        min-width: 110px !important;
    }
    
    .item-image img,
    .item-image-enhanced img {
        width: 110px !important;
        height: 110px !important;
    }
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
}

.product-badge.discount {
    background: var(--accent-color);
    font-weight: 700;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(244, 63, 94, 0.3);
}





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

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

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-original-price {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-specs {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Banner Styles */
.banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

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

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Hero Banner Styles */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 0;
}

.banner-slide {
    display: none;
    padding: 2rem 0;
}

.banner-slide.active {
    display: block;
}

.banner-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.banner-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Mobile-First Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: var(--mobile-font-normal);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 16px; /* Prevent zoom on iOS */
    line-height: var(--mobile-line-height);
    transition: var(--transition-normal);
    min-height: var(--touch-target-min);
    
    /* Mobile optimizations */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Better touch handling */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    
    /* Smooth scrolling for long forms */
    scroll-behavior: smooth;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

.form-control:invalid {
    border-color: var(--error);
}

.form-control.invalid {
    border-color: var(--error);
    background-color: #fef2f2;
    animation: shake 0.5s;
}

.form-control.valid {
    border-color: var(--success);
    background-color: #f0fdf4;
}

.field-error {
    color: var(--error);
    font-size: var(--mobile-font-small);
    margin-top: 0.25rem;
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control-sm {
    padding: 0.75rem 0.875rem;
    font-size: var(--mobile-font-small);
    min-height: var(--touch-target-min);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 8px 10px;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .form-control-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-height: 36px;
    }
}

/* Input Group Styles */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    margin-left: -1px;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    color: var(--white);
}

.badge-primary { background: var(--primary-color); }
.badge-secondary { background: var(--secondary-color); }
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-danger { background: var(--error); }
.badge-info { background: #3B82F6; }

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Footer Styles */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    clear: both;
    width: 100%;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.75rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }

.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--secondary-color); }
.bg-accent { background: var(--accent-color); }
.bg-light { background: var(--gray-100); }
.bg-white { background: var(--white); }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }

.rounded { border-radius: 0.5rem; }
.rounded-full { border-radius: 50%; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Section Specific Styles */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Brand Cards */
.brand-card {
    display: block;
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ Styles */
.faq-accordion {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

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

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-answer p {
    margin: 0;
    color: var(--gray-600);
}

/* AdSense Placeholder */
.adsense-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.adsense-section {
    padding: 1.5rem 0;
}

/* Sidebar Styles */
.sidebar-ad {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    margin-bottom: 2rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 0.5rem;
}

.sidebar-widget ul li a {
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .row {
        margin: -0.5rem;
    }
    
    .col {
        padding: 0.5rem;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .banner h1, .banner-text h1 {
        font-size: 2rem;
    }
    
    .banner p, .banner-subtitle {
        font-size: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Small Mobile Nav Tabs */
    .nav-tabs .nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .tab-pane {
        padding: 1rem;
    }
    
    .tab-pane h3 {
        font-size: 1.125rem;
    }
    
    .tab-pane h4 {
        font-size: 1rem;
    }
    
    /* Small Mobile Specifications */
    .spec-row {
        padding: 0.75rem 0;
    }
    
    /* Small Mobile Reviews */
    .review-item {
        padding: 1rem;
    }
    
    .add-review-form {
        padding: 1rem;
    }
    
    .rating-input label {
        font-size: 1.125rem;
    }
    
    /* Small Mobile FAQ */
    .faq-question {
        padding: 0.875rem;
    }
    
    .faq-answer {
        padding: 0.875rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        border-right: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        left: 0;
        transform: translateX(0);
    }
    
    .nav-menu li {
        padding: 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-color);
        font-weight: 500;
        transition: all 0.3s ease;
        text-decoration: none;
        border-radius: 0;
    }
    
        .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .logo {
        font-size: 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
    
    .row {
        margin: -0.5rem;
    }
    
    .col {
        padding: 0.5rem;
    }
    
    .col-3, .col-4, .col-6, .col-8, .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .header-info span.ml-3 {
        display: none;
    }
    
    .breadcrumb {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.875rem;
    }
    
    .breadcrumb-item {
        display: inline-flex;
        align-items: center;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        display: inline;
        margin: 0 0.25rem;
        font-size: 0.75rem;
    }
    
    .hero-banner {
        padding: 2rem 0;
    }
    
    .banner-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .payment-methods {
        text-align: center;
    }
    
    /* Ensure footer is always visible on mobile */
    footer {
        display: block !important;
        visibility: visible !important;
        position: relative;
        clear: both;
        width: 100%;
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.875rem;
    }
    
    .social-links {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .whatsapp-contact {
        margin-top: 1rem;
    }
    
    .whatsapp-contact .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* CRITICAL MOBILE LAYOUT FIXES - Override all conflicting styles */
    .login-guest-section *,
    .address-section * {
        box-sizing: border-box !important;
    }
    
    /* Login/Guest page complete mobile override */
    .login-guest-section .checkout-options-row {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .login-guest-section .checkout-options-row .col-6 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        float: none !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 !important;
    }
    
    .login-guest-section .checkout-option {
        display: block !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 1.5rem !important;
    }
    
    /* Address page complete mobile override */
    .address-section .address-page-row {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .address-section .address-page-row .col-8,
    .address-section .address-page-row .col-4 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        float: none !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 !important;
    }
    
    .address-section .address-form-container,
    .address-section .order-summary {
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
    }
    
    /* Mobile responsive fixes for login and address pages */
    .login-guest-section {
        padding: 2rem 0;
    }
    
    /* Login/Guest page mobile fixes */
    .checkout-options-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin: 0 !important;
    }
    
    .checkout-options-row .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .checkout-option {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }
    
    .option-header h2 {
        font-size: 1.25rem;
    }
    
    .option-header p {
        font-size: 0.95rem;
    }
    
    .option-features li {
        font-size: 0.9rem;
    }
    
    .security-info {
        padding: 2rem 1rem;
    }
    
    .security-info .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .security-info .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Address page mobile fixes */
    .address-section {
        padding: 2rem 0;
    }
    
    .address-page-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin: 0 !important;
    }
    
    .address-page-row .col-8,
    .address-page-row .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .address-form-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.125rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .order-summary {
        position: static;
        margin-top: 0;
        width: 100%;
    }
    
    /* General mobile column fixes */
    .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .col-8,
    .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Force specific problematic rows to stack vertically on mobile only */
    .checkout-options-row,
    .address-page-row {
        flex-direction: column !important;
        margin: 0 !important;
        gap: 1rem !important;
    }
    
    .checkout-options-row > *,
    .address-page-row > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Specific overrides for checkout sections */
    .login-guest-section .checkout-options-row,
    .address-section .address-page-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Security info section fix */
    .security-features .row {
        flex-direction: column !important;
    }
    
    .security-features .col-4 {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Mobile Nav Tabs */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs .nav-item {
        flex: 0 0 auto;
        min-width: 100px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .tab-pane {
        padding: 1.5rem;
    }
    
    .tab-pane h3 {
        font-size: 1.25rem;
    }
    
    .tab-pane h4 {
        font-size: 1.125rem;
    }
    
    /* Mobile Specifications Table */
    .spec-row {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .spec-label {
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: var(--text-color);
        min-width: auto;
    }
    
    .spec-value {
        color: var(--gray-700);
    }
    
    /* Mobile Reviews */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reviewer-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .review-date {
        margin-left: 0;
    }
    
    /* Mobile Add Review Form */
    .add-review-form {
        padding: 1.5rem;
    }
    
    .rating-input {
        justify-content: center;
    }
    
    .rating-input label {
        font-size: 1.25rem;
    }
    
    /* Mobile FAQ */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .row {
        margin: -0.5rem;
    }
    
    .col {
        padding: 0.5rem;
    }
    
    .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-3 {
        flex: 0 0 50%; /* Mobile: 2 products per row */
        max-width: 50%;
    }
    
    .col-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 769px) {
    /* Desktop - Force hide mobile menu toggle */
    .nav-toggle {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .col-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Lazy loading styles removed for better performance */

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .mobile-bottom-nav {
        display: none !important;
    }
} 

/* Product Grid Spacing */
.featured-products .row,
.best-selling .row,
.latest-products .row {
    margin: -0.75rem;
}

.featured-products .col-3,
.best-selling .col-3,
.latest-products .col-3 {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Products Page Grid Spacing */
.products-grid .row {
    margin: -0.75rem;
}

.products-grid .col-4 {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Product Description Spacing Override - All Pages */
.product-description,
.featured-products .product-description,
.best-selling .product-description,
.latest-products .product-description,
.related-products .product-description,
.products-grid .product-description {
    margin-bottom: 0.5rem !important;
}

/* Desktop Only Class - Hide on Mobile and Tablet */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Desktop Only - Force hide mobile navigation toggle on all desktop sizes */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

/* MOBILE LAYOUT UPDATE - FORCE 2 PRODUCTS PER ROW - v20250804_183758 */
/* Mobile Product Grid Adjustments - 2 Products Per Row */
@media (max-width: 768px) {
    .featured-products .row,
    .best-selling .row,
    .latest-products .row,
    .products-grid .row {
        margin: -0.5rem;
    }
    
    .featured-products .col-3,
    .best-selling .col-3,
    .latest-products .col-3,
    .products-grid .col-4,
    .products-grid .col-3 {
        padding: 0.5rem;
        margin-bottom: 1rem;
        flex: 0 0 50% !important; /* Force 2 products per row on mobile */
        max-width: 50% !important;
    }
    
    /* Mobile Perfect Square Images - No Empty Space */
    .product-image-container,
    .product-grid .product-image-container,
    .products-grid .product-image-container {
        width: 100% !important;
        height: 0 !important; /* Use padding-bottom for perfect squares */
        padding-bottom: 100% !important; /* Perfect square on mobile too */
        position: relative !important;
        overflow: hidden !important;
    }
    
    .product-image,
    .product-grid .product-image,
    .products-grid .product-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Fill entire square */
        object-position: center !important;
        padding: 0 !important; /* No padding for full coverage */
    }
    
    /* Mobile Product Card Spacing */
    .product-card {
        margin-bottom: 0.5rem;
    }
    
    .product-card .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .product-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-price {
        font-size: 1rem !important;
    }
    
    /* Mobile Touch-Friendly Buttons */
    .btn-primary,
    .btn-add-to-cart {
        min-height: 44px !important; /* Touch-friendly minimum height */
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Mobile Product Cards - Better Touch Area */
    .product-card {
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile Rating Stars */
    .product-rating {
        font-size: 0.8rem !important;
    }
    
    /* Mobile Brand Info */
    .product-brand {
        font-size: 0.8rem !important;
        color: #666 !important;
    }
}

/* CACHE REFRESH 2024 - FORCE RELATED PRODUCTS UPDATE */
.related-products .card-footer,
.you-might-like .card-footer {
    padding: 0.5rem 1rem 0.25rem 1rem !important;
    margin: 0 !important;
} 

/* SEO Content Section Styles */
.seo-content-section {
    background: var(--background-color);
    padding: 3rem 0;
    margin-top: 2rem;
}

.seo-content h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.seo-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.seo-content p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.seo-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.seo-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.seo-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.category-links {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.category-links ul {
    list-style: none;
    padding: 0;
}

.category-links li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.category-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.internal-links-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.internal-links-sidebar h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.link-widget {
    margin-bottom: 2rem;
}

.link-widget:last-child {
    margin-bottom: 0;
}

.link-widget h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.link-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-widget li {
    margin-bottom: 0.5rem;
}

.link-widget a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.link-widget a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.link-widget a::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobile Responsive for SEO Content */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 2rem 0;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-content h3 {
        font-size: 1.125rem;
    }
    
    .internal-links-sidebar {
        padding: 1.5rem;
        margin-top: 2rem;
        position: relative;
        top: 0;
    }
    
    .internal-links-sidebar h3 {
        font-size: 1.25rem;
    }
    
    .link-widget {
        margin-bottom: 1.5rem;
    }
    
    .link-widget h4 {
        font-size: 1rem;
    }
    
    .category-links {
        padding: 1rem;
    }
}

/* Enhanced Order Success & Details Styles */

/* Enhanced Order Success Styles */
.order-success {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.success-animation {
    position: relative;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 6rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: successPulse 2s infinite;
}

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

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confettiFall 3s ease-in-out infinite;
}

.confetti:nth-child(1) { left: 10%; background: #ff6b6b; animation-delay: 0s; }
.confetti:nth-child(2) { left: 30%; background: #4ecdc4; animation-delay: 0.5s; }
.confetti:nth-child(3) { left: 50%; background: #45b7d1; animation-delay: 1s; }
.confetti:nth-child(4) { left: 70%; background: #f9ca24; animation-delay: 1.5s; }
.confetti:nth-child(5) { left: 90%; background: #6c5ce7; animation-delay: 2s; }

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
}

.success-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    animation: slideInUp 0.8s ease-out;
}

.success-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

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

.order-confirmation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.order-confirmation h3 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-content .label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.detail-content .value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.detail-content .order-id {
    font-family: 'Courier New', monospace;
    color: #f1c40f;
}

.detail-content .amount {
    color: #2ecc71;
    font-size: 1.25rem;
}

.modern-card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modern-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.modern-card .card-header h3,
.modern-card .card-header h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-count, .address-type, .progress-percentage, .items-badge, .delivery-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.enhanced-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.enhanced-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.item-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.1), rgba(6, 95, 70, 0.2));
    color: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.item-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    background-color: #f8f9fa; /* Light background */
    transition: transform 0.3s ease;
    padding: 3px; /* Small padding */
}

.item-image:hover img {
    transform: scale(1.1);
}

/* Product Preview in My Orders */
.order-products-preview {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.product-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.product-preview-item .product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.product-preview-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    background-color: #f8f9fa; /* Light background */
    padding: 2px; /* Small padding for small preview */
}

.product-preview-item .product-info {
    flex: 1;
}

.product-preview-item .product-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.product-preview-item .product-qty {
    display: block;
    font-size: 0.8rem;
    color: #64748B;
}

.more-items {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.more-items span {
    font-size: 0.85rem;
    color: #065F46;
    font-weight: 500;
}

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

.enhanced-item .item-details h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.enhanced-item .item-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    flex-wrap: wrap;
}

.enhanced-item .item-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-item .item-total {
    text-align: right;
}

.enhanced-item .total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.enhanced-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.enhanced-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.enhanced-summary .summary-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1.5rem 0;
}

.enhanced-summary .total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0;
}

/* Enhanced Order Details Styles */
.order-details {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.enhanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.6s ease-out;
    margin-bottom: 2rem;
}

.enhanced-header .order-header-info h1 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-header .order-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.enhanced-header .order-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 1rem;
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.enhanced-header .order-meta i {
    color: var(--primary-color);
}

.enhanced-badge {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
}

.enhanced-tracking {
    position: relative;
    padding: 2rem;
}

.tracking-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s ease-in-out;
    border-radius: 2px;
}

.tracking-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.tracking-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
    position: relative;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gray-300);
    border-radius: 2px;
}

.tracking-step.completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: var(--success);
}

.tracking-step.completed::before {
    background: linear-gradient(135deg, var(--success), #20c997);
}

.tracking-step.current {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.tracking-step.current::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tracking-step.completed .step-icon {
    background: linear-gradient(135deg, var(--success), #20c997);
    color: var(--white);
}

.tracking-step.current .step-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    animation: pulse 2s infinite;
}

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

.step-number {
    width: 30px;
    height: 30px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.tracking-step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.tracking-step.current .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.tracking-step .step-content {
    flex: 1;
}

.tracking-step .step-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tracking-step .step-content p {
    margin: 0 0 1rem 0;
    opacity: 0.8;
    line-height: 1.5;
}

.current-status,
.completed-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.current-status {
    background: var(--primary-color);
    color: var(--white);
}

.completed-status {
    background: var(--success);
    color: var(--white);
}

/* Enhanced Steps */
.enhanced-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enhanced-steps .step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.enhanced-steps .step-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.enhanced-steps .step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.enhanced-steps .step-content {
    flex: 1;
}

.enhanced-steps .step-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.125rem;
}

.enhanced-steps .step-content p {
    margin: 0 0 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.step-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.step-status.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    color: var(--success);
}

.step-status.upcoming {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
    color: var(--warning);
}

/* Enhanced Buttons */
.enhanced-buttons .btn,
.enhanced-actions .btn {
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.enhanced-buttons .btn:hover,
.enhanced-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Enhanced Support Section */
.customer-support {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.support-option .support-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.support-option .support-value {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.support-option .support-note {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Enhanced Address and Help */
.enhanced-address {
    padding: 1.5rem;
}

.enhanced-address .address-header {
    margin-bottom: 1rem;
}

.enhanced-address .address-header h5 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-address .address-content {
    padding-left: 1.5rem;
}

.enhanced-address .address-text {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.enhanced-address .contact-info p {
    margin: 0 0 0.5rem 0;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-help {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enhanced-help .help-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.enhanced-help .help-option:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.enhanced-help .help-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.1), rgba(6, 95, 70, 0.2));
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enhanced-help .help-content h6 {
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
    font-size: 1rem;
}

.enhanced-help .help-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Enhanced Order Items List */
.enhanced-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.enhanced-order-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.enhanced-order-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

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

.enhanced-order-item .item-info h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.enhanced-order-item .item-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.enhanced-order-item .item-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-order-item .item-total {
    text-align: right;
}

.enhanced-order-item .total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Enhanced Order Summary */
.enhanced-order-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.enhanced-order-summary h4 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.enhanced-order-summary .summary-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-order-summary .total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0;
}

/* Enhanced Delivery */
.enhanced-delivery {
    padding: 1.5rem;
}

.delivery-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-item .timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.1), rgba(6, 95, 70, 0.2));
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-item .timeline-content {
    flex: 1;
}

.timeline-item .timeline-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.125rem;
}

.timeline-item .timeline-content p {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-item .delivery-date {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-item .delivery-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

/* Enhanced Address Info */
.enhanced-address-info {
    padding: 1.5rem;
}

.enhanced-address-info .address-header {
    margin-bottom: 1.5rem;
}

.enhanced-address-info .address-header h5 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-address-info .address-content {
    padding-left: 2rem;
}

.enhanced-address-info .address-text {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.enhanced-address-info .contact-info p {
    margin: 0 0 0.5rem 0;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .order-success {
        padding: 2rem 0;
    }
    
    .order-details {
        padding: 1rem 0;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-subtitle {
        font-size: 1rem;
    }
    
    .success-message {
        padding: 2rem 1rem;
        border-radius: 1rem;
    }
    
    .confirmation-details {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .enhanced-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
        border-radius: 1rem;
    }
    
    .enhanced-header .order-header-info h1 {
        font-size: 1.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .enhanced-header .order-meta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .enhanced-header .order-meta span {
        justify-content: center;
        width: 100%;
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .enhanced-badge {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .enhanced-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .enhanced-item .item-meta {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .enhanced-item .item-details h5 {
        font-size: 1rem;
        text-align: center;
    }
    
    .enhanced-item .total-price {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .enhanced-summary .summary-row,
    .enhanced-order-summary .summary-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .enhanced-steps .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .enhanced-steps .step-number {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    .support-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .support-option {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .support-option .support-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .timeline-item .timeline-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .enhanced-help .help-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .enhanced-help .help-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    /* Mobile Specific Order Tracking */
    .tracking-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .tracking-step::before {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
    }
    
    .step-indicator {
        margin: 0 auto;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }
    
    .tracking-step .step-content h5 {
        font-size: 1rem;
        text-align: center;
    }
    
    .tracking-step .step-content p {
        font-size: 0.875rem;
        text-align: center;
    }
    
    .current-status,
    .completed-status {
        margin: 0 auto;
        font-size: 0.75rem;
    }
    
    .enhanced-order-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .enhanced-order-item .item-info h5 {
        font-size: 1rem;
        text-align: center;
    }
    
    .enhanced-order-item .item-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .enhanced-order-item .total-price {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .modern-card .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .modern-card .card-header h3,
    .modern-card .card-header h4 {
        font-size: 1rem;
        justify-content: center;
    }
    
    .items-count, .address-type, .progress-percentage, .items-badge, .delivery-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Mobile Card Improvements */
    .modern-card {
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
    }
    
    .enhanced-tracking {
        padding: 1rem;
    }
    
    .tracking-steps {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .tracking-progress {
        height: 3px;
    }
    
    /* Mobile Buttons */
    .enhanced-buttons .btn,
    .enhanced-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        border-radius: var(--radius-md);
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .enhanced-order-summary h4 {
        font-size: 1rem;
    }
    
    .enhanced-address .address-header h5,
    .enhanced-address-info .address-header h5 {
        font-size: 1rem;
    }
    
    /* Mobile Spacing */
    .customer-support {
        padding: 2rem 0;
    }
    
    .enhanced-delivery {
        padding: 1rem;
    }
    
    .enhanced-address,
    .enhanced-address-info {
        padding: 1rem;
    }
    
    .enhanced-help {
        gap: 1rem;
    }
    
    .enhanced-items {
        gap: 1rem;
    }
    
    .enhanced-order-summary {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .delivery-timeline {
        gap: 1rem;
    }
    
    /* Mobile Order Confirmation */
    .order-confirmation {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .order-confirmation h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Mobile Success Icon */
    .success-icon {
        font-size: 4rem;
    }
    
    /* Mobile Address Content */
    .enhanced-address .address-content,
    .enhanced-address-info .address-content {
        padding-left: 0;
    }
    
    /* Mobile Item Icons */
    .item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .order-products-preview {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .product-preview-item {
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .product-preview-item .product-image {
        width: 40px;
        height: 40px;
    }
    
    .product-preview-item .product-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .product-preview-item .product-qty {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .success-title {
        font-size: 1.75rem;
    }
    
    .success-message {
        padding: 1.5rem 0.75rem;
        margin-bottom: 2rem;
    }
    
    .enhanced-header {
        padding: 1.5rem 0.75rem;
    }
    
    .enhanced-header .order-header-info h1 {
        font-size: 1.25rem;
    }
    
    .modern-card .card-header {
        padding: 1rem 0.75rem;
    }
    
    .enhanced-item {
        padding: 1rem;
    }
    
    .tracking-step {
        padding: 1rem 0.75rem;
    }
    
    .enhanced-order-summary {
        padding: 1rem;
    }
    
    .support-option {
        padding: 1rem;
    }
    
    .support-option .support-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .timeline-item {
        padding: 0.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* Print Styles for Orders */
@media print {
    .enhanced-header,
    .modern-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .enhanced-actions,
    .enhanced-buttons,
    .adsense-section {
        display: none;
    }
    
    .tracking-step {
        background: #f9f9f9 !important;
        color: #333 !important;
    }
}

/* Additional Status Badge Styles */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
    color: var(--warning);
}

.status-badge.confirmed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    color: #3B82F6;
}

.status-badge.processing {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(139, 69, 19, 0.2));
    color: #8B4513;
}

.status-badge.shipped {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.2));
    color: #6366F1;
}

.status-badge.delivered {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    color: var(--success);
}

.status-badge.cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    color: var(--error);
}

/* Unified Order Pages Styling - Simple & Consistent */

/* Common Order Page Elements */
.page-header {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.page-header p {
    color: var(--gray-600);
    margin: 0;
    font-size: 1.125rem;
}

/* Modern Card Design for All Order Pages */
.order-card,
.modern-card,
.modern-order-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.order-card:hover,
.modern-card:hover,
.modern-order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Card Headers */
.card-header,
.order-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3,
.card-header h4,
.order-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
}

/* Status Badges - Simplified */
.status-badge,
.order-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.confirmed {
    background: #cce7ff;
    color: #0056b3;
    border: 1px solid #74b9ff;
}

.status-badge.processing {
    background: #ffe8cc;
    color: #cc5500;
    border: 1px solid #fdcb6e;
}

.status-badge.shipped {
    background: #e8ccff;
    color: #5500cc;
    border: 1px solid #a29bfe;
}

.status-badge.delivered {
    background: #ccffe8;
    color: #00cc55;
    border: 1px solid #00b894;
}

.status-badge.cancelled {
    background: #ffcccc;
    color: #cc0000;
    border: 1px solid #ff7675;
}

/* Order Details Specific */
.order-details .enhanced-header {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.order-details .enhanced-header h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Order Success Specific */
.order-success {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
}

.success-message {
    text-align: center;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Progress Bars and Tracking */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.8s ease;
}

.tracking-step {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tracking-step:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tracking-step.completed {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    border-color: var(--success);
}

.tracking-step.current {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-color: var(--primary-color);
    border-width: 2px;
}

/* Action Buttons */
.order-actions,
.action-buttons {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    justify-content: center;
    flex-wrap: wrap;
}

.order-actions .btn,
.action-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-actions .btn:hover,
.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Summary Items */
.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.summary-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.summary-details .label {
    display: block;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.summary-details .value {
    display: block;
    color: var(--text-color);
    font-weight: 600;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 1rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.empty-state h3 {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Support Sections */
.customer-support,
.quick-actions {
    background: var(--gray-50);
    padding: 3rem 0;
}

.support-option,
.quick-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.support-option:hover,
.quick-action-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    color: var(--primary-color);
}

.support-icon,
.quick-action-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Responsive Design for All Order Pages */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .card-header,
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .order-actions,
    .action-buttons {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .order-actions .btn,
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .support-option,
    .quick-action-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .success-message {
        padding: 2rem 1rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .tracking-step {
        padding: 1.25rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
    }
    
    .card-header,
    .order-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .order-actions,
    .action-buttons {
        padding: 1rem;
    }
    
    .success-message {
        padding: 1.5rem 0.75rem;
    }
    
    .support-option,
    .quick-action-item {
        padding: 1rem;
    }
    
    .tracking-step {
        padding: 1rem;
    }
}

/* Remove Complex Animations for Simplicity */
.confetti-container,
.confetti {
    display: none;
}

/* Simplified Success Animation */
.success-icon {
    animation: simple-bounce 2s infinite;
}

@keyframes simple-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Additional mobile responsive fixes */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 0.9rem;
        gap: 0.3rem;
    }
    
    .logo i {
        font-size: 1rem;
    }
    
    .checkout-option {
        padding: 1rem;
    }
    
    .option-header h2 {
        font-size: 1.125rem;
    }
    
    .option-header p {
        font-size: 0.9rem;
    }
    
    .address-form-container {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.375rem;
    }
    
    .form-section h3 {
        font-size: 1rem;
    }
    
    .form-actions {
        padding-top: 1rem;
    }
    
    .form-actions .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .order-summary h3 {
        font-size: 1.125rem;
    }
    
    .item-details h4 {
        font-size: 0.9rem;
    }
    
    .item-qty,
    .item-price {
        font-size: 0.8rem;
    }
    
    .delivery-info h4 {
        font-size: 1rem;
    }
    
    .feature {
        font-size: 0.8rem;
    }
    
    /* Footer additional fixes for very small screens */
    footer {
        padding: 1.5rem 0 1rem;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1rem;
    }
    
    .whatsapp-contact .btn {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Force footer visibility on all devices */
body {
    position: relative;
    min-height: 100vh;
}

main {
    min-height: calc(100vh - 200px);
}

footer {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    clear: both !important;
    width: 100% !important;
    margin-top: auto !important;
}

/* Ensure footer-contact info displays properly */
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 16px;
    flex-shrink: 0;
}

/* Mobile footer improvements */
@media (max-width: 768px) {
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    .footer-contact i {
        width: 14px;
    }
}

/* Ensure all order pages have proper spacing */
.order-details,
.order-success,
.my-orders {
    padding-bottom: 2rem;
}

.order-details .container,
.order-success .container,
.my-orders .container {
    padding-bottom: 2rem;
}

/* Mobile Viewport Optimizations */
@media (max-width: 768px) {
    /* Optimized scrolling for mobile */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Reduce animations on mobile for performance */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Optimized touch targets */
    a, button, input, select, textarea {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }
    
    /* Prevent text selection on interactive elements */
    .btn, .nav-link, .mobile-nav-item {
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }
    
    /* Improved focus indicators for mobile */
    .form-control:focus,
    .btn:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Smooth animations for mobile */
    .product-card,
    .card,
    .btn {
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Mobile-specific layout optimizations */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--container-padding);
    }
    
    .row {
        margin-left: calc(-1 * var(--container-padding) / 2);
        margin-right: calc(-1 * var(--container-padding) / 2);
    }
    
    .col {
        padding-left: calc(var(--container-padding) / 2);
        padding-right: calc(var(--container-padding) / 2);
    }
    
    /* Mobile typography optimizations */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    p {
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    /* Mobile-specific product grid */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    /* Mobile navigation improvements */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Mobile modal optimizations */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile table responsiveness */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Mobile-specific loading states */
    .loading {
        font-size: 0.875rem;
        padding: 1rem;
    }
    
    /* Mobile print styles */
    @media print {
        .mobile-only {
            display: block !important;
        }
        
        .desktop-only {
            display: none !important;
        }
    }
}

/* Mobile-specific performance optimizations */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-bottom-nav {
        height: 50px;
    }
    
    .mobile-nav-item {
        padding: 0.5rem;
    }
    
    .mobile-nav-item i {
        font-size: 1rem;
    }
    
    body {
        padding-bottom: 50px;
    }
    
    /* Adjust header height for landscape */
    header {
        padding: 0.5rem 0;
    }
    
    .hero-banner {
        padding: 1rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-link:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .brand-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .banner-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile-specific accessibility improvements */
@media (max-width: 768px) {
    /* Larger focus indicators */
    :focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Better contrast for small screens */
    .text-muted {
        color: var(--gray-600);
    }
    
    /* Improved button states */
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Better link visibility */
    a {
        text-decoration: underline;
    }
    
    .nav-link {
        text-decoration: none;
    }
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-mb-1 {
        margin-bottom: 0.25rem;
    }
    
    .mobile-mb-2 {
        margin-bottom: 0.5rem;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem;
    }
    
    .mobile-mt-1 {
        margin-top: 0.25rem;
    }
    
    .mobile-mt-2 {
        margin-top: 0.5rem;
    }
    
    .mobile-mt-3 {
        margin-top: 1rem;
    }
    
    .mobile-p-1 {
        padding: 0.25rem;
    }
    
    .mobile-p-2 {
        padding: 0.5rem;
    }
    
    .mobile-p-3 {
        padding: 1rem;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-visible {
        display: block !important;
    }
}

/* Mobile-specific component optimizations */
@media (max-width: 768px) {
    /* Card optimizations */
    .card {
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Form optimizations */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row {
        display: block;
    }
    
    .form-row .form-group {
        margin-bottom: 1rem;
    }
    
    /* Alert optimizations */
    .alert {
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Badge optimizations */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Breadcrumb optimizations */
    .breadcrumb {
        padding: 0.5rem 0;
        background: transparent;
    }
    
    .breadcrumb-item {
        font-size: 0.875rem;
    }
    
    /* Pagination optimizations */
    .pagination {
        justify-content: center;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Mobile-specific animation optimizations */
@media (max-width: 768px) {
    /* Optimize loading animations */
    .loading {
        animation-duration: 1s;
    }
    
    /* Smooth page transitions */
    .page-transition {
        transition: opacity 0.3s ease;
    }
    
    /* Optimized hover effects */
    .btn:active {
        transition: all 0.1s ease;
    }
    
    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }
}

/* Mobile-specific layout utilities */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-stack > * {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .mobile-stack > *:last-child {
        margin-bottom: 0 !important;
    }
    
    .mobile-center {
        text-align: center !important;
        justify-content: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile spacing for "You might also like" sections - 2 Products Per Row */
    .you-might-like .col-3,
    .related-products .col-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1.5rem;
        flex: 0 0 50% !important; /* Force 2 products per row */
        max-width: 50% !important;
    }
    
    .you-might-like .row,
    .related-products .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    /* Related Products Mobile Perfect Square Images */
    .you-might-like .product-image-container,
    .related-products .product-image-container {
        width: 100% !important;
        height: 0 !important; /* Use padding-bottom for perfect squares */
        padding-bottom: 100% !important; /* Perfect square */
        position: relative !important;
        overflow: hidden !important;
    }
    
    .you-might-like .product-image,
    .related-products .product-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Fill entire square */
        object-position: center !important;
        padding: 0 !important; /* No padding for full coverage */
    }
}

/* Very small screens - mobile phone specific spacing */
@media (max-width: 480px) {
    .you-might-like .col-3,
    .related-products .col-3 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-bottom: 1rem;
    }
    
    .you-might-like .row,
    .related-products .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    /* Make product cards in "You might also like" section responsive */
    .you-might-like .col-3,
    .related-products .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ========================================
   MY ORDERS & ORDER DETAILS PAGES - SIMPLE DESIGN
   ======================================== */

/* My Orders Page */
.my-orders-section {
    padding: 1.5rem 0;
    background: var(--white);
    min-height: 60vh;
}

.page-header-compact {
    text-align: center;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.page-header-compact h1 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-header-compact p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

.orders-wrapper {
    background: var(--white);
    padding: 1rem;
}

/* Status Filter */
.status-filter-compact {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
}

.filter-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Orders List - Shopping Website Style */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.order-basic-info h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.order-basic-info .order-date {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Order Content */
.order-content {
    padding: 1rem;
}

/* Product Preview */
.product-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-item img {
    width: 50px;
    height: 50px;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    background-color: #f8f9fa; /* Light background */
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    padding: 2px; /* Small padding for small items */
}

.product-info {
    flex: 1;
}

.product-info .product-name {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-info .product-qty {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.more-items {
    text-align: center;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 4px;
    color: var(--gray-600);
    font-size: 0.8rem;
}

/* Order Summary Grid */
.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 500;
}

.summary-value {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    justify-content: flex-start;
}

.order-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--gray-600);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.page-info {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Middle Ad Section */
.middle-ad-section {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

/* Order Details Page - Professional & Responsive Layout */
.order-details-section {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 60vh;
    width: 100%;
    overflow-x: hidden;
}

.order-details-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

/* Responsive Grid */
.order-details-row {
    gap: 2rem;
    margin: 0 -1rem;
}

.order-details-main,
.order-details-sidebar {
    padding: 0 1rem;
}

/* Full width on mobile */
@media (max-width: 991px) {
    .order-details-row {
        gap: 1.5rem;
        margin: 0;
    }
    
    .order-details-main,
    .order-details-sidebar {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
}

.order-header-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
}

.order-header-card .order-info h1 {
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-header-card .order-info h1 i {
    color: var(--primary-color);
}

.order-header-card .order-date,
.order-header-card .order-total {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-header-card .order-total {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Enhanced Cards */
.order-details-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 100%;
}

.order-details-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #047857 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.order-details-card .card-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-details-card .card-body {
    padding: 1.5rem;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 100%;
}

.sidebar-card .card-header {
    background: var(--gray-100);
    color: var(--text-color);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-card .card-header h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card .card-body {
    padding: 1.25rem;
}

/* Cards */
.card-compact {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-compact.mb-4 {
    margin-bottom: 1.5rem;
}

.card-compact .card-header {
    background: var(--gray-100);
    color: var(--text-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.card-compact .card-header h3,
.card-compact .card-header h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-label,
.items-count {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-compact .card-body {
    padding: 1rem;
}

/* Enhanced Status Tracker */
.status-tracker-enhanced {
    position: relative;
    padding: 1rem 0;
}

.progress-bar-container {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.8s ease-in-out;
}

.status-steps-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

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

.step-icon-enhanced {
    width: 48px;
    height: 48px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-step-enhanced.completed .step-icon-enhanced {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.status-step-enhanced.current .step-icon-enhanced {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    animation: pulse 2s infinite;
}

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

.step-content-enhanced h5 {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content-enhanced p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.3;
}

.status-step-enhanced.completed .step-content-enhanced h5 {
    color: var(--success);
}

.status-step-enhanced.current .step-content-enhanced h5 {
    color: var(--primary-color);
}

.status-step-enhanced.completed .step-content-enhanced p,
.status-step-enhanced.current .step-content-enhanced p {
    color: var(--gray-600);
}

/* Enhanced Order Items */
.order-items-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-item-enhanced {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.3s ease;
}

.order-item-enhanced:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.item-image-enhanced {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
}

.item-image-enhanced img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    background-color: #f8f9fa; /* Light background */
    padding: 3px; /* Small padding */
}

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

.item-details-enhanced h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.item-meta-enhanced {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qty-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.price-info {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.item-total-enhanced {
    text-align: right;
}

.item-total-enhanced .total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Enhanced Order Summary */
.order-summary-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-top: 2rem;
}

.summary-section {
    padding: 1.5rem;
}

.summary-section h4 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.summary-rows .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.summary-rows .total-row {
    background: var(--white);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    border: 1px solid var(--gray-200);
}

.summary-rows .total-row span {
    color: var(--primary-color);
}

/* Enhanced Action Buttons */
.action-buttons-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons-enhanced .btn-block {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-buttons-enhanced .btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Enhanced Address Info */
.address-info-enhanced {
    padding: 0.5rem 0;
}

.customer-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.customer-name i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.address-text {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 4px;
    font-size: 0.875rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Enhanced Delivery Info */
.delivery-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.delivery-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.delivery-details strong {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 600;
}

.delivery-details p {
    color: var(--text-color);
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.delivery-details small {
    color: var(--gray-600);
    font-size: 0.75rem;
}

/* Ad Sections */
.sidebar-ad-section,
.middle-ad-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

/* Enhanced Responsive Design */
/* Enhanced Mobile Responsive - Tablet & Mobile */
@media (max-width: 991px) {
    .order-details-section {
        padding: 1.5rem 0;
    }
    
    .order-details-sidebar {
        margin-top: 2rem;
    }
    
    .order-header-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .order-header-card .order-info h1 {
        font-size: 1.5rem;
        gap: 0.5rem;
    }
    
    .order-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .action-buttons-enhanced {
        gap: 0.75rem;
    }
    
    .action-buttons-enhanced .btn-block {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .status-steps-enhanced {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .status-step-enhanced {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .step-icon-enhanced {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-content-enhanced {
        flex: 1;
    }
    
    .order-item-enhanced {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .item-image-enhanced {
        width: 120px;
        height: 120px;
        align-self: center;
    }
    
    .item-meta-enhanced {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .item-total-enhanced {
        text-align: center;
    }
    
    .delivery-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .delivery-icon {
        align-self: center;
    }
    
    .summary-section {
        padding: 1.25rem;
    }
    
    .order-details-card .card-body {
        padding: 1.25rem;
    }
    
    .sidebar-card .card-body {
        padding: 1.25rem;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .order-details-section {
        padding: 1rem 0;
    }
    
    .order-header-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .order-header-card .order-info h1 {
        font-size: 1.25rem;
    }
    
    .order-details-card,
    .sidebar-card {
        margin-bottom: 1rem;
    }
    
    .order-details-card .card-header,
    .sidebar-card .card-header {
        padding: 1rem;
    }
    
    .order-details-card .card-body,
    .sidebar-card .card-body {
        padding: 1rem;
}

    .order-item-enhanced {
        padding: 1rem;
    }
    
    .item-image-enhanced {
        width: 100px;
        height: 100px;
    }
    
    .item-meta-enhanced {
        gap: 0.75rem;
    }
    
    .delivery-item {
        padding: 0.75rem;
    }
    
    .summary-section {
        padding: 1rem;
    }
    
    .action-buttons-enhanced .btn-block {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .status-steps-enhanced {
        gap: 1rem;
    }
    
    .step-icon-enhanced {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content-enhanced h5 {
        font-size: 0.9rem;
    }
    
    .step-content-enhanced p {
        font-size: 0.8rem;
    }
}

/* Extra Small Screens (Mobile) */
@media (max-width: 576px) {
    .order-details-section {
        padding: 0.75rem 0;
    }
    
    .order-header-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .order-header-card .order-info h1 {
        font-size: 1.1rem;
    }
    
    .order-details-card,
    .sidebar-card {
        margin-bottom: 0.75rem;
    }
    
    .order-details-card .card-header,
    .sidebar-card .card-header {
        padding: 0.75rem;
    }
    
    .order-details-card .card-header h3,
    .sidebar-card .card-header h4 {
        font-size: 1rem;
    }
    
    .order-details-card .card-body,
    .sidebar-card .card-body {
        padding: 0.75rem;
    }
    
    .order-item-enhanced {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .item-image-enhanced {
        width: 80px;
        height: 80px;
    }
    
    .item-details-enhanced h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .item-meta-enhanced {
        gap: 0.5rem;
    }
    
    .qty-badge,
    .price-info {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .item-total-enhanced .total-price {
        font-size: 1rem;
    }
    
    .action-buttons-enhanced .btn-block {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .status-steps-enhanced {
        gap: 0.75rem;
    }
    
    .step-icon-enhanced {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .step-content-enhanced h5 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .step-content-enhanced p {
        font-size: 0.7rem;
    }
    
    .delivery-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .delivery-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .summary-section {
        padding: 0.75rem;
    }
    
    .summary-rows .summary-row {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }
    
    .customer-name {
        font-size: 0.9rem;
    }
    
    .address-text {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .progress-label {
        font-size: 0.75rem;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .order-details-section .container {
        padding: 0 0.5rem;
    }
    
    .order-details-section {
        padding: 0.5rem 0;
    }
    
    .order-header-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .order-header-card .order-info h1 {
        font-size: 1rem;
    }
    
    .order-details-card,
    .sidebar-card {
        margin-bottom: 0.5rem;
    }
    
    .order-details-card .card-header,
    .sidebar-card .card-header {
        padding: 0.5rem;
    }
    
    .order-details-card .card-body,
    .sidebar-card .card-body {
        padding: 0.5rem;
    }
    
    .order-item-enhanced {
        padding: 0.5rem;
    }
    
    .item-image-enhanced {
        width: 70px;
        height: 70px;
    }
    
    .item-details-enhanced h4 {
        font-size: 0.8rem;
    }
    
    .step-icon-enhanced {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .step-content-enhanced h5 {
        font-size: 0.7rem;
    }
    
    .step-content-enhanced p {
        font-size: 0.6rem;
    }
    
    .action-buttons-enhanced .btn-block {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .summary-section {
        padding: 0.5rem;
    }
    
    .delivery-item {
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    .page-header-compact {
        padding: 1rem;
    }
    
    .page-header-compact h1 {
        font-size: 1.5rem;
    }
    
    .orders-wrapper {
        padding: 1rem;
    }
    
    .order-header-card {
        padding: 1rem;
    }
    
    .order-header-card .order-info h1 {
        font-size: 1.5rem;
    }
    
    .card-compact .card-header {
        padding: 0.75rem;
    }
    
    .card-compact .card-body {
        padding: 0.75rem;
    }
    
    .order-item .item-image {
        width: 50px;
        height: 50px;
    }
}

/* Print Styles */
@media print {
    .action-buttons,
    .order-actions-compact {
        display: none;
    }
}

/* Button Loading Animation for Ad Viewability Enhancement - Simple Mobile-Friendly Version */
/* This creates a 5-second loading animation to increase ad viewability time */
.btn-loading {
    position: relative;
    cursor: wait !important;
    opacity: 0.8;
    pointer-events: none;
    overflow: hidden;
    /* No rotation or transform */
    transform: none !important;
    -webkit-transform: none !important;
    /* Prevent GPU acceleration issues on mobile */
    will-change: auto !important;
    -webkit-font-smoothing: antialiased;
}

.btn-loading-container {
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Simple text-based loading - no spinning, no rotation */
.btn-loading-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
}

/* Simple dots animation - mobile optimized */
.btn-loading-dots {
    display: inline-block;
    min-width: 20px;
    text-align: left;
    font-weight: bold;
}

/* Use simple text change for better mobile support */
.btn-loading-dots::after {
    content: '...';
    display: inline-block;
    animation: btn-dots 1.5s infinite;
    -webkit-animation: btn-dots 1.5s infinite;
}

@keyframes btn-dots {
    0% { content: ''; opacity: 0; }
    25% { content: '.'; opacity: 1; }
    50% { content: '..'; opacity: 1; }
    75%, 100% { content: '...'; opacity: 1; }
}

@-webkit-keyframes btn-dots {
    0% { content: ''; opacity: 0; }
    25% { content: '.'; opacity: 1; }
    50% { content: '..'; opacity: 1; }
    75%, 100% { content: '...'; opacity: 1; }
}

/* Simple progress bar at bottom - no fancy effects */
.btn-loading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.btn-loading-bar {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    animation: btn-progress 5s linear forwards;
    -webkit-animation: btn-progress 5s linear forwards;
    /* No shadow or glow effects */
}

@keyframes btn-progress {
    from { width: 0%; }
    to { width: 100%; }
}

@-webkit-keyframes btn-progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Dark buttons text color */
.btn-outline .btn-loading-text,
.btn-secondary .btn-loading-text {
    color: var(--text-color);
}

.btn-outline .btn-loading-bar,
.btn-secondary .btn-loading-bar {
    background: var(--primary-color);
}

/* Maintain button dimensions during loading */
.btn-loading {
    min-height: 44px;
    /* No transitions during loading */
    transition: none !important;
}

/* Mobile optimizations - even simpler */
@media (max-width: 768px) {
    .btn-loading-text {
        font-size: 0.75rem;
    }
    
    .btn-loading {
        min-height: 38px;
    }
    
    .btn-loading-progress {
        height: 1px;
    }
}

/* Button type specific colors - keep original bg */
.btn-primary.btn-loading {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-accent.btn-loading {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

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

.btn-outline.btn-loading {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Disable all hover effects and transforms during loading */
.btn-loading:hover,
.btn-loading:focus,
.btn-loading:active {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any rotation from buttons - comprehensive fix */
.btn, button, a.btn, input[type="submit"], input[type="button"] {
    /* Ensure no rotation on any state */
    transform-style: flat !important;
    -webkit-transform-style: flat !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Prevent any transform on buttons globally */
button:not(.qty-btn):not(.nav-toggle),
a.btn,
input[type="submit"],
input[type="button"],
.btn {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

/* Specific fix for cart buttons and all page buttons - NO ROTATION */
.cart-page .btn,
.cart-section .btn,
.cart-container .btn,
.cart-items .btn,
.checkout-actions .btn,
.address-section .btn,
.checkout-section .btn,
.review-section .btn,
a[href*="address.php"],
a[href*="checkout"],
.btn-block {
    transform: none !important;
    -webkit-transform: none !important;
    transform-style: flat !important;
    -webkit-transform-style: flat !important;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease !important;
    -webkit-transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease !important;
    /* Prevent any rotation on any state */
}

/* Override any hover transforms for cart/checkout buttons */
.cart-page .btn:hover,
.cart-section .btn:hover,
.checkout-actions .btn:hover {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Fix for mobile webkit browsers */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn, button, a.btn {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Disable animations on mobile for performance */
@media (max-width: 768px) {
    .btn-loading-dots::after {
        animation-duration: 2s; /* Slower for better performance */
    }
    
    .btn-loading-bar {
        animation-timing-function: linear;
        /* Simplified animation */
    }
    
    /* Disable unnecessary effects on mobile */
    .btn-loading::before,
    .btn-loading::after {
        display: none !important;
    }
}