/* ============================================================
   Diaspora Pharma — Public Stylesheet
   Brand colors extracted directly from logo:
   Teal (DIASPORA text):   #2A7D6B  /  light: #4BA898  /  dark: #1A5C4D
   Coral (PHARMACY + hand): #E07A5F  /  light: #F0A080  /  dark: #C05540
   Cream (background):      #F5F3EE
   Dark text:               #1A2E2B
   Muted:                   #6B7F7D
   Border:                  #E0EBE8
   Font: Nunito (headings) + Nunito Sans (body)
============================================================ */

:root {
    --dp-teal:        #2A7D6B;
    --dp-teal-light:  #4BA898;
    --dp-teal-dark:   #1A5C4D;
    --dp-coral:       #E07A5F;
    --dp-coral-light: #F0A080;
    --dp-coral-dark:  #C05540;
    --dp-cream:       #F5F3EE;
    --dp-white:       #FFFFFF;
    --dp-dark:        #1A2E2B;
    --dp-muted:       #6B7F7D;
    --dp-border:      #E0EBE8;
    --dp-radius:      12px;
    --dp-radius-sm:   8px;
    --dp-shadow:      0 2px 16px rgba(26,46,43,0.08);
    --dp-font-head:   'Nunito', sans-serif;
    --dp-font-body:   'Nunito Sans', sans-serif;
}

/* ── BASE ────────────────────────────────────────────────────── */
.dp-wrap * { box-sizing: border-box; }
.dp-wrap {
    font-family: var(--dp-font-body);
    color: var(--dp-dark);
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
.dp-section-title {
    font-family: var(--dp-font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--dp-dark);
    margin-bottom: 6px;
    line-height: 1.2;
}
.dp-section-sub {
    color: var(--dp-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--dp-radius-sm);
    font-family: var(--dp-font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.18s;
    line-height: 1;
}
.dp-btn-primary  { background: var(--dp-teal);  color: #fff; border-color: var(--dp-teal);  }
.dp-btn-primary:hover  { background: var(--dp-teal-dark); border-color: var(--dp-teal-dark); }
.dp-btn-coral    { background: var(--dp-coral); color: #fff; border-color: var(--dp-coral); }
.dp-btn-coral:hover    { background: var(--dp-coral-dark); border-color: var(--dp-coral-dark); }
.dp-btn-outline  { background: transparent; color: var(--dp-teal); border-color: var(--dp-teal); }
.dp-btn-outline:hover  { background: var(--dp-teal); color: #fff; }
.dp-btn-sm       { padding: 6px 14px; font-size: 12.5px; }
.dp-btn-full     { width: 100%; }
.dp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── CARDS ───────────────────────────────────────────────────── */
.dp-card {
    background: var(--dp-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    padding: 20px 24px;
}
.dp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dp-card-title {
    font-family: var(--dp-font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--dp-dark);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dp-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--dp-teal);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── NOTICES ─────────────────────────────────────────────────── */
.dp-notice {
    padding: 12px 16px;
    border-radius: var(--dp-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.dp-notice-success { background: rgba(42,125,107,0.1); border: 1px solid rgba(42,125,107,0.25); color: var(--dp-teal-dark); }
.dp-notice-error   { background: rgba(204,0,0,0.07);  border: 1px solid rgba(204,0,0,0.2);  color: #8b0000; }

/* ── GUEST NOTICE ────────────────────────────────────────────── */
.dp-guest-notice {
    background: rgba(224,122,95,0.08);
    border: 1px solid rgba(224,122,95,0.25);
    border-radius: var(--dp-radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
}
.dp-guest-notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

/* ── MEMBER BAR ──────────────────────────────────────────────── */
.dp-member-bar {
    background: rgba(42,125,107,0.08);
    border: 1px solid rgba(42,125,107,0.2);
    border-radius: var(--dp-radius-sm);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dp-teal-dark);
    margin-bottom: 20px;
}

/* ── AUTH REQUIRED ───────────────────────────────────────────── */
.dp-auth-required {
    background: var(--dp-cream);
    border-radius: var(--dp-radius);
    padding: 32px;
    text-align: center;
    font-size: 15px;
}
.dp-auth-required a { color: var(--dp-teal); font-weight: 700; }

/* ── SHOP ────────────────────────────────────────────────────── */
.dp-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dp-shop-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}
.dp-cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}
.dp-cat-tab {
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--dp-font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--dp-border);
    background: var(--dp-white);
    color: var(--dp-muted);
    transition: all 0.15s;
}
.dp-cat-tab:hover { border-color: var(--dp-teal); color: var(--dp-teal); }
.dp-cat-tab.active { background: var(--dp-teal); color: #fff; border-color: var(--dp-teal); }

.dp-currency-switcher { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dp-muted); }
.dp-cur-btn {
    padding: 5px 11px;
    border-radius: 6px;
    font-family: var(--dp-font-body);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--dp-border);
    background: var(--dp-white);
    color: var(--dp-muted);
    transition: all 0.15s;
}
.dp-cur-btn.active { background: var(--dp-teal); color: #fff; border-color: var(--dp-teal); }

/* ── STOCK FILTER TOGGLE ─────────────────────────────────────── */
.dp-stock-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #E0EBE8;
    border-radius: 10px;
    padding: 10px 14px;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.dp-stock-toggle-label {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}
.dp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    min-width: 44px;
    height: 24px;
    min-height: 24px;
    background: #E0EBE8;
    border-radius: 100px;
    flex-shrink: 0;
    transition: background 0.2s;
    cursor: pointer;
    overflow: visible;
}
.dp-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.dp-toggle-switch.dp-toggle-on {
    background: #2A7D6B;
}
.dp-toggle-switch.dp-toggle-on::after {
    transform: translateX(20px);
}
.dp-stock-qty-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.dp-stock-qty-low {
    background: rgba(224,122,95,0.12);
    color: #C05540;
}
.dp-stock-qty-ok {
    background: rgba(42,125,107,0.1);
    color: #1A5C4D;
}

/* ── SEARCH ──────────────────────────────────────────────────── */
.dp-search-wrap {
    margin-bottom: 20px;
}
.dp-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #E0EBE8;
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color 0.2s;
}
.dp-search-inner:focus-within {
    border-color: #2A7D6B;
    box-shadow: 0 0 0 3px rgba(42,125,107,0.08);
}
.dp-search-icon {
    width: 18px;
    height: 18px;
    color: #6B7F7D;
    flex-shrink: 0;
    margin-right: 10px;
}
#dp-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: #1A2E2B;
    background: transparent;
    padding: 13px 0;
}
#dp-search-input::placeholder {
    color: #A0B4B1;
}
#dp-search-clear {
    background: none;
    border: none;
    color: #6B7F7D;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 4px;
}
#dp-search-clear:hover {
    color: #1A2E2B;
    background: #F0EDE8;
}
.dp-search-result-count {
    font-size: 12.5px;
    color: #6B7F7D;
    margin-bottom: 12px;
    margin-top: -8px;
}

