/* =====================================================================
   DROPSHOP - Design System
   Palette: krem e ngrohtë + korale energjike + gjelbër blerje + thellësi grafiti
   Type: Sora (display) + Plus Jakarta Sans (body/UI)
   ===================================================================== */

:root {
  --cream:        #FBF6EF;
  --cream-dim:    #F3EBDE;
  --ink:          #221C1A;
  --ink-soft:     #5C5450;
  --coral:        #FF5A3C;
  --coral-dark:   #E0431F;
  --coral-light:  #FFE4DA;
  --green:        #1F8A57;
  --green-light:  #E3F5EA;
  --gold:         #E8A23D;
  --line:         #E7DDCD;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(34,28,26,0.06);
  --shadow-md:    0 8px 24px rgba(34,28,26,0.10);
  --shadow-lg:    0 20px 48px rgba(34,28,26,0.16);
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #166b43; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ================= HEADER ================= */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 28px; padding: 16px 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.logo-mark { background: var(--coral); color: var(--white); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.logo strong { color: var(--coral); }

.header-search { flex: 1; max-width: 440px; display: flex; background: var(--cream-dim); border-radius: 999px; padding: 4px 4px 4px 18px; }
.header-search input { flex: 1; border: none; background: transparent; padding: 10px 0; font-size: 14px; }
.header-search input:focus { outline: none; }
.header-search button { background: var(--ink); color: var(--white); border: none; border-radius: 999px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }

.main-nav { display: flex; gap: 24px; font-weight: 600; font-size: 14.5px; }
.main-nav a:hover { color: var(--coral); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cart-link { position: relative; color: var(--ink); display: flex; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--coral); color: white; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.user-menu { position: relative; }
.user-menu-btn { background: var(--cream-dim); border: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.user-menu-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; flex-direction: column; }
.user-menu:hover .user-menu-dropdown, .user-menu:focus-within .user-menu-dropdown { display: flex; }
.user-menu-dropdown a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.user-menu-dropdown a:hover { background: var(--cream-dim); }

.mobile-toggle { display: none; background: none; border: none; font-size: 22px; }
.mobile-nav { display: none; flex-direction: column; background: white; border-top: 1px solid var(--line); padding: 12px 24px; }
.mobile-nav a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .main-nav, .header-search { display: none; }
  .mobile-toggle { display: block; }
}

/* ================= HERO ================= */
.hero { position: relative; padding: 64px 0 80px; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dim) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--coral-light); color: var(--coral-dark); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(0.8);} }
.hero h1 { font-size: 52px; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--coral); position: relative; }
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 480px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stat strong { font-family: 'Sora', sans-serif; font-size: 26px; display: block; }
.hero-stat span { font-size: 13px; color: var(--ink-soft); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- HERO V2 (modern, imazh i plotë, gradient mesh) ---------- */
.hero-v2 { padding: 56px 0 100px; background: linear-gradient(165deg, #FFF8EE 0%, var(--cream) 45%, var(--cream-dim) 100%); }
.hero-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob.b1 { width: 420px; height: 420px; background: radial-gradient(circle, #FFD7C2, transparent 70%); top: -120px; right: -80px; animation: blobMove1 14s ease-in-out infinite; }
.blob.b2 { width: 360px; height: 360px; background: radial-gradient(circle, #C9F0D8, transparent 70%); bottom: -100px; left: -60px; animation: blobMove2 16s ease-in-out infinite; }
.blob.b3 { width: 260px; height: 260px; background: radial-gradient(circle, #FFE9A8, transparent 70%); top: 40%; left: 38%; animation: blobMove3 18s ease-in-out infinite; }
@keyframes blobMove1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 50px) scale(1.15); } }
@keyframes blobMove2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px, -30px) scale(1.1); } }
@keyframes blobMove3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, 30px) scale(0.9); } }

.hero-grid-v2 { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: 54px; }

