/* E-Commerce Components Styles */

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    z-index: 99999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}


.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.cart-sidebar.active {
    right: 0;
}

.cart-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    z-index: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100000;
    transition: opacity 0.2s ease;
}

.cart-close:hover {
    opacity: 0.7;
}

.cart-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-name {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: white;
}

.cart-item-price {
    font-size: 14px;
    color: var(--accent);
    margin: 0 0 10px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    color: white;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-subtotal {
    color: white;
    font-weight: 600;
    margin: 0;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-checkout:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    position: relative;
    font-size: 24px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10011;
}

.auth-modal .modal-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal .modal-body {
    padding: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.auth-link a {
    color: var(--accent);
    text-decoration: none;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 8px;
    padding: 15px 20px;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-warning {
    border-left: 4px solid #ff9800;
}

.notification-info {
    border-left: 4px solid var(--accent);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-icon {
    font-size: 20px;
}

.notification-message {
    color: white;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkout Page */
.checkout-page {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: #0a0a0a;
}

.checkout-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.checkout-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    margin: 0 0 10px 0;
    color: white;
}

.checkout-item-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.checkout-item-price {
    color: var(--accent) !important;
    font-weight: 600;
}

.checkout-item-total {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

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

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-indicator {
    position: relative;
    z-index: 1;
    background: #0a0a0a;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.step-indicator.active {
    color: white;
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.step-indicator.completed {
    color: var(--accent);
    border-color: var(--accent);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-step {
    display: none;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    padding: 30px;
}

.checkout-step.active {
    display: block;
}

.checkout-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.checkout-sidebar {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.coupon-section {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.coupon-section input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
}

.coupon-section button {
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Account Page */
.account-page {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: #0a0a0a;
}

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

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.account-tab.active {
    color: white;
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    padding: 30px;
}

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

/* Order History */
.order-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-shipped {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-delivered {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.order-items-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.order-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item-preview img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

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

.view-order-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Wishlist */
.wishlist-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.wishlist-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.wishlist-item > div {
    flex: 1;
}

.btn-remove-wishlist {
    padding: 8px 20px;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 6px;
    cursor: pointer;
}

/* Order Success */
.order-success-page {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.success-container {
    text-align: center;
    max-width: 600px;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 30px;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Search Bar */
.search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10015;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-bar.active {
    transform: translateY(0);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.search-container input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.search-close {
    padding: 15px 25px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Product Controls */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #1a1a1a;
    min-width: 250px;
}

.search-input::placeholder {
    color: #666;
}

.sort-select {
    padding: 10px 15px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #1a1a1a;
    cursor: pointer;
}

.sort-select option {
    background: white;
    color: #1a1a1a;
}

/* Wishlist Button on Products */
.collection-thumbnail {
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #f44336;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    color: #1a1a1a;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select option {
    background: white;
    color: #1a1a1a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-primary {
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-outline {
    padding: 12px 30px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

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

/* Guest Checkout Notice */
.guest-checkout-notice {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.guest-checkout-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.guest-checkout-notice a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.guest-checkout-notice a:hover {
    text-decoration: underline;
}

.required {
    color: #f44336;
}

/* Address Item */
.address-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.default-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 10px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 32px;
    text-align: center;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 16px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.demo-accounts {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.demo-accounts p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 10px;
    }
    
.account-tabs {
    flex-wrap: wrap;
}

/* Account Dashboard */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 32px;
    color: var(--accent);
    margin: 0 0 10px 0;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 14px;
}

.recent-orders-section {
    margin-top: 40px;
}

.recent-orders-section h3 {
    margin-bottom: 20px;
    color: white;
}

/* Order Filters */
.orders-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-orders a {
    color: var(--accent);
    text-decoration: none;
}

.no-orders a:hover {
    text-decoration: underline;
}

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .products-filters {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Anchor offset for smooth scrolling */
section[id],
.hero,
.collections,
.featured,
.contact,
.account-page,
.order-success-page {
    scroll-margin-top: 120px;
}

/* Role badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Admin dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.stat-card.admin {
    background: linear-gradient(145deg, rgba(0,212,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.admin-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.admin-panel .panel-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.admin-table {
    width: 100%;
    display: grid;
    gap: 6px;
}

.admin-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr 1fr 0.8fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table-head {
    background: rgba(0, 212, 255, 0.1);
    font-weight: 700;
    color: #00D4FF;
}

.admin-table-row select,
.admin-table-row span {
    font-size: 14px;
}

.admin-table-row input.inventory-input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

.order-status-select {
    width: 100%;
    padding: 8px;
    background: white;
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.order-status-select option {
    background: white;
    color: #1a1a1a;
}

.admin-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-user-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.role-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

@media (max-width: 768px) {
    .admin-table-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "order customer"
            "total status"
            "updated updated";
    }
    .admin-table-head {
        display: none;
    }
    .admin-table-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Checkout admin block */
.checkout-blocked {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}
.checkout-blocked p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
}

/* Admin inquiries */
.admin-inquiries {
    display: grid;
    gap: 12px;
}

.inquiry-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.inquiry-header h4 {
    margin: 0;
    color: #fff;
}

.inquiry-date {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.inquiry-meta {
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.inquiry-subject {
    margin: 0;
    color: #00D4FF;
}

.inquiry-message {
    margin: 0;
    color: rgba(255,255,255,0.8);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.analytics-card {
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(0,212,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.analytics-card p {
    margin: 0 0 6px 0;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

.analytics-card h3 {
    margin: 0;
    color: #fff;
}

.analytics-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.analytics-list h4 {
    margin: 0 0 4px 0;
    color: #00D4FF;
}

.analytics-row {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* User Name Styling with Avatar */
.user-name-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #00D4FF !important;
    font-size: 12px !important;
    font-weight: 500;
    pointer-events: auto;
}

.user-name-link:hover {
    opacity: 1;
    color: #00D4FF !important;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    border: 2px solid #00D4FF;
    color: #00D4FF;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-name-text {
    color: #00D4FF;
    font-size: 12px;
    font-weight: 500;
}

/* ===== GLOBAL DROPDOWN/SELECT STYLES ===== */

/* Ensure all select dropdowns have readable white background and black text */
select {
    background: white;
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

select option {
    background: white;
    color: #1a1a1a;
    padding: 8px;
}

/* ===== ACCESSIBILITY & FOCUS STATES ===== */

/* Global focus styles for better keyboard navigation */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.tab-btn:focus,
.filter-btn:focus,
.collection-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Improve button focus states */
.btn-primary:focus,
.btn-outline:focus,
.btn-checkout:focus,
.btn-add-to-cart:focus,
.btn-buy-now:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

/* Modal close button focus */
.modal-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Tab and filter button focus */
.tab-btn:focus,
.filter-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background: rgba(0, 212, 255, 0.1);
}

/* Product card focus state */
.collection-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    transform: translateY(-8px);
}

/* Input focus improvements */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Cart item button focus */
.qty-btn:focus,
.cart-item-remove:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== IMPROVED COLOR CONTRAST (WCAG AA Compliant) ===== */

/* Improve text contrast - minimum 4.5:1 ratio */
.card-subtitle,
.cart-item-price,
.order-date,
.summary-row span {
    color: rgba(255, 255, 255, 0.85); /* Improved from 0.6-0.7 */
}

/* Secondary text with better contrast */
.section-subtitle,
.modal-subtitle,
.checkout-item-info p {
    color: rgba(255, 255, 255, 0.8); /* Improved from 0.6 */
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* Disabled state with clear visual indication */
button:disabled,
input:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== LOADING STATES ===== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Button loading state */
button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===== SKIP TO CONTENT LINK ===== */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== IMPROVED TOUCH TARGETS (44x44px minimum) ===== */

@media (max-width: 768px) {
    button,
    .nav-icon,
    .cart-close,
    .modal-close,
    .qty-btn,
    .tab-btn,
    .filter-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .collection-card {
        min-height: 44px;
    }
}

/* ===== ERROR STATES ===== */

.error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2) !important;
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠';
}

.success-message {
    color: #4caf50;
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message::before {
    content: '✓';
}

/* ===== FORM VALIDATION STYLES ===== */

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

/* ===== SECTION DIVIDERS ===== */

/* Add grey divider lines between main page sections */
/* Apply to all sections except the first one (hero) and hidden sections */
main > section:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Ensure hero section doesn't have a divider at the top */
main > section.hero,
main > section#home {
    border-top: none;
}

/* Hidden sections shouldn't show dividers (they're not visible anyway) */
main > section[style*="display: none"] {
    border-top: none;
}

/* ===== SCREEN READER ONLY TEXT ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== REDUCED MOTION SUPPORT ===== */

@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;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
    /* Improve tap targets */
    .nav-link {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Product cards touch optimization */
    .collection-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
        touch-action: manipulation;
    }
    
    /* Modal improvements for mobile */
    .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Cart sidebar mobile */
    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
    
    /* Form inputs mobile */
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Button spacing */
    button {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Product grid mobile */
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .user-name-text {
        font-size: 11px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .modal-content {
        max-width: 80vw;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

