/* =============================================================================
   Tiny Crayons — theme.css
   A colorful, parent-friendly kids' creative-shop look.
   ========================================================================== */

:root {
  --coral:  #FF6B6B;
  --yellow: #FFD93D;
  --sky:    #4D96FF;
  --mint:   #6BCB77;
  --purple: #9D6BFF;
  --cream:  #FFF8EE;
  --ink:    #2B2B3A;
  --muted:  #6b6b78;

  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 10px 30px rgba(43, 43, 58, .08);
  --shadow-lg: 0 18px 50px rgba(43, 43, 58, .14);

  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand,
.section-title, .hero-title, .card-title, .product-title {
  font-family: var(--font-head);
  font-weight: 700;
}

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--purple); }

/* --- decorative background blobs --- */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .18; }
.blob-1 { width: 360px; height: 360px; background: var(--coral);  top: -80px;  left: -100px; }
.blob-2 { width: 420px; height: 420px; background: var(--sky);    top: 30%;    right: -160px; }
.blob-3 { width: 300px; height: 300px; background: var(--mint);   bottom: -100px; left: 10%; }

/* --- buttons --- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: var(--radius);
  padding: .6rem 1.4rem; border: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }

.btn-cta { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(255,107,107,.35); }
.btn-cta:hover { background: #ff5252; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255,107,107,.45); }

.btn-buy { background: var(--mint); color: #fff; box-shadow: 0 8px 18px rgba(107,203,119,.35); }
.btn-buy:hover { background: #57bb64; color: #fff; transform: translateY(-2px); }
.btn-buy:disabled { background: #cfd6cf; box-shadow: none; }

.btn-ghost { background: #fff; color: var(--ink); border: 2px solid #ffe1c9; }
.btn-ghost:hover { background: #fff; border-color: var(--coral); color: var(--coral); }

.btn-view { background: var(--sky); color: #fff; padding: .3rem 1rem; font-size: .9rem; border-radius: 12px; }

/* --- navbar --- */
.site-nav { background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(43,43,58,.06); padding: .6rem 0; }
.navbar-brand { font-size: 1.4rem; font-weight: 800; color: var(--ink) !important; }
.brand-emoji { filter: drop-shadow(0 2px 2px rgba(0,0,0,.1)); }
.site-nav .nav-link { font-weight: 700; color: var(--ink); border-radius: 12px; }
.site-nav .nav-link:hover { color: var(--coral); }

/* --- hero --- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 2rem; }
.hero-pill { display: inline-block; background: var(--yellow); color: #7a5a00;
  font-weight: 700; padding: .35rem 1rem; border-radius: 999px; font-size: .9rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.hero-title .hl { color: var(--coral); }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin: 1.2rem 0 1.6rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-art img { max-height: 420px; filter: drop-shadow(0 16px 30px rgba(43,43,58,.15)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* --- sections --- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-cream { background: #fff; border-radius: var(--radius-lg); }
.section-head { margin-bottom: 2.2rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* --- navbar search --- */
.nav-search { display: flex; align-items: center; background: #fff; border: 2px solid #ffe1c9;
  border-radius: 999px; padding: 2px 2px 2px 14px; }
.nav-search:focus-within { border-color: var(--coral); }
.nav-search input { border: none; outline: none; background: transparent; font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; width: 9rem; }
.nav-search button { border: none; background: var(--coral); color: #fff; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: .9rem; display: grid; place-items: center; flex: 0 0 auto; }
.nav-search button:hover { background: #ff5252; }
@media (max-width: 991.98px) {
  .nav-search { margin: .4rem 0; }
  .nav-search input { width: 100%; flex: 1; }
}

/* --- shop page --- */
.shop-hero { padding: clamp(2rem, 5vw, 3.4rem) 0 1.4rem; text-align: center; }
.shop-search { display: flex; align-items: center; gap: .4rem; max-width: 30rem; margin: 1.4rem auto 0;
  background: #fff; border: 2px solid #ffe1c9; border-radius: 999px; padding: 4px 4px 4px 1rem; box-shadow: var(--shadow); }
.shop-search:focus-within { border-color: var(--coral); }
.shop-search-ico { font-size: 1.1rem; }
.shop-search input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font-body);
  font-weight: 600; font-size: 1rem; min-width: 0; }
.shop-search .btn { border-radius: 999px; padding: .5rem 1.2rem; flex: 0 0 auto; }
.search-summary { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem 1.1rem; margin-bottom: 1.2rem; }
.clear-search { font-weight: 700; color: var(--coral); }
.clear-search:hover { color: var(--purple); }
.shop-title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; margin-top: .6rem; }
.shop-sub { color: var(--muted); font-size: 1.1rem; max-width: 36rem; margin: .6rem auto 0; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.6rem; }
.filter-pill { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head);
  font-weight: 700; padding: .45rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow);
  font-size: .95rem; border: 2px solid transparent; line-height: 1.1;
  transition: transform .15s ease, filter .15s ease; }
