/* ======================= */
/* PROFILE PAGE - HOMEPAGE ALIGNED */
/* ======================= */

/* Import homepage color palette and variables */
:root {
    --primary-dark: #1a1a1a;
    --primary-gold: #b38b59;
    --primary-gold-dark: #9c7a4d;
    --off-white: #FBFBF8;
    --cream-bg: #F4F0EB;
    --light-gray: #f0f0f0;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --content-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-dark);
    margin: 0;
}

.page-wrapper {
    background-color: var(--off-white);
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ======================= */
/* HEADER SECTION - MATCH HOMEPAGE */
/* ======================= */
.main-header {
    background: var(--off-white);
    border-bottom: 1px solid #eee;
}

.brand-bar {
    padding: 25px 0;
    text-align: center;
}

.brand-bar .logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    display: inline-block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-top: 1px solid #eee;
}

.nav-links, .nav-icons {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    font-weight: 500;
    border-bottom: 2px solid var(--text-dark);
}

.nav-icons .icon-link {
    color: var(--text-dark);
}

.nav-icons .icon-link.active {
    color: var(--primary-gold);
}

/* ======================= */
/* SECTION STYLES - MATCH HOMEPAGE */
/* ======================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-gold);
    border-radius: 2px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-wrapper p {
    margin-top: 15px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.hero-section {
    padding: 80px 0 60px 0;
    background: var(--off-white);
}

.profile-content-section {
    padding: 0 0 80px 0;
    background: var(--off-white);
}

/* ======================= */
/* BUTTON STYLES - MATCH HOMEPAGE */
/* ======================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #D0D0D0;
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: #FFFFFF;
    border-color: var(--text-dark);
}

/* ======================= */
/* PROFILE CARD STYLES */
/* ======================= */
.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    color: white;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(179, 139, 89, 0.3);
    flex-shrink: 0;
}

.profile-info h2.greeting {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.profile-subtitle {
    color: #666;
    font-size: 1rem;
}

.profile-details {
    background: var(--cream-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.info-label {
    font-weight: 500;
    color: #666;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center; /* Center the remaining buttons */
}

.profile-actions .btn {
    min-height: 48px; /* Ensure good touch target size */
    position: relative;
    z-index: 1; /* Ensure buttons are above any overlays */
}

/* ======================= */
/* ORDERS CARD STYLES */
/* ======================= */
.orders-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    border: 1px solid #eee;
}

.orders-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.orders-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.orders-title::before {
    content: '📦';
    font-size: 1.5rem;
}

.order-card {
    background: var(--cream-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 20px rgba(179, 139, 89, 0.2);
    transform: translateY(-2px);
}

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

.order-id {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-id strong {
    font-weight: 600;
    color: var(--text-dark);
}

.order-date {
    font-size: 0.9rem;
    color: #666;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.order-details {
    margin-bottom: 20px;
}

.delivery-info {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.order-items {
    margin: 15px 0;
}

.order-items ul {
    list-style: none;
    padding: 0;
}

.order-items li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-top: 15px;
}

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

.btn-view {
    padding: 10px 20px;
    background: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.no-orders {
    text-align: center;
    padding: 60px 40px;
    color: #666;
}

.no-orders p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.loading-orders {
    text-align: center;
    padding: 60px 40px;
    color: #666;
    font-size: 1.1rem;
}

/* ======================= */
/* FOOTER - MATCH HOMEPAGE */
/* ======================= */
.main-footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col a {
    display: block;
    color: #ccc;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-gold);
}

#footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
}

#footer-brand p {
    color: #ccc;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    color: var(--text-light);
    padding: 12px 15px;
    border-radius: 25px 0 0 25px;
}

.subscribe-form input::placeholder {
    color: #aaa;
}

.subscribe-form button {
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: var(--primary-gold-dark);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* ======================= */
/* PROFILE PAGE SPECIFIC - HIDE HAMBURGER ON MOBILE */
/* ======================= */
@media (max-width: 992px) {
    .profile-page .burger-menu-wrapper {
        display: none !important;
    }
    
    .profile-page .mobile-controls {
        justify-content: center;
    }
    
    /* Hide navigation list on mobile for profile page */
    .profile-page .profile-nav-hidden {
        display: none !important;
    }
}

/* ======================= */
/* RESPONSIVE DESIGN */
/* ======================= */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links, .nav-icons {
        gap: 20px;
    }
}
/* Update Profile Form Styles */
.update-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.update-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.update-form .form-group {
    margin-bottom: 15px;
}

.update-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.update-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.update-form input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(179, 139, 89, 0.1);
}

.update-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.update-form .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.update-form .btn-primary {
    background: var(--primary-gold);
    color: white;
}

.update-form .btn-primary:hover {
    background: var(--primary-gold-dark);
}

.update-form .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.update-form .btn-secondary {
    background: #6c757d;
    color: white;
}

.update-form .btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .update-form .form-actions {
        flex-direction: column;
    }
    
    .update-form .btn {
        width: 100%;
    }
}


/* ======================= */
/* ENHANCED ORDER HISTORY STYLES */
/* ======================= */

.order-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cream-bg);
}

.order-id-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.order-id {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: monospace;
}

.order-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed,
.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    margin-bottom: 15px;
}

.order-date {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--cream-bg);
    border-radius: 4px;
    font-size: 0.95rem;
}

.order-items-section {
    margin: 15px 0;
}

.order-items-section h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 600;
}

.order-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
    align-items: center;
}

.item-name {
    font-weight: 500;
    color: var(--primary-dark);
}

.item-details {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.item-total {
    font-weight: 600;
    color: var(--primary-gold);
    text-align: right;
}

.no-items {
    color: #999;
    font-style: italic;
    padding: 10px;
}

.order-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--cream-bg);
    border-radius: 4px;
    margin-top: 15px;
    font-size: 1.1rem;
}

.order-total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.order-customer {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.order-customer h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 600;
}

.order-customer p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #555;
}

.order-customer strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-item-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .item-details,
    .item-total {
        text-align: left;
    }
    
    .order-total-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
