/* ==========================================================================
   Storefront inner pages.
   Most pages sit inside one of three wrappers, so theming those covers the
   customer account area, every auth/lookup form, and the static pages at once.
   Reads --brand-accent, like the rest of the site.
   ========================================================================== */
:root {
    --pg-accent: var(--brand-accent, #0B4DA2);
    --pg-accent-dark: var(--brand-accent-dark, #093F86);
    --pg-ink: #16203A;
    --pg-muted: #6B7590;
    --pg-line: #E4E9F2;
    --pg-bg: #F5F7FC;
}

/* --------------------------------------------------------------------------
   Auth / lookup forms
   (login, register, verify, forgot password, order track, complain)
   -------------------------------------------------------------------------- */
.auth-section { background: var(--pg-bg); padding: 40px 0 60px; }

.auth-section .form-content {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    padding: 28px 26px 26px;
    box-shadow: 0 18px 44px -30px rgba(12, 20, 64, .45);
}
/* style.css paints .auth-title as a solid navy bar with white text; the card
   header reads better plain, so the background must be reset too. */
.auth-section .auth-title,
.auth-section p.auth-title {
    margin: 0 0 20px;
    padding: 0 0 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--pg-line);
    border-radius: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--pg-ink);
    text-align: center;
    text-transform: capitalize;
}
.auth-section .form-group label,
.customer-section .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #39415C;
}

/* --------------------------------------------------------------------------
   Customer account area
   (account, orders, profile edit, change password, order note)
   -------------------------------------------------------------------------- */
.customer-section { background: var(--pg-bg); padding: 30px 0 55px; }

.customer-section .customer-content,
.customer-section .customer-sidebar {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 14px 34px -28px rgba(12, 20, 64, .4);
}
.customer-section .customer-sidebar { padding: 14px; }
.customer-section .customer-sidebar ul { list-style: none; margin: 0; padding: 0; }
.customer-section .customer-sidebar li a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: #39415C;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.customer-section .customer-sidebar li a:hover { background: #F1F5FC; color: var(--pg-accent); }
.customer-section .customer-sidebar li a.active,
.customer-section .customer-sidebar li.active a { background: var(--pg-accent); color: #fff; }

.customer-section .account-title,
.customer-section .customer-content > h4,
.customer-section .customer-content > h5 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg-line);
    font-size: 18px;
    font-weight: 700;
    color: var(--pg-ink);
}
.customer-section .backend_img img,
.customer-section .customer-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Shared form controls across storefront pages
   -------------------------------------------------------------------------- */
