/* Category browsing page (customer/category.php) — matches Urban Company's
   category layout: left service-type tabs, main service list, right cart. */

body.customer-app { background: var(--cu-bg); margin: 0; }

.cat-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--cu-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.cat-back { color: var(--cu-dark); font-size: 16px; text-decoration: none; flex-shrink: 0; }
.cat-topbar-logo { height: 28px; width: auto; }
.cat-topbar-title { font-weight: 800; font-size: 16px; color: var(--cu-dark); }

.cat-topbar-cart {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cu-dark);
    text-decoration: none;
    font-size: 15px;
}
.cat-topbar-cart:hover { background: var(--cu-bg); }

.cat-topbar-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--cu-accent);
    color: var(--cu-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
}

.cat-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 100px;
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ---------- Left nav ---------- */
.cat-nav {
    position: sticky;
    top: 76px;
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 16px;
}

.cat-nav-label { font-size: 12px; font-weight: 700; color: var(--cu-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.cat-nav-list { display: flex; flex-direction: column; gap: 6px; }

.cat-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: var(--cu-radius);
    padding: 10px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--cu-dark);
    text-align: left;
    cursor: pointer;
}

.cat-nav-item:hover { background: var(--cu-bg); }
.cat-nav-item.active { background: var(--cu-dark); color: #fff; }

.cat-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--cu-bg);
    color: var(--cu-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.cat-nav-item.active .cat-nav-icon { background: var(--cu-accent); color: var(--cu-dark); }

/* ---------- Main list ---------- */
.cat-main { min-width: 0; }
.cat-empty { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 40px; text-align: center; color: var(--cu-muted); }

.cat-section { margin-bottom: 36px; scroll-margin-top: 90px; }
.cat-section-title { font-size: 20px; font-weight: 900; color: var(--cu-dark); margin: 0 0 16px; }

.cat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 16px;
    margin-bottom: 14px;
}

.cat-card-text { flex: 1; min-width: 0; }
.cat-card-title { font-size: 15.5px; font-weight: 800; color: var(--cu-dark); margin: 0 0 6px; }

.cat-card-price { font-size: 15px; font-weight: 800; color: var(--cu-dark); margin: 0 0 8px; }
.cat-card-price-was { font-size: 12px; font-weight: 600; color: var(--cu-muted); text-decoration: line-through; margin-left: 6px; }
.cat-card-offer {
    display: inline-block;
    background: rgba(22,163,74,.12);
    color: #16A34A;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.cat-card-desc { font-size: 12.5px; color: var(--cu-muted); line-height: 1.5; margin: 0 0 10px; }
.cat-card-link { font-size: 13px; font-weight: 700; color: #2563EB; text-decoration: none; }

.cat-card-media { flex-shrink: 0; width: 130px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat-card-img { display: block; width: 110px; height: 100px; border-radius: 12px; overflow: hidden; background: var(--cu-bg); }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }

.cat-card-cta { width: 110px; }
.cat-add-btn {
    width: 100%;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid var(--cu-dark);
    background: #fff;
    color: var(--cu-dark);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}
.cat-add-btn:hover { background: var(--cu-dark); color: #fff; }

.cat-qty-stepper {
    width: 100%;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid var(--cu-dark);
    background: var(--cu-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}
.cat-qty-stepper button { background: none; border: none; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; line-height: 1; padding: 4px; }
.cat-qty-value { font-weight: 800; font-size: 13px; }

.hidden { display: none !important; }

/* ---------- Variant picker card (e.g. Front Load / Top Load / Semi) ---------- */
.cat-card-variant .cat-card-media { justify-content: flex-start; }
.cat-variant-label { font-size: 11px; font-weight: 700; color: var(--cu-muted); text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 8px; }
.cat-variant-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cat-variant-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--cu-bg);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cu-dark);
    cursor: pointer;
    text-align: left;
}
.cat-variant-btn small { font-weight: 700; font-size: 11.5px; color: var(--cu-muted); }
.cat-variant-btn.active { background: #fff; border-color: var(--cu-accent); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.cat-variant-btn.active small { color: var(--cu-dark); }

.cat-variant-count { font-size: 10.5px; color: var(--cu-muted); font-weight: 600; text-align: center; margin-top: 6px; display: block; }

/* ---------- Right cart panel ---------- */
.cat-cart { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }

.cat-promise, .cat-cart-box {
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 18px;
}

.cat-promise-title { font-size: 14px; font-weight: 800; color: var(--cu-dark); margin: 0 0 12px; }
.cat-promise-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cu-dark); margin: 0 0 8px; }
.cat-promise-row:last-child { margin-bottom: 0; }
.cat-promise-row i { color: #16A34A; }

.cat-cart-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--cu-dark); margin: 0 0 14px; }
.cat-cart-empty { font-size: 12.5px; color: var(--cu-muted); margin: 0; }