/* ── PRODUCT GRID ────────────────────────────────────────────── */
.dp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.dp-product-card {
    background: var(--dp-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.dp-product-card:hover {
    box-shadow: var(--dp-shadow);
    transform: translateY(-2px);
    border-color: rgba(42,125,107,0.3);
}
.dp-product-img {
    height: 120px;
    background: var(--dp-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dp-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.dp-rx-placeholder-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

/* ── MEMBER PRICE TEASER ─────────────────────────────────────── */
.dp-member-price-teaser {
    font-size: 12px;
    color: #E07A5F;
    background: rgba(224,122,95,0.08);
    border: 1px solid rgba(224,122,95,0.2);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.dp-member-price-icon {
    font-size: 11px;
}
.dp-member-join-link {
    color: #E07A5F;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.dp-member-join-link:hover {
    text-decoration: underline;
}

/* ── NOTIFY ME ───────────────────────────────────────────────── */
.dp-notify-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F0EDE8;
}
.dp-notify-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.dp-notify-email {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1.5px solid #E0EBE8;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    color: #1A2E2B;
    outline: none;
    display: block;
}
.dp-notify-email:focus {
    border-color: #2A7D6B;
}
.dp-notify-msg {
    margin-top: 6px;
    font-size: 12.5px;
    min-height: 18px;
}
.dp-btn-xs {
    padding: 5px 10px;
    font-size: 12px;
}

/* ── FREQUENTLY BOUGHT TOGETHER ──────────────────────────────── */
.dp-related-wrap {
    margin-top: 10px;
    padding: 10px 12px;
    background: #F5F3EE;
    border-radius: 8px;
    border: 1px solid #E8E4DC;
}
.dp-related-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #4BA898;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dp-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dp-related-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid #E8E4DC;
}
.dp-related-name {
    flex: 1;
    font-size: 12px;
    color: #1A2E2B;
    line-height: 1.3;
}
.dp-related-price {
    font-size: 12px;
    font-weight: 700;
    color: #2A7D6B;
    white-space: nowrap;
}

/* ── ALTERNATIVES ────────────────────────────────────────────── */
.dp-alternatives {
    margin-top: 10px;
    padding: 10px 12px;
    background: #EAF2F0;
    border-radius: 8px;
    border: 1px solid #D0E8E3;
}
.dp-alt-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #2A7D6B;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dp-alt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dp-alt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
}
.dp-alt-name {
    flex: 1;
    font-size: 12px;
    color: #1A2E2B;
    line-height: 1.3;
}
.dp-alt-price {
    font-size: 12px;
    font-weight: 700;
    color: #2A7D6B;
    white-space: nowrap;
}

.dp-product-img .dp-product-emoji { font-size: 48px; }
.dp-product-body { padding: 12px 14px; }
.dp-product-name { font-size: 14px; font-weight: 700; color: var(--dp-dark); margin-bottom: 3px; line-height: 1.3; }
.dp-product-unit { font-size: 11.5px; color: var(--dp-muted); margin-bottom: 8px; }
.dp-product-price-row { display: flex; justify-content: space-between; align-items: flex-end; }
.dp-product-kes  { font-family: var(--dp-font-head); font-size: 16px; font-weight: 800; color: var(--dp-teal); }
.dp-product-alt  { font-size: 11.5px; color: var(--dp-muted); }
.dp-product-badges { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.dp-rx-badge     { background: rgba(224,122,95,0.12); color: var(--dp-coral-dark); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.dp-bundle-badge { background: rgba(42,125,107,0.1); color: var(--dp-teal-dark);   font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.dp-member-badge { background: rgba(224,122,95,0.15); color: var(--dp-coral-dark); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.dp-oos-overlay  { position: absolute; inset: 0; background: rgba(255,255,255,0.75); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--dp-muted); font-size: 13px; }

.dp-add-to-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.dp-add-to-cart input[type="number"] {
    width: 52px;
    padding: 6px 8px;
    border: 1.5px solid var(--dp-border);
    border-radius: 6px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    text-align: center;
}

/* ── CART FLOATING SUMMARY ───────────────────────────────────── */
.dp-cart-summary {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
}
.dp-cart-summary-inner {
    background: var(--dp-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(26,46,43,0.25);
    font-size: 14px;
    font-weight: 600;
}

/* ── ACCOUNT LAYOUT ──────────────────────────────────────────── */
.dp-account-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 700px) {
    .dp-account-layout {
        grid-template-columns: 1fr;
    }
}

/* ── CHECKOUT LAYOUT ─────────────────────────────────────────── */
.dp-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 700px) {
    .dp-checkout-layout {
        grid-template-columns: 1fr;
    }
    .dp-checkout-layout > div:last-child {
        order: -1;
    }
}

/* ── CART LAYOUT ─────────────────────────────────────────────── */
.dp-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 700px) {
    .dp-cart-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .dp-cart-table thead {
        display: none;
    }
    .dp-cart-table tr {
        display: block;
        border-bottom: 1px solid #E0EBE8;
        padding: 12px 0;
    }
    .dp-cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        font-size: 13.5px;
        border: none;
    }
    .dp-cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #6B7F7D;
        font-size: 12px;
        text-transform: uppercase;
        margin-right: 8px;
    }
}

/* ── CART TABLE ──────────────────────────────────────────────── */
.dp-cart-table { width: 100%; border-collapse: collapse; }
.dp-cart-table th { text-align: left; padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: var(--dp-muted); border-bottom: 1px solid var(--dp-border); }
.dp-cart-table td { padding: 12px; border-bottom: 1px solid var(--dp-border); font-size: 14px; }
.dp-cart-table tr:last-child td { border-bottom: none; }

/* ── ORDER SUMMARY ───────────────────────────────────────────── */
.dp-order-summary { background: var(--dp-cream); }
.dp-summary-row   { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.dp-summary-total { font-weight: 800; font-size: 17px; color: var(--dp-dark); border-top: 2px solid var(--dp-border); padding-top: 12px; margin-top: 4px; }
.dp-sticky-summary { position: sticky; top: 80px; }

.dp-has-rx-notice {
    background: rgba(224,122,95,0.1);
    border: 1px solid rgba(224,122,95,0.25);
    border-radius: var(--dp-radius-sm);
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--dp-coral-dark);
    margin-bottom: 14px;
}
.dp-checkout-item { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--dp-dark); }

