/* ================================================
VT HEADER
================================================ */

/* Top Bar */
.vt-top-bar {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color1));
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.vt-top-bar a {
    color: #fff;
    text-decoration: underline;
}

/* Main Header */
.vt-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Header sticky on home page */
body:not(.shopBody) .vt-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* Header sticky on shop page */
body.shopBody .vt-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* Department nav sticky positioning - adjusts based on header height */
body:not(.shopBody) .vt-dept-nav {
    position: sticky;
    top: 0;
    z-index: 999;
}

body.shopBody .vt-dept-nav {
    position: sticky;
    top: 0;
    z-index: 999;
}

.vt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Left Navigation */
.vt-nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.vt-nav-left .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    cursor: pointer;
}

.vt-nav-left .nav-link:hover {
    color: var(--theme-color);
}

/* Center Logo */
.vt-logo {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 40px;
}

.vt-logo img {
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

/* Right Navigation */
.vt-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.vt-icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.vt-icon-btn:hover {
    background: #f5f5f5;
    color: var(--theme-color);
}

.vt-icon-btn svg,
.vt-icon-btn i {
    width: 20px;
    height: 20px;
}

.vt-icon-btn .badge {
    background: var(--theme-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Enhanced Search Box */
.vt-search {
    position: relative;
    transition: all 0.3s ease;
}

.vt-search.collapsed {
    width: auto;
}

.vt-search.expanded {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1001;
    padding: 0 30px;
}

.vt-search-trigger {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    transition: color 0.2s;
}

.vt-search-trigger:hover {
    color: var(--theme-color);
}

.vt-search-container {
    display: none;
    position: relative;
}

.vt-search.expanded .vt-search-container {
    display: block;
    animation: slideDown 0.3s ease;
}

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

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

.vt-search-wrapper {
    position: relative;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: searchPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes searchPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.vt-search-input {
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--theme-color), var(--theme-color1)) border-box;
    border-radius: 30px;
    padding: 16px 50px 16px 24px;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s;
    color: #333;
    font-weight: 500;
}

.vt-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.vt-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}

.vt-search-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vt-search-close:hover {
    background: var(--theme-color);
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

.vt-search-loading {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--theme-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.vt-search-loading.show {
    display: block;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.vt-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, #fafafa, #fff);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -5px;
    z-index: 1000;
}

.vt-search-results.show {
    max-height: 500px;
    padding: 20px;
    overflow-y: auto;
}

.vt-search-results-header {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding: 0 5px;
}

.vt-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.vt-search-result-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #333;
    border: 1px solid #e8e8e8;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: cardFadeIn 0.4s ease forwards;
    opacity: 0;
}

.vt-search-result-card:nth-child(1) {
    animation-delay: 0.1s;
}

.vt-search-result-card:nth-child(2) {
    animation-delay: 0.2s;
}

.vt-search-result-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.vt-search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--theme-color);
}

.vt-search-result-card:active {
    transform: translateY(-2px);
}

.vt-search-result-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-search-result-image-wrapper::before {
    content: '📦';
    position: absolute;
    font-size: 48px;
    opacity: 0.2;
    z-index: 0;
}

.vt-search-result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
    background: transparent;
}

.vt-search-result-image.placeholder {
    opacity: 0;
}

.vt-search-result-card:hover .vt-search-result-image {
    transform: scale(1.05);
}

.vt-search-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.vt-search-stock-badge.in-stock {
    color: #10b981;
    border: 1px solid #d1fae5;
}

.vt-search-stock-badge.out-of-stock {
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.vt-search-result-content {
    padding: 15px;
}

.vt-search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
}

.vt-search-result-code {
    font-size: 14px;
    color: var(--theme-color);
    margin: 0 0 10px 0;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(var(--theme-color-rgb, 0, 0, 0), 0.08), rgba(var(--theme-color1-rgb, 0, 0, 0), 0.05));
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    border-left: 3px solid var(--theme-color);
}

.vt-search-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.vt-search-result-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-color);
}

