/* ============================================
   MY ACCOUNT - MASTER STYLESHEET
   ============================================
   All my-account page styles consolidated here
   with reusable utility classes
   ============================================ */

/* ==========================================
   SECTION: UTILITY & BASE CLASSES
   ========================================== */

/* ---- Badge System ----
   Reusable badge classes for status display */
.badge-base {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- Payment Status Badges ---- */
.badge-payment-pending {
    background: #fff3cd;
    color: #856404;
}
.badge-payment-paid {
    background: #d4edda;
    color: #155724;
}
.badge-payment-failed {
    background: #f8d7da;
    color: #721c24;
}
.badge-payment-refunded {
    background: #e2e3e5;
    color: #383d41;
}

/* ---- Order Status Badges ---- */
.badge-order-pending {
    background: #fff3cd;
    color: #856404;
}
.badge-order-processing {
    background: #cce5ff;
    color: #004085;
}
.badge-order-shipped {
    background: #fdebd0;
    color: #784212;
}
.badge-order-delivered {
    background: #d4edda;
    color: #155724;
}
.badge-order-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ---- Action Buttons ----
   Reusable primary & secondary action buttons */
.btn-action-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #e57661;
    border: 1.5px solid #e57661;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-action-primary:hover {
    background: #e57661;
    color: #fff;
}
.btn-action-primary svg {
    stroke-width: 2.5;
}

.btn-action-full {
    width: 100%;
    justify-content: center;
}

.btn-action-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e57661;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}
.btn-action-track:hover {
    opacity: 0.9;
}

.btn-action-return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-action-return:hover {
    border-color: #e57661;
    color: #e57661;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #faf8f7;
    color: #666;
    border: 1px solid #ede8e6;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-view-all:hover {
    background: #e57661;
    color: #fff;
    border-color: #e57661;
}
.btn-view-all:hover svg {
    stroke: #fff;
}

.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e57661;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

/* ---- Product Image Grid ----
   Reusable product image display system */
.product-images-grid {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-image-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ede8e6;
    flex-shrink: 0;
    position: relative;
}
.product-image-wrapper.small {
    width: 45px;
    height: 45px;
}
.product-image-wrapper.large {
    width: 60px;
    height: 60px;
}
.product-image-wrapper.mobile-small {
    width: 48px;
    height: 48px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}
.product-image-overlay.large-text {
    font-size: 14px;
}

/* ---- Section Headers ----
   Reusable section title and header styles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.section-title.large {
    font-size: 20px;
}

.section-count {
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px 12px;
}

/* ---- Table Styles ----
   Reusable table styles for order listings */
.table-wrap {
    border: 1px solid #ede8e6;
    border-radius: 12px;
    overflow: hidden;
}

