:root {
    --paw-primary: #af2708;
    --paw-secondary: #89a07e;
    --paw-dark: #1f2428;
    --paw-soft: #fff7f3;
}
body { font-family: 'Nunito Sans', sans-serif; background: #fbfbfb; }
.text-primary { color: var(--paw-primary) !important; }
.bg-secondary { background-color: var(--paw-secondary) !important; }
.btn-primary { background-color: var(--paw-primary) !important; border-color: var(--paw-primary) !important; }
.btn-primary:hover { background-color: #8f1e06 !important; border-color: #8f1e06 !important; transform: translateY(-1px); }
.btn-outline-primary { color: var(--paw-primary); border-color: var(--paw-primary); }
.btn-outline-primary:hover { background: var(--paw-primary); border-color: var(--paw-primary); color: #fff; }
.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link:hover { color: #fff !important; }
.sticky-nav { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.hero-gradient { background: linear-gradient(135deg, rgba(175,39,8,.92), rgba(137,160,126,.92)), url('../img/carousel-1.jpg') center/cover; min-height: 480px; display:flex; align-items:center; }
.page-hero { background: linear-gradient(135deg, rgba(31,36,40,.90), rgba(175,39,8,.85)), url('../img/carousel-2.jpg') center/cover; padding: 75px 0; margin-bottom: 30px; }
.page-hero h1 { color: #ffffff !important; }
.page-hero p.lead { color: #ffffff !important; opacity: .96; }
body.has-page-hero h2, body.has-page-hero h3, body.has-page-hero h4, body.has-page-hero h5, body.has-page-hero h6 { color: #5a6270; }
.soft-section { background: var(--paw-soft); }
.card-clean { border:0; border-radius: 18px; box-shadow: 0 12px 30px rgba(31,36,40,.08); overflow:hidden; background:#fff; }
.hover-lift { transition: all .25s ease; }
.hover-lift:hover { transform: translateY(-7px); box-shadow: 0 18px 38px rgba(31,36,40,.14); }
.pet-card img, .product-card img { height: 235px; object-fit: cover; width: 100%; }
.dashboard-card { border-radius: 18px; padding: 26px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.08); height: 100%; transition:.25s; }
.dashboard-card:hover { transform: translateY(-6px); }
.dashboard-card i { font-size: 42px; color: var(--paw-primary); margin-bottom: 16px; }
.stat-card { border-radius: 18px; padding: 25px; background:#fff; box-shadow: 0 10px 25px rgba(0,0,0,.07); }
.form-control, .custom-select { border-radius: 10px; min-height: 46px; }
.table thead th { background: #f7f7f7; border-top: 0; }
.badge { padding: .45em .7em; border-radius: 20px; }
.auth-wrapper { min-height: 82vh; display:flex; align-items:center; justify-content:center; padding:50px 15px; background: linear-gradient(135deg, rgba(31,36,40,.75), rgba(175,39,8,.68)), url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?q=80&w=2069&auto=format&fit=crop') center/cover; }
.auth-card { width:100%; max-width:460px; background:rgba(255,255,255,.96); border-radius:22px; padding:38px; box-shadow: 0 22px 45px rgba(0,0,0,.25); border-top: 6px solid var(--paw-primary); }
.action-bar { background:#fff; border-radius:18px; padding:18px; box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.timeline-step { position:relative; padding-left:45px; margin-bottom:22px; }
.timeline-step:before { content: attr(data-step); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--paw-primary); color:#fff; text-align:center; line-height:32px; font-weight:700; }
.receipt-box { background:#fff; border:2px dashed #ddd; border-radius:18px; padding:28px; }
@media (max-width: 767px) { .hero-gradient { min-height: 430px; text-align:center; } .display-3 { font-size:2.5rem; } }

.floating-cart-btn {
    position: fixed;
    right: 30px;
    bottom: 95px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--primary, #ED6436);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    z-index: 1040;
    font-size: 22px;
}
.floating-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 20px;
    background: #343a40;
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    font-weight: 700;
}
.floating-cart-panel {
    position: fixed;
    right: 30px;
    bottom: 165px;
    width: 360px;
    max-width: calc(100% - 30px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    overflow: hidden;
    display: none;
    z-index: 1041;
}
.floating-cart-panel.show { display: block; }
.floating-cart-header,
.floating-cart-footer {
    padding: 14px 16px;
    background: #fff8f5;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.floating-cart-footer { border-top: 1px solid rgba(0,0,0,.08); border-bottom: 0; }
.floating-cart-close {
    float: right;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 20px;
    color: #6c757d;
}
.floating-cart-body {
    max-height: 390px;
    overflow-y: auto;
    padding: 14px 16px;
}
.floating-cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.floating-cart-item:last-child { margin-bottom: 0; }
.floating-cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    flex: 0 0 auto;
}
.floating-cart-info { flex: 1; min-width: 0; }
.floating-cart-info strong { display: block; font-size: 14px; }
.floating-cart-info span { display: block; font-size: 12px; color: #6c757d; margin-bottom: 8px; }
.floating-cart-qty {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.floating-cart-qty input {
    width: 68px;
    height: 31px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 2px 6px;
}
.floating-cart-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.floating-cart-actions form { margin: 0; }
@media (max-width: 575.98px) {
    .floating-cart-btn { right: 15px; bottom: 85px; }
    .floating-cart-panel { right: 15px; bottom: 150px; }
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.checkout-summary-item:last-of-type { border-bottom: 0; }
.checkout-summary-item img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
}
.checkout-total-box {
    background: #fff7f3;
    border: 1px solid rgba(175,39,8,.15);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkout-total-box span { color: #6c757d; font-weight: 700; }
.checkout-total-box strong { color: var(--paw-primary); font-size: 1.3rem; }
.qr-only-box {
    background: #fff7f3;
    border-left: 4px solid var(--paw-primary);
    border-radius: 12px;
    padding: 16px 18px;
    color: #4b3b36;
}


/* Admin payment page: wider table, visible update dropdown and better spacing */
.manage-payments-page {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.payment-filter-bar .form-row {
    align-items: center;
}

.payment-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) minmax(230px, 1.3fr) minmax(130px, .65fr) minmax(120px, .55fr);
    gap: 14px;
    align-items: end;
}
.payment-filter-grid label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #5f6368;
}
.payment-filter-item,
.payment-filter-button {
    min-width: 0;
}
.payment-filter-grid .custom-select,
.payment-filter-grid .form-control,
.payment-filter-grid .btn {
    width: 100%;
}
@media (max-width: 991.98px) {
    .payment-filter-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}
@media (max-width: 575.98px) {
    .payment-filter-grid {
        grid-template-columns: 1fr;
    }
}
.payment-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden;
    border-radius: 18px;
}
.payment-admin-table {
    min-width: 1280px;
    font-size: .95rem;
}
.payment-admin-table th,
.payment-admin-table td {
    vertical-align: top;
    padding: 14px 14px;
}
.payment-admin-table thead th {
    white-space: nowrap;
    color: #5f6368;
}
.payment-col-date { width: 90px; }
.payment-col-customer { width: 110px; }
.payment-col-products { width: 180px; }
.payment-col-qty { width: 60px; }
.payment-col-required { width: 105px; }
.payment-col-paid { width: 170px; }
.payment-col-method { width: 120px; }
.payment-col-ref { width: 160px; }
.payment-col-status { width: 175px; }
.payment-col-update { width: 210px; }
.payment-col-receipt { width: 95px; }
.payment-date,
.payment-ref {
    word-break: break-word;
}
.payment-product-list div {
    margin-bottom: 5px;
    line-height: 1.35;
}
.payment-money,
.payment-report-cell strong {
    white-space: nowrap;
}
.payment-method-cell,
.payment-ref,
.payment-status-cell,
.payment-update-cell,
.payment-receipt-cell {
    line-height: 1.45;
}
.payment-status-cell .badge {
    white-space: normal;
    line-height: 1.25;
    text-align: left;
}
.payment-status-form {
    min-width: 180px;
}
.payment-status-form .status-auto-select {
    width: 100%;
    min-width: 175px;
}
.payment-action-note {
    display: block;
    margin-top: 6px;
    line-height: 1.2;
}
.payment-table-wrap::-webkit-scrollbar {
    height: 10px;
}
.payment-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(175,39,8,.35);
    border-radius: 999px;
}
@media (max-width: 991.98px) {
    .manage-payments-page {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .payment-admin-table {
        min-width: 1180px;
        font-size: .9rem;
    }
}

/* Overpayment refund feature */
.payment-col-refund { width: 245px; }
.payment-admin-table { min-width: 1520px; }
.refund-mini-box {
    min-width: 205px;
    line-height: 1.35;
}
.refund-upload-form .form-control-file {
    font-size: .78rem;
    max-width: 205px;
}
.payment-refund-cell .btn,
.history-refund-cell .btn {
    border-radius: 8px;
}
.payment-history-page {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.payment-history-wrap {
    overflow-x: auto !important;
}
.payment-history-table {
    min-width: 1120px;
    font-size: .95rem;
}
.payment-history-table th,
.payment-history-table td {
    vertical-align: middle;
    padding: 14px 14px;
}
.history-product-cell {
    min-width: 330px;
}
.history-product-img {
    width: 55px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}
.history-refund-cell {
    min-width: 230px;
    line-height: 1.35;
}
.refund-card {
    max-width: 760px;
}
.refund-product-img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
}
.refund-summary-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #fff7f3;
    border: 1px solid rgba(175,39,8,.15);
    border-radius: 16px;
    padding: 16px;
}
.refund-summary-box div {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}
.refund-summary-box span {
    display: block;
    color: #6c757d;
    font-size: .85rem;
    margin-bottom: 4px;
}
.refund-summary-box strong {
    font-size: 1.1rem;
    color: #1f2428;
}

.refund-issue-box {
    border: 1px dashed rgba(175,39,8,.35);
    background: #fffaf7;
    border-radius: 14px;
    padding: 16px;
}
.refund-issue-box textarea {
    min-height: 96px;
    resize: vertical;
}

@media (max-width: 767.98px) {
    .payment-admin-table { min-width: 1400px; }
    .payment-history-table { min-width: 1040px; }
    .refund-summary-box { grid-template-columns: 1fr; }
}

/* Underpayment top-up feature */
.underpay-mini-box {
    border-left: 4px solid #dc3545;
    padding-left: 10px;
}
.topup-receipt-box {
    background: #f8f9f6;
    border-left: 4px solid var(--paw-primary);
    border-radius: 12px;
    padding: 14px 16px;
}
.payment-admin-table { min-width: 1580px; }
.payment-col-refund { width: 265px; }

.refund-issue-box {
    border: 1px dashed rgba(175,39,8,.35);
    background: #fffaf7;
    border-radius: 14px;
    padding: 16px;
}
.refund-issue-box textarea {
    min-height: 96px;
    resize: vertical;
}

@media (max-width: 767.98px) {
    .payment-admin-table { min-width: 1500px; }
    .payment-history-table { min-width: 1120px; }
}

/* Announcement notification cards */
.announcement-notification-box {
    border-left: 5px solid #b61d0d;
}
.announcement-alert {
    background: #fff7f4;
    border: 1px solid #f1d4ce;
    border-radius: 10px;
    padding: 14px 16px;
}
.announcement-alert:last-child {
    margin-bottom: 0 !important;
}


/* Keep hero and payment-card headers clear white for presentation screenshots. */
.page-hero h1,
.page-hero .display-4,
.page-hero p,
.page-hero .lead {
    color: #ffffff !important;
}
.qr-header,
.qr-header h1,
.qr-header h2,
.qr-header h3,
.qr-header h4,
.qr-header h5,
.qr-header h6,
.qr-header p,
.qr-header i,
.bank-header,
.bank-header h1,
.bank-header h2,
.bank-header h3,
.bank-header h4,
.bank-header h5,
.bank-header h6,
.bank-header p,
.bank-header i {
    color: #ffffff !important;
}
.qr-header p,
.bank-header p {
    opacity: .95 !important;
}
