* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

.customer-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
}

.register-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.register-header {
    text-align: center;
    margin-bottom: 25px;
}

.register-header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.register-header p {
    color: #777;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #111;
}

.form-group textarea {
    resize: vertical;
}

/* Register Form - Gender */

.register-card .form-group select#gender {
    width: 100%;
    height: 41px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.register-card .form-group select#gender:focus {
    border-color: #111;
}

.register-card .form-group select#gender option {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222;
    background-color: #fff;
}

.register-btn {
    width: 100%;
    padding: 13px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.register-btn:hover {
    background: #333;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.alert.error {
    background: #ffe5e5;
    color: #b00020;
}

.alert.success {
    background: #e5f7e9;
    color: #176b2c;
}

.login-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 18px;
}

.back-home a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.back-home a:hover {
    color: #111;
}

/* Customer Dashboard */

.dashboard-card,
.profile-card,
.orders-card {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-header,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-header h1,
.page-header h1 {
    margin-bottom: 6px;
}

.dashboard-header p,
.page-header p {
    color: #777;
}

.logout-btn,
.back-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.dashboard-box {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 22px;
}

.dashboard-box h3 {
    margin-bottom: 10px;
}

.dashboard-box strong {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.dashboard-box p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.dashboard-box a,
.section-title a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.orders-section {
    margin-top: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

table th {
    background: #f8f8f8;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    background: #f1f1f1;
    border-radius: 20px;
    font-size: 12px;
}

.empty-box {
    text-align: center;
    padding: 50px 20px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.empty-box h3 {
    margin-bottom: 8px;
}

.empty-box p {
    color: #777;
    margin-bottom: 20px;
}

.shop-btn {
    display: inline-block;
    padding: 11px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.profile-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-info p {
    margin-bottom: 8px;
    color: #666;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.dashboard-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dashboard-footer a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 700px) {

    .dashboard-card,
    .profile-card,
    .orders-card {
        padding: 22px;
    }

    .dashboard-header,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 650px;
    }

}

/* Profile view — hero */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0 24px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.profile-hero-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    background: #f5f5f5;
}

.profile-hero-info {
    flex: 1;
    min-width: 200px;
}

.profile-hero-info h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.profile-hero-email {
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

.profile-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 50px;
    font-size: 12px;
    color: #444;
}

.btn-edit {
    padding: 10px 18px;
    border: 1px solid #111;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-edit:hover {
    background: #111;
    color: #fff;
}

/* Stats row */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat-box {
    text-align: center;
    padding: 18px 12px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #111;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin: 24px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.info-item-wide {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: #222;
}

.info-value small {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    .profile-hero {
        flex-direction: column;
        text-align: center;
    }
    .btn-edit {
        width: 100%;
        text-align: center;
    }
}
/* Profile Picture View in Edit Profile*/

.profile-picture-group .profile-picture-preview {
    width: 175px;
    height: 200px;
    display: block;
    overflow: hidden;
    border: 4px solid #fff;
    background: #f1f1f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.profile-picture-group .profile-picture-preview .profile-picture-img {
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    border: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   SMART CUSTOMER MOBILE RESPONSIVE
   Add this at the VERY END of
   customer/css/style.css
========================================= */


/* ---------- Tablet ---------- */

@media (max-width: 900px) {

    .customer-container {
        padding: 25px 15px;
    }

    .dashboard-card,
    .profile-card,
    .orders-card {
        max-width: 100%;
        padding: 28px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .profile-info-grid {
        gap: 14px 18px;
    }

}


/* ---------- Mobile ---------- */

@media (max-width: 700px) {

    /* General */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .customer-container {
        width: 100%;
        min-height: 100vh;
        padding: 18px 10px;
        align-items: flex-start;
    }


    /* Register Card */

    .register-card {
        width: 100%;
        max-width: 500px;
        padding: 22px 16px;
        border-radius: 7px;
    }

    .register-header {
        margin-bottom: 20px;
    }

    .register-header h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    .register-header p {
        font-size: 13px;
        line-height: 1.5;
    }


    /* Forms */

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .register-card .form-group select#gender {
        font-size: 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .register-card .form-group select#gender {
        height: 43px;
    }

    .register-btn {
        padding: 13px;
        font-size: 15px;
    }

    .alert {
        padding: 11px 12px;
        font-size: 13px;
    }


    /* Dashboard / Profile / Orders Cards */

    .dashboard-card,
    .profile-card,
    .orders-card {
        width: 100%;
        max-width: 100%;
        padding: 18px 15px;
        border-radius: 7px;
    }


    /* Page Headers */

    .dashboard-header,
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 22px;
    }

    .dashboard-header h1,
    .page-header h1 {
        font-size: 23px;
        line-height: 1.3;
    }

    .dashboard-header p,
    .page-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .logout-btn,
    .back-btn {
        width: 100%;
        text-align: center;
        padding: 11px 15px;
    }


    /* Dashboard Grid */

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 25px;
    }

    .dashboard-box {
        padding: 16px 12px;
    }

    .dashboard-box h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .dashboard-box strong {
        font-size: 24px;
        margin-bottom: 7px;
    }

    .dashboard-box p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .dashboard-box a,
    .section-title a {
        font-size: 12px;
    }


    /* Orders Section */

    .orders-section {
        margin-top: 15px;
    }

    .section-title {
        gap: 10px;
        align-items: flex-start;
    }

    .section-title h2 {
        font-size: 19px;
    }


    /* Table */

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 650px;
    }

    table th,
    table td {
        padding: 11px 10px;
        font-size: 13px;
        white-space: nowrap;
    }


    /* Empty Box */

    .empty-box {
        padding: 35px 15px;
    }

    .empty-box h3 {
        font-size: 18px;
    }

    .empty-box p {
        font-size: 14px;
        line-height: 1.5;
    }


    /* Profile Hero */

    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 13px;
        padding: 15px 0 20px;
    }

    .profile-hero-img {
        width: 90px;
        height: 90px;
    }

    .profile-hero-info {
        width: 100%;
        min-width: 0;
    }

    .profile-hero-info h2 {
        font-size: 20px;
    }

    .profile-hero-email {
        font-size: 13px;
        word-break: break-word;
    }

    .profile-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .btn-edit {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }


    /* Profile Stats */

    .profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 20px 0;
    }

    .stat-box {
        padding: 14px 5px;
    }

    .stat-value {
        font-size: 19px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.2px;
    }


    /* Profile Information */

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 20px 0;
    }

    .info-item {
        padding: 11px 0;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
    }

    .info-item-wide {
        grid-column: auto;
    }


    /* Profile Picture */

    .profile-picture-group .profile-picture-preview {
        width: 150px;
        height: 175px;
        margin: 15px auto;
    }


    /* Footer */

    .dashboard-footer {
        margin-top: 20px;
        padding-top: 17px;
    }

    .dashboard-footer a {
        font-size: 13px;
    }

}


/* ---------- Very Small Phones ---------- */

@media (max-width: 380px) {

    .customer-container {
        padding: 12px 8px;
    }

    .register-card,
    .dashboard-card,
    .profile-card,
    .orders-card {
        padding: 15px 12px;
    }

    .register-header h1 {
        font-size: 23px;
    }

    .dashboard-header h1,
    .page-header h1 {
        font-size: 21px;
    }

    .dashboard-grid {
        gap: 7px;
    }

    .dashboard-box {
        padding: 13px 8px;
    }

    .dashboard-box h3 {
        font-size: 14px;
    }

    .dashboard-box strong {
        font-size: 21px;
    }

    .dashboard-box p {
        font-size: 11px;
    }

    .profile-stats {
        gap: 5px;
    }

    .stat-value {
        font-size: 17px;
    }

    .stat-label {
        font-size: 9px;
    }

}
