/* =========================================================
   Oracle Nexus Ltd — Vanilla CSS
   Blend of Ryaime's real content/structure with the teal
   "Medical Equipment" template look for visual polish.
   ========================================================= */

:root {
    --teal: #0f9b8e;
    --teal-dark: #0b7a70;
    --teal-light: #e6f6f4;
    --ink: #232b2b;
    --ink-soft: #5c6969;
    --border: #e4e9e9;
    --bg: #ffffff;
    --bg-alt: #f6f9f9;
    --danger: #e0483e;
    --footer-bg: #24302f;
    --footer-text: #b9c4c3;
    --radius: 6px;
    --shadow: 0 2px 10px rgba(15, 40, 38, 0.06);
    --shadow-hover: 0 8px 24px rgba(15, 40, 38, 0.12);
    font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.25; }

/* ---------------- Top bar ---------------- */
.top-bar {
    background: var(--ink);
    color: #cfd8d7;
    font-size: 13px;
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    flex-wrap: wrap;
    gap: 6px;
}
.top-bar__left span { margin-right: 18px; }
.top-bar__right a { margin-left: 16px; opacity: .85; }
.top-bar__right a:hover { color: var(--teal); opacity: 1; }
.top-bar__donate {
    background: var(--teal);
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ---------------- Header ---------------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
    flex-wrap: wrap;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}
.logo span { color: var(--teal); }
.logo--light { color: #fff; }
.logo--light span { color: var(--teal); }

.header-search {
    flex: 1;
    display: flex;
    min-width: 260px;
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    overflow: hidden;
}
.header-search__category {
    border: none;
    background: var(--bg-alt);
    padding: 0 10px;
    font-size: 13px;
    border-right: 1px solid var(--border);
    max-width: 160px;
}
.header-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.header-search button {
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 0 18px;
    font-size: 16px;
}
.header-search button:hover { background: var(--teal-dark); }

.cart-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.cart-pill:hover { border-color: var(--teal); }
.cart-pill__count {
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- Main nav ---------------- */
.main-nav { background: var(--teal); }
.main-nav__inner { position: relative; }
.main-nav__toggle {
    display: none;
    width: 100%;
    background: var(--teal-dark);
    color: #fff;
    border: none;
    padding: 12px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}
.main-nav__list {
    display: flex;
    flex-wrap: wrap;
}
.main-nav__list a {
    display: block;
    padding: 13px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.main-nav__list a:hover,
.main-nav__list a.is-active { background: var(--teal-dark); }
.main-nav__divider {
    width: 1px;
    background: rgba(255,255,255,.3);
    margin: 10px 4px;
}

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(120deg, var(--teal-light), #ffffff 65%);
    padding: 60px 0;
}
.hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero__text { flex: 1; min-width: 280px; }
.hero__text h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--ink);
}
.hero__text p {
    color: var(--ink-soft);
    font-size: 17px;
    max-width: 480px;
    margin-bottom: 22px;
}
.hero__image {
    flex: 1;
    min-width: 260px;
    text-align: center;
}
.hero__image img {
    max-height: 320px;
    margin: 0 auto;
    border-radius: var(--radius);
}

.btn {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-dark); }
.btn--outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--block { width: 100%; text-align: center; }
.btn--sm { padding: 8px 16px; font-size: 12px; }

/* ---------------- Section headings ---------------- */
.section { padding: 50px 0; }
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}
.section-heading h2 {
    font-size: 24px;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}
.section-heading h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 46px; height: 3px;
    background: var(--teal);
}
.section-heading a { color: var(--teal); font-weight: 600; font-size: 14px; }

