/* ============================================
   UX IMPROVEMENTS - User-Friendly Enhancements
   ============================================ */

/* Global :focus-visible for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid rgb(3, 122, 122);
    outline-offset: 2px;
}

/* Minimum touch targets 44px (mobile) */
@media (max-width: 768px) {
    .cart-link,
    #searchIconContainer,
    #mobileMenuIcon,
    .cart-drawer-close,
    .btn-add-to-cart,
    .btn-primary,
    .filter-select,
    .mobile-filter-toggle,
    .mobile-filter-close {
        min-height: 44px;
        min-width: 44px;
    }
    .cart-link { padding: 10px; }
    #mainNav a { padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Progress Indicator for Checkout */
.checkout-progress {
    width: 100%;
    margin: 0 auto 40px;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.checkout-progress-steps {
    display: block;
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
    min-height: 60px;
    overflow: visible;
}

.checkout-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px; /* Start at center of step 1 (20px padding + 20px half of 40px step number) */
    width: calc(100% - 80px); /* End at center of step 3 (100% - 40px for step 3 center - 40px for step 1 start) */
    height: 3px;
    background: rgba(42, 42, 42, 0.8);
    z-index: 0;
    pointer-events: none;
}

.checkout-progress-step {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 1;
    top: 0;
}

/* Step 1 - Left edge */
.checkout-progress-step:first-child {
    left: 20px;
    align-items: flex-start;
}

/* Step 2 - Center */
.checkout-progress-step:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

/* Step 3 - Right edge */
.checkout-progress-step:last-child {
    right: 20px;
    align-items: flex-end;
}

.checkout-progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.8);
    border: 3px solid rgba(42, 42, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.checkout-progress-step.active .checkout-progress-step-number {
    background: rgb(3, 122, 122);
    border-color: rgb(3, 122, 122);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(3, 122, 122, 0.2);
}

.checkout-progress-step.completed .checkout-progress-step-number {
    background: #48bb78;
    border-color: #48bb78;
    color: #ffffff;
}

.checkout-progress-step.completed .checkout-progress-step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}

.checkout-progress-step-label {
    font-size: 12px;
    color: #b0b0b0;
    text-align: center;
    font-weight: 500;
    max-width: 100px;
}

.checkout-progress-step.active .checkout-progress-step-label {
    color: #ffffff;
    font-weight: 600;
}

.checkout-progress-step.completed .checkout-progress-step-label {
    color: #48bb78;
}

/* Form Field Improvements */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

.form-group label .required-indicator {
    color: #e53e3e;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.8);
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(3, 122, 122);
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 0 0 3px rgba(3, 122, 122, 0.2);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group input.field-valid,
.form-group select.field-valid,
.form-group textarea.field-valid {
    border-color: #48bb78;
}

.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.05);
}

/* Real-time Validation Feedback */
.form-field-wrapper {
    position: relative;
}

.form-field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-group input:valid:not(:placeholder-shown) + .form-field-icon.valid-icon,
.form-group input:invalid:not(:placeholder-shown) + .form-field-icon.invalid-icon {
    opacity: 1;
}

.form-field-icon.valid-icon {
    color: #48bb78;
}

.form-field-icon.invalid-icon {
    color: #e53e3e;
}