.table-base {
    width: 100%;
    border-collapse: collapse;
}
.table-base thead tr {
    background: #faf8f7;
    border-bottom: 1px solid #ede8e6;
}
.table-base thead th {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-align: left;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.table-base tbody tr {
    border-bottom: 1px solid #f4efed;
    transition: background 0.15s;
}
.table-base tbody tr:last-child {
    border-bottom: none;
}
.table-base tbody tr:hover {
    background: #fdf9f8;
}
.table-base tbody td {
    padding: 16px 18px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* ---- Mobile Cards ----
   Reusable mobile card layout */
.mobile-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mobile-card {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mobile-card-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.mobile-card-date {
    display: block;
    font-size: 12px;
    color: #999;
}

.mobile-card-total {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.mobile-card-products {
    display: flex;
    gap: 6px;
    padding: 4px 0;
}

.mobile-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-card-action {
    padding-top: 4px;
    border-top: 1px solid #f4efed;
}

/* ---- Empty State ---- */
.empty-state {
    border: 1.5px dashed #e2d9d6;
    border-radius: 14px;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fdf0ee;
    border-radius: 50%;
    margin: 0 auto 18px;
    color: #e57661;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.empty-state-sub {
    font-size: 13px;
    color: #999;
    margin: 0 0 22px;
}

/* ---- Pagination ---- */
.pagination-wrap {
    margin-top: 28px;
}

/* ---- Text Utilities ---- */
.text-order-number {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}
.text-order-date {
    color: #777;
    font-size: 13px;
}
.text-order-total {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 768px) {
    .table-wrap {
        display: none;
    }
    .mobile-list {
        display: flex;
    }
    .section-title.large {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 40px 16px;
    }
    .empty-state-icon {
        width: 64px;
        height: 64px;
    }
    .product-image-wrapper {
        width: 38px;
        height: 38px;
    }
    .product-image-wrapper.large {
        width: 50px;
        height: 50px;
    }
    .product-image-wrapper.mobile-small {
        width: 48px;
        height: 48px;
    }
    .btn-view-all {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    .mobile-card {
        padding: 14px;
    }
    .mobile-card-number {
        font-size: 13px;
    }
    .mobile-card-total {
        font-size: 13px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   SECTION: DASHBOARD SPECIFIC STYLES
   ========================================== */

/* ---- Dashboard Wrapper ---- */
.dash-wrapper {
    padding: 8px 0;
}

/* ---- Welcome Section ---- */
.dash-welcome {
    margin-bottom: 32px;
}

.dash-welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.dash-welcome-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.dash-link {
    color: #e57661;
    text-decoration: none;
    font-weight: 500;
}

/* ---- Stats Grid ---- */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.dash-stat-card {
    background: #fafafa;
    border: 1px solid #f0ebe9;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    background: #fdf0ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e57661;
    flex-shrink: 0;
}

.dash-stat-info {
    flex: 1;
    min-width: 0;
}

.dash-stat-number {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ---- Recent Orders Section ---- */
.dash-recent-orders {
    margin-top: 8px;
}

.dash-section-footer {
    text-align: center;
    margin-top: 20px;
}

/* ---- Dashboard Responsive ---- */
@media (max-width: 992px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-welcome-title {
        font-size: 18px;
    }
    .dash-welcome-text {
        font-size: 13px;
    }
    .dash-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dash-stat-card {
        padding: 16px 18px;
    }
    .dash-stat-number {
        font-size: 20px;
    }
    .dash-section-footer {
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .dash-wrapper {
        padding: 4px 0;
    }
    .dash-welcome {
        margin-bottom: 24px;
    }
    .dash-welcome-title {
        font-size: 16px;
    }
    .dash-stat-number {
        font-size: 18px;
    }
    .dash-stat-icon {
        width: 40px;
        height: 40px;
    }
    .dash-stat-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   SECTION: ORDERS PAGE SPECIFIC STYLES
   ========================================== */

/* ---- Orders Page Wrapper ---- */
.ord-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.ord-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ---- Orders Pagination ---- */
.ord-pagination {
    margin-top: 28px;
}

/* ---- Orders Responsive ---- */
@media (max-width: 768px) {
    .ord-page-title {
        font-size: 17px;
    }
}

/* ==========================================
   SECTION: ORDER DETAIL PAGE SPECIFIC STYLES
   ========================================== */

/* ---- Order Detail Wrapper ---- */
.ord-detail-wrapper {
    padding: 8px 0;
}

/* ---- Order Detail Header ---- */
.ord-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.ord-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.ord-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #e57661;
    border: 1.5px solid #e57661;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.ord-detail-back:hover {
    background: #e57661;
    color: #fff;
}

/* ---- Order Info Card ---- */
.ord-detail-info {
    background: #fafafa;
    border: 1px solid #f0ebe9;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ord-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ord-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ord-detail-info-label {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ord-detail-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ---- Order Detail Actions ---- */
.ord-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ---- Order Detail Main Layout ---- */
.ord-detail-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* ---- Order Detail Items ---- */
.ord-detail-items {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    overflow: hidden;
}

.ord-detail-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f4efed;
}

.ord-detail-items-count {
    font-size: 12px;
    color: #999;
}

.ord-detail-table-wrap {
    overflow-x: auto;
}

.ord-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.ord-detail-table thead tr {
    background: #faf8f7;
    border-bottom: 1px solid #ede8e6;
}
.ord-detail-table thead th {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.ord-detail-table tbody tr {
    border-bottom: 1px solid #f4efed;
}
.ord-detail-table tbody tr:last-child {
    border-bottom: none;
}
.ord-detail-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* ---- Order Detail Product Info ---- */
.ord-detail-product {
    min-width: 200px;
}

.ord-detail-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ord-detail-product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ord-detail-product-name {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}
.ord-detail-product-name:hover {
    color: #e57661;
}

.ord-detail-product-variant {
    font-size: 12px;
    color: #999;
}

/* ---- Order Detail Sidebar ---- */
.ord-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Order Detail Summary ---- */
.ord-detail-summary {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 20px;
}
.ord-detail-summary .section-title {
    padding-bottom: 14px;
    border-bottom: 1px solid #f4efed;
    margin-bottom: 14px;
}

.ord-detail-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.ord-detail-summary-total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #f4efed;
    font-size: 15px;
}
.ord-detail-summary-total span {
    color: #1a1a1a;
}

/* ---- Order Detail Address ---- */
.ord-detail-address {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 20px;
}
.ord-detail-address .section-title {
    padding-bottom: 14px;
    border-bottom: 1px solid #f4efed;
    margin-bottom: 14px;
}

.ord-detail-address-content {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}
.ord-detail-address-content p {
    margin: 0;
}

.ord-detail-address-name {
    font-weight: 600;
    color: #1a1a1a;
}

.ord-detail-address-phone,
.ord-detail-address-email {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}
.ord-detail-address-phone svg,
.ord-detail-address-email svg {
    color: #e57661;
    flex-shrink: 0;
}

/* ---- Order Detail Responsive ---- */
@media (max-width: 992px) {
    .ord-detail-main {
        grid-template-columns: 1fr;
    }
    .ord-detail-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ord-detail-title {
        font-size: 17px;
    }
    .ord-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ord-detail-info {
        padding: 16px 18px;
    }
    .ord-detail-info-value {
        font-size: 13px;
    }
    .ord-detail-actions {
        flex-direction: column;
    }
    .ord-detail-btn-track,
    .ord-detail-btn-return {
        width: 100%;
        justify-content: center;
    }
    .ord-detail-sidebar {
        grid-template-columns: 1fr;
    }
    .ord-detail-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ord-detail-table thead th,
    .ord-detail-table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }
    .ord-detail-product {
        min-width: 160px;
    }
    .ord-detail-product-image,
    .ord-detail-product-placeholder {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .ord-detail-wrapper {
        padding: 4px 0;
    }
    .ord-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ord-detail-back {
        width: 100%;
        justify-content: center;
    }
    .ord-detail-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .ord-detail-info-item {
        gap: 2px;
    }
    .ord-detail-info-label {
        font-size: 10px;
    }
    .ord-detail-info-value {
        font-size: 12px;
    }
    .ord-detail-summary,
    .ord-detail-address {
        padding: 16px;
    }
    .ord-detail-product-image,
    .ord-detail-product-placeholder {
        width: 36px;
        height: 36px;
    }
    .ord-detail-product-name {
        font-size: 12px;
    }
}
/* ==========================================
   SECTION: ADDRESS PAGE STYLES
   ========================================== */

.addr-wrapper {
    padding: 8px 0;
}

.addr-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.addr-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.addr-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e57661;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.addr-form-card {
    background: #fafafa;
    border: 1px solid #f0ebe9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.addr-edit-form {
    margin-top: 20px;
    margin-bottom: 0;
    background: #fff;
    border: 1px dashed #e8d5d1;
}

.addr-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ebe9;
}

.addr-form-title svg {
    color: #e57661;
    flex-shrink: 0;
}

.addr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.addr-col-full {
    grid-column: 1 / -1;
}

.addr-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.addr-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.addr-optional {
    font-weight: 400;
    color: #999;
}

.addr-input {
    background: #fff;
    border: 1px solid #e2d9d6 !important;
    border-radius: 8px !important;
    padding: 10px 13px !important;
    font-size: 13px;
    color: #1a1a1a;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.addr-input:focus {
    border-color: #e57661 !important;
    box-shadow: 0 0 0 3px rgba(229, 118, 97, 0.1) !important;
}

.addr-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px !important;
    cursor: pointer;
}

.addr-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.addr-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #e57661;
    cursor: pointer;
    flex-shrink: 0;
}

.addr-check-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.addr-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0ebe9;
    flex-wrap: wrap;
}

.addr-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e57661;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.addr-btn-cancel {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    cursor: pointer;
}

.addr-response {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.addr-card {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.addr-card--default {
    border: 1.5px solid #e57661;
}

.addr-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fdf0ee;
    color: #c45c48;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.addr-card-body {
    flex: 1;
}

.addr-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.addr-card-line {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

.addr-card-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    margin: 8px 0 0;
}

.addr-card-phone svg {
    color: #e57661;
    flex-shrink: 0;
}

.addr-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f4efed;
}

.addr-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e57661;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.addr-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #c0392b;
    border: 1px solid #e8b4b0;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.addr-btn-setdefault {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    cursor: pointer;
}

.addr-empty {
    grid-column: 1 / -1;
    border: 1.5px dashed #e2d9d6;
    border-radius: 12px;
    padding: 48px 20px;
    text-align: center;
    color: #bbb;
}

.addr-empty svg {
    margin-bottom: 14px;
    color: #ddd;
}

.addr-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #999;
    margin: 0 0 6px;
}

.addr-empty-sub {
    font-size: 13px;
    color: #bbb;
    margin: 0;
}

.response-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

@media (max-width: 768px) {
    .addr-form-grid {
        grid-template-columns: 1fr;
    }
    .addr-col-full {
        grid-column: 1;
    }
    .addr-grid {
        grid-template-columns: 1fr;
    }
    .addr-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .addr-btn-add {
        width: 100%;
        justify-content: center;
    }
    .addr-form-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .addr-card-actions {
        flex-direction: column;
    }
    .addr-btn-edit,
    .addr-btn-delete,
    .addr-btn-setdefault {
        width: 100%;
        justify-content: center;
    }
    .addr-form-actions {
        flex-direction: column;
    }
    .addr-btn-save,
    .addr-btn-cancel {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================
   SECTION: PROFILE PAGE STYLES
   ========================================== */

.prof-wrapper {
    padding: 8px 0;
}

.prof-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.prof-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.prof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.prof-card {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 24px;
}

.prof-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ebe9;
}

.prof-card-header svg {
    color: #e57661;
    flex-shrink: 0;
}

.prof-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prof-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prof-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.prof-input {
    background: #fff;
    border: 1px solid #e2d9d6 !important;
    border-radius: 8px !important;
    padding: 10px 13px !important;
    font-size: 13px;
    color: #1a1a1a;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.prof-input:focus {
    border-color: #e57661 !important;
    box-shadow: 0 0 0 3px rgba(229, 118, 97, 0.1) !important;
}

.prof-error {
    color: #dc3545;
    font-size: 12px;
    display: none;
    margin-top: 2px;
}

.prof-response-wrap {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
}

.prof-response-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.prof-response-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.prof-btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #e57661;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.prof-btn-save:hover {
    opacity: 0.9;
}

.prof-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.prof-btn-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #e57661;
    border: 1.5px solid #e57661;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s;
}

.prof-btn-change:hover {
    background: #e57661;
    color: #fff;
}

.prof-btn-change:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .prof-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .prof-page-title {
        font-size: 17px;
    }
    .prof-card {
        padding: 18px;
    }
    .prof-card-header {
        font-size: 14px;
    }
    .prof-btn-save,
    .prof-btn-change {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .prof-wrapper {
        padding: 4px 0;
    }
    .prof-page-header {
        margin-bottom: 18px;
    }
    .prof-card {
        padding: 14px;
    }
    .prof-input {
        padding: 8px 11px !important;
        font-size: 12px;
    }
    .prof-btn-save,
    .prof-btn-change {
        padding: 10px 16px;
        font-size: 12px;
    }
}
/* ==========================================
   SECTION: ORDER DETAIL PAGE STYLES
   ========================================== */

.ord-detail-wrapper {
    padding: 8px 0;
}

.ord-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.ord-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.ord-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #e57661;
    border: 1.5px solid #e57661;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.ord-detail-back:hover {
    background: #e57661;
    color: #fff;
}

.ord-detail-info {
    background: #fafafa;
    border: 1px solid #f0ebe9;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ord-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ord-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ord-detail-info-label {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ord-detail-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.ord-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ord-detail-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.ord-detail-items {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    overflow: hidden;
}

.ord-detail-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f4efed;
}