/* ── CHECKOUT FORM ───────────────────────────────────────────── */
.dp-checkout-section { margin-bottom: 16px; }
.dp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dp-form-field { display: flex; flex-direction: column; gap: 5px; }
.dp-form-field.dp-full { grid-column: 1 / -1; }
.dp-form-field label { font-size: 13px; font-weight: 700; color: var(--dp-dark); }
.dp-form-field input,
.dp-form-field select,
.dp-form-field textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: var(--dp-dark);
    background: var(--dp-white);
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}
.dp-form-field input:focus,
.dp-form-field select:focus,
.dp-form-field textarea:focus { border-color: var(--dp-teal); }
.dp-req { color: var(--dp-coral); }
.dp-hint { font-size: 12px; color: var(--dp-muted); margin-top: 4px; }

.dp-eta-box {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(42,125,107,0.07);
    border: 1px solid rgba(42,125,107,0.2);
    border-radius: var(--dp-radius-sm);
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 28px;
}
.dp-eta-label { font-size: 12px; color: var(--dp-muted); }
.dp-eta-val   { font-size: 15px; font-weight: 800; color: var(--dp-teal); }
.dp-eta-note  { font-size: 11.5px; color: var(--dp-muted); margin-top: 2px; }

.dp-currency-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-currency-grid .dp-cur-btn { padding: 8px 14px; font-size: 13px; }