.cat-cart-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--cu-dark); margin-bottom: 10px; }
.cat-cart-line-name { font-weight: 600; }
.cat-cart-line-qty { color: var(--cu-muted); font-weight: 500; }
.cat-cart-line-price { font-weight: 800; white-space: nowrap; }

.cat-cart-footer { border-top: 1px dashed var(--cu-border); margin-top: 14px; padding-top: 14px; }
.cat-cart-subtotal { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--cu-dark); margin-bottom: 14px; }

.cat-cart-checkout {
    display: block;
    text-align: center;
    background: var(--cu-accent);
    color: var(--cu-dark);
    font-weight: 800;
    font-size: 14px;
    padding: 12px;
    border-radius: var(--cu-radius);
    text-decoration: none;
}

.cat-cart-bar[hidden] { display: none; }
.cat-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cu-dark);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
}
.cat-cart-bar span { font-weight: 700; font-size: 14px; }
.cat-cart-bar-btn { background: var(--cu-accent); color: var(--cu-dark); font-weight: 800; font-size: 13px; padding: 10px 18px; border-radius: 10px; text-decoration: none; }

@media (max-width: 1024px) {
    .cat-shell { grid-template-columns: 180px 1fr; }
    .cat-cart { display: none; }
}

@media (max-width: 720px) {
    .cat-shell { grid-template-columns: 1fr; padding-bottom: 90px; }
    .cat-nav { position: static; }
    .cat-nav-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .cat-nav-item { flex-direction: column; gap: 4px; flex-shrink: 0; font-size: 11px; padding: 8px; }
    .cat-card { flex-direction: row; }
    .cat-card-media { width: 96px; }
    .cat-card-img { width: 90px; height: 80px; }
    .cat-card-cta { width: 90px; }
}

/* ---------- Checkout page (customer/cart_checkout.php) ---------- */
.checkout-shell { max-width: 640px; margin: 0 auto; padding: 24px 20px 60px; }
.checkout-flash { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; font-size: 13px; font-weight: 600; padding: 12px 16px; border-radius: var(--cu-radius); margin-bottom: 16px; }

.checkout-empty { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 40px; text-align: center; color: var(--cu-muted); }
.checkout-empty .cat-cart-checkout { display: inline-block; margin-top: 14px; padding: 10px 24px; }

.checkout-summary { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 18px; margin-bottom: 20px; }
.checkout-heading { font-size: 16px; font-weight: 800; color: var(--cu-dark); margin: 0 0 14px; }
.checkout-subtotal { border-top: 1px dashed var(--cu-border); margin-top: 10px; padding-top: 12px; margin-bottom: 0; }

.checkout-form { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 20px; }
.checkout-label { display: block; font-size: 12px; font-weight: 800; color: var(--cu-dark); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; }

