/* ==========================================================================
   TBH INDIA — CUSTOMER PAGES THEME
   Version: 2.0
   Scope:
   - Customer login
   - Customer registration
   - Account / profile
   - My orders
   - Order details
   - Tracking / returns / payment states

   Notes:
   - Uses the global variables from style.css where available.
   - Keeps the existing PHP/HTML class names intact.
   - Page-specific styling only; global components remain in style.css.
   ========================================================================== */


/* ==========================================================================
   01. SHARED CUSTOMER PAGE SURFACES
   ========================================================================== */

.tbh-login-wrap,
.tbh-register-wrap,
.account-page,
.my-orders-page,
.order-page {
    position: relative;
    z-index: 1;
    width: 100%;
}

.tbh-login-wrap *,
.tbh-register-wrap *,
.account-page *,
.my-orders-page *,
.order-page * {
    box-sizing: border-box;
}


/* ==========================================================================
   02. AUTH — LOGIN / REGISTER
   ========================================================================== */

.tbh-login-wrap,
.tbh-register-wrap {
    max-width: 540px !important;
    margin: 56px auto 84px !important;
    padding: 0 18px !important;
}

.tbh-login-card,
.tbh-register-card {
    width: 100%;
    padding: 34px !important;

    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #e7dfcf !important;
    border-radius: 20px !important;

    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.08) !important;
}

.tbh-login-title,
.tbh-register-card h1 {
    margin: 0 0 10px !important;

    color: #111 !important;
    font-size: clamp(30px, 4vw, 38px) !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    letter-spacing: -0.6px;
}

