/* My Account Page Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* My Account Section */
.my-account-section {
    background: #f8f9fa;
}

/* Account Sidebar */
.account-sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.account-user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #d4a843;
}

.user-name h5 {
    margin-bottom: 5px;
    font-weight: 700;
    color: #333;
}

.user-name small {
    font-size: 13px;
}

/* Account Navigation */
.account-navigation {
    display: flex;
    flex-direction: column;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    margin-bottom: 5px;
    font-weight: 500;
}

.account-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.account-nav-link:hover {
    background: #f8f9fa;
    color: #d4a843;
}

.account-nav-link.active {
    background: #d4a843;
    color: #fff;
}

.account-nav-link.active:hover {
    background: #c59732;
}

/* Account Content */
.account-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6; 
}

.section-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* Dashboard Welcome */
.dashboard-welcome {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.dashboard-welcome p {
    margin-bottom: 10px;
    color: #333;
}

.dashboard-welcome p:last-child {
    margin-bottom: 0;
}

/* Dashboard Stats */
.dashboard-stats .stat-card {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.dashboard-stats .stat-card:hover {
    border-color: #d4a843;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 168, 67, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
    color: #333;
}

.stat-info h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.orders-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.orders-table th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
}

.orders-table td {
    font-size: 14px;
    color: #666;
}

/* Order Status Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-completed {
    background: #d4edda;
    color: #155724;
}

.badge-processing {
    background: #d1ecf1;
    color: #0c5460;
}

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

.badge-on-hold {
    background: #f8d7da;
    color: #721c24;
}

.badge-cancelled,
.badge-failed {
    background: #f8d7da;
    color: #721c24;
}

.badge-refunded {
    background: #e2e3e5;
    color: #383d41;
}

/* View Button */
.btn-view {
    padding: 5px 15px;
    background: #d4a843;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 13px;
}

.btn-view:hover {
    background: #c59732;
    color: #fff;
}

/* WooCommerce Forms Override */
.woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-form-row input[type="text"],
.woocommerce-form-row input[type="email"],
.woocommerce-form-row input[type="password"],
.woocommerce-form-row input[type="tel"],
.woocommerce-form-row textarea,
.woocommerce-form-row select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce-form-row input:focus,
.woocommerce-form-row textarea:focus,
.woocommerce-form-row select:focus {
    outline: none;
    border-color: #d4a843;
}

.woocommerce-Button {
    padding: 12px 30px;
    background: #d4a843;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.woocommerce-Button:hover {
    background: #c59732;
}

/* ==========================================================================
   Account Auth — split-screen login/register, replaces the plain page-header
   + boxed-form treatment on /my-account/ for logged-out visitors. Real
   editorial photography (slider-1.webp, already used in the homepage hero)
   on one side; a tabbed login/register form on the other, driven by the
   sitewide button/input/notice language rather than one-off styling.
   ========================================================================== */

.account-auth {
    display: flex;
    flex-wrap: wrap;
    min-height: 640px;
}

.account-auth-media {
    flex: 1 1 42%;
    min-width: 320px;
    position: relative;
    background-size: cover;
    background-position: left center;
    display: flex;
    align-items: flex-end;
}

.account-auth-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.account-auth-media-content {
    position: relative;
    z-index: 1;
    padding: 60px;
    max-width: 480px;
}

.account-auth-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.account-auth-media .title-divider {
    margin: 0 0 20px;
}

.account-auth-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.account-auth-panel {
    flex: 1 1 58%;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    padding: 60px clamp(40px, 6vw, 100px);
}

.account-auth-panel-inner {
    width: 100%;
    max-width: 460px;
}

/* Tabs — segmented pill control; the "selected" gold tint mirrors the same
   pattern already used for a chosen payment method at checkout. */
.account-auth-tabs {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 30px;
    padding: 6px;
    margin-bottom: 40px;
}

.account-auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.account-auth-tab:hover {
    color: #333;
}

.account-auth-tab.is-active {
    background: #fff;
    color: #333;
    box-shadow: inset 0 0 0 2px #d4a843;
}

/* WooCommerce renders login + register as one .u-columns pair; the tabs
   above pick which one shows rather than duplicating the form markup. */
.account-auth-forms .u-columns {
    display: block;
}

/* WooCommerce's own woocommerce-layout.css floats these two columns side
   by side at ~48% each (.col2-set .col-1 { float:left; width:48% } / .col-2
   { float:right; width:48% }) — that's the real culprit shrinking the form
   to half width, not just the Bootstrap .col-1/.col-2 grid-class collision
   on top of it. Both are equal-specificity two-class selectors, so relying
   on stylesheet order to win was unreliable; !important settles it. */
.account-auth-forms .u-column1,
.account-auth-forms .u-column2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    flex: none;
    padding: 0;
}

