/* Pet-supplies store + payment portal: original theme (deep navy, warm amber, cream). */
:root {
    --brand: #1e2a4a;
    --brand-dark: #131c34;
    --brand-soft: #e9edf7;
    --accent: #f0a04b;
    --accent-dark: #d9821f;
    --sale: #d6513a;
    --sand: #faf6ef;
    --sand-2: #f3ecdf;
    --ink: #1b2236;
    --muted: #667085;
    --line: #e8e2d6;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --bs-primary: #1e2a4a;
    --bs-primary-rgb: 30, 42, 74;
    --bs-link-color: #1e2a4a;
    --bs-link-color-rgb: 30, 42, 74;
    --bs-link-hover-color: #d9821f;
    --bs-link-hover-color-rgb: 217, 130, 31;
    --bs-body-color: #1b2236;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-border-color: #e8e2d6;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.bg-sand { background: var(--sand) !important; }
.text-brand { color: var(--brand) !important; }
h1, h2, h3, h4 { letter-spacing: -.015em; font-weight: 700; }
a { transition: color .15s; }

/* ------------------------------------------------------------ Buttons / forms */
.btn { border-radius: .6rem; font-weight: 600; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .85rem 1.5rem; }
.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 30, 42, 74;
}
.btn-primary:hover { box-shadow: 0 8px 18px rgba(30, 42, 74, .28); }
.btn-accent { --bs-btn-color: #1b2236; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: #1b2236; --bs-btn-hover-bg: #f5b266; --bs-btn-hover-border-color: #f5b266; --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); --bs-btn-focus-shadow-rgb: 240, 160, 75; }
.btn-accent:hover { box-shadow: 0 8px 18px rgba(240, 160, 75, .4); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.btn-outline-secondary { --bs-btn-color: #44506a; --bs-btn-border-color: #cfd5e2; --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: #b9c2d8; --bs-btn-active-bg: var(--brand-soft); --bs-btn-active-color: var(--brand); }
.form-control, .form-select { border-radius: .6rem; padding: .6rem .8rem; border-color: #d9d4c8; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(30, 42, 74, .16); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.card { border-color: var(--line); border-radius: .9rem; }
.card-header { border-color: var(--line); }
.table > :not(caption) > * > * { padding: .8rem .9rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--sand); border-bottom-color: var(--line); }
.nav-tabs .nav-link { color: var(--muted); }
.nav-tabs .nav-link.active { color: var(--brand); font-weight: 700; }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); --bs-pagination-hover-color: var(--brand-dark); }
.progress { background: var(--sand-2); border-radius: 99px; }
.progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width .9s var(--ease); }
.accordion-item { border-color: var(--line); }
.accordion-button:not(.collapsed) { background: var(--sand); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .22rem rgba(30, 42, 74, .16); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ------------------------------------------------------------ Accessibility */
.skip-link { position: absolute; left: .5rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .4rem; }
:focus-visible { outline: 3px solid rgba(240, 160, 75, .85); outline-offset: 2px; }

/* ------------------------------------------------------------ Announcement bar + header */
.announce { background: var(--brand); color: #e8ecf7; position: relative; overflow: hidden; min-height: 2.4rem; }
.announce-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); padding: 0 1rem; }
.announce-item.is-active { opacity: 1; transform: none; }
.announce strong { color: var(--accent); }
.no-js .announce-item:first-child, .announce:not(.is-rotating) .announce-item:first-child { opacity: 1; transform: none; }
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 28, 52, .08); }
.site-header .navbar { transition: padding .25s var(--ease); }
.site-header.is-scrolled .navbar { padding-top: .35rem; padding-bottom: .35rem; }
.navbar-brand { font-weight: 800; color: var(--ink); }
.brand-logo { border-radius: .5rem; object-fit: contain; transition: transform .35s var(--ease); }
.navbar-brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-size: 1.05rem; }
.navbar .nav-link { color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .2rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }
#navSearch { min-width: 9rem; }
.cart-badge { position: absolute; top: -.5rem; right: -.5rem; font-size: .65rem; background: var(--accent) !important; color: #1b2236 !important; }
.cart-badge.pop { animation: pop .45s var(--ease); }
.demo-banner { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffe69c; }
.flash-stack { margin-top: 1rem; }

/* ------------------------------------------------------------ Footer */
.site-footer { background: var(--brand-dark); color: #aab3c8; }
.site-footer h2 { letter-spacing: .02em; }
.site-footer a { color: #dfe4f0; text-decoration: none; transition: color .15s, padding-left .2s var(--ease); }
.site-footer a:hover { color: var(--accent); padding-left: .2rem; }
.site-footer .brand-name { color: #fff; }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle at 30% 30%, #ffe2b8, #fbd29a 60%, transparent 70%); opacity: .75; animation: drift 14s ease-in-out infinite alternate; }
.hero::after { width: 360px; height: 360px; left: -120px; bottom: -160px; background: radial-gradient(circle at 60% 40%, #dfe5f6, transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.hero > .container { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: var(--accent-dark); }
.hero h1 span.hl { background: linear-gradient(transparent 62%, rgba(240, 160, 75, .45) 62%); padding: 0 .15em; }
.hero-in > * { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease) forwards; }
.hero-in > *:nth-child(1) { animation-delay: .05s; } .hero-in > *:nth-child(2) { animation-delay: .15s; }
.hero-in > *:nth-child(3) { animation-delay: .25s; } .hero-in > *:nth-child(4) { animation-delay: .35s; } .hero-in > *:nth-child(5) { animation-delay: .45s; }
.hero-collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; aspect-ratio: 1 / .9; width: 100%; max-width: 620px; margin-left: auto; }
.collage-tile { position: relative; display: block; border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(19, 28, 52, .13); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); min-height: 0; }
.collage-tile img, .collage-tile .product-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-tile.t1 { grid-row: 1 / span 2; }
.collage-tile .tile-label { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border-radius: .85rem; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(19, 28, 52, .12); font-size: .8rem; line-height: 1.2; color: var(--ink); }
.collage-tile .tile-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.collage-tile .tile-price { font-weight: 800; color: var(--brand); white-space: nowrap; }
.collage-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 46px rgba(19, 28, 52, .18); }
.price-chip { position: absolute; left: .7rem; bottom: .7rem; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; padding: .25rem .65rem; border-radius: 99px; }
.hero-points .tick { margin-right: .25rem; }
.tick { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fdebd2; color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }

/* Marquee strip */
.marquee { background: var(--brand); color: #fff; overflow: hidden; white-space: nowrap; padding: .85rem 0; }
.marquee-track { display: inline-flex; gap: 3rem; padding-left: 3rem; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 700; letter-spacing: .06em; font-size: .85rem; text-transform: uppercase; }
.marquee-track span::before { content: "\2726"; color: var(--accent); margin-right: 3rem; }

/* ------------------------------------------------------------ Sections / tiles */
.section-title { position: relative; display: inline-block; }
.section-title::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--accent); margin-top: .5rem; }
.step-card { background: var(--sand); border-radius: 1rem; padding: 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(19, 28, 52, .08); }
.step-num { display: inline-flex; width: 2.3rem; height: 2.3rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.category-tile { min-height: 200px; border-radius: 1.1rem; padding: 1.5rem; color: var(--ink); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.category-tile:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(19, 28, 52, .13); color: var(--ink); }
.category-tile::after { content: "\2192"; position: absolute; right: 1.3rem; bottom: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(-10px); transition: all .3s var(--ease); }
.category-tile:hover::after { opacity: 1; transform: none; }
.category-emoji { position: absolute; top: 1rem; right: 1.2rem; font-size: 3.4rem; transition: transform .45s var(--ease); }
.category-tile:hover .category-emoji { transform: scale(1.18) rotate(-8deg); }
.ph-cats.category-tile { background: linear-gradient(135deg, #eef1f9, #d5dcef); }
.ph-dogs.category-tile { background: linear-gradient(135deg, #fff3df, #fbdcae); }
.ph-beds.category-tile { background: linear-gradient(135deg, #f3ece3, #e3d2bd); }
.ph-treats.category-tile { background: linear-gradient(135deg, #fdeee0, #f6cfa8); }
.ph-health.category-tile { background: linear-gradient(135deg, #e7f4ef, #c6e3d6); }
.ph-care.category-tile { background: linear-gradient(135deg, #e9f3fa, #cde1f1); }

/* ------------------------------------------------------------ Products */
.product-card { display: flex; flex-direction: column; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.product-card:hover { box-shadow: 0 18px 36px rgba(19, 28, 52, .12); transform: translateY(-5px); border-color: transparent; }
.product-media { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; }
.product-media img, .product-media .product-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img, .product-card:hover .product-media .product-ph { transform: scale(1.07); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: .95rem 1rem 1rem; }
.sale-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; }
.badge.text-bg-danger { background: var(--sale) !important; }
.price { font-weight: 800; font-size: 1.05rem; }
.price-lg { font-size: 1.8rem; }
.quick-add { position: relative; z-index: 3; margin-top: .75rem; }
.quick-add .btn { width: 100%; }
@media (hover: hover) and (min-width: 768px) {
    .quick-add { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
    .product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: none; }
    .product-card .product-body { padding-bottom: 1rem; }
}
.product-ph { display: flex; align-items: center; justify-content: center; font-size: 4rem; aspect-ratio: 1 / 1; border-radius: inherit; }
.product-ph.ph-cats { background: linear-gradient(135deg, #eef1f9, #d5dcef); }
.product-ph.ph-dogs { background: linear-gradient(135deg, #fff3df, #fbdcae); }
.product-ph.ph-beds { background: linear-gradient(135deg, #f3ece3, #e3d2bd); }
.product-ph.ph-care { background: linear-gradient(135deg, #e9f3fa, #cde1f1); }
.product-ph.ph-x { background: var(--sand); }
.product-hero { border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.product-hero img, .product-hero .product-ph { width: 100%; height: auto; display: block; font-size: 8rem; }
.sticky-buy { position: sticky; top: 6.5rem; }

/* Cart */
.cart-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; }
.cart-thumb { width: 76px; flex: none; border-radius: .7rem; overflow: hidden; }
.cart-thumb .product-ph { font-size: 2rem; }
.cart-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.qty-input { width: 5rem; }
.free-ship { background: var(--sand); border-radius: .8rem; padding: .8rem 1rem; }
.free-ship .progress { height: 8px; }

/* Admin thumbs */
.admin-thumb { width: 44px; height: 44px; border-radius: .5rem; overflow: hidden; }
.admin-thumb .product-ph { font-size: 1.4rem; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-preview { width: 120px; border-radius: .6rem; overflow: hidden; }
.admin-preview img { width: 100%; display: block; }

/* ------------------------------------------------------------ Auth, stats, summaries */
.auth-card { border-radius: 1.1rem; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.75rem; box-shadow: 0 10px 30px rgba(19, 28, 52, .06); }
.trust-list li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.trust-list li:last-child { border-bottom: 0; }
.stat-card { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: 1.1rem 1.25rem; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.stat-card:hover { border-color: var(--accent); box-shadow: 0 10px 22px rgba(19, 28, 52, .08); transform: translateY(-2px); }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 1.65rem; font-weight: 800; line-height: 1.2; }
.stat-sub { font-size: .78rem; color: var(--muted); }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.summary-list dt { font-weight: 400; color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }
.summary-list .total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: .25rem; padding-top: .8rem; }
.summary-list .total dt { color: var(--ink); font-weight: 800; }
.summary-list .total dd { font-size: 1.4rem; }
.checkout-summary { top: 6rem; }
.empty-icon { font-size: 2.6rem; margin-bottom: .5rem; }
.success-check, .fail-cross { width: 4rem; height: 4rem; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.success-check { background: #e3f5ea; color: #1f8a4c; animation: pop .6s var(--ease); }
.fail-cross { background: #fdecea; color: #b42318; }
.eligibility-box { border-radius: .6rem; padding: .8rem 1rem; }
.eligibility-box.ok { background: #e3f5ea; }
.eligibility-box.no { background: #fff3cd; }

/* Invoice document */
.invoice-doc { max-width: 880px; margin: 0 auto; overflow: hidden; }
.invoice-head { background: var(--brand); color: #fff; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; }
.invoice-meta > div { display: flex; gap: 1rem; justify-content: space-between; padding: .2rem 0; font-size: .9rem; }
.invoice-meta dt { font-weight: 400; color: var(--muted); }
.invoice-meta dd { margin: 0; font-weight: 600; text-align: right; }

/* ------------------------------------------------------------ Admin */
.admin-body { background: #f4f2ed; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { --bs-offcanvas-width: 250px; --bs-offcanvas-bg: #131c34; --bs-offcanvas-color: #aab3c8; background: #131c34; color: #aab3c8; flex: 0 0 250px; }
@media (min-width: 992px) {
    .admin-sidebar { position: sticky; top: 0; height: 100vh; transform: none !important; visibility: visible !important; background-color: #131c34 !important; }
}
.admin-sidebar .offcanvas-body { display: flex; }
.admin-brand { align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-brand .brand-name { color: #fff; font-size: .95rem; font-weight: 700; }
.admin-sidebar .nav-link { color: #aab3c8; border-radius: .55rem; padding: .6rem .9rem; transition: background .2s, color .2s, padding-left .2s var(--ease); }
.admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; padding-left: 1.1rem; }
.admin-sidebar .nav-link.active { background: var(--accent); color: #1b2236; font-weight: 700; }
.admin-main { flex: 1 1 auto; min-width: 0; }
.admin-topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }

/* Loading state for submit buttons */
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; margin-right: .5rem; vertical-align: -.15em; }

/* ------------------------------------------------------------ Motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(.8deg); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-30px, 24px) scale(1.08); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal, .hero-in > * { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1199.98px) {
    .hero-collage { margin: .5rem auto 0; max-width: 560px; }
    .hero .display-5 { font-size: 2.2rem; }
}
@media (max-width: 575.98px) {
    .stat-value { font-size: 1.35rem; }
    .display-5 { font-size: 2rem; }
    .brand-name { font-size: .88rem; line-height: 1.15; }
    .brand-logo { width: 30px; height: 30px; }
    .navbar-brand { margin-right: .5rem; }
    .hero-collage { gap: .6rem; aspect-ratio: 1 / 1; }
    .collage-tile { border-radius: 1rem; }
    .collage-tile .tile-label { left: .4rem; right: .4rem; bottom: .4rem; padding: .35rem .5rem; font-size: .72rem; }
    .collage-tile .tile-price { font-size: .72rem; }
    .hero .btn-lg { width: 100%; }
}

@media print {
    .no-print, .site-header, .site-footer, .announce, .admin-sidebar, .admin-topbar, .demo-banner, .skip-link { display: none !important; }
    body, .admin-body, .bg-sand { background: #fff !important; }
    .admin-main, main { padding: 0 !important; }
    .invoice-doc { border: 0; box-shadow: none; max-width: 100%; }
    .invoice-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------------------ Content sections, reviews, newsletter */
.hl { background: linear-gradient(transparent 62%, rgba(240, 160, 75, .5) 62%); padding: 0 .12em; }
.features-band { background: var(--sand); }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(19, 28, 52, .08); }
.feature-num { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border-radius: .6rem; background: var(--accent); color: #1b2236; font-weight: 800; }
.stars { color: var(--accent-dark); letter-spacing: .08em; }
.review-carousel { max-width: 760px; margin: 0 auto; padding: 0 3rem; }
.review-carousel .carousel-control-prev-icon, .review-carousel .carousel-control-next-icon { filter: invert(1) opacity(.6); }
.review-quote blockquote { font-size: 1.1rem; font-style: italic; }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.page-body p { max-width: 70ch; }
.newsletter .form-control { border-color: transparent; }
.btn-accent { color: #1b2236; }
.admin-count { font-size: .65rem; }

.admin-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #7f8aa6; padding: 1rem 1.4rem .3rem; font-weight: 700; }
.admin-nav { overflow-y: auto; }
.chart-bars { display: flex; align-items: flex-end; gap: .5rem; height: 150px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.chart-bar > span.bar { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border-radius: 6px 6px 0 0; min-height: 3px; transition: height .8s var(--ease); }
.chart-bar > small { font-size: .65rem; color: var(--muted); margin-top: .35rem; white-space: nowrap; }

/* ------------------------------------------------------------ Fixes & polish */
/* Admin sidebar: fixed height, menu scrolls inside it (was spilling out of the dark background on short screens) */
.admin-sidebar .offcanvas-body { overflow-y: auto; height: 100%; padding: 0; flex-direction: column; }
@media (min-width: 992px) { .admin-sidebar { display: flex !important; flex-direction: column; overflow: hidden; } .admin-sidebar .offcanvas-body { flex: 1 1 auto; min-height: 0; } }
.admin-sidebar .admin-nav { flex: 1 0 auto; }
.admin-sidebar .nav-link { padding: .5rem .9rem; font-size: .93rem; }
.admin-main table a:not(.btn) { text-decoration: none; }
.admin-main table a:not(.btn):hover { text-decoration: underline; }
.site-header .btn { white-space: nowrap; }
.table > :not(caption) > tr:hover > * { background-color: rgba(240, 160, 75, .06); }
.page-body ul, .page-body ol { max-width: 70ch; padding-left: 1.2rem; }
.page-body li { margin-bottom: .35rem; }
.page-body h2 { color: var(--brand); }
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.trust-row > div { background: var(--sand); border-radius: .8rem; padding: .8rem 1rem; font-size: .85rem; }
.trust-row strong { display: block; color: var(--brand); }

/* ------------------------------------------------------------ Bug fixes (round 2) */
.cart-thumb img, .admin-preview img, .product-hero img { height: auto; }
.cart-thumb { aspect-ratio: 1 / 1; background: var(--sand); }
.cart-thumb img { height: 100%; object-fit: cover; }
.admin-thumb img, .product-media img, .collage-tile img, .featured-card img { max-width: 100%; }
.breadcrumb { margin-top: .25rem; }
.admin-main main { padding-top: 1.75rem !important; }
.admin-topbar .btn-user { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar .admin-group { padding-top: .75rem; padding-bottom: .15rem; }
.admin-sidebar .nav-link { padding-top: .4rem; padding-bottom: .4rem; }
.admin-brand { padding-top: .8rem; padding-bottom: .8rem; }

/* size / colour option buttons on the product page */
.option-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.option-chip { display: inline-block; padding: .4rem .9rem; border: 1px solid #cfd5e4; border-radius: 2rem; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; transition: border-color .2s, background .2s, transform .2s; }
.option-chip:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
.option-chip.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.option-chip.soldout:not(.active) { color: #8a90a0; border-style: dashed; }

/* header: compact so the full bar always fits (burger menu below 1400px) */
@media (min-width: 1400px) {
    .navbar .nav-link { font-size: .9rem; padding-left: .4rem; padding-right: .4rem; }
    .navbar form[role="search"] .form-control { width: 150px; }
    .navbar form[role="search"] .btn { display: none; }
    .navbar-brand { margin-right: .5rem; }
}

@media (max-width: 575.98px) {
    .hero .lead { font-size: 1rem; margin-top: .75rem !important; }
    .hero .container { padding-top: 1.25rem !important; padding-bottom: 1.5rem !important; }
    .hero .btn-lg { padding: .65rem 1rem; font-size: 1rem; }
    .hero-points { margin-top: 1rem !important; }
}

/* Bootstrap's extra-wide gutters (g-5) push rows past the screen edge on phones */
@media (max-width: 767.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    .row.g-5, .row.gy-5 { --bs-gutter-y: 2rem; }
}

/* products without a price yet */
.badge-soon { background: var(--accent); color: var(--ink); }
.price-soon { font-weight: 700; color: var(--accent-dark, #b86f1e); font-size: .95rem; }
.soon-box { background: var(--sand); border: 1px dashed #e3c79f; border-radius: 1rem; padding: 1rem 1.25rem; }

.shop-menu { border-radius: .9rem; border-color: var(--line); box-shadow: 0 16px 36px rgba(19, 28, 52, .12); padding: .4rem; min-width: 13rem; }
.shop-menu .dropdown-item { border-radius: .55rem; padding: .45rem .8rem; font-weight: 500; }
.shop-menu .dropdown-item:hover { background: var(--sand); color: var(--brand); }
.navbar .nav-link.dropdown-toggle::after { position: static; display: inline-block; width: auto; height: auto; background: none; transform: none; margin-left: .3rem; vertical-align: .15em; border-top: .32em solid; border-right: .32em solid transparent; border-left: .32em solid transparent; border-bottom: 0; }