.dp-divider { border: none; border-top: 1px solid var(--dp-border); margin: 12px 0; }
.dp-divider-or {
    text-align: center;
    color: var(--dp-muted);
    font-size: 12.5px;
    margin: 14px 0;
    position: relative;
}
.dp-divider-or::before,
.dp-divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--dp-border);
}
.dp-divider-or::before { left: 0; }
.dp-divider-or::after  { right: 0; }

/* ── PRESCRIPTION UPLOAD ─────────────────────────────────────── */
.dp-upload-zone {
    border: 2px dashed var(--dp-border);
    border-radius: var(--dp-radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--dp-cream);
}
.dp-upload-zone:hover { border-color: var(--dp-teal); background: rgba(42,125,107,0.04); }
.dp-upload-icon { font-size: 36px; margin-bottom: 8px; }
.dp-upload-zone p { font-size: 13.5px; color: var(--dp-muted); margin: 4px 0; }

/* ── TRACKING ────────────────────────────────────────────────── */
.dp-track-input-row { display: flex; gap: 10px; }
.dp-track-input-row input { flex: 1; }
.dp-track-steps { display: flex; flex-direction: column; gap: 0; }
.dp-track-item  { display: flex; gap: 14px; position: relative; }
.dp-track-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 16px; top: 36px; bottom: 0;
    width: 2px;
    background: var(--dp-border);
    z-index: 0;
}
.dp-track-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    z-index: 1;
    border: 3px solid var(--dp-white);
}
.dp-track-done    { background: var(--dp-teal);       color: #fff; }
.dp-track-active  { background: var(--dp-coral);      color: #fff; box-shadow: 0 0 0 4px rgba(224,122,95,0.2); }
.dp-track-pending { background: var(--dp-cream);      color: var(--dp-muted); border-color: var(--dp-border); }
.dp-track-body    { padding-bottom: 20px; }
.dp-track-label   { font-size: 14px; font-weight: 700; color: var(--dp-dark); }
.dp-track-note    { font-size: 13px; color: var(--dp-muted); margin-top: 2px; }
.dp-track-time    { font-size: 12px; color: var(--dp-teal); font-weight: 600; margin-top: 3px; }
.dp-track-meta-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--dp-border); }
.dp-track-meta-row span:first-child { color: var(--dp-muted); }