.checkout-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.peer-input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-time-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    border: 2px solid var(--cu-border);
    background: var(--cu-bg);
    border-radius: var(--cu-radius);
    cursor: pointer;
    text-align: center;
}
.checkout-time-option i { font-size: 20px; color: #cbd5e1; }
.checkout-time-option span { font-weight: 800; font-size: 13px; color: var(--cu-dark); }
.checkout-time-option small { font-size: 10px; color: var(--cu-muted); text-transform: uppercase; font-weight: 700; }
#bt_instant:checked ~ label .checkout-time-option,
#bt_instant:checked + label { border-color: var(--cu-accent); background: #fff; }
input#bt_instant:checked + label i,
input#bt_scheduled:checked + label i { color: var(--cu-accent); }
input#bt_instant:checked + label,
input#bt_scheduled:checked + label { border-color: var(--cu-accent); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.checkout-sched { margin-bottom: 20px; }
.checkout-input {
    width: 100%;
    background: var(--cu-bg);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    color: var(--cu-dark);
    box-sizing: border-box;
}
.checkout-textarea { resize: none; margin-bottom: 20px; }

.checkout-submit {
    width: 100%;
    background: var(--cu-dark);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 14px;
    border: none;
    border-radius: var(--cu-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.checkout-submit i { color: var(--cu-accent); }

/* ---------- Checkout: row-based left column (UC-style) ---------- */
.checkout-rows { padding: 4px 20px; }
.checkout-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--cu-border);
}
.checkout-row:last-child { border-bottom: none; }
.checkout-row-static { border-bottom: none; align-items: center; }
.checkout-row-clickable { cursor: pointer; }

.checkout-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cu-bg);
    color: var(--cu-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.checkout-row-icon-offer { background: rgba(22,163,74,.12); color: #16A34A; }

.checkout-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.checkout-row-label { font-size: 12px; font-weight: 700; color: var(--cu-muted); }
.checkout-row-value { font-size: 14px; font-weight: 700; color: var(--cu-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.checkout-row-stack { align-items: flex-start; }
.checkout-contact-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.checkout-contact-fields .checkout-input { font-size: 13.5px; }
.checkout-row-hint { font-size: 11.5px; color: var(--cu-muted); margin-top: 6px; display: block; }

.checkout-row-edit { background: none; border: 1px solid var(--cu-border); border-radius: 8px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--cu-dark); cursor: pointer; flex-shrink: 0; }
.checkout-row-chevron { font-size: 12px; color: var(--cu-muted); margin-top: 10px; flex-shrink: 0; }

.checkout-address-edit { padding: 0 0 16px; }
.checkout-address-edit .checkout-textarea { margin-bottom: 0; }

.checkout-locate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #2563EB;
    cursor: pointer;
}
.checkout-locate-btn:disabled { opacity: .6; cursor: default; }
.checkout-locate-btn i { font-size: 12px; }

.checkout-locate-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1.5px solid var(--cu-accent);
    border-radius: var(--cu-radius);
    font-size: 13.5px;
    color: var(--cu-dark);
}
.checkout-locate-btn-block i { color: var(--cu-accent); font-size: 14px; }

.checkout-addr-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cu-bg);
    border-radius: var(--cu-radius);
    padding: 0 14px;
    margin-bottom: 12px;
}
.checkout-addr-field i { color: var(--cu-muted); font-size: 13px; width: 14px; text-align: center; flex-shrink: 0; }
.checkout-addr-field .checkout-input {
    background: none;
    border: none;
    padding: 12px 0;
    margin: 0;
    flex: 1;
    min-width: 0;
}
.checkout-addr-field .checkout-input:focus { outline: none; }

.checkout-addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-addr-row .checkout-addr-field { margin-bottom: 12px; }

.checkout-addr-save-as { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.checkout-addr-save-as > span { font-size: 13px; color: var(--cu-muted); font-weight: 600; }
.checkout-addr-label-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid var(--cu-border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cu-dark);
    cursor: pointer;
}
.checkout-addr-label-btn.active { background: var(--cu-accent); border-color: var(--cu-accent); }