.ord-detail-items-count {
    font-size: 12px;
    color: #999;
}

.ord-detail-table-wrap {
    overflow-x: auto;
}

.ord-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.ord-detail-table thead tr {
    background: #faf8f7;
    border-bottom: 1px solid #ede8e6;
}

.ord-detail-table thead th {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ord-detail-table tbody tr {
    border-bottom: 1px solid #f4efed;
}

.ord-detail-table tbody tr:last-child {
    border-bottom: none;
}

.ord-detail-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

.ord-detail-product {
    min-width: 200px;
}

.ord-detail-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ord-detail-product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ede8e6;
    flex-shrink: 0;
}

.ord-detail-product-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    border: 1px solid #ede8e6;
    flex-shrink: 0;
}

.ord-detail-product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ord-detail-product-name {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.ord-detail-product-name:hover {
    color: #e57661;
}

.ord-detail-product-variant {
    font-size: 12px;
    color: #999;
}

.ord-detail-price,
.ord-detail-qty,
.ord-detail-total {
    font-size: 13px;
    color: #444;
    white-space: nowrap;
}

.ord-detail-total {
    font-weight: 600;
    color: #1a1a1a;
}

.ord-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ord-detail-summary {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 20px;
}

.ord-detail-summary .section-title {
    padding-bottom: 14px;
    border-bottom: 1px solid #f4efed;
    margin-bottom: 14px;
}

.ord-detail-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.ord-detail-summary-total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #f4efed;
    font-size: 15px;
}