/* ── STATUS BADGES ───────────────────────────────────────────── */
.dp-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.dp-status-received   { background: rgba(42,125,107,0.1); color: var(--dp-teal-dark); }
.dp-status-processing { background: rgba(42,125,107,0.18); color: var(--dp-teal-dark); }
.dp-status-dispatched { background: rgba(224,122,95,0.12); color: var(--dp-coral-dark); }
.dp-status-delivered  { background: rgba(26,92,77,0.1); color: var(--dp-teal-dark); }
.dp-status-cancelled  { background: rgba(204,0,0,0.07); color: #8b0000; }

/* ── PLANS ───────────────────────────────────────────────────── */
.dp-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
}
.dp-plan-card {
    border: 1.5px solid var(--dp-border);
    border-radius: var(--dp-radius);
    padding: 20px;
    position: relative;
    background: var(--dp-white);
}
.dp-plan-featured { border-color: var(--dp-teal); border-width: 2px; }
.dp-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dp-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}
.dp-plan-name   { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dp-muted); margin-bottom: 8px; }
.dp-plan-price  { font-family: var(--dp-font-head); font-size: 20px; font-weight: 800; color: var(--dp-dark); margin-bottom: 4px; }
.dp-plan-cycle  { font-size: 12.5px; color: var(--dp-muted); margin-bottom: 14px; }
.dp-plan-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.dp-plan-features li { font-size: 13px; color: var(--dp-dark); padding-left: 20px; position: relative; }
.dp-plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--dp-teal); font-weight: 800; }
.dp-feat-highlight::before { color: var(--dp-coral) !important; }

/* ── MEMBERSHIP ──────────────────────────────────────────────── */
.dp-membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }
.dp-mem-card { border: 1.5px solid var(--dp-border); border-radius: var(--dp-radius); padding: 20px; position: relative; }
.dp-mem-premium-card { border-color: var(--dp-coral); background: linear-gradient(135deg, rgba(224,122,95,0.04), rgba(224,122,95,0.01)); }
.dp-mem-tier { font-size: 12.5px; font-weight: 800; margin-bottom: 6px; }
.dp-mem-standard { color: var(--dp-muted); }
.dp-mem-premium  { color: var(--dp-coral); }
.dp-mem-price { font-family: var(--dp-font-head); font-size: 26px; font-weight: 800; color: var(--dp-dark); margin-bottom: 12px; }
.dp-mem-price span { font-size: 14px; font-weight: 400; color: var(--dp-muted); }

/* ── SUBSCRIPTION MODAL ──────────────────────────────────────── */
.dp-modal {
    background: var(--dp-white);
    border-radius: var(--dp-radius);
    padding: 24px;
    width: min(440px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
}
.dp-modal h3 { font-family: var(--dp-font-head); font-size: 20px; font-weight: 800; margin-bottom: 6px; }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.dp-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--dp-muted);
}
.dp-empty-icon { font-size: 48px; margin-bottom: 12px; }
.dp-empty-state h3 { font-family: var(--dp-font-head); font-size: 20px; color: var(--dp-dark); margin-bottom: 8px; }
.dp-empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ── LOADING ─────────────────────────────────────────────────── */
.dp-loading {
    text-align: center;
    padding: 32px;
    color: var(--dp-muted);
    font-size: 14px;
}

/* ── AUTH TABS ───────────────────────────────────────────────── */
.dp-auth-tabs-wrap { max-width: 480px; }
.dp-auth-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    padding: 3px;
    margin-bottom: 20px;
    background: var(--dp-cream);
}
.dp-auth-tab {
    flex: 1;
    padding: 9px;
    border-radius: 6px;
    font-family: var(--dp-font-body);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--dp-muted);
    transition: all 0.15s;
}
.dp-auth-tab.active { background: var(--dp-teal); color: #fff; }
.dp-auth-form .dp-form-field { margin-bottom: 14px; }
.dp-auth-form input,
.dp-auth-form select {
    padding: 11px 14px;
    border: 1.5px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: var(--dp-dark);
    background: var(--dp-white);
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}
.dp-auth-form input:focus,
.dp-auth-form select:focus { border-color: var(--dp-teal); }

/* ── DETAIL TABLE ────────────────────────────────────────────── */
.dp-detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--dp-border); }
.dp-detail-row:last-child { border: none; }
.dp-detail-row span:first-child { color: var(--dp-muted); }