.vt-search-result-unit {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

.vt-search-result-action {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color1));
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vt-search-result-card:hover .vt-search-result-action {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Add to Cart Button in Search Results */
.vt-search-add-cart {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color1));
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vt-search-add-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.vt-search-add-cart:active {
    transform: scale(0.95);
}

.vt-search-add-cart.added {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.vt-search-add-cart i {
    transition: transform 0.2s;
}

.vt-search-add-cart:hover i {
    transform: rotate(-10deg);
}

.vt-search-no-results {
    padding: 40px 20px;
    text-align: center;
}

.vt-search-no-results-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.vt-search-no-results-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.vt-search-no-results-subtext {
    font-size: 13px;
    color: #999;
}

.vt-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.vt-search-overlay.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* User Menu Dropdown */
.vt-user-dropdown {
    position: relative;
}

.vt-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.vt-user-dropdown:hover .vt-user-menu {
    display: block;
}

.vt-user-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.vt-user-menu a:hover {
    background: #f8f8f8;
    color: var(--theme-color);
}

/* Shop Controls Bar (Search, Sort, Filter) */
.vt-dept-bar {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: sticky;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: top 0.1s ease;
}

.vt-dept-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Search bar takes more space now */
.vt-shop-search {
    flex: 1;
    max-width: 500px;
}

.vt-dept-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.vt-dept-pill:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vt-dept-pill.active {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color1));
    color: #fff !important;
    border-color: transparent;
}

.vt-dept-pill.active i {
    color: #fff !important;
}

.vt-dept-pill i {
    margin-left: 6px;
    font-size: 10px;
}

/* Dept Slider Arrows */
.vt-dept-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #555;
    font-size: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.vt-dept-arrow.slick-prev {
    left: 5px;
}

.vt-dept-arrow.slick-next {
    right: 5px;
}

.vt-dept-arrow:hover {
    background: var(--theme-color) !important;
    color: #fff !important;
    border-color: var(--theme-color) !important;
}

.vt-dept-arrow:focus,
.vt-dept-arrow:active {
    outline: none !important;
    background: #fff !important;
    color: #555 !important;
    border-color: #e5e5e5 !important;
}

.vt-dept-arrow:hover {
    background: var(--theme-color) !important;
    color: #fff !important;
    border-color: var(--theme-color) !important;
}

.vt-dept-arrow.slick-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.vt-dept-arrow::before {
    display: none !important;
}

/* Sort/Filter Controls */
.vt-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid #e5e5e5;
}

.vt-control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.vt-control-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* Shop Search in Department Bar */
.vt-shop-search {
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
}

.vt-shop-search-input {
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 10px 40px 10px 20px;
    width: 250px;
    font-size: 13px;
    transition: all 0.2s;
}

.vt-shop-search-input:focus {
    outline: none;
    border-color: var(--theme-color);
    width: 300px;
}

.vt-shop-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* Sub-department Dropdown */
.vt-dept-item {
    position: relative;
}

.vt-subdept-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 0;

    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    z-index: 9999; /* make sure it’s above other content */

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
}

.vt-dept-item:hover .vt-subdept-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modern Orders Page Styles */
.orders-modern-section {
    background: #f8f9fa;
    min-height: 80vh;
    padding: 40px 0;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.orders-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.orders-subtitle {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 15px;
    padding-left: 20px;
}

.orders-search-section .search-box {
    position: relative;
    width: 300px;
}

.orders-search-section .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.orders-search-section .search-box input {
    padding-left: 45px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    height: 45px;
}

.orders-search-section .search-box input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Order Card */
.order-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.order-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    cursor: pointer;
    text-decoration: none;
}

.order-number:hover {
    color: var(--theme-color);
}

.order-date {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-paid {
    background: #d1fae5;
    color: #065f46;
}

.badge-notpaid {
    background: #fed7aa;
    color: #c2410c;
}

.badge-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-delivered {
    background: #dbeafe;
    color: #1e40af;
}

.badge-processing {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-pickup {
    background: #f3e8ff;
    color: #6b21a8;
}

.order-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.order-info-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.order-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color);
}

.order-actions {
    display: flex;
    gap: 10px;
}