.ord-detail-summary-total span {
    color: #1a1a1a;
}

.ord-detail-address {
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 20px;
}

.ord-detail-address .section-title {
    padding-bottom: 14px;
    border-bottom: 1px solid #f4efed;
    margin-bottom: 14px;
}

.ord-detail-address-content {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.ord-detail-address-content p {
    margin: 0;
}

.ord-detail-address-name {
    font-weight: 600;
    color: #1a1a1a;
}

.ord-detail-address-phone,
.ord-detail-address-email {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.ord-detail-address-phone svg,
.ord-detail-address-email svg {
    color: #e57661;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .ord-detail-main {
        grid-template-columns: 1fr;
    }
    .ord-detail-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ord-detail-title {
        font-size: 17px;
    }
    .ord-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ord-detail-info {
        padding: 16px 18px;
    }
    .ord-detail-info-value {
        font-size: 13px;
    }
    .ord-detail-actions {
        flex-direction: column;
    }
    .btn-action-track,
    .btn-action-return {
        width: 100%;
        justify-content: center;
    }
    .ord-detail-sidebar {
        grid-template-columns: 1fr;
    }
    .ord-detail-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ord-detail-table thead th,
    .ord-detail-table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }
    .ord-detail-product {
        min-width: 160px;
    }
    .ord-detail-product-image,
    .ord-detail-product-placeholder {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .ord-detail-wrapper {
        padding: 4px 0;
    }
    .ord-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ord-detail-back {
        width: 100%;
        justify-content: center;
    }
    .ord-detail-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .ord-detail-info-item {
        gap: 2px;
    }
    .ord-detail-info-label {
        font-size: 10px;
    }
    .ord-detail-info-value {
        font-size: 12px;
    }
    .ord-detail-summary,
    .ord-detail-address {
        padding: 16px;
    }
    .ord-detail-product-image,
    .ord-detail-product-placeholder {
        width: 36px;
        height: 36px;
    }
    .ord-detail-product-name {
        font-size: 12px;
    }
}