/* ── LEGAL PAGES ─────────────────────────────────────────────── */
.dp-legal-page .dp-legal-updated { color: var(--dp-muted); font-size: 13px; margin-bottom: 24px; }
.dp-legal-content h3 { font-family: var(--dp-font-head); font-size: 17px; font-weight: 700; color: var(--dp-teal-dark); margin: 24px 0 8px; }
.dp-legal-content p, .dp-legal-content li { font-size: 14.5px; line-height: 1.75; color: var(--dp-dark); margin-bottom: 8px; }
.dp-legal-content ul { padding-left: 20px; }
.dp-legal-content { max-width: 720px; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.dp-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 10000;
    transition: transform 0.2s;
    text-decoration: none;
}
.dp-wa-float:hover { transform: scale(1.1); }
.dp-wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── HOMEPAGE ────────────────────────────────────────────────── */
.dp-home { font-family: var(--dp-font-body); }

.dp-hero {
    background: var(--dp-teal-dark);
    padding: 72px 20px 64px;
    text-align: center;
}
.dp-hero-inner { max-width: 640px; margin: 0 auto; }
.dp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 24px;
}
.dp-hero h1 {
    font-family: var(--dp-font-head);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 16px;
}
.dp-hero h1 em {
    color: var(--dp-coral-light);
    font-style: normal;
}
.dp-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.dp-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.dp-hero-actions .dp-btn { padding: 13px 30px; font-size: 15px; }
.dp-btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 13px 30px;
    border-radius: var(--dp-radius-sm);
    font-family: var(--dp-font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.18s;
}
.dp-btn-hero-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.dp-home-section { padding: 56px 20px; }
.dp-home-inner { max-width: 1060px; margin: 0 auto; }
.dp-home-h2 {
    font-family: var(--dp-font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--dp-dark);
    text-align: center;
    margin-bottom: 6px;
}
.dp-home-sub {
    text-align: center;
    color: var(--dp-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.dp-country-section { background: #fff; border-bottom: 1px solid var(--dp-border); }
.dp-country-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.dp-country-card {
    border: 1.5px solid var(--dp-border);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--dp-cream);
}
.dp-country-active {
    border-color: var(--dp-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42,125,107,0.1);
}
.dp-country-soon { opacity: 0.55; }
.dp-flag   { font-size: 26px; }
.dp-cname  { font-size: 13px; font-weight: 700; color: var(--dp-dark); }
.dp-cstatus { font-size: 11.5px; color: var(--dp-muted); }
.dp-cstatus-active { color: var(--dp-teal); font-weight: 700; }

.dp-features-section { background: var(--dp-cream); }
.dp-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.dp-feat-card {
    background: #fff;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dp-feat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.dp-feat-icon-teal  { background: rgba(42,125,107,0.1); }
.dp-feat-icon-coral { background: rgba(224,122,95,0.12); }
.dp-feat-title { font-size: 14px; font-weight: 700; color: var(--dp-dark); }
.dp-feat-desc  { font-size: 13px; color: var(--dp-muted); line-height: 1.55; }

.dp-feat-card-link {
    text-decoration: none;
    cursor: pointer;
}
.dp-feat-card-link:hover {
    border-color: rgba(42,125,107,0.35);
    box-shadow: 0 4px 16px rgba(26,46,43,0.09);
    transform: translateY(-2px);
}
.dp-feat-card-link .dp-feat-title {
    color: #1A2E2B;
}

.dp-how-section { background: #fff; }
.dp-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.dp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    max-width: 140px;
}
.dp-step-connector {
    flex: 1;
    height: 2px;
    background: var(--dp-border);
    margin-top: 22px;
    min-width: 20px;
    max-width: 60px;
}
.dp-step-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dp-font-head);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.dp-step-teal  { background: var(--dp-teal); }
.dp-step-coral { background: var(--dp-coral); }
.dp-step-label { font-size: 13.5px; font-weight: 700; color: var(--dp-dark); }
.dp-step-desc  { font-size: 12px; color: var(--dp-muted); line-height: 1.5; }

.dp-cta-section { background: var(--dp-teal-dark); }
.dp-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.dp-cta-h2 {
    font-family: var(--dp-font-head);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}
.dp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── SITE LAYOUT ─────────────────────────────────────────────── */
.dp-page-body {
    margin: 0;
    padding: 0;
    background: #F5F3EE;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.dp-site-main {
    flex: 1 0 auto;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.dp-site-header {
    background: #FFFFFF;
    border-bottom: 1.5px solid #E0EBE8;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 1px 8px rgba(26,46,43,0.07);
}
.dp-site-header-inner {
        height: auto;
        padding: 12px 20px;
        flex-wrap: nowrap;
        gap: 0;
        position: relative;
    }
.dp-site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.dp-logo-img {
    height: 46px;
    width: auto;
    display: block;
}
.dp-logo-fallback {
    display: none;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}
.dp-logo-diaspora {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1A5C4D;
    letter-spacing: 1px;
    display: block;
}
.dp-logo-pharmacy {
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #4BA898;
    letter-spacing: 3px;
    display: block;
}
.dp-site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.dp-nav-link {
    padding: 8px 16px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6B7F7D;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    display: inline-block;
}
.dp-nav-link:hover {
    color: #2A7D6B;
    background: rgba(42,125,107,0.07);
}
.dp-nav-active {
    color: #2A7D6B;
    background: rgba(42,125,107,0.1);
}
.dp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
.dp-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7F7D;
    padding: 7px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}
.dp-header-cart:hover {
    color: #2A7D6B;
    background: rgba(42,125,107,0.07);
}
.dp-cart-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #E07A5F;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    line-height: 1;
}
.dp-btn-signout {
    background: transparent;
    color: #6B7F7D;
    border: 1.5px solid #E0EBE8;
    font-size: 13px;
}
.dp-btn-signout:hover {
    color: #cc0000;
    border-color: #cc0000;
    background: transparent;
}

/* ── PWA INSTALL BUTTON ──────────────────────────────────────── */
.dp-pwa-install-wrap {
    flex-shrink: 0;
}
.dp-btn-pwa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #2A7D6B;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.dp-btn-pwa:hover {
    background: #1A5C4D;
}
@media (max-width: 480px) {
    .dp-btn-pwa span.dp-pwa-label {
        display: none;
    }
}