.btn-view-details {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color1));
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-details:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.empty-orders-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    margin-top: 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-orders-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.empty-orders-state p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Order Detail Modal */
.order-detail-modern .modal-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, #fafafa, #fff);
}

.order-detail-modern .modal-header .btn-close {
    background: #666;
    opacity: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
    box-shadow: none;
}

.order-detail-modern .modal-header .btn-close i {
    font-size: 18px;
    color: #fff;
}

.order-detail-modern .modal-header .btn-close:hover {
    background: #000;
    transform: rotate(90deg);
}

.order-detail-modern .modal-header .btn-close:focus {
    box-shadow: none;
    outline: none;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.order-detail-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.order-status-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 15px;
    align-items: center;
    height: 100%;
    transition: all 0.3s;
}

.order-summary-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-primary-light {
    background: #dbeafe;
    color: #1e40af;
}

.bg-success-light {
    background: #d1fae5;
    color: #065f46;
}

.bg-warning-light {
    background: #fef3c7;
    color: #92400e;
}

.bg-info-light {
    background: #f3e8ff;
    color: #6b21a8;
}

.summary-details {
    flex: 1;
}

.summary-label {
    font-size: 12px;
    color: #999;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.order-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-items-header h6 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.order-search-box {
    position: relative;
    width: 250px;
}

.order-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.order-search-box input {
    padding-left: 38px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    height: 38px;
    font-size: 14px;
}

.order-item-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.order-item-card:hover {
    background: #e8f4ff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

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

.order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-code {
    font-size: 12px;
    color: #999;
    font-family: 'Courier New', monospace;
}

.order-item-price {
    text-align: right;
    min-width: 100px;
}

.order-item-qty {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.order-item-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-color);
}

@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-search-section .search-box {
        width: 100%;
    }

    .order-card-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-search-box {
        width: 100%;
    }
}

.vt-subdept-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.vt-subdept-menu a:hover {
    background: #f8f8f8;
    color: var(--theme-color);
}

/* Mobile Menu Button */
.vt-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .vt-nav-left {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .vt-nav-left .nav-link {
        display: none;
    }

    .vt-mobile-menu-btn {
        display: block;
    }

    .vt-header-inner {
        padding: 0 15px;
    }

    .vt-dept-inner {
        padding: 0 15px;
    }

    .vt-logo img {
        height: 45px;
    }

    .phone-details-header {
        display: none !important;
    }

    .vt-search.expanded {
        padding: 0 15px;
    }

    .vt-search-results {
        max-width: 100%;
    }

    .vt-search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vt-shop-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .vt-search-results-grid {
        grid-template-columns: 1fr;
    }

    .vt-search-results {
        max-width: 100%;
    }

    .vt-controls {
        display: none;
    }

    .vt-shop-search {
        display: none;
    }

    .vt-top-bar {
        font-size: 11px;
        padding: 6px 10px;
    }

    .vt-search.expanded {
        padding: 0 10px;
    }

    .vt-search-results.show {
        padding: 15px;
    }

    .vt-search-result-image-wrapper {
        height: 120px;
    }

    .vt-search-result-content {
        padding: 12px;
    }

    .vt-search-result-name {
        font-size: 13px;
        min-height: 36px;
    }

    .vt-search-result-price {
        font-size: 16px;
    }
}

/* ============================================
   DEPARTMENT NAV - BULLETPROOF IMPLEMENTATION  
   Fixed: Search Left | Slider Center | Controls Right
   ============================================ */

/* Main Container */
.vt-dept-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vt-dept-nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LEFT: Search Bar - Fixed Width */
.vt-dept-search {
    flex: 0 0 220px;
    position: relative;
}

.vt-dept-search-input {
    width: 100%;
    padding: 10px 38px 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    font-size: 13px;
    background: #f8f8f8;
    transition: all 0.2s ease;
}

.vt-dept-search-input:focus {
    outline: none;
    border-color: var(--theme-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb, 0, 0, 0), 0.1);
}

.vt-dept-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* CENTER: Slider Wrapper - Takes Remaining Space */
.vt-dept-slider-wrapper {
    flex: 1 1 auto;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    /* Clip only horizontal, allow vertical overflow for dropdowns */
    overflow-x: clip;
    overflow-y: visible;
}