.tbh-login-subtitle,
.register-subtitle {
    margin-bottom: 24px !important;

    color: #6f6a62 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}


/* Auth form */

.tbh-login-card .form,
.tbh-register-card .form {
    width: 100%;
}

.tbh-login-card .form label,
.tbh-register-card .form label {
    display: block;

    margin: 0 0 8px;

    color: #181818;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.tbh-login-card .form input,
.tbh-register-card .form input {
    width: 100%;
    min-height: 50px;

    padding: 13px 14px;

    border: 1px solid #ddd5c7;
    border-radius: 11px;

    background: #fff;
    color: #111;

    font-size: 15px;
    line-height: 1.4;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.tbh-login-card .form input::placeholder,
.tbh-register-card .form input::placeholder {
    color: #999188;
}

.tbh-login-card .form input:hover,
.tbh-register-card .form input:hover {
    border-color: #c9bda9;
}

.tbh-login-card .form input:focus,
.tbh-register-card .form input:focus {
    border-color: #c9a227;

    box-shadow:
        0 0 0 3px rgba(201, 162, 39, 0.12);
}

.tbh-login-card .form input:disabled,
.tbh-register-card .form input:disabled {
    background: #f5f3ef;
    color: #8a847a;
    cursor: not-allowed;
}


/* Auth buttons */

.tbh-login-card .btn.gold,
.tbh-register-card .btn.gold {
    width: 100%;
    min-height: 50px;

    border-radius: 11px !important;

    font-size: 15px;
    font-weight: 900;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.tbh-login-card .btn.gold:hover,
.tbh-register-card .btn.gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.10);
}

.tbh-login-card .btn.gold:active,
.tbh-register-card .btn.gold:active {
    transform: translateY(0);
}

.tbh-google {
    min-height: 44px;
}


/* Auth divider */

.tbh-login-divider {
    margin: 22px 0 !important;

    color: #8a847a !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* Auth messages */

.tbh-login-error,
.register-message.error {
    margin-bottom: 18px !important;

    border: 1px solid #efc3c3 !important;
    background: #fff3f3 !important;
    color: #a11f1f !important;
    border-radius: 11px !important;
}

.register-message.success {
    border: 1px solid #bde5c8 !important;
    background: #effaf2 !important;
    color: #176b2c !important;
}


/* Auth links */

.tbh-login-links,
.register-login {
    color: #6e675e;
    font-size: 14px;
    line-height: 1.6;
}

.tbh-login-links a,
.register-login a,
.tbh-forgot-password a {
    color: #9a7410 !important;
    font-weight: 800 !important;
    text-decoration: none;
}

.tbh-login-links a:hover,
.register-login a:hover,
.tbh-forgot-password a:hover {
    color: #7d5d08 !important;
    text-decoration: underline;
}


/* ==========================================================================
   03. ACCOUNT PAGE
   ========================================================================== */

.account-page {
    max-width: 1120px !important;
    margin: 46px auto 80px !important;
    padding: 0 18px !important;
}

.account-header {
    position: relative;

    padding: 28px !important;

    background: linear-gradient(
        135deg,
        #111 0%,
        #1d1b17 100%
    ) !important;

    color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 20px !important;

    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.12) !important;
}

.account-header .eyebrow,
.my-orders-header .eyebrow {
    color: #d5ad38 !important;
    letter-spacing: 3px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

.account-header h1 {
    margin-top: 7px !important;
    margin-bottom: 8px !important;

    color: #fff !important;
}

.account-header p {
    color: #c7c1b8 !important;
}

.account-logout {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 17px !important;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px !important;

    background: #d5b044 !important;
    color: #111 !important;

    font-weight: 900 !important;
    text-decoration: none !important;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.account-logout:hover {
    background: #efd98d !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}


/* Account cards */

.account-card {
    background: #fff !important;
    border: 1px solid #e7dfcf !important;
    border-radius: 18px !important;

    box-shadow: 0 10px 34px rgba(17, 17, 17, 0.05) !important;
}

.account-card h2,
.section-heading h2 {
    color: #111 !important;
}

.account-info {
    gap: 20px !important;
}

.account-info > div {
    min-width: 0;

    padding: 16px !important;

    background: #fcfaf5 !important;
    border: 1px solid #eee5d6 !important;
    border-radius: 12px !important;
}

.account-info > div strong,
.account-info > div b {
    color: #111;
}

.account-info > div small {
    color: #777067;
}


/* ==========================================================================
   04. MY ORDERS
   ========================================================================== */

.my-orders-page {
    max-width: 1180px !important;
    margin: 46px auto 80px !important;
    padding: 0 18px 70px !important;
}

.customer-order-card {
    overflow: hidden;

    border-color: #e7dfcf !important;
    border-radius: 18px;

    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05) !important;

    background: #fff;
}

.customer-order-top {
    background: linear-gradient(
        135deg,
        #111,
        #1e1b15
    ) !important;
}

.view-order-button,
.track-button {
    min-height: 42px;

    border-radius: 10px !important;

    font-weight: 800;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.view-order-button:hover,
.track-button:hover {
    transform: translateY(-1px);
}

.track-button {
    background: linear-gradient(
        135deg,
        #d5b044,
        #efd98d
    ) !important;

    color: #111 !important;
}


/* ==========================================================================
   05. ORDER DETAILS
   ========================================================================== */

.order-page {
    max-width: 1180px !important;
    margin: 46px auto 80px !important;
    padding: 0 18px 70px !important;
}

.order-status {
    border-radius: 16px !important;

    background: linear-gradient(
        135deg,
        #111,
        #1d1a15
    ) !important;
}

.tracking-card,
.return-card,
.order-card,
.info-box,
.payment-pending-card {
    background: #fff;
    border-color: #e7dfcf !important;

    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05) !important;
}

.order-header h1,
.tracking-title,
.order-card-title {
    color: #111;
    letter-spacing: -0.2px;
}

.cancel-button,
.return-submit,
.order-page .btn.gold {
    min-height: 44px;

    border-radius: 10px !important;

    font-weight: 900 !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.cancel-button:hover,
.return-submit:hover,
.order-page .btn.gold:hover {
    transform: translateY(-1px);
}

.cancel-button:active,
.return-submit:active,
.order-page .btn.gold:active {
    transform: translateY(0);
}


/* ==========================================================================
   06. ACCESSIBILITY / FOCUS
   ========================================================================== */

.tbh-login-card a:focus-visible,
.tbh-register-card a:focus-visible,
.account-page a:focus-visible,
.my-orders-page a:focus-visible,
.order-page a:focus-visible,
.tbh-login-card button:focus-visible,
.tbh-register-card button:focus-visible,
.account-page button:focus-visible,
.my-orders-page button:focus-visible,
.order-page button:focus-visible,
.tbh-login-card input:focus-visible,
.tbh-register-card input:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.45);
    outline-offset: 3px;
}


/* ==========================================================================
   07. RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 992px) {

    .account-page,
    .my-orders-page,
    .order-page {
        margin-top: 38px !important;
    }

    .account-header {
        padding: 24px !important;
    }

    .tbh-login-card,
    .tbh-register-card {
        padding: 30px !important;
    }
}


/* ==========================================================================
   08. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .tbh-login-wrap,
    .tbh-register-wrap,
    .account-page,
    .my-orders-page,
    .order-page {
        margin-top: 30px !important;
        margin-bottom: 54px !important;

        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .tbh-login-card,
    .tbh-register-card {
        padding: 24px 18px !important;
        border-radius: 16px !important;
    }

    .tbh-login-title,
    .tbh-register-card h1 {
        font-size: 30px !important;
    }

    .tbh-login-card .form input,
    .tbh-register-card .form input {
        min-height: 50px;
        font-size: 16px;
    }

    .tbh-login-card .btn.gold,
    .tbh-register-card .btn.gold {
        min-height: 50px;
    }

    .account-header {
        padding: 22px 18px !important;
        border-radius: 16px !important;
    }

    .account-header h1 {
        font-size: 28px !important;
    }

    .account-logout {
        width: 100%;
        margin-top: 14px;
    }

    .account-info {
        gap: 12px !important;
    }

    .account-info > div {
        padding: 14px !important;
    }

    .customer-order-card {
        border-radius: 14px;
    }

    .order-status {
        border-radius: 14px !important;
    }
}


/* ==========================================================================
   09. RESPONSIVE — SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .tbh-login-wrap,
    .tbh-register-wrap,
    .account-page,
    .my-orders-page,
    .order-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .tbh-login-card,
    .tbh-register-card {
        padding: 22px 16px !important;
    }

    .tbh-login-title,
    .tbh-register-card h1 {
        font-size: 27px !important;
    }

    .tbh-login-subtitle,
    .register-subtitle {
        font-size: 14px !important;
    }

    .account-header {
        padding: 20px 16px !important;
    }

    .account-header h1 {
        font-size: 25px !important;
    }

    .account-info > div {
        padding: 13px !important;
    }

    .view-order-button,
    .track-button,
    .cancel-button,
    .return-submit,
    .order-page .btn.gold {
        width: 100%;
        min-height: 44px;
    }
}


/* ==========================================================================
   10. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tbh-login-card .btn.gold,
    .tbh-register-card .btn.gold,
    .account-logout,
    .view-order-button,
    .track-button,
    .cancel-button,
    .return-submit,
    .order-page .btn.gold {
        transition: none !important;
    }

    .tbh-login-card .btn.gold:hover,
    .tbh-register-card .btn.gold:hover,
    .account-logout:hover,
    .view-order-button:hover,
    .track-button:hover,
    .cancel-button:hover,
    .return-submit:hover,
    .order-page .btn.gold:hover {
        transform: none !important;
    }
}