.checkout-sched-picker { display: none; padding: 0 0 16px; }
.checkout-sched-picker.open { display: block; }
.checkout-sched-picker .checkout-time-grid { margin-bottom: 0; }
.checkout-sched-picker .checkout-sched { margin-top: 14px; margin-bottom: 0; }

.checkout-policy { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 20px; margin-top: 20px; }
.checkout-policy-title { font-size: 15px; font-weight: 800; color: var(--cu-dark); margin: 0 0 8px; }
.checkout-policy-text { font-size: 12.5px; color: var(--cu-muted); line-height: 1.6; margin: 0; }

/* ---------- Checkout: two-column (UC-style) ---------- */
.checkout-shell-wide { max-width: 1080px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.checkout-left, .checkout-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.checkout-card { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 20px; }
.checkout-card .checkout-heading { display: flex; align-items: center; gap: 8px; }
.checkout-card .checkout-label:first-of-type { margin-top: 4px; }

.checkout-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--cu-border); }
.checkout-item-row:last-of-type { border-bottom: none; }
.checkout-item-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--cu-dark); }

.checkout-item-stepper { display: flex; align-items: center; gap: 10px; border: 1px solid var(--cu-border); border-radius: 8px; padding: 4px 10px; flex-shrink: 0; }
.checkout-item-stepper button { background: none; border: none; font-size: 15px; font-weight: 800; color: var(--cu-dark); cursor: pointer; line-height: 1; padding: 2px 4px; }
.checkout-item-qty { font-weight: 700; font-size: 13px; min-width: 14px; text-align: center; }

.checkout-item-price { font-weight: 800; font-size: 13.5px; color: var(--cu-dark); flex-shrink: 0; width: 64px; text-align: right; }

.checkout-checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--cu-border); font-size: 13px; color: var(--cu-dark); font-weight: 600; cursor: pointer; }
.checkout-checkbox-row input { width: 16px; height: 16px; accent-color: var(--cu-dark); }

.checkout-coupon-hint { font-size: 12.5px; color: var(--cu-muted); margin: 0; }

.checkout-summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--cu-dark); padding: 6px 0; }
.checkout-summary-dashed { border-bottom: 1px dashed var(--cu-border); padding-bottom: 12px; margin-bottom: 4px; }
.checkout-summary-strong { font-weight: 800; font-size: 14.5px; }

.checkout-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--cu-border);
    padding: 14px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.checkout-sticky-amount { font-weight: 900; font-size: 16px; color: var(--cu-dark); display: block; }
.checkout-sticky-breakup { font-size: 11.5px; color: #2563EB; text-decoration: none; font-weight: 600; }
.checkout-sticky-btn { background: var(--cu-dark); color: #fff; font-weight: 800; font-size: 13.5px; padding: 12px 22px; border: none; border-radius: var(--cu-radius); cursor: pointer; }

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-right .checkout-submit { display: none; }
    .checkout-sticky-bar { display: flex; }
    .checkout-shell-wide { padding-bottom: 90px; }
}

/* ---------- Booking confirmation ---------- */
.confirm-shell { max-width: 480px; margin: 60px auto; padding: 0 20px; }
.confirm-card { background: #fff; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-lg); padding: 40px 28px; text-align: center; }
.confirm-tick {
    width: 64px; height: 64px; margin: 0 auto 20px;
    border-radius: 50%; background: rgba(22,163,74,.12); color: #16A34A;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.confirm-title { font-size: 22px; font-weight: 900; color: var(--cu-dark); margin: 0 0 8px; }
.confirm-sub { font-size: 14px; color: var(--cu-muted); margin: 0 0 4px; }
.confirm-when { font-size: 13px; color: var(--cu-dark); font-weight: 600; margin: 10px 0 28px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.confirm-actions { display: flex; flex-direction: column; gap: 12px; }
.confirm-primary-btn { text-decoration: none; }
.confirm-secondary-btn { font-size: 13.5px; font-weight: 700; color: var(--cu-dark); text-decoration: none; padding: 8px; }