.hero-visual-v2 { position: relative; display: flex; justify-content: center; }
.hero-img-frame {
position: relative;
    width: 57vw;
    /* max-width: 444px; */
    height: 79vh;
    aspect-ratio: 4 / 4;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(150deg, #FFFFFF, var(--cream-dim));
    box-shadow: var(--shadow-lg);
}
.hero-img-main {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-img-second {
  position: absolute; width: 38%; aspect-ratio: 1/1; object-fit: cover;
  bottom: -26px; left: -30px; border-radius: 20px; border: 5px solid var(--cream);
  box-shadow: var(--shadow-md); animation: heroFloat 6s ease-in-out infinite 0.5s;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-glow { position: absolute; inset: -40px; z-index: -1; background: radial-gradient(circle at 50% 50%, rgba(255,90,60,0.18), transparent 65%); border-radius: 50%; }

.hero-tag {
  position: absolute; background: rgba(255,255,255,0.88); backdrop-filter: blur(8px);
  border-radius: var(--radius-sm); padding: 10px 16px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px;
  animation: tagFloat 5s ease-in-out infinite;
}
.tag-price { top: 22px; right: -18px; flex-direction: column; align-items: flex-start; gap: 2px; animation-delay: 0s; }
.tag-price .tag-label { font-size: 10.5px; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; letter-spacing: .04em; }
.tag-price strong { font-family: 'Sora', sans-serif; font-size: 19px; color: var(--coral-dark); }
.tag-rating { top: 50%; right: -34px; transform: translateY(-50%); animation-delay: 1.2s; }
.tag-rating span { color: var(--ink-soft); font-weight: 600; }
.tag-shipping { bottom: 24px; right: 14px; color: var(--green); animation-delay: 2s; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.3s infinite; }
@keyframes tagFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tag-rating { animation-name: tagFloatY; }
@keyframes tagFloatY { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 8px)); } }

@media (max-width: 1100px) {
  .hero-tag { font-size: 11.5px; padding: 8px 12px; }
  .tag-price { right: -8px; }
  .tag-rating { right: -10px; }
}
@media (max-width: 900px) {
  .hero-grid-v2 { grid-template-columns: 1fr; }
  .hero-copy h1, .hero h1 { font-size: 1.5rem; }
  .hero-visual-v2 { margin-top: 12px; }
  .hero-img-frame { max-width: 360px; }
  .blob { filter: blur(40px); }
}

/* ================= SECTION ================= */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin-bottom: 4px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-tag { color: var(--coral); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 8px; }

/* ================= CATEGORY PILLS ================= */
.cat-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.cat-pill { flex-shrink: 0; background: white; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px 22px; font-weight: 700; font-size: 14px; transition: .15s; display: flex; align-items: center; gap: 10px; }
.cat-pill:hover, .cat-pill.active { border-color: var(--coral); color: var(--coral-dark); background: var(--coral-light); }

/* ================= PRODUCT GRID ================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pc-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--cream-dim); }
.product-card .pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .pc-img-wrap img { transform: scale(1.07); }
.pc-badge { position: absolute; top: 12px; left: 12px; background: var(--coral); color: white; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.pc-badge.out { background: var(--ink-soft); }
.pc-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-cat { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.pc-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pc-title a:hover { color: var(--coral); }
.pc-price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.pc-price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.pc-price.has-sale { color: var(--coral-dark); }
.pc-price-old { text-decoration: line-through; color: var(--ink-soft); font-size: 13px; }
.pc-add { margin-top: 10px; width: 100%; background: var(--ink); color: white; border: none; padding: 11px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13.5px; transition: .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pc-add:hover { background: var(--coral); }
.pc-add:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }

/* ================= FILTER BAR ================= */
.filter-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: white; padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.filter-bar select, .filter-bar input { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-family: inherit; }
.filter-results { margin-left: auto; color: var(--ink-soft); font-size: 14px; }