/* ---------------- Category tiles ---------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}
.category-tile {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.category-tile:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--teal);
}
.category-tile__icon {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}
.category-tile__name { font-weight: 700; font-size: 14px; }

/* ---------------- Product grid / cards ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.product-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}
.product-card__image {
    background: var(--bg-alt);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder {
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
    padding: 10px;
}
.product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.product-card__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--teal);
    font-weight: 700;
}
.product-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.product-card__name a:hover { color: var(--teal); }
.product-card__price {
    margin-top: auto;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.product-card__price del {
    color: var(--ink-soft);
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}
.product-card__price ins {
    text-decoration: none;
    color: var(--danger);
}
.product-card__footer { padding: 0 16px 16px; }

/* ---------------- Shop toolbar / sidebar ---------------- */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}
.shop-sidebar {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    align-self: start;
}
.shop-sidebar h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 10px;
}
.shop-sidebar ul li { margin-bottom: 4px; }
.shop-sidebar ul li a {
    display: block;
    padding: 7px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--ink-soft);
}
.shop-sidebar ul li a:hover,
.shop-sidebar ul li a.is-active {
    background: var(--teal-light);
    color: var(--teal-dark);
    font-weight: 600;
}
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--ink-soft);
}
.shop-toolbar select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ---------------- Pagination ---------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------------- Single product ---------------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}
.product-detail__image {
    background: var(--bg-alt);
    border-radius: var(--radius);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail__category {
    color: var(--teal);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
}
.product-detail__title { font-size: 28px; font-weight: 800; margin: 8px 0 14px; }
.product-detail__price {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}
.product-detail__price del { color: var(--ink-soft); font-size: 17px; margin-right: 10px; font-weight: 400; }
.product-detail__price ins { text-decoration: none; color: var(--danger); }
.product-detail__desc { color: var(--ink-soft); margin-bottom: 22px; }
.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-right: 12px;
    vertical-align: middle;
}
.qty-input button {
    background: var(--bg-alt);
    border: none;
    width: 38px; height: 44px;
    font-size: 16px;
}
.qty-input input {
    width: 46px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 44px;
}
.product-detail__actions { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.product-detail__meta { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.product-detail__meta div { margin-bottom: 4px; }

/* ---------------- Cart page ---------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--border);
    padding: 12px 10px;
}
.cart-table td {
    padding: 16px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-product__image {
    width: 64px; height: 64px;
    background: var(--bg-alt);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cart-product__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-remove {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
}
.cart-summary {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    max-width: 380px;
    margin-left: auto;
    margin-top: 28px;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-soft);
}
.cart-summary__row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
}
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------------- Forms ---------------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert--success { background: #e6f7ed; color: #1a7a3c; border: 1px solid #b9e6c9; }
.alert--error { background: #fdecea; color: #a4231b; border: 1px solid #f5c2bd; }

/* ---------------- Info pages ---------------- */
.page-header {
    background: var(--teal-light);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 10px;
}
.page-header h1 { font-size: 30px; font-weight: 800; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); }
.breadcrumb a { color: var(--teal); }
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; margin-top: 30px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}
.contact-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}
.contact-card__icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-weight: 800;
}

/* ---------------- Donate ---------------- */
.donate-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.donate-card__body { padding: 20px; }
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 50px 20px 30px;
}
.footer__col p { font-size: 14px; margin-top: 12px; }
.footer__col h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a:hover { color: var(--teal); }
.footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.footer__socials a {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.footer__socials a:hover { background: var(--teal); border-color: var(--teal); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 20px;
    text-align: center;
    font-size: 13px;
}

#backToTop {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    border: none;
    font-size: 18px;
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 50;
}
#backToTop.is-visible { display: block; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}
.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .top-bar__left span:nth-child(2) { display: none; }
    .main-nav__toggle { display: block; }
    .main-nav__list {
        display: none;
        flex-direction: column;
        background: var(--teal-dark);
    }
    .main-nav__list.is-open { display: flex; }
    .main-nav__divider { display: none; }
    .hero__text h1 { font-size: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; text-align: left; }
    .cart-summary { margin-left: 0; max-width: none; }
}

/* =========================================================
   Dashboard
   ========================================================= */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.dashboard-tabs a {
    padding: 10px 16px;
    font-weight: 600;
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: 2px solid transparent;
}
.dashboard-tabs a:hover { color: var(--teal); }
.dashboard-tabs a.is-active {
    color: var(--ink);
    text-decoration: none;
    border-color: var(--teal);
    background: var(--teal-light);
    border-radius: var(--radius) var(--radius) 0 0;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge--pending, .status-badge--unpaid { background: #fff4e0; color: #a86a00; }
.status-badge--processing { background: var(--teal-light); color: var(--teal-dark); }
.status-badge--completed, .status-badge--paid { background: #e6f7ed; color: #1a7a3c; }
.status-badge--cancelled, .status-badge--failed { background: #fdecea; color: #a4231b; }
.status-badge--refunded { background: var(--bg-alt); color: var(--ink-soft); }

.address-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}
.address-card__actions { margin-top: 10px; display: flex; gap: 8px; }

.paypal-placeholder__btn {
    display: block;
    width: 100%;
    padding: 13px;
    margin-bottom: 10px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 0.75;
}
.paypal-placeholder__btn--paypal { background: #ffc439; color: #003087; }
.paypal-placeholder__btn--card { background: #1a1a1a; color: #fff; }
.paypal-placeholder__note {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 4px;
}
