/* ==========================================================================
   Premium "My Account" styling (dashboard, profile, billing/shipping,
   password, orders) - "Espresso Luxe" theme, built on the site's own
   brand color (#8d6700).
   ========================================================================== */

.account-hero {
    background: linear-gradient(135deg, #2b1d10, #4a341a);
    padding: 56px 20px;
    text-align: center;
}

.account-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.account-hero-eyebrow {
    color: #b9924a;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 600;
}

.account-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 34px;
    margin: 12px 0 0;
}

.account-hero-rule {
    width: 60px;
    height: 2px;
    background: #b9924a;
    margin: 18px auto;
}

.account-hero p {
    color: #d8c9a8;
    font-size: 14px;
    margin: 0;
}

/* Layout: sidebar card (col-md-3) + content card (col-md-9), pulled up to
   overlap the hero slightly for a premium "floating card" feel. */
.page.account-page {
    background: #f7f5f1;
    padding-top: 0;
}

.page.account-page .row {
    margin-top: -40px;
}

/* Sidebar nav card - replaces the old horizontal red button bar */
.user-sidebar {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(43, 29, 16, 0.10);
    overflow: hidden;
}

.user-sidebar ul {
    text-align: left;
    margin: 0;
    padding: 0;
}

.user-sidebar ul li {
    display: block;
    border-bottom: 1px solid #f2ede1;
    list-style: none;
}

.user-sidebar ul li:last-child {
    border-bottom: none;
}

.user-sidebar ul li a {
    display: block;
    padding: 0;
    background: none;
}

.user-sidebar ul li a button.btn {
    width: 100%;
    text-align: left;
    background: #fff;
    color: #5a4f39;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
}

.user-sidebar ul li a button.btn:hover,
.user-sidebar ul li a button.btn:focus {
    background: #faf6ee;
    color: #2c2113;
}

.user-sidebar ul li a.active button.btn {
    background: #faf6ee;
    color: #2c2113;
    font-weight: 600;
    border-left: 3px solid #8d6700;
}

/* Content card */
.account-page .user-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(43, 29, 16, 0.10);
    padding: 36px;
}

.account-page .user-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: #2c2113;
    margin-bottom: 24px;
}

/* Dashboard-only: account stat tiles + recent orders list */
.account-stat-grid {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.account-stat-box {
    flex: 1;
    min-width: 150px;
    background: #faf6ee;
    border: 1px solid #eee1c8;
    border-radius: 6px;
    padding: 22px;
    text-align: center;
}

.account-stat-box .account-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    color: #8d6700;
}

.account-stat-box .account-stat-lbl {
    font-size: 12px;
    color: #8a7c5f;
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.account-order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f2ede1;
    font-size: 13px;
    color: #5a4f39;
}

.account-order-line:last-child {
    border-bottom: none;
}

.account-badge {
    background: #2c2113;
    color: #f0e6d2;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.account-empty {
    color: #8a7c5f;
    font-size: 14px;
    padding: 10px 0;
}

@media only screen and (max-width: 991px) {
    .page.account-page .row {
        margin-top: -20px;
    }
    .user-sidebar {
        margin-bottom: 24px;
    }
    .account-hero h1 {
        font-size: 26px;
    }
}

/* ==========================================================================
   Premium form styling - Update Profile, Update Billing & Shipping,
   Update Password
   ========================================================================== */
.acc-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.acc-field {
    flex: 1;
    min-width: 220px;
}

.acc-field.full {
    flex-basis: 100%;
}

.acc-field label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 600;
    color: #8a7c5f;
    margin-bottom: 8px;
}

.acc-field input,
.acc-field select,
.acc-field textarea {
    width: 100%;
    border: 1px solid #e4dcc9;
    background: #faf8f3;
    border-radius: 4px;
    padding: 13px 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #2c2113;
}

.acc-field input:focus,
.acc-field select:focus,
.acc-field textarea:focus {
    outline: none;
    border-color: #8d6700;
    background: #fff;
}

.acc-field input:disabled {
    color: #a89a7c;
}

.acc-btn {
    background: #8d6700;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
}

.acc-btn:hover,
.acc-btn:focus {
    background: #74540099;
    color: #fff;
}

.acc-btn.outline {
    background: #fff;
    border: 1px solid #8d6700;
    color: #8d6700;
}

.two-col-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.two-col-form .col-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    color: #2c2113;
    border-bottom: 1px solid #f0e6cd;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.copy-btn {
    width: 100%;
    background: #faf6ee;
    border: 1px dashed #8d6700;
    color: #8d6700;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 20px;
}

.copy-btn:hover,
.copy-btn:focus {
    background: #f0e6cd;
    color: #6e5100;
}

/* ==========================================================================
   Order history cards
   ========================================================================== */
.order-card {
    border: 1px solid #eee1c8;
    border-radius: 6px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-card-top .oid {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    color: #2c2113;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-size: 13px;
    margin-bottom: 14px;
}

.order-meta-grid:last-child {
    margin-bottom: 0;
}

.order-meta-grid div span.lbl {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    color: #a89a7c;
    margin-bottom: 4px;
}

.order-meta-grid div span.val {
    color: #2c2113;
    font-weight: 500;
}

.order-meta-wide {
    grid-column: span 2;
}

@media only screen and (max-width: 900px) {
    .two-col-form,
    .order-meta-grid {
        grid-template-columns: 1fr;
    }
    .order-meta-wide {
        grid-column: span 1;
    }
}