/* ================= PRODUCT PAGE ================= */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pd-gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: white; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; }
.pd-thumbs img.active { border-color: var(--coral); }
.pd-cat { color: var(--coral-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.pd-title { font-size: 32px; margin: 8px 0 14px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-price { font-size: 30px; font-family: 'Sora', sans-serif; font-weight: 800; }
.pd-price.sale { color: var(--coral-dark); }
.pd-price-old { font-size: 18px; text-decoration: line-through; color: var(--ink-soft); }
.pd-save { background: var(--green-light); color: var(--green); font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.pd-stock { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 22px; }
.pd-stock.in { color: var(--green); } .pd-stock.low { color: var(--gold); } .pd-stock.out { color: var(--coral-dark); }
.pd-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-desc { color: var(--ink-soft); margin-bottom: 26px; }
.pd-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { width: 40px; height: 44px; background: var(--cream-dim); border: none; font-size: 18px; font-weight: 700; }
.qty-control input { width: 50px; text-align: center; border: none; font-weight: 700; font-size: 15px; }
.pd-actions { display: flex; gap: 12px; }
.pd-trust { display: flex; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; }

@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

/* ================= CART PAGE ================= */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: flex-start; }
.cart-item { display: flex; gap: 16px; background: white; border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); align-items: center; }
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; margin-bottom: 4px; }
.cart-item-price { color: var(--coral-dark); font-weight: 700; }
.cart-item-remove { color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: underline; }
.cart-item-remove:hover { color: var(--coral-dark); }
.cart-summary { background: white; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14.5px; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 10px; padding-top: 16px; font-weight: 800; font-size: 18px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 56px; margin-bottom: 16px; }

@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }

/* ================= FORMS / AUTH ================= */
.auth-wrap { max-width: 440px; margin: 60px auto; background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.auth-wrap h1 { font-size: 26px; text-align: center; }
.auth-sub { text-align: center; color: var(--ink-soft); margin-bottom: 28px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 14.5px; background: var(--cream); }
.form-control:focus { outline: none; border-color: var(--coral); background: white; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { background: #FDE8E4; color: var(--coral-dark); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.form-success { background: var(--green-light); color: var(--green); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.auth-switch a { color: var(--coral-dark); font-weight: 700; }

/* ================= CHECKOUT ================= */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.checkout-box { background: white; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.checkout-box h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.mini-cart-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-cart-item:last-child { border-bottom: none; }
.stripe-badge { display: flex; align-items: center; gap: 10px; background: var(--cream-dim); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ================= TRACKING ================= */
.tracker { display: flex; justify-content: space-between; position: relative; margin: 36px 0 24px; }
.tracker::before { content: ''; position: absolute; top: 17px; left: 0; right: 0; height: 4px; background: var(--line); z-index: 0; }
.tracker-fill { position: absolute; top: 17px; left: 0; height: 4px; background: var(--coral); z-index: 1; transition: width .6s ease; }
.tracker-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.tracker-dot { width: 36px; height: 36px; border-radius: 50%; background: white; border: 4px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .3s; }
.tracker-step.done .tracker-dot { border-color: var(--coral); background: var(--coral); color: white; }
.tracker-step.current .tracker-dot { border-color: var(--coral); background: white; color: var(--coral); animation: pulse 1.4s infinite; }
.tracker-label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); max-width: 80px; }
.tracker-step.done .tracker-label, .tracker-step.current .tracker-label { color: var(--ink); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-light); color: var(--green); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.2s infinite; }

@media (max-width: 700px) { .tracker-label { display: none; } }

/* ================= TABLES (admin/user) ================= */
.table-wrap { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th { background: var(--cream-dim); text-align: left; padding: 14px 16px; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); }
table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--cream); }