.filter-pill:hover { transform: translateY(-2px); filter: brightness(.97); }
.filter-pill.active { box-shadow: 0 8px 18px rgba(43,43,58,.18); }
.filter-pill .pill-count { font-size: .78rem; font-weight: 800; opacity: .7; }
/* The colorful "All books" pill (no per-category color). */
.all-pill { background: #fff; color: var(--ink); }
.all-pill.active { color: #fff; border-color: transparent; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9D6BFF); }

/* small colored category chip used on product cards & the product page */
.cat-chip { display: inline-block; font-size: .7rem; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; letter-spacing: .01em; }
.cat-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: .5rem;
  vertical-align: middle; box-shadow: 0 0 0 2px rgba(0,0,0,.06); }
.shop-count { margin-bottom: 1rem; font-weight: 700; }
.empty-shop { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 3rem 1.5rem; }

/* --- product cards --- */
.product-card { display: block; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease; color: var(--ink); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-img-wrap { aspect-ratio: 4/5; background: var(--cream); overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.card-age, .card-pages { font-size: .72rem; font-weight: 700; background: #fff0f0; color: var(--coral);
  padding: .12rem .55rem; border-radius: 999px; }
.card-pages { background: #eef4ff; color: var(--sky); }
.card-title { font-size: 1.05rem; line-height: 1.25; margin: .1rem 0 .6rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--mint); }

/* --- how it works --- */
.step-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow); height: 100%; position: relative; }
.step-icon { font-size: 2.6rem; }
.step-num { position: absolute; top: 1rem; right: 1.2rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--yellow); color: #7a5a00; font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center; }
.step-card h3 { font-size: 1.2rem; margin: .8rem 0 .4rem; }
.step-card p { color: var(--muted); margin: 0; }

/* --- cta band --- */
.cta-band { background: linear-gradient(120deg, var(--purple), var(--sky));
  color: #fff; border-radius: var(--radius-lg); padding: 3rem 1.5rem; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-weight: 800; }
.cta-band p { opacity: .92; margin-bottom: 1.4rem; }
.cta-band .btn-cta { background: #fff; color: var(--purple); }
.cta-band .btn-cta:hover { background: var(--yellow); color: #7a5a00; }

/* --- announcement bar --- */
.announce-bar { background: linear-gradient(90deg, var(--purple), var(--sky)); color: #fff;
  text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: .5rem 1rem; }

/* --- footer social --- */
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-ico { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 1.15rem; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.social-ico:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* --- doodle divider band (above footer) --- */
/* img fills the same .container as the footer below, so its left & right
   edges line up exactly with the footer content width. */
.footer-doodle-band { padding: 2.5rem 0 1.5rem; overflow: hidden; }
.footer-doodle-band img { width: 100%; height: auto; display: block; margin: 0; }
@media (max-width: 575.98px) {
  .footer-doodle-band { padding: 1.6rem 0 1rem; }
}

/* --- footer --- */
.site-footer { background: var(--ink); color: #e9e9f0; padding: 3rem 0 1.5rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.footer-tag { color: #b9b9c8; margin-top: .6rem; max-width: 22rem; }
.footer-head { color: #fff; font-weight: 800; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #c9c9d6; }
.footer-links a:hover { color: var(--yellow); }
.mini-badge { display: inline-block; background: rgba(255,255,255,.1); padding: .25rem .7rem; border-radius: 999px;
  font-size: .8rem; margin-right: .4rem; margin-top: .3rem; }
.footer-rule { border-color: rgba(255,255,255,.15); margin: 1.6rem 0 1rem; }
.site-footer small { color: #aeaebd; }

/* =============================================================================
   Product page
   ========================================================================== */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs span { margin: 0 .35rem; }

.gallery-main { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 3px solid transparent;
  background: #fff; padding: 0; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--coral); }

.buy-panel { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.cat-pill { display: inline-block; background: #f0eaff; color: var(--purple); font-weight: 700;
  padding: .2rem .8rem; border-radius: 999px; font-size: .8rem; margin-bottom: .6rem; }
.product-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.product-short { color: var(--muted); font-size: 1.1rem; }
.product-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.fact { background: var(--cream); border-radius: 12px; padding: .4rem .8rem; font-weight: 700; font-size: .9rem; }
.price-row { display: flex; align-items: baseline; gap: .8rem; margin: 1.2rem 0; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--mint); }
.price-note { color: var(--muted); font-size: .9rem; }

.trust-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.tb { flex: 1 1 30%; text-align: center; background: var(--cream); border-radius: 12px; padding: .7rem .4rem;
  font-weight: 700; font-size: .85rem; }
.tb span { display: block; font-size: 1.3rem; }

.included { margin-top: 1.4rem; }
.included h3 { font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem;
  background: var(--mint); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }

.block-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.desc-block p { color: #43434f; line-height: 1.7; }

.faq-accordion .accordion-item { border: none; margin-bottom: .7rem; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow); }
.faq-accordion .accordion-button { font-family: var(--font-head); font-weight: 700; background: #fff; }
.faq-accordion .accordion-button:not(.collapsed) { background: #fff0f0; color: var(--coral); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }

/* --- lightbox --- */
.lightbox { position: fixed; inset: 0; background: rgba(20,20,30,.85); display: none;
  align-items: center; justify-content: center; z-index: 1080; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 1rem; right: 1.4rem; background: none; border: none; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* --- success page --- */
.success-card { max-width: 560px; background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg); }
.success-emoji { font-size: 3rem; }
.success-title { font-weight: 800; margin-top: .6rem; }
.success-sub { color: var(--muted); font-size: 1.1rem; }
.success-product { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 1.6rem 0; }
.success-product img { width: 84px; height: 105px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.success-product-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-align: left; }
.download-btn { margin: .6rem 0 1rem; padding: .9rem 2rem; font-size: 1.15rem; }
.success-note { color: var(--muted); font-size: .95rem; }

/* --- auth (login / register) --- */
.auth-card { max-width: 460px; background: #fff; border-radius: var(--radius-lg); padding: 2.2rem 2rem; box-shadow: var(--shadow-lg); }
.auth-title { font-weight: 800; font-size: 1.7rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.4rem; }
.auth-alt { margin-top: 1rem; margin-bottom: 0; text-align: center; }

/* --- announcement / account prompt on success --- */
.account-prompt { background: #eef4ff; border: 1px dashed var(--sky); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin: 1rem 0; font-size: .95rem; }

/* --- my account --- */
.account-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.account-title { font-weight: 800; font-size: 1.9rem; margin: 0; }
.account-sub { color: var(--muted); margin: .2rem 0 0; }
.account-empty { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 3rem 1.5rem; }
.orders-list { display: flex; flex-direction: column; gap: .9rem; }
.order-row { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .9rem 1.1rem; }
.order-cover { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--cream); flex: 0 0 auto; }
.order-info { flex: 1; min-width: 0; }
.order-name { font-family: var(--font-head); font-weight: 700; }
.order-meta { color: var(--muted); font-size: .9rem; }
.order-action { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .order-row { flex-wrap: wrap; }
  .order-action { width: 100%; }
  .order-action .btn { width: 100%; }
}

/* --- 404 / errors --- */
.notfound { padding: 3rem 0; }
.notfound-emoji { font-size: 3.4rem; }
.notfound h1 { font-weight: 800; margin-top: .6rem; }

/* =============================================================================
   Admin
   ========================================================================== */
.admin-body { background: #f3f4f8; }

/* ---- sidebar shell ---- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { flex: 0 0 244px; width: 244px; background: #20223a; color: #c7c9e0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1.1rem .8rem; z-index: 1045; }
.admin-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff;
  text-decoration: none; padding: .4rem .6rem 1rem; display: block; }
.admin-brand span { display: inline; }
.admin-menu { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.admin-menu-link { display: flex; align-items: center; gap: .7rem; color: #c7c9e0; text-decoration: none;
  font-weight: 700; padding: .62rem .8rem; border-radius: 12px; transition: background .15s ease, color .15s ease; }
.admin-menu-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu-link.active { background: var(--coral); color: #fff; }
.admin-menu-link .ico { font-size: 1.05rem; width: 1.4rem; text-align: center; }
.admin-sidebar-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: .6rem; display: flex; flex-direction: column; gap: .2rem; }
.admin-user-chip { color: #9a9cc0; font-size: .82rem; font-weight: 700; padding: .6rem .8rem 0; }

.admin-main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 1rem; background: #fff; padding: .9rem 1.4rem;
  box-shadow: 0 2px 14px rgba(43,43,58,.06); position: sticky; top: 0; z-index: 1040; }
.admin-topbar-title { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin: 0; flex: 1; }
.admin-topbar-view { font-weight: 700; font-size: .9rem; }
.admin-burger { display: none; background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.admin-main { padding: 1.6rem 1.4rem; flex: 1; }
.admin-overlay { display: none; }

@media (max-width: 991.98px) {
  .admin-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.25); }
  .admin-shell.sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-shell.sidebar-open .admin-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1044; }
  .admin-burger { display: block; }
}

.admin-h1 { font-weight: 800; font-size: 1.8rem; margin: 0; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.admin-thumb { width: 52px; height: 65px; object-fit: cover; border-radius: 8px; background: var(--cream); }
.admin-cover-preview { max-height: 220px; object-fit: cover; width: 100%; }
.admin-footer { color: var(--muted); }
.empty-state { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 700; font-size: .85rem; }
.integration-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 0; border-bottom: 1px solid #eef0f4; }
.integration-row:last-of-type { border-bottom: none; }
.you-badge { font-size: .68rem; font-weight: 800; background: var(--mint); color: #fff; padding: .1rem .5rem; border-radius: 999px; }

/* toggles */
.toggle { width: 48px; height: 27px; border-radius: 999px; border: none; position: relative;
  cursor: pointer; transition: background .15s ease; padding: 0; }
.toggle.on { background: var(--mint); }
.toggle.off { background: #d4d7e0; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; background: #fff;
  border-radius: 50%; transition: left .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on .knob { left: 24px; }
.toggle.star { width: auto; height: auto; background: none; font-size: 1.4rem; line-height: 1; }
.toggle.star.off { filter: grayscale(1); opacity: .55; }

.sticky-actions { position: sticky; bottom: 1rem; background: #ffffffcc; backdrop-filter: blur(6px);
  padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.gallery-admin-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-admin-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(220,53,69,.92); color: #fff; display: grid; place-items: center; font-size: 1.1rem;
  line-height: 1; text-decoration: none; }
.gallery-del:hover { background: #dc3545; color: #fff; }

/* admin login */
.admin-login-body { background: linear-gradient(135deg, #fff0e6, #eaf1ff); min-height: 100vh;
  display: grid; place-items: center; font-family: var(--font-body); }
.login-wrap { width: 100%; max-width: 400px; padding: 1.5rem; text-align: center; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); }
.login-logo { font-size: 2.6rem; }
.login-title { font-family: var(--font-head); font-weight: 800; margin-bottom: 0; }
.login-sub { color: var(--muted); margin-bottom: 1.4rem; }
.login-back { margin-top: 1rem; }

/* =============================================================================
   Responsive checks (360 / 768 / 1280)
   ========================================================================== */
@media (max-width: 575.98px) {
  .hero { text-align: center; }
  .hero-cta, .hero-trust { justify-content: center; }
  .trust-badges .tb { flex: 1 1 45%; }
  .success-product { flex-direction: column; text-align: center; }
  .success-product-name { text-align: center; }
}
@media (min-width: 992px) {
  .hero-copy { padding-right: 2rem; }
}