.form-error-message {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-error-message.show {
    display: flex;
}

.form-error-message i {
    font-size: 14px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Button Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading-text {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-loading-text i {
    animation: spin 0.8s linear infinite;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none; /* Hide if using .btn-loading-text instead */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Improved Touch Targets for Mobile */
@media (max-width: 768px) {
    a.btn,
    .btn-primary,
    .btn-secondary,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .checkout-progress-step-label {
        font-size: 11px;
        max-width: 80px;
    }
    
    .checkout-progress-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .checkout-progress-steps {
        padding: 0 10px;
    }
    
    .checkout-progress-steps::before {
        left: 28px; /* Start at center of step 1 (10px padding + 18px half of 36px step number) */
        width: calc(100% - 56px); /* End at center of step 3 (100% - 28px for step 3 center - 28px for step 1 start) */
    }
}

/* Helpful Tooltips */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.tooltip-icon {
    color: rgb(3, 122, 122);
    font-size: 14px;
    cursor: help;
    transition: color 0.3s;
}

.tooltip-icon:hover {
    color: #4dd0e1;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid rgba(3, 122, 122, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

.tooltip-wrapper:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Success/Error Toast Improvements */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid rgb(3, 122, 122);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left-color: #48bb78;
}

.toast-notification.error {
    border-left-color: #e53e3e;
}

.toast-notification.warning {
    border-left-color: #ed8936;
}

.toast-notification i {
    font-size: 20px;
}

.toast-notification.success i {
    color: #48bb78;
}

.toast-notification.error i {
    color: #e53e3e;
}

.toast-notification.warning i {
    color: #ed8936;
}

.toast-notification-content {
    flex: 1;
}

.toast-notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.toast-notification-message {
    font-size: 13px;
    color: #b0b0b0;
}

.toast-notification-close {
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toast-notification-close:hover {
    color: #ffffff;
}

/* Empty State Improvements */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
}

.empty-state-icon {
    font-size: 64px;
    color: #666;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state-message {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-state-action {
    display: inline-block;
    padding: 12px 24px;
    background: rgb(3, 122, 122);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.empty-state-action:hover {
    background: #4dd0e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 122, 122, 0.3);
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid rgb(3, 122, 122);
    outline-offset: 2px;
}

/* Skip to Main Content Link (Accessibility) */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: rgb(3, 122, 122);
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 6px 0;
}

.skip-to-main:focus {
    top: 0;
}

/* Back to top — true viewport FAB (must win over any link/button resets) */
button#backToTop.back-to-top,
a#backToTop.back-to-top,
#backToTop.back-to-top {
    position: fixed !important;
    left: auto !important;
    top: auto !important;
    right: max(16px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgb(3, 122, 122) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    float: none !important;
    clear: none !important;
    z-index: 9050 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent;
    font: inherit !important;
    line-height: 1 !important;
    transform: translateZ(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

#backToTop.back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#backToTop.back-to-top:hover {
    background: rgba(3, 122, 122, 0.92) !important;
    color: #fff !important;
    transform: translate3d(0, -3px, 0) !important;
}

#backToTop.back-to-top.is-visible:hover {
    transform: translate3d(0, -3px, 0) !important;
}

#backToTop.back-to-top:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px !important;
}

#backToTop.back-to-top i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 480px) {
    button#backToTop.back-to-top,
    a#backToTop.back-to-top,
    #backToTop.back-to-top {
        right: max(12px, env(safe-area-inset-right, 0px)) !important;
        bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }
}

/* Improved Skeleton Loaders */
.skeleton-loader {
    background: linear-gradient(90deg, rgba(42, 42, 42, 0.5) 25%, rgba(42, 42, 42, 0.8) 50%, rgba(42, 42, 42, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Better Mobile Spacing */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 24px;
    }
    
    .checkout-progress {
        margin-bottom: 30px;
    }
    
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

/* ============================================
   COMPREHENSIVE UX IMPROVEMENTS
   ============================================ */

/* 1. ENHANCED BUTTON INTERACTIONS — scoped: avoid all <button> (breaks checkout .location-btn, drawers, etc.) */
.btn-primary,
.btn-secondary,
a.btn,
input[type="submit"],
input[type="button"],
.btn-shop-now-index {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active,
.btn-secondary:active,
a.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn-shop-now-index:active {
    transform: scale(0.98);
}

.btn-primary:disabled,
.btn-secondary:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Ripple — only primary/secondary pattern buttons */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after,
.btn-secondary:active::after {
    width: 300px;
    height: 300px;
}

/* 2. IMPROVED PRODUCT CARD INTERACTIONS */
#box,
.box {
    cursor: pointer;
    user-select: none;
}

#box:active,
.box:active {
    transform: translateY(-4px) scale(0.98);
}

/* Add visual feedback when clicking product cards */
#box:focus-visible,
.box:focus-visible {
    outline: 3px solid rgb(3, 122, 122);
    outline-offset: 4px;
    border-radius: 16px;
}

/* 3. ENHANCED FORM INPUT INTERACTIONS */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(3, 122, 122, 0.2),
                0 4px 12px rgba(3, 122, 122, 0.15);
}

/* Direct children / known wrappers only — avoids .phone-input-wrapper input (border lives on wrapper) */
.form-group > input:not(:placeholder-shown):valid,
.form-group > textarea:not(:placeholder-shown):valid,
.form-group > select:not([value=""]):valid,
.form-group > .form-field-wrapper > input:not(:placeholder-shown):valid {
    border-left: 4px solid #48bb78;
    padding-left: calc(16px - 4px);
}

.form-group > input:not(:placeholder-shown):invalid:not(:focus),
.form-group > textarea:not(:placeholder-shown):invalid:not(:focus),
.form-group > .form-field-wrapper > input:not(:placeholder-shown):invalid:not(:focus) {
    border-left: 4px solid #e53e3e;
    padding-left: calc(16px - 4px);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 4. SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(3, 122, 122, 0.5);
    border-radius: 5px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(3, 122, 122, 0.8);
}

/* 5. LOADING STATE IMPROVEMENTS */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(3, 122, 122, 0.2);
    border-top-color: rgb(3, 122, 122);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 6. IMPROVED LINK INTERACTIONS */
a:not(.btn):not(button) {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

/* Hover line removed per user request */

/* 7. BETTER FOCUS STATES FOR ACCESSIBILITY */
*:focus-visible {
    outline: 3px solid rgb(3, 122, 122);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(3, 122, 122);
    outline-offset: 2px;
}

/* 8. ENHANCED CART BADGE ANIMATION */
#badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#badge:empty {
    display: none;
}

/* 9. IMPROVED SEARCH EXPERIENCE */
#searchIconContainer:focus-visible {
    outline: 3px solid rgb(3, 122, 122);
    outline-offset: 4px;
    border-radius: 50%;
}

/* 10. BETTER MOBILE TOUCH TARGETS */
@media (max-width: 768px) {
    /* Ensure all interactive elements are at least 44x44px */
    button,
    a.btn,
    .btn-primary,
    .btn-secondary,
    input[type="submit"],
    input[type="button"],
    .btn-shop-now-index,
    #searchIconContainer,
    .cart-link,
    .mobile-menu-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve tap feedback on mobile */
    button:active,
    a.btn:active,
    .btn-primary:active,
    .btn-secondary:active {
        background-color: rgba(3, 122, 122, 0.8);
        transform: scale(0.95);
    }
    
    /* Better spacing for mobile */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Improve product card spacing on mobile */
    #box,
    .box {
        margin-bottom: 20px;
    }
}

/* 11. ENHANCED ERROR MESSAGES */
.error-message {
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid #e53e3e;
    padding-left: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 12. SUCCESS MESSAGE STYLES */
.success-message {
    background: rgba(72, 187, 120, 0.1);
    border: 2px solid #48bb78;
    border-left: 4px solid #48bb78;
    color: #48bb78;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.success-message i {
    font-size: 20px;
}

/* 13. IMPROVED NAVIGATION FEEDBACK */
#mainNav a {
    position: relative;
    transition: color 0.3s ease;
}

/* Hover line removed per user request */

/* 14. BETTER IMAGE LOADING STATES */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 15. ENHANCED CART DRAWER INTERACTIONS */
.cart-drawer-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-drawer-item:hover {
    background-color: rgba(42, 42, 42, 0.5);
    transform: translateX(4px);
}

/* 16. IMPROVED QUANTITY CONTROLS */
.quantity-controls button {
    transition: all 0.2s ease;
}

.quantity-controls button:active {
    transform: scale(0.9);
    background-color: rgba(3, 122, 122, 0.8);
}

/* 17. BETTER MODAL/DRAWER ANIMATIONS */
.mobile-drawer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

/* 18. ENHANCED PRODUCT IMAGE HOVER */
#box:hover img,
.box:hover img {
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 19. IMPROVED PRICE DISPLAY */
.product-price-display {
    font-weight: 700;
    color: rgb(3, 122, 122);
    transition: color 0.3s ease;
}

#box:hover .product-price-display,
.box:hover .product-price-display {
    color: #4dd0e1;
}

/* 20. BETTER EMPTY STATES */
.empty-state {
    padding: 80px 20px;
}

.empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 21. IMPROVED ACCESSIBILITY - REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 22. ENHANCED SEARCH RESULTS */
.search-results-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-results-item:hover {
    background-color: rgba(3, 122, 122, 0.1);
    transform: translateX(4px);
}

/* 23. BETTER FORM GROUP SPACING */
.form-group + .form-group {
    margin-top: 20px;
}

/* 24. IMPROVED BUTTON GROUPS */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-group button,
.button-group .btn {
    flex: 1;
    min-width: 120px;
}

/* 25. ENHANCED PRODUCT RATING DISPLAY */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-rating .stars {
    color: #ffc107;
}

/* 26. BETTER PAGE TRANSITIONS */
.page-transition {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 27. IMPROVED NOTIFICATION POSITIONING */
.toast-notification {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* 28. ENHANCED FILTER INTERACTIONS */
.filter-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-option:hover {
    background-color: rgba(3, 122, 122, 0.1);
    transform: translateX(4px);
}

.filter-option input[type="checkbox"]:checked + label {
    color: rgb(3, 122, 122);
    font-weight: 600;
}

/* 29. BETTER LOADING SKELETONS */
.skeleton-loader {
    border-radius: 8px;
    overflow: hidden;
}

/* 30. IMPROVED CONTRAST FOR READABILITY */
body {
    color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* Ensure sufficient contrast for all text */
p, span, div {
    color: #d0d0d0;
}

/* 31. ENHANCED MOBILE MENU */
.mobile-drawer .drawer-link {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 0;
}

.mobile-drawer .drawer-link:hover,
.mobile-drawer .drawer-link:focus-visible {
    background-color: rgba(3, 122, 122, 0.2);
    transform: translateX(4px);
}

/* 32. BETTER FORM LABELS */
.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

.form-group label .required-indicator {
    color: #e53e3e;
    font-weight: 700;
}

/* 33. IMPROVED CART ICON ANIMATION */
.cart-link:active {
    transform: scale(0.9);
}

/* 34. ENHANCED PRODUCT ACTIONS */
.action-container {
    transition: background-color 0.3s ease;
}

#box:hover .action-container,
.box:hover .action-container {
    background-color: rgba(3, 122, 122, 0.1);
}

/* 35. BETTER RESPONSIVE TYPOGRAPHY */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* 46. PROTECT WHATSAPP BUTTON PLACEMENT - Vertically centered */
.whatsapp-float {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 36. RIPPLE EFFECT FOR BUTTONS */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 37. SEARCH CLEAR BUTTON */
.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search-clear:focus-visible {
    outline: 2px solid rgb(3, 122, 122);
    outline-offset: 2px;
}

/* 38. ENHANCED LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(3, 122, 122, 0.2);
    border-top-color: rgb(3, 122, 122);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 39. IMPROVED PRODUCT CARD ACTIONS */
.btn-shop-now-index {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-shop-now-index:hover {
    background: linear-gradient(135deg, #4dd0e1, rgb(3, 122, 122));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 122, 122, 0.3);
}

.btn-shop-now-index:active {
    transform: translateY(0) scale(0.98);
}

.btn-shop-now-index:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 40. BETTER FLOATING LABELS (if needed) */
.form-group.floating-label {
    position: relative;
}

.form-group.floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    background: rgba(26, 26, 26, 0.9);
    padding: 0 4px;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    color: rgb(3, 122, 122);
}

/* 41. IMPROVED AUTO-RESIZE TEXTAREA */
textarea {
    resize: vertical;
    min-height: 100px;
    transition: height 0.2s ease;
}

/* 42. BETTER FOCUS TRAP FOR MODALS */
.modal:focus-within,
.mobile-drawer:focus-within {
    outline: none;
}

/* 43. ENHANCED TOUCH FEEDBACK */
@media (hover: none) and (pointer: coarse) {
    button:active,
    a.btn:active,
    .btn-primary:active,
    .btn-secondary:active {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* 44. IMPROVED CONTRAST FOR DISABLED STATES */
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* 45. BETTER VISUAL HIERARCHY FOR PRODUCTS */
.product-card-priority {
    position: relative;
}

.product-card-priority::after {
    content: 'Featured';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.3);
}