.badge { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-yellow { background: #FFF3D6; color: #92660A; }
.badge-blue { background: #DCEAFE; color: #1450A3; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: #FDE2DD; color: var(--coral-dark); }
.badge-gray { background: var(--cream-dim); color: var(--ink-soft); }

/* ================= GENERIC UTILITIES ================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--coral); }

/* ================= PAGINATION ================= */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: var(--radius-sm); background: white; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.pagination a:hover { background: var(--coral-light); color: var(--coral-dark); }
.pagination .current { background: var(--ink); color: white; }

/* ================= TOAST ================= */
.toast { position: fixed; bottom: 28px; right: 28px; background: var(--ink); color: white; padding: 16px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; z-index: 999; opacity: 0; transform: translateY(20px); transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast .icon { color: var(--green); font-weight: 800; }

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); color: #D8D2CC; padding: 56px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { color: white; margin-bottom: 14px; }
.footer-text { font-size: 13.5px; line-height: 1.7; color: #ADA69F; }
.site-footer h4 { color: white; font-size: 14px; margin-bottom: 14px; }
.site-footer a { display: block; font-size: 13.5px; padding: 6px 0; color: #C9C2B9; }
.site-footer a:hover { color: var(--coral); }
.footer-bottom { border-top: 1px solid #3A3330; padding: 20px 24px; text-align: center; font-size: 13px; color: #8A837D; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ================= DASHBOARD LAYOUT (admin/user) ================= */
.dash-wrap { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--ink); color: #D8D2CC; padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-sidebar .logo { color: white; margin-bottom: 32px; padding: 0 8px; }
.dash-sidebar .logo strong { color: var(--coral); }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; margin-bottom: 4px; color: #C9C2B9; }
.dash-nav a:hover { background: #332C29; color: white; }
.dash-nav a.active { background: var(--coral); color: white; }
.dash-nav .section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #756E68; margin: 20px 0 8px; padding: 0 14px; font-weight: 700; }

.dash-main { padding: 28px 32px; background: var(--cream); }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.dash-topbar h1 { font-size: 24px; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card .stat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.stat-card .stat-val { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; }
.stat-card .stat-label { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.stat-card .stat-change { font-size: 12px; font-weight: 700; margin-top: 6px; }
.stat-change.up { color: var(--green); } .stat-change.down { color: var(--coral-dark); }

.dash-card { background: white; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.dash-card h3 { font-size: 16px; margin-bottom: 18px; }
.dash-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }

@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2,1fr); } .dash-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-sidebar.open { display: block; position: fixed; z-index: 200; width: 250px; }
}

.upload-drop { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 28px; text-align: center; cursor: pointer; transition: .15s; background: var(--cream); }
.upload-drop:hover { border-color: var(--coral); background: var(--coral-light); }
.upload-drop input { display: none; }
.img-preview { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; margin-top: 10px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(34,28,26,.55); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: var(--radius-lg); padding: 28px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; }
.modal-box h3 { margin-bottom: 18px; }
.modal-close { float: right; background: none; border: none; font-size: 20px; color: var(--ink-soft); }

.chat-thread { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding-right: 6px; }
.chat-bubble { max-width: 75%; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.chat-bubble.customer { background: var(--cream-dim); align-self: flex-start; }
.chat-bubble.admin { background: var(--coral); color: white; align-self: flex-end; }
.chat-bubble .meta { font-size: 11px; opacity: .7; margin-top: 4px; }

.map-mock { position: relative; height: 220px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(135deg, #DCEAFE, #C5E8D5); }
.map-mock .pin { position: absolute; width: 22px; height: 22px; background: var(--coral); border-radius: 50% 50% 50% 0; transform: translate(-50%,-100%) rotate(-45deg); box-shadow: 0 0 0 6px rgba(255,90,60,.2); }
.map-mock .route-line { position: absolute; border-top: 3px dashed var(--ink-soft); opacity: .4; }
@media (max-width: 700px){
    
    .hero-img-frame {
    position: relative;
    width: 100%;
    left: 0vw;
    padding: 0px;
    height: 40vh;
    aspect-ratio: 4 / 4;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(150deg, #FFFFFF, var(--cream-dim));
    box-shadow: var(--shadow-lg);
}
.btn-lg {
    padding: 15px 15px;
    font-size: 16px;
}

.cat-row {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.pd-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0px;
    width: 100%;
    left:0vw;
    padding: 0vw;
    position: relative;
}
.cat-pill {
    flex-shrink: 0;
    background: white;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 7px;
    font-weight: 700;
    font-size: 12px;
    transition: .15s;
    display: table-column;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
    

}