.auth-section .form-control,
.customer-section .form-control,
.comn_sec .form-control,
.middle-contact-section .form-control {
    min-height: 46px;
    border: 1px solid var(--pg-line);
    border-radius: 10px;
    background: #FBFCFE;
    font-size: 14.5px;
    padding: 10px 14px;
    box-shadow: none;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth-section textarea.form-control,
.customer-section textarea.form-control,
.middle-contact-section textarea.form-control { min-height: 110px; }

.auth-section .form-control:focus,
.customer-section .form-control:focus,
.comn_sec .form-control:focus,
.middle-contact-section .form-control:focus {
    outline: none;
    border-color: var(--pg-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 77, 162, .12);
}
.invalid-feedback { font-size: 12.5px; }

/* primary action buttons used across these pages */
.auth-section .submit-btn,
.customer-section .submit-btn,
.middle-contact-section .submit-btn,
.auth-section .btn_primary,
.customer-section .btn_primary,
a.btn.btn_primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: var(--pg-accent);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: capitalize;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 30px -16px rgba(11, 77, 162, .65);
    transition: background .16s, transform .16s;
}
.auth-section .submit-btn:hover,
.customer-section .submit-btn:hover,
.middle-contact-section .submit-btn:hover,
a.btn.btn_primary:hover { background: var(--pg-accent-dark); color: #fff; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Tables on storefront pages (orders list, invoice, cart)
   -------------------------------------------------------------------------- */
.customer-section .table,
.comn_sec .table,
.customer-invoice .table { margin: 0; font-size: 14px; }
.customer-section .table > :not(caption) > * > *,
.customer-invoice .table > :not(caption) > * > * { padding: 11px 12px; vertical-align: middle; }
.customer-section .table thead th,
.customer-invoice .table thead th {
    background: #F7F9FC;
    border-bottom: 1px solid var(--pg-line) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pg-muted);
}
.customer-section .table tbody tr:hover { background: #F7F9FC; }

/* --------------------------------------------------------------------------
   Static content pages (about, policies) and contact
   -------------------------------------------------------------------------- */
.comn_sec { background: var(--pg-bg); padding: 34px 0 55px; }
.comn_sec .container > .row > [class^="col-"] > * {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    padding: 26px;
}
.comn_sec p { color: #39415C; line-height: 1.8; font-size: 15px; }
.comn_sec h1, .comn_sec h2, .comn_sec h3, .comn_sec h4 {
    color: var(--pg-ink); font-weight: 700; letter-spacing: -.015em;
}


/* --------------------------------------------------------------------------
   Cart page
   -------------------------------------------------------------------------- */
.breadcrumb-section + section,
.cart_area { background: var(--pg-bg); }
.cart_table, .cart-table {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .auth-section { padding: 22px 0 40px; }
    .auth-section .form-content { padding: 22px 18px; }
    .customer-section { padding: 18px 0 40px; }
    .customer-section .customer-content { padding: 16px; }
    .comn_sec .container > .row > [class^="col-"] > * { padding: 18px; }
}

/* ==========================================================================
   Information pages (policies, about)
   ========================================================================== */
.cpage { background: var(--pg-bg); padding: 26px 0 55px; }

.cpage-head { margin-bottom: 22px; }
.cpage-crumb { display: flex; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: #8A93A8; margin-bottom: 6px; }
.cpage-crumb a { color: #8A93A8; text-decoration: none; }
.cpage-crumb a:hover { color: var(--pg-accent); text-decoration: none; }
.cpage-crumb strong { color: var(--pg-ink); font-weight: 600; }
.cpage-title { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.02em; color: var(--pg-ink); }

/* side nav */
.cpage-nav {
    background: #fff; border: 1px solid var(--pg-line); border-radius: 14px;
    padding: 16px; margin-bottom: 18px;
}
.cpage-nav-title {
    margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #8A93A8;
}
.cpage-nav ul { list-style: none; margin: 0; padding: 0; }
.cpage-nav li a {
    display: block; padding: 9px 12px; border-radius: 9px;
    font-size: 14px; font-weight: 500; color: #39415C; text-decoration: none;
    transition: background .15s, color .15s;
}
.cpage-nav li a:hover { background: #F1F5FC; color: var(--pg-accent); text-decoration: none; }
.cpage-nav li a.is-active { background: var(--pg-accent); color: #fff; font-weight: 600; }

/* body copy */
.cpage-body {
    background: #fff; border: 1px solid var(--pg-line); border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 16px 38px -30px rgba(12, 20, 64, .4);
}
.cpage-body h1, .cpage-body h2, .cpage-body h3, .cpage-body h4 {
    color: var(--pg-ink); font-weight: 700; letter-spacing: -.015em;
    margin: 26px 0 10px; font-size: 19px;
}
.cpage-body h1:first-child, .cpage-body h2:first-child, .cpage-body h3:first-child { margin-top: 0; }
.cpage-body p { color: #3B455F; font-size: 15px; line-height: 1.8; margin: 0 0 14px; }
.cpage-body ul, .cpage-body ol { margin: 0 0 16px; padding-left: 20px; }
.cpage-body li { color: #3B455F; font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.cpage-body a { color: var(--pg-accent); font-weight: 600; }
.cpage-body strong { color: var(--pg-ink); }
.cpage-body table { width: 100%; margin: 0 0 16px; border-collapse: collapse; }
.cpage-body th, .cpage-body td { border: 1px solid var(--pg-line); padding: 10px 12px; font-size: 14px; }
.cpage-body th { background: #F7F9FC; text-align: left; color: var(--pg-ink); }

/* help strip */
.cpage-help {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 18px; padding: 18px 22px;
    background: #fff; border: 1px solid var(--pg-line); border-radius: 14px;
}
.cpage-help-title { margin: 0 0 3px; font-size: 15px; font-weight: 700; color: var(--pg-ink); }
.cpage-help-sub { margin: 0; font-size: 13.5px; color: var(--pg-muted); }
.cpage-help-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 22px; border-radius: 10px;
    background: var(--pg-accent); color: #fff; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: background .16s;
}
.cpage-help-btn:hover { background: var(--pg-accent-dark); color: #fff; text-decoration: none; }

@media (max-width: 991px) {
    .cpage-title { font-size: 22px; }
    .cpage-body { padding: 20px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.middle-contact-section {
    background: var(--pg-bg);
    padding: 40px 16px 26px;
    text-align: center;
}
.middle-contact-section .contact-header {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--pg-ink);
}
.middle-contact-section .contact-header span { color: var(--pg-accent); }
.middle-contact-section .subheading {
    margin: 0 auto 28px;
    max-width: 56ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--pg-muted);
}

.middle-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1140px;
    margin: 0 auto;
}
.middle-contact-cards .item-card {
    display: flex;
    flex-direction: column;
    align-items: center;      /* icon, copy and button share one centre line */
    text-align: center;
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: 0 16px 38px -30px rgba(12, 20, 64, .45);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.middle-contact-cards .item-card:hover {
    border-color: #C6D2E8;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -26px rgba(12, 20, 64, .5);
}
.middle-contact-cards .contact-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #EDF2FB;
    color: var(--pg-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
}
.middle-contact-cards .card-title {
    margin: 0 0 10px;
    font-size: 18px; font-weight: 700; letter-spacing: -.015em;
    color: var(--pg-ink);
}
.middle-contact-cards .card-title span { color: var(--pg-accent); }
.middle-contact-cards .card-text {
    margin: 0 0 20px;
    font-size: 14px; line-height: 1.75; color: var(--pg-muted);
    flex: 1 1 auto;
}
.middle-contact-cards .card-text strong { color: var(--pg-ink); }
.middle-contact-cards .contact-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    align-self: center;
    min-height: 42px; padding: 0 22px;
    border-radius: 10px;
    background: var(--pg-accent); color: #fff;
    font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
    text-decoration: none;
    transition: background .16s, transform .16s;
}
.middle-contact-cards .contact-page-btn:hover {
    background: var(--pg-accent-dark); color: #fff; transform: translateY(-1px); text-decoration: none;
}

/* --- message form --- */
.contact-section { background: var(--pg-bg); padding: 6px 0 55px; }
.contact-section .contact-form {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 16px 38px -30px rgba(12, 20, 64, .45);
}
.contact-section .account-title {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pg-line);
    font-size: 19px; font-weight: 700; color: var(--pg-ink);
    text-align: center;
}
.contact-section label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: #39415C; }
.contact-section .form-control {
    min-height: 46px;
    border: 1px solid var(--pg-line);
    border-radius: 10px;
    background: #FBFCFE;
    font-size: 14.5px;
    padding: 10px 14px;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.contact-section textarea.form-control { min-height: 130px; }
.contact-section .form-control:focus {
    outline: none; border-color: var(--pg-accent); background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 77, 162, .12);
}
.contact-section .submit-btn {
    width: 100%; min-height: 48px;
    border: 0; border-radius: 11px;
    background: var(--pg-accent); color: #fff;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px -16px rgba(11, 77, 162, .65);
    transition: background .16s, transform .16s;
}
.contact-section .submit-btn:hover { background: var(--pg-accent-dark); transform: translateY(-1px); }

@media (max-width: 991px) { .middle-contact-cards { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
    .middle-contact-section { padding: 26px 12px 18px; }
    .middle-contact-section .contact-header { font-size: 23px; }
    .contact-section .contact-form { padding: 20px; }
}

/* style.css colours these icons green; keep WhatsApp's own green, brand the rest */
.middle-contact-cards .contact-icon i { color: var(--pg-accent); }
.middle-contact-cards .contact-icon i.fa-whatsapp { color: #25D366; }
.middle-contact-cards .item-card:has(.fa-whatsapp) .contact-icon { background: #E9F9EF; }

/* ==========================================================================
   Customer account area
   ========================================================================== */
.cacct-user {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 14px; margin-bottom: 12px;
    border-bottom: 1px solid var(--pg-line);
}
.cacct-user-copy { display: flex; flex-direction: column; min-width: 0; }
.cacct-user-copy span { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8A93A8; }
.cacct-user-copy strong {
    font-size: 15px; font-weight: 700; color: var(--pg-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* style.css lays sidebar items out inline; force one per row */
.cacct-nav ul { list-style: none; margin: 0; padding: 0; display: block; }
.cacct-nav li { display: block; width: 100%; margin: 0 0 2px; }
.cacct-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 9px;
    font-size: 14px; font-weight: 500; color: #39415C; text-decoration: none;
    transition: background .15s, color .15s;
}
.cacct-nav li a svg { width: 17px; height: 17px; }
.cacct-nav li a:hover { background: #F1F5FC; color: var(--pg-accent); text-decoration: none; }
.cacct-nav li a.is-active { background: var(--pg-accent); color: #fff; font-weight: 600; }
.cacct-nav li a.is-danger { color: #C0392B; }
.cacct-nav li a.is-danger:hover { background: #FDECEC; color: #B3261E; }

/* profile strip */
.cacct-profile {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px; margin-bottom: 16px;
    background: #F7F9FD; border: 1px solid var(--pg-line); border-radius: 14px;
}
.cacct-profile-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.cacct-profile-copy strong { font-size: 17px; font-weight: 700; color: var(--pg-ink); }
.cacct-profile-copy span { font-size: 13.5px; color: var(--pg-muted); }
.cacct-edit {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 18px; border-radius: 10px;
    border: 1.5px solid var(--pg-line); background: #fff;
    font-size: 13.5px; font-weight: 700; color: var(--pg-accent);
    text-decoration: none; transition: border-color .15s, background .15s;
}
.cacct-edit:hover { border-color: var(--pg-accent); background: #F1F5FC; color: var(--pg-accent); text-decoration: none; }

/* stat row */
.cacct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.cacct-stat {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff;
}
.cacct-stat span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A93A8; }
.cacct-stat strong { font-size: 18px; font-weight: 700; color: var(--pg-ink); }

.cacct-subtitle {
    margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #8A93A8;
}

/* detail list */
.cacct-details { margin: 0; }
.cacct-details > div {
    display: flex; gap: 16px; padding: 12px 0;
    border-bottom: 1px solid var(--pg-line);
}
.cacct-details > div:last-child { border-bottom: 0; }
.cacct-details dt {
    flex: 0 0 140px; margin: 0;
    font-size: 13.5px; font-weight: 600; color: var(--pg-muted);
}
.cacct-details dd { margin: 0; font-size: 14.5px; color: var(--pg-ink); word-break: break-word; }

@media (max-width: 767px) {
    .cacct-stats { grid-template-columns: 1fr; }
    .cacct-details > div { flex-direction: column; gap: 3px; }
    .cacct-details dt { flex: none; }
    .cacct-edit { width: 100%; }
}

/* ==========================================================================
   Customer "My Orders" list
   ========================================================================== */
.corders-empty { margin: 0; padding: 26px 0; text-align: center; color: var(--pg-muted); font-size: 14.5px; }
.corders-table { font-size: 14px; }
.corders-table td { vertical-align: middle; }

.corders-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    background: #EEF1F7;
    color: #55607A;
    white-space: nowrap;
}
.corders-pill--shop { background: #EDF2FB; color: var(--pg-accent); }
.corders-pill[data-state="pending"]    { background: #FFF4E5; color: #A35A00; }
.corders-pill[data-state="processing"] { background: #E7F1FD; color: #0B4DA2; }
.corders-pill[data-state="delivered"]  { background: #E8F7EE; color: #1B6B39; }
.corders-pill[data-state="cancelled"]  { background: #FDECEC; color: #B3261E; }
.corders-pill[data-state="unknown"]    { background: #F1F3F8; color: #7B8499; }

.corders-carrier { display: block; margin-top: 4px; font-size: 11.5px; color: #9AA3B8; }

.corders-actions { white-space: nowrap; }
.corders-btn {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 8px;
    background: var(--pg-accent);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}
.corders-btn:hover { background: var(--pg-accent-dark); color: #fff !important; text-decoration: none; }
.corders-btn--ghost { background: #fff; color: var(--pg-accent) !important; border: 1px solid var(--pg-line); }
.corders-btn--ghost:hover { background: #F1F5FC; color: var(--pg-accent) !important; }

@media (max-width: 767px) { .corders-table { font-size: 13px; } .corders-btn { padding: 5px 10px; } }
