:root {
    --primary: #1a6fc4;
    --primary-dark: #12559a;
    --primary-light: #e6f0fa;
    --secondary: #2ecc71;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #eaedf1;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.flash-message {
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    border-left: 4px solid var(--secondary);
}

.flash-error {
    border-left: 4px solid var(--danger);
}

.flash-warning {
    border-left: 4px solid var(--warning);
}

.flash-info {
    border-left: 4px solid var(--primary);
}

/* Topbar */
.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar span,
.topbar a {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.topbar a:hover {
    color: var(--white);
}

/* Header */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: fadeInDown 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-search {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.search-wrapper {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 30px;
    overflow: hidden;
}

.search-category-select {
    border: none;
    background: var(--bg-light);
    padding: 0 15px;
    border-right: 1px solid var(--border);
    outline: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 0.95rem;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    margin-top: 5px;
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.suggestion-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.header-action-btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.header-action-btn:hover {
    color: var(--primary-dark);
}

.cart-icon-wrap {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    position: relative;
    z-index: 90;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item.nav-all-cats {
    position: static;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-all-link {
    background: var(--primary-dark);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
    border-top: 2px solid var(--secondary);
}

.nav-all-cats:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-cat-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.mega-sub-list li {
    margin-bottom: 8px;
}

.mega-sub-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mega-sub-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Standard Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
    list-style: none;
    z-index: 100;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border);
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 25px;
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

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

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

.btn-secondary:hover {
    background: #27ae60;
    color: var(--white);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image {
    max-width: 45%;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--white);
    z-index: 1;
}

.badge-sale {
    background: var(--danger);
}

.badge-new {
    background: var(--secondary);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    flex-grow: 1;
}

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

.product-price del {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 5px;
    font-weight: normal;
}

.add-to-cart-btn {
    width: 100%;
}

/* Infinite Scroll Loader */
.loader-container {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Footer & Newsletter */
.newsletter-section {
    background: var(--primary-light);
    padding: 50px 0;
    margin-top: 60px;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.main-footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-heading {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #ccc;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links a {
    color: #888;
    margin-left: 15px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Floating Actions */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-hover);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Auth Forms */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Cart & Checkout */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.qty-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.btn-remove {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
}

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 2px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
}

/* Responsive Utilities */
.grid-responsive-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-responsive-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-responsive-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.flex-responsive {
    display: flex;
    gap: 30px;
}

.sidebar-responsive-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

/* Prescription Section */
.prescription-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Order Tracking Timeline */
.order-timeline-container {
    position: relative;
    padding: 20px 0 40px;
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.timeline-line-bg {
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--border);
    z-index: 1;
}

.timeline-line-active {
    position: absolute;
    top: 35px;
    left: 10%;
    height: 4px;
    background: var(--secondary);
    z-index: 2;
    transition: var(--transition);
}

.timeline-step {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 90px;
}

.timeline-icon {
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--border);
    transition: var(--transition);
}

.timeline-icon.completed {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.timeline-label.completed {
    font-weight: 700;
    color: var(--text-main);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
    }

    .prescription-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .grid-responsive-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-responsive-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar-left {
        display: none;
    }

    .topbar-right {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px 0;
    }

    .logo-name {
        font-size: 1.25rem;
    }

    .logo-tagline {
        font-size: 0.7rem;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 5px;
    }

    .search-wrapper {
        border-radius: 20px;
    }

    .search-category-select {
        display: none;
        /* Hide category select in search on mobile to save space */
    }

    .search-input {
        padding: 10px 15px;
    }

    .header-actions {
        gap: 15px;
    }

    .header-actions .action-label {
        display: none;
        /* Hide labels, show only icons to prevent layout overflow */
    }

    .header-action-btn i {
        font-size: 1.4rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: block;
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        background: var(--primary-dark);
        padding: 15px 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-all-link {
        background: transparent;
    }

    .mega-menu {
        display: none !important;
        /* Mega menu hover logic doesn't make sense on mobile, hide it */
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0,0,0,0.1);
    }
    
    .dropdown-menu a {
        color: var(--white);
    }
    
    .has-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .has-dropdown .nav-arrow {
        float: right;
        margin-top: 5px;
    }

    /* Layouts and Grids */
    .grid-responsive-2col,
    .grid-responsive-3col,
    .grid-responsive-4col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flex-responsive {
        flex-direction: column;
        gap: 30px;
    }

    .sidebar-responsive-layout {
        flex-direction: column;
        gap: 30px;
    }

    .sidebar-responsive-layout aside,
    .sidebar-responsive-layout>div {
        width: 100% !important;
        flex-shrink: 1 !important;
    }

    .sidebar-responsive-layout aside {
        order: 2;
        /* Move sidebar filters/menu below the main content on mobile */
    }

    /* Let's make sure dashboards keep aside at top or bottom consistently */
    .profile-section .sidebar-responsive-layout aside {
        order: 1;
        /* Profile sidebar should stay at top */
    }

    .profile-section .sidebar-responsive-layout>div {
        order: 2;
    }

    /* Spacing adjustments */
    section {
        padding: 40px 0 !important;
    }

    .auth-container {
        padding: 25px 20px;
        margin: 30px auto;
    }

    /* footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom-links {
        margin-top: 5px;
    }

    .footer-bottom-links a {
        margin: 0 8px;
    }

    /* Order Timeline vertical view on mobile */
    .order-timeline-container {
        flex-direction: column;
        padding: 10px 0 10px 20px;
        gap: 25px;
        align-items: flex-start;
        margin: 30px 0 30px 10px;
    }

    .timeline-line-bg {
        top: 20px;
        bottom: 20px;
        left: 37px;
        width: 4px;
        height: auto;
        right: auto;
    }

    .timeline-line-active {
        top: 20px;
        left: 37px;
        width: 4px;
        height: 0;
        right: auto;
    }

    .order-timeline-container.step-0 .timeline-line-active {
        height: 0%;
    }

    .order-timeline-container.step-1 .timeline-line-active {
        height: 33%;
    }

    .order-timeline-container.step-2 .timeline-line-active {
        height: 66%;
    }

    .order-timeline-container.step-3 .timeline-line-active {
        height: 100%;
    }

    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
        width: 100%;
        gap: 20px;
    }

    .timeline-icon {
        margin: 0;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
    }

    .timeline-label {
        margin: 0;
        font-size: 0.95rem;
    }
}