/* ===== CSS Variables ===== */
:root {
    --primary-green: #16a34a;
    --primary-green-dark: #36d370;
    --primary-green-light: #36d370;
    --primary-dark: #14532d;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-orange: #f97316;
    --dark-gray: #111827;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --radius-sm: 0.75rem;
    --radius-md: 1.5rem;
    --radius-lg: 2.5rem;
    --radius-xl: 3rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fcfcfc;
    color: var(--dark-gray);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ===== Utility Classes ===== */
.text-gray-400 {
    color: var(--medium-gray);
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-900 {
    color: var(--dark-gray);
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: var(--light-gray);
}

.bg-gray-900 {
    background-color: var(--dark-gray);
}

.border-gray-100 {
    border-color: var(--border-gray);
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.rounded-custom-sm {
    border-radius: var(--radius-sm);
}

.rounded-custom-md {
    border-radius: var(--radius-md);
}

.rounded-custom-lg {
    border-radius: var(--radius-lg);
}

.rounded-custom-xl {
    border-radius: var(--radius-xl);
}

.shadow-custom-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-custom-md {
    box-shadow: var(--shadow-md);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-custom-xl {
    box-shadow: var(--shadow-xl);
}

.transition-base {
    transition: var(--transition-base);
}

.transition-fast {
    transition: var(--transition-fast);
}

.transition-transform {
    transition: transform 0.3s ease;
}

.fw-black {
    font-weight: 900;
}

.lh-1 {
    line-height: 1;
}

.hover-text-success:hover {
    color: var(--primary-green);
}

.hover-text-danger:hover {
    color: var(--danger-red);
}

/* ===== Header Styles ===== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    padding: var(--spacing-sm) 0;
}

.homepage-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--primary-dark);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.logo-container {
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-container img {
    width: 180px;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    padding: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    position: relative;
    max-width: 350px;
    flex: 1;
    margin: 0 var(--spacing-md);
}

.search-input {
    padding-left: 3rem;
    padding-right: 1.25rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background-color: var(--light-gray);
    transition: var(--transition-base);
    height: 48px;
    font-size: 0.95rem;
}

.search-input:focus {
    background-color: white;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
}

.suggestion-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: var(--transition-base);
}

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

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f0fdf4;
}

.cart-button {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.3);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 14px;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(22, 163, 74, 0.4);
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: var(--danger-red);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    border: 2px solid white;
    min-width: 1.5rem;
    text-align: center;
}

/* ===== Footer ===== */
footer {
    background: white;
    border-top: 1px solid var(--border-gray);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    background: var(--primary-green);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
    margin-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    text-decoration: none;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.social-link:hover {
    background: var(--primary-green);
    color: white;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-gray);
    padding: var(--spacing-sm) var(--spacing-md);
    display: none;
    z-index: 1000;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-base);
    position: relative;
}

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

.mobile-nav-item i {
    font-size: 1.25rem;
}

/* ===== Cart Drawer ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-gray);
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.quantity-btn:hover {
    background: var(--light-gray);
}

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

.cart-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-gray);
    background: white;
}

.cart-summary {
    margin-bottom: var(--spacing-lg);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.cart-total {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-gray);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-gray);
    margin-top: var(--spacing-md);
}

.checkout-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(22, 163, 74, 0.4);
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.empty-cart-icon {
    width: 128px;
    height: 128px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 3rem;
    color: var(--medium-gray);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-base);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.toast-close {
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* ===== Page Specific Styles ===== */
.page-header {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f0f7ed 0%, #e8f5e9 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    color: var(--medium-gray);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--medium-gray);
}

.page-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

/* Decorative animated shapes */
.hero-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
    color: var(--primary-green);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 5%;
    font-size: 4rem;
    animation-delay: 0s;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    font-size: 6rem;
    animation-delay: 2s;
}

.shape-3 {
    top: 20%;
    right: 20%;
    font-size: 3rem;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Product Cards ===== */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green-light);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--danger-red);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.product-wishlist {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    cursor: pointer;
    border: 1px solid var(--border-gray);
    z-index: 20;
    font-size: 1.25rem;
}

/* Make visible on mobile always */
@media (max-width: 768px) {
    .product-wishlist {
        opacity: 1;
    }

    .logo-container img {
        width: 172px;
    }
}

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

.product-wishlist:hover {
    background: white;
    transform: scale(1.1);
}

/* Wishlist Active State */
.product-wishlist.active {
    color: var(--danger-red);
    border-color: var(--danger-red);
    background: white;
    opacity: 1;
}

.product-wishlist.active i {
    font-weight: 900;
    /* Solid heart */
}

.product-image {
    height: 170px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-base);
}

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

