/* Account Page Specific Styles */
/* All header and mobile navigation styles are handled by main style.css file */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f8fafc;
}

.account-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e7edf4;
}

.account-header h1 {
    color: #0d141c;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.account-header p {
    color: #49739c;
    font-size: 16px;
    margin: 0;
}

/* Login Required Section */
.login-required {
    background: white;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7edf4;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #e7edf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #49739c;
    font-size: 32px;
}

.login-required h2 {
    color: #0d141c;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.login-required p {
    color: #49739c;
    font-size: 16px;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.login-btn {
    background: #0d80f2;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 128, 242, 0.3);
}

.login-btn:hover {
    background: #0c72d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 128, 242, 0.4);
}

/* Account Content Grid */
.account-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7edf4;
    height: fit-content;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf4;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0d80f2, #49739c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.profile-info h2 {
    color: #0d141c;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.profile-info p {
    color: #49739c;
    font-size: 14px;
    margin: 0;
}

.profile-details {
    space-y: 15px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    color: #0d141c;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.detail-value {
    color: #49739c;
    font-size: 14px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e7edf4;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.detail-value.editable {
    cursor: pointer;
    border: 1px solid transparent;
}

.detail-value.editable:hover {
    border-color: #0d80f2;
    background: white;
}

.detail-value.editing {
    background: white;
    border-color: #0d80f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 128, 242, 0.1);
}

.edit-btn, .save-btn, .cancel-btn {
    background: #e7edf4;
    color: #0d141c;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-right: 8px;
}

.edit-btn:hover {
    background: #d1d9e0;
}

.save-btn {
    background: #0d80f2;
    color: white;
}

.save-btn:hover {
    background: #0c72d4;
}

.cancel-btn {
    background: #ef4444;
    color: white;
}

.cancel-btn:hover {
    background: #dc2626;
}

/* Orders Section */
.orders-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7edf4;
}

.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf4;
}

.orders-header h2 {
    color: #0d141c;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.orders-count {
    background: #0d80f2;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.order-item {
    border: 1px solid #e7edf4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Empty State Styles */
.empty-orders {
    text-align: center;
    padding: 40px 20px;
    color: #49739c;
}

.empty-orders i.fa-shopping-bag {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cbd5e1;
    display: block;
}

.empty-orders h3 {
    color: #0d141c;
    margin: 20px 0 10px 0;
    font-size: 18px;
}

.empty-orders p {
    margin: 0 0 20px 0;
}

.shop-now-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: #0d80f2;
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1 !important;
    vertical-align: middle;
    margin: 0 auto;
    position: relative;
}

.shop-now-btn i {
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    width: 16px;
    height: 16px;
    position: relative;
    top: 0px;
}

.shop-now-btn i.fa-shopping-cart {
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    width: 16px;
    height: 16px;
    position: relative;
    top: 0px;
}

.shop-now-btn:hover {
    background: #0b6dd1;
    transform: translateY(-2px);
}

/* Address Section */
.address-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7edf4;
}

.address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf4;
    gap: 15px;
}

.address-header h2 {
    color: #0d141c;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.address-counter {
    background: #f8fafc;
    color: #49739c;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e7edf4;
    white-space: nowrap;
}

.add-address-btn {
    background: #0d80f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    line-height: 1 !important;
    vertical-align: middle;
}

.add-address-btn i {
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: top !important;
    width: 16px;
    height: 16px;
}

.add-address-btn:hover {
    background: #0c72d4;
}