/* The Slider Track - Transform-based scrolling */
.vt-dept-slider {
    display: flex;
    gap: 0;
    overflow: visible; /* No overflow restriction - allows dropdowns */
    padding: 0;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

/* Hide scrollbar (not used, but just in case) */
.vt-dept-slider::-webkit-scrollbar {
    display: none;
}

.vt-dept-slider::-webkit-scrollbar {
    display: none;
}

/* Scroll Arrow Buttons */
.vt-dept-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vt-dept-arrow.show {
    opacity: 1;
    visibility: visible;
}

.vt-dept-arrow:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.vt-dept-arrow-left {
    left: 0;
}

.vt-dept-arrow-right {
    right: 0;
}

.vt-dept-arrow i {
    font-size: 12px;
}

/* Individual Department Item */
.vt-dept-item {
    position: relative;
    flex-shrink: 0;
}

/* Department Link */
.vt-dept-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.vt-dept-link:hover,
.vt-dept-link.active {
    color: var(--theme-color);
    border-bottom-color: var(--theme-color);
}

.vt-dept-arrow-icon {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.vt-dept-item.is-open .vt-dept-arrow-icon {
    transform: rotate(180deg);
}

/* ============================================
   SUBDEPARTMENT DROPDOWN - THE KEY PART
   Position: absolute from .vt-dept-item
   This works because .vt-dept-item has position:relative
   and the dropdown is positioned from it, NOT from the slider
   ============================================ */
.vt-subdept-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    margin-top: 3px;
}

/* SHOW ON HOVER - This is controlled by .is-open class via JS */
.vt-dept-item.is-open .vt-subdept-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.vt-subdept-list {
    padding: 10px 0;
    max-height: 350px;
    overflow-y: auto;
}

.vt-subdept-item {
    display: block;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.vt-subdept-item:hover {
    background: linear-gradient(90deg, rgba(var(--theme-color-rgb, 0, 0, 0), 0.08), transparent);
    color: var(--theme-color);
    border-left-color: var(--theme-color);
    padding-left: 24px;
}

.vt-subdept-item:first-child {
    font-weight: 600;
    color: var(--theme-color);
    background: rgba(var(--theme-color-rgb, 0, 0, 0), 0.03);
}

/* RIGHT: Controls - Fixed Width */
.vt-dept-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-dept-controls .vt-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vt-dept-controls .vt-control-btn:hover {
    background: #fff;
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.vt-dept-controls .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px 0;
}

.vt-dept-controls .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
}

.vt-dept-controls .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(var(--theme-color-rgb, 0, 0, 0), 0.08), transparent);
    color: var(--theme-color);
}

/* ============================================
   VIEW-SPECIFIC STYLES
   ============================================ */

/* Hide search/controls by default, show only in shop */
.vt-dept-nav .vt-dept-search,
.vt-dept-nav .vt-dept-controls {
    display: none;
}

.vt-dept-nav.is-shop-view .vt-dept-search,
.vt-dept-nav.is-shop-view .vt-dept-controls {
    display: flex;
}

/* Home view: center the slider, full width */
.vt-dept-nav.is-home-view .vt-dept-nav-inner {
    justify-content: center;
}

.vt-dept-nav.is-home-view .vt-dept-slider-wrapper {
    flex: 0 1 auto;
    max-width: 100%;
}

/* Orders view: center */
.vt-dept-nav.is-orders-view .vt-dept-nav-inner {
    justify-content: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .vt-dept-search {
        flex: 0 0 180px;
    }
    
    .vt-dept-link {
        padding: 14px 14px;
        font-size: 12px;
    }
    
    .vt-dept-controls .vt-control-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .vt-dept-nav-inner {
        padding: 0 15px;
        gap: 15px;
    }
    
    .vt-dept-search {
        flex: 0 0 160px;
    }
    
    .vt-dept-link {
        padding: 12px 12px;
        font-size: 11px;
    }
    
    .vt-dept-controls .vt-control-btn span {
        display: none;
    }
    
    .vt-dept-controls .vt-control-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .vt-dept-nav {
        display: none;
    }
}