.account-auth-forms h2 {
    display: none;
}

.account-auth-panel-inner.is-tab-login .u-column2,
.account-auth-panel-inner.is-tab-register .u-column1 {
    display: none;
}

.account-auth-forms .woocommerce-form-row {
    margin-bottom: 22px;
}

.account-auth-forms p:not(.woocommerce-form-row):not(.form-row) {
    font-size: 13px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 22px;
}

.account-auth-forms .woocommerce-privacy-policy-text a,
.account-auth-forms p a {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.account-auth-forms .woocommerce-privacy-policy-text a:hover,
.account-auth-forms p a:hover {
    color: #d4a843;
}

/* WooCommerce isn't consistent about casing here — form-login.php's button
   is "woocommerce-button" (lowercase), form-register/lost-password/reset-
   password use "woocommerce-Button" (capital B) — CSS classes are case
   sensitive, so both are listed rather than relying on one matching all. */
.account-auth-forms .woocommerce-button,
.account-auth-forms .woocommerce-Button,
.account-auth-forms .woocommerce-form-login__submit,
.account-auth-forms .woocommerce-form-register__submit {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: transparent;
    color: #333;
    border: 1.5px solid #333;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.account-auth-forms .woocommerce-button:hover,
.account-auth-forms .woocommerce-Button:hover,
.account-auth-forms .woocommerce-form-login__submit:hover,
.account-auth-forms .woocommerce-form-register__submit:hover {
    background: #333;
    color: #fff;
}

/* Scoped to bare submit/remember-me rows only — WooCommerce stamps "form-row"
   (alongside "form-row-wide" on login/register fields, or "form-row-first"/
   "form-row-last" on the lost/reset-password fields) on every labeled field
   row too, so an unqualified .form-row rule here would flex those as well
   and shove each label to the right of its own input. */
.account-auth-forms .form-row:not(.form-row-wide):not(.form-row-first):not(.form-row-last) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.account-auth-forms .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.account-auth-forms .woocommerce-form-login__rememberme input {
    accent-color: #d4a843;
    cursor: pointer;
}

.account-auth-forms .lost_password {
    margin-top: 20px;
    text-align: center;
}

.account-auth-forms .lost_password a {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.account-auth-forms .lost_password a:hover {
    color: #d4a843;
}

.account-auth-forms .woocommerce-form-register__submit {
    margin-top: 8px;
}

@media (max-width: 991px) {
    .account-auth-media {
        min-height: 320px;
    }

    .account-auth-media-content,
    .account-auth-panel {
        padding: 40px;
    }
}

@media (max-width: 575px) {
    .account-auth-media-content,
    .account-auth-panel {
        padding: 30px 24px;
    }

    .account-auth-title {
        font-size: 30px;
        letter-spacing: 2px;
    }
}

/* Addresses */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.address-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.address-box:hover {
    border-color: #d4a843;
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.1);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.woocommerce-Address-title h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.edit-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: #d4a843;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s;
}

.edit-address-btn:hover {
    background: #c59732;
    color: #fff;
}

.woocommerce-Address address {
    margin: 0;
    line-height: 1.8;
    color: #666;
    font-style: normal;
}

/* Order Details Wrapper */
.order-details-wrapper,
.customer-details-wrapper,
.order-notes-wrapper {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

/* Order Info Summary */
.order-info-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
}

.order-info-summary mark {
    background: transparent;
    font-weight: 700;
    color: #333;
}

.order-number {
    font-size: 18px;
}

/* Customer Detail Section */
.customer-detail-section {
    margin-bottom: 20px;
}

.customer-detail-section h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.customer-detail-section address {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
    font-style: normal;
}

.customer-detail-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Order Notes */
.woocommerce-OrderUpdates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-OrderUpdate {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.woocommerce-OrderUpdate-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.woocommerce-OrderUpdate-description {
    color: #666;
    font-size: 14px;
}

.woocommerce-OrderUpdate-description p {
    margin-bottom: 0;
}

/* Order Details Item */
.woocommerce-table__product-name {
    width: 70%;
}

.woocommerce-table__product-table {
    width: 30%;
    text-align: right;
}

.woocommerce-table__product-name .product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-table__product-name img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.woocommerce-table__product-name strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.woocommerce-table__product-name .variation {
    font-size: 13px;
    color: #666;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}

.woocommerce-pagination .woocommerce-Button {
    margin: 0 5px;
}

/* Messages */
.woocommerce-message {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #0f5132;
}

.woocommerce-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #333;
}

.woocommerce-message p,
.woocommerce-info p {
    margin-bottom: 10px;
}

.woocommerce-message .button,
.woocommerce-info .button {
    display: inline-block;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .account-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .account-content {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .dashboard-stats {
        margin-bottom: 30px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .orders-table {
        font-size: 12px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px 5px;
    }
    
    .account-content {
        padding: 20px;
    }
}

/* Validation Errors */
.woocommerce-form-row.woocommerce-invalid .form-control {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.woocommerce-form-row.woocommerce-invalid label {
    color: #dc3545;
}
.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.woocommerce-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Edit Address Form */
.edit-address-wrapper {
    background: #fff;
    padding: 0;
}

/* WooCommerce Form Field Wrapper */
.edit-address-form .form-row {
    margin-bottom: 20px;
    padding: 0;
}

.edit-address-form .form-row.col-md-6 {
    padding-right: 10px;
    padding-left: 10px;
}

.edit-address-form .row {
    margin-left: -10px;
    margin-right: -10px;
}

/* Labels */
.edit-address-form label,
.edit-address-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* All Input Fields */
.edit-address-form input[type="text"],
.edit-address-form input[type="email"],
.edit-address-form input[type="tel"],
.edit-address-form input[type="number"],
.edit-address-form textarea,
.edit-address-form select,
.edit-address-form .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    line-height: 1.5;
}

/* Focus States */
.edit-address-form input:focus,
.edit-address-form textarea:focus,
.edit-address-form select:focus {
    outline: none;
    border-color: #d4a843;
    box-shadow: 0 0 0 0.2rem rgba(212, 168, 67, 0.15);
}

/* Select Dropdown with Custom Arrow */
.edit-address-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* Remove extra spacing from WooCommerce */
.edit-address-form .form-row p {
    margin: 0;
}

/* Optional text */
.edit-address-form .optional {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

/* Required asterisk */
.edit-address-form .required {
    color: #dc3545;
    margin-left: 3px;
}

/* Save Button */
.btn-save-address {
    padding: 12px 40px;
    background: #d4a843;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save-address:hover {
    background: #c59732;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

/* Form Actions */
.form-actions {
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

/* Validation Errors */
.edit-address-form .woocommerce-invalid input,
.edit-address-form .woocommerce-invalid select,
.edit-address-form .woocommerce-invalid textarea,
.edit-address-form .woocommerce-invalid-required-field input,
.edit-address-form .woocommerce-invalid-required-field select {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

.edit-address-form .woocommerce-invalid label {
    color: #dc3545;
}

/* Help/Description Text */
.edit-address-form .description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 767px) {
    .edit-address-form .form-row.col-md-6 {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .btn-save-address {
        width: 100%;
        padding: 14px 20px;
    }
}