/* ── HAMBURGER ───────────────────────────────────────────────── */
.dp-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.dp-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1A2E2B;
    border-radius: 2px;
    transition: all 0.2s;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.dp-site-footer {
    background: #1A2E2B;
    color: rgba(255,255,255,0.65);
    padding: 56px 24px 0;
    margin-top: 72px;
    flex-shrink: 0;
}
.dp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dp-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.dp-footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-bottom: 10px;
    gap: 3px;
}
.dp-footer-diaspora {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    display: block;
}
.dp-footer-pharmacy {
    font-family: 'Nunito', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #4BA898;
    letter-spacing: 3px;
    display: block;
    text-transform: uppercase;
}
.dp-footer-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 20px;
    font-style: italic;
}
.dp-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
    width: fit-content;
}
.dp-footer-wa:hover {
    opacity: 0.85;
    color: #ffffff;
}
.dp-footer-col {
    display: flex;
    flex-direction: column;
}
.dp-footer-col h4 {
    font-family: 'Nunito', sans-serif;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.dp-footer-col a {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13.5px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s;
    width: fit-content;
}
.dp-footer-col a:hover {
    color: #E07A5F;
}
.dp-footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 8px;
}

/* ── RESPONSIVE HEADER / FOOTER ──────────────────────────────── */
@media (max-width: 900px) {
    .dp-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .dp-footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .dp-site-header-inner {
        height: auto;
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 0;
    }
    .dp-nav-toggle {
        display: flex;
        margin-left: auto;
    }
    .dp-site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: #FFFFFF;
        border-bottom: 1.5px solid #E0EBE8;
        box-shadow: 0 4px 16px rgba(26,46,43,0.10);
        z-index: 498;
        order: 3;
    }
    .dp-site-nav.dp-nav-open {
        display: flex;
    }
    .dp-header-actions {
        margin-left: 0;
        order: 2;
        gap: 6px;
    }
    .dp-site-logo {
        order: 1;
    }
    .dp-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .dp-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}
@media (max-width: 480px) {

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dp-wrap { padding: 20px 14px 60px; }
    .dp-form-grid { grid-template-columns: 1fr; }
    .dp-form-field.dp-full { grid-column: 1; }
    #dp-checkout > div,
    #dp-cart-page > div > div { grid-template-columns: 1fr; }
    .dp-sticky-summary { position: static; }
    .dp-plan-grid { grid-template-columns: 1fr; }
    .dp-membership-grid { grid-template-columns: 1fr; }
    .dp-shop-header { flex-direction: column; }
    .dp-product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .dp-steps { flex-direction: column; align-items: center; }
.dp-step-connector { display: none; }
}