.address-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.address-item.default {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.default-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.address-details h4 {
    margin: 0 0 12px 0;
    color: #0d141c;
    font-size: 18px;
}

.address-details p {
    margin: 6px 0;
    color: #49739c;
    display: flex;
    align-items: center;
}

.address-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.set-default-btn, .edit-address-btn, .delete-address-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.set-default-btn {
    background: #f3f4f6;
    color: #374151;
}

.set-default-btn:hover {
    background: #e5e7eb;
}

.edit-address-btn {
    background: #dbeafe;
    color: #1d4ed8;
}

.edit-address-btn:hover {
    background: #bfdbfe;
}

.delete-address-btn {
    background: #fef2f2;
    color: #dc2626;
}

.delete-address-btn:hover {
    background: #fee2e2;
}

/* Empty Addresses State */
.empty-addresses {
    text-align: center;
    padding: 40px 20px;
    color: #49739c;
}

.empty-addresses i.fa-map-marker-alt {
    font-size: 48px !important;
    margin-bottom: 20px;
    color: #cbd5e1;
    display: block;
}

.empty-addresses h3 {
    color: #0d141c;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.empty-addresses p {
    margin: 0 0 20px 0;
}

.empty-addresses .add-address-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto;
}

.empty-addresses .add-address-btn i {
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: 16px;
    height: 16px;
}

/* Address Modal Styles */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.address-modal.show {
    display: flex !important;
}

.address-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.address-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    padding-bottom: 16px;
}

.address-modal-header h3 {
    margin: 0;
    color: #0d141c;
    font-size: 20px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.close-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.address-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #0d80f2;
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 128, 242, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cancel-btn {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.save-btn {
    padding: 12px 24px;
    background: #0d80f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-btn:hover {
    background: #0b6dd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 128, 242, 0.3);
}

/* Logout Section */
.logout-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7edf4;
    text-align: center;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    
    .account-container {
        padding: 20px 16px;
    }

    .account-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .account-header h1 {
        font-size: 24px;
    }

    .account-header p {
        font-size: 14px;
    }

    .account-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-section {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

    .profile-info p {
        font-size: 13px;
    }

    .orders-section {
        padding: 20px;
    }

    .orders-header h2 {
        font-size: 18px;
    }

    .address-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .address-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .address-header h2 {
        font-size: 16px;
        flex: 0 0 auto;
        margin: 0;
    }

    .address-counter {
        font-size: 12px;
        padding: 6px 12px;
        flex: 0 0 auto;
        order: 2;
    }

    .add-address-btn {
        font-size: 12px;
        padding: 8px 16px;
        flex: 0 0 auto;
        order: 3;
    }

    .shop-now-btn {
        padding: 12px 20px;
        font-size: 14px;
        gap: 6px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto;
    }

    .shop-now-btn i {
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 14px;
        height: 14px;
        line-height: 1 !important;
        vertical-align: baseline !important;
        position: relative;
        top: 0px;
    }

    .shop-now-btn i.fa-shopping-cart {
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 14px;
        height: 14px;
        line-height: 1 !important;
        vertical-align: baseline !important;
        position: relative;
        top: 0px;
    }

    .add-address-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .add-address-btn i {
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 14px;
        height: 14px;
    }

    .address-item {
        padding: 15px;
    }

    .address-details h4 {
        font-size: 14px;
    }

    .address-details p {
        font-size: 13px;
    }

    .address-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logout-section {
        padding: 20px;
    }

    .logout-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .login-required {
        padding: 40px 20px;
    }

    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .login-required h2 {
        font-size: 20px;
    }

    .login-required p {
        font-size: 14px;
    }

    .login-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .search-container {
        display: none;
    }

    .mobile-search-container {
        display: none;
    }
    
    .account-container {
        padding: 15px 12px;
    }

    .account-header h1 {
        font-size: 20px;
    }

    .account-header p {
        font-size: 13px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profile-info h2 {
        font-size: 16px;
    }

    .orders-header h2, .address-header h2 {
        font-size: 16px;
    }

    .address-details h4 {
        font-size: 13px;
    }

    .address-details p {
        font-size: 12px;
    }

    .login-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .login-required h2 {
        font-size: 18px;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Hide elements initially */
.account-content {
    display: none;
}

.address-section {
    display: none;
}

.logout-section {
    display: none;
}

.login-required.hidden {
    display: none;
}