.product-category {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.price-current {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-gray);
}

.price-old {
    font-size: 0.875rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.add-to-cart {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.3);
}

.add-to-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px 0 rgba(22, 163, 74, 0.4);
}

.add-to-cart.added {
    background: var(--success-green);
}

/* ===== Wishlist Page ===== */
.wishlist-empty {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.wishlist-empty-icon {
    width: 128px;
    height: 128px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 3rem;
    color: var(--medium-gray);
}

/* ===== Checkout Forms ===== */
.checkout-section {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.btn {
    /* padding: var(--spacing-sm) var(--spacing-lg); */
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    padding: 11px 32px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

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

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

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-block {
    width: 100%;
}

/* ===== Order Status Pages ===== */
.order-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    min-height: 60vh;
}

.order-status-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: 3rem;
}

.order-success-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
}

.order-failed-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.order-status-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
}

.order-status-message {
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.order-details-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gray);
    padding: 18px;
    margin-bottom: var(--spacing-lg);
    width: 100%;
    max-width: 550px;
}

.order-status-card {
    max-width: 100%;
}

.order-details-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.order-details-label {
    font-weight: 600;
    color: var(--medium-gray);
}

.order-details-value {
    font-weight: 700;
}

/* ===== Order List ===== */
.order-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-base);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-gray);
}

.order-number {
    font-weight: 700;
    color: var(--dark-gray);
}

.order-date {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-shipped {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-delivered {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.order-items {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.order-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.order-item-name {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.order-item-price {
    color: var(--primary-green);
    font-weight: 700;
}

.order-item-quantity {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

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

.order-total {
    font-weight: 900;
    font-size: 1.25rem;
}

.order-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    .mobile-nav {
        display: block;
    }

    .page-hero {
        padding: 3rem 0;
    }

    footer {
        padding-bottom: 85px;
    }

    .mobile-nav-item {
        align-items: start;
    }

    .mobile-dropdown {
        width: 100%;
        max-width: 100%;
    }

    .has-submenu:hover>.sub-dropdown {
        position: unset;
        box-shadow: none;
        margin: 0px 0.75rem;
    }

    .mobile-nav-drawer {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .search-container {
        display: none;
    }

    .cart-button span {
        display: none;
    }

    .page-title {
        font-size: 2rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .order-actions {
        width: 100%;
    }

    .order-actions .btn {
        flex: 1;
    }
}

/* ===== Custom Scrollbar ===== */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--medium-gray);
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1200px;
    }
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

/* Level 1 */
.nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

/* Arrow rotation */
.nav-link .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover>.nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== DROPDOWN (LEVEL 2+) ===== */
.dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    list-style: none;
}

.nav-item:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary-green);
    padding-left: 1.5rem;
    border-left-color: var(--primary-green);
}
/* ===== SUB DROPDOWN (LEVEL 3+) ===== */
.has-submenu {
    position: relative;
}

.sub-dropdown {
    position: absolute;
    top: -0.75rem;
    left: 100%;
    margin-left: 0.75rem;
    min-width: 220px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    z-index: 1002;
}

.has-submenu:hover>.sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Remove arrow inside deeper levels if needed */
.sub-dropdown .dropdown-item::after {
    display: none;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    left: 0;
}

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile List */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-transform:none;
}

.mobile-nav-link i {
    transition: transform 0.3s ease;
}

.mobile-nav-link[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: var(--primary-green);
}

/* Mobile Dropdown */
.mobile-dropdown {
    background: #fafafa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown.open {
    max-height: 1000px;
    transition: max-height 0.6s ease-in;
}

.mobile-dropdown-link {
    display: block;
    padding: 0.8rem 1rem 0.8rem 2rem;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-dropdown-link:hover {
    color: var(--primary-green);
    background: #f0fdf4;
}

/* Level 3 Mobile */
.mobile-sub-dropdown {
    background: #fff;
    max-height: 0;
    overflow: hidden;
}

.mobile-sub-dropdown.open {
    max-height: 500px;
}

.mobile-sub-dropdown-link {
    display: block;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    color: var(--medium-gray);
}
.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    padding: 1rem .75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: var(--bs-border-width) solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}