@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f0f0ed;
  --panel: #ffffff;
  --yellow: #FFCC02;
  --yellow-soft: #FFF9C4;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-body);
}

main { flex: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background-color: var(--yellow-soft); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: #FFF59D; }
* { scrollbar-width: thin; scrollbar-color: var(--yellow-soft) #f9fafb; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px clamp(16px, 4vw, 56px) 10px;
}
.header-inner {
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  color: #000;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.brand strong { display: block; font-size: 20px; font-family: var(--font-display); font-weight: 700; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
nav.header-nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
nav.header-nav form { margin: 0; }
nav.header-nav a, nav.header-nav button {
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #000;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

main { width: min(1280px, 100%); margin: 0 auto; }

/* Collections grid — mirrors CatalogGrid: py-6 sm:py-12, container px-3 sm:px-6 pt-6 sm:pt-12 pb-6 sm:pb-12 */
.collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 12px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0 56px;
}
.collection-card, .design-card, .admin-image, .admin-product, .auth-card, .admin-sidebar, .admin-main, .upload-box, .upload-panel, .empty-state {
  background: var(--panel);
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.1);
}
.collection-card { overflow: hidden; position: relative; transition: transform .5s ease, box-shadow .5s ease, border-color .2s ease; }
.collection-card:hover { transform: translateY(-8px); box-shadow: 0 8px 16px -2px rgba(0,0,0,.12); border-color: var(--yellow-soft); }
.cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #2a2a2a, #4b4b4b); display: grid; place-items: center; color: var(--yellow); font-size: 32px; font-weight: 800; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.collection-card:hover .cover img { transform: scale(1.1); }
.cover-fade { position: absolute; inset: 0; background: linear-gradient(to top, #fff, rgba(255,255,255,.5), transparent); pointer-events: none; }
.folder-badge {
  position: absolute; top: 8px; left: 8px;
  width: 32px; height: 32px; border-radius: 8px;
  background: #1a1a1a; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.folder-badge svg { width: 16px; height: 16px; }
.count-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.card-body { padding: 12px; }
.collection-card h2, .admin-image h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.collection-card p { margin: 0 0 8px; color: var(--muted); line-height: 1.4; font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.view-row { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #1a1a1a; }
.view-row .chevron { width: 12px; height: 12px; transition: transform .2s ease; }
.collection-card:hover .view-row .chevron { transform: translateX(3px); }
.view-full { display: none; }
.view-short { display: inline; }

/* Folder view — mirrors FolderView: pt-12 sm:pt-24 pb-8 sm:pb-16, container px-3 sm:px-6 */
.folder-view { padding: 48px 12px 32px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
}
.back-link:hover { color: var(--ink); }
.back-link::before { content: "\2190"; font-size: 12px; }
.back-full { display: none; }
.back-short { display: inline; }
.folder-head-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.folder-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: #1a1a1a; color: var(--yellow);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.folder-icon svg { width: 20px; height: 20px; }
.folder-head-row h1 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; }
.folder-head-row p { margin: 0; color: var(--muted); font-size: 13px; display: none; }
.search { display: block; max-width: 420px; position: relative; margin-top: 16px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9ca3af; pointer-events: none; }
.search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 14px 0 34px;
  font-size: 14px;
  outline: none;
}
.search input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,204,2,.25); }
.search-count { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Design grid — mirrors design-grid: grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 sm:gap-6 */
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 12px 56px;
}
.design-card { overflow: hidden; position: relative; cursor: pointer; transition: transform .5s ease, box-shadow .5s ease; }
.design-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px -2px rgba(0,0,0,.12); }
.design-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.image-button { width: 100%; height: 100%; padding: 0; border: 0; background: #eef1f4; cursor: zoom-in; }
.image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.design-card:hover .image-button img { transform: scale(1.05); }
.design-hover-actions {
  display: none;
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  align-items: center; justify-content: center; gap: 10px;
  opacity: 0;
  transition: opacity .25s ease;
}
.design-card:hover .design-hover-actions { opacity: 1; }
.design-mobile-actions {
  position: absolute; bottom: 6px; right: 6px;
  display: flex; gap: 5px;
}
.serial-badge {
  position: absolute;
  right: 8px;
  bottom: 42px;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  opacity: .92;
  transform: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.24);
}
.icon-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 0;
  background: var(--yellow);
  color: #000;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.icon-btn svg { width: 13px; height: 13px; }
.design-hover-actions .icon-btn { width: 36px; height: 36px; }
.design-hover-actions .icon-btn svg { width: 18px; height: 18px; }
.design-meta { padding: 8px; }
.design-meta h4 { margin: 0 0 2px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.design-meta p { margin: 0 0 8px; font-size: 11px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.enquire-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  border-radius: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}
.enquire-btn svg { width: 14px; height: 14px; }
.enquire-btn:hover { background: #1ebc59; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.modal-body {
  position: relative;
  width: min(920px, 100%);
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.modal-header p { margin: 0; font-size: 13px; color: var(--muted); }
.modal-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: #f3f4f6; color: #374151;
  display: grid; place-items: center;
  cursor: pointer;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: #e5e7eb; }
.modal-image-wrap {
  position: relative;
  background: #20262b;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  flex: 1;
  min-height: 260px;
  max-height: 60vh;
}
.modal-image-wrap img { max-width: 100%; max-height: 56vh; object-fit: contain; transition: transform .2s ease; }
.modal-image-wrap img[hidden] { display: none; }
.modal-video-wrap[hidden] { display: none; }
.modal-video-wrap {
  width: 100%;
  background: #111;
  padding: 0;
  display: grid;
  place-items: center;
}
.modal-video-wrap iframe {
  width: 100%;
  max-width: 100%;
  max-height: 56vh;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}
.modal-video-wrap iframe[hidden] { display: none; }
.modal-video-wrap video {
  width: 100%;
  max-width: 100%;
  max-height: 56vh;
  height: auto;
  display: block;
  background: #111;
}
.modal-thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.modal-thumb {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.modal-thumb.active { border-color: var(--yellow); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}
.modal-thumb-play svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.modal-zoom { display: flex; align-items: center; gap: 10px; color: #374151; font-size: 13px; font-weight: 600; }
.modal-zoom button {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.modal-zoom button svg { width: 15px; height: 15px; }
.modal-zoom button:hover { background: #f9fafb; }
.modal-actions { display: flex; gap: 10px; }
.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}
.modal-btn svg { width: 15px; height: 15px; }
.modal-btn-primary { background: var(--yellow); color: #000; }
.modal-btn-primary:hover { background: #f0c200; }
.modal-btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.modal-btn-outline:hover { background: #f9fafb; }

@media (max-width: 639px) {
  .modal-footer { flex-direction: column; align-items: stretch; }
  .modal-actions { justify-content: stretch; }
  .modal-btn { flex: 1; justify-content: center; }
}

/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.auth-card { width: min(420px, calc(100% - 32px)); padding: 32px; }
.auth-card h1 { margin-bottom: 18px; font-size: 26px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 7px; color: #374151; font-size: 13px; font-weight: 600; }
.stack-form button, .upload-box button, .upload-panel button {
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: #000;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,204,2,.25); }
.flash { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.flash.error { border-color: #f2b8b0; background: #fdecec; color: #9b2d22; }
.flash.success { border-color: #b7e0c4; background: #edf9f1; color: #176337; }

/* Admin */
.admin-layout {
  width: min(1320px, calc(100% - 32px));
  display: grid;
  gap: 18px;
  padding: 24px 0 56px;
  margin: 0 auto;
}
.admin-layout > .flash { margin: 0; }
.admin-hero, .admin-collections-panel, .admin-tool-card, .admin-main, .empty-state {
  background: var(--panel);
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.1);
}
.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}
.admin-hero h1 { font-size: 28px; }
.admin-hero a, .admin-head a {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-collections-panel { padding: 18px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-section-head h2, .admin-tool-card h2 { font-size: 18px; }
.collection-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.collection-tabs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}
.collection-tabs a.active { border-color: var(--yellow); background: var(--yellow-soft); }
.collection-tabs small {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #374151;
}
.admin-utility-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 18px;
}
.admin-tool-card { padding: 18px; }
.admin-main, .empty-state { padding: 20px; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { margin: 4px 0 6px; font-size: 24px; }
.upload-box { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 18px; }
.upload-panel { padding: 20px; margin-bottom: 20px; }
.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.upload-panel-head h2 { font-size: 20px; }
.upload-fields {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 14px;
}
.upload-fields label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}
.upload-fields .wide { grid-column: 1 / -1; }
.admin-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
.admin-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.admin-image { padding-bottom: 12px; }
.admin-image h2 { padding: 0 12px; }
.admin-image form { margin-top: 8px; padding: 0 12px; }
.admin-image button { width: 100%; border: 1px solid #f2b8b0; background: #fdecec; color: #9b2d22; border-radius: 8px; padding: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.admin-product {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(126px, 126px) auto auto;
  height: 100%;
}
.admin-product-cover { position: relative; aspect-ratio: 4 / 3; background: #eef1f4; }
.admin-product-cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-empty-cover {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-product-cover span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 8px;
  background: #1a1a1a;
  color: var(--yellow);
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
}
.admin-product-body {
  padding: 14px;
  display: grid;
  grid-template-rows: 44px 18px 46px;
  align-content: start;
}
.admin-product-body h2 {
  font-size: 17px;
  margin-bottom: 4px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.admin-product-body p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
  overflow: hidden;
}
.admin-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.admin-thumbs span {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.admin-product form { padding: 0 14px 14px; align-self: end; }
.admin-product button {
  width: 100%;
  border: 1px solid #f2b8b0;
  background: #fdecec;
  color: #9b2d22;
  border-radius: 8px;
  padding: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.admin-product .admin-product-edit {
  width: calc(100% - 28px);
  margin: 0 14px 8px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.admin-page { background: #f4f4f1; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(244,244,241,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-top-actions form { margin: 0; }
.admin-top-actions a, .admin-top-actions button, .workspace-section-title button, .admin-icon-action {
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 13px;
}
.admin-shell {
  width: min(1440px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  margin: 0 auto;
  padding: 22px 0 56px;
}
.admin-shell > .flash { grid-column: 1 / -1; margin: 0; }
.admin-rail { display: grid; align-content: start; gap: 16px; }
.admin-panel, .admin-workspace {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.1);
}
.admin-panel { padding: 16px; }
.admin-workspace { padding: 20px; min-height: 680px; }
.admin-section-head, .admin-setting-row, .workspace-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-setting-row h2, .admin-section-head h2 { font-size: 18px; }
.admin-setting-row p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.collection-list { display: grid; gap: 8px; margin-top: 12px; }
.collection-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}
.collection-list a.active { border-color: var(--yellow); background: var(--yellow-soft); }
.collection-list small {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #374151;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.workspace-head h1 { font-size: 30px; }
.workspace-head p:last-child { margin: 8px 0 0; color: var(--muted); max-width: 680px; }
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.workspace-actions button,
.workspace-head a {
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.workspace-section-title { margin-bottom: 16px; }
.workspace-section-title h2 { font-size: 22px; }
.workspace-section-title span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-modal[hidden] { display: none; }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.admin-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.admin-modal-card-wide { width: min(820px, 100%); }
.admin-edit-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.admin-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 800;
}
.composer-grid {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 14px;
}
.composer-grid label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}
.composer-grid .wide { grid-column: 1 / -1; }
.composer-label {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}
.edit-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.admin-video-preview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.admin-video-preview-item { display: grid; gap: 8px; }
.admin-video-preview iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #111;
}
.admin-video-preview video {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  background: #111;
}
.youtube-fields { display: grid; gap: 8px; }
.youtube-field-row { display: flex; gap: 8px; align-items: center; }
.youtube-field-row input { flex: 1; }
.youtube-remove,
.youtube-add {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.youtube-remove { color: var(--muted); }
.youtube-remove:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.youtube-add { color: #111827; }
.youtube-add:hover { background: var(--yellow); border-color: var(--yellow); }
.form-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.edit-image-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.edit-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.edit-image-grid form { padding: 8px; }
.edit-image-grid button {
  width: 100%;
  border: 1px solid #f2b8b0;
  background: #fdecec;
  color: #9b2d22;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.edit-image-grid p {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0;
}
.danger-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.danger-form button {
  width: 100%;
  border: 1px solid #f2b8b0;
  background: #fdecec;
  color: #9b2d22;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 24px;
}
.footer-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 16px; border-radius: 8px; }
.footer-brand span { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.site-footer p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.site-footer h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a, .footer-contact li { color: var(--muted); font-size: 13px; }
.site-footer ul a:hover { color: var(--ink); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { width: min(1200px, calc(100% - 32px)); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 13px; }

/* sm (>=640px) — matches Tailwind's sm: utilities used throughout Rajdhani */
@media (min-width: 640px) {
  .collections { gap: 24px; padding: 48px 24px; }
  .design-grid { gap: 24px; padding: 24px 24px 56px; }
  .card-body { padding: 24px; }
  .collection-card h2 { font-size: 20px; margin-bottom: 8px; }
  .collection-card p { font-size: 14px; margin-bottom: 16px; -webkit-line-clamp: unset; }
  .view-row { font-size: 14px; gap: 8px; }
  .view-row .chevron { width: 16px; height: 16px; }
  .view-full { display: inline; }
  .view-short { display: none; }
  .folder-badge { top: 16px; left: 16px; width: 48px; height: 48px; border-radius: 10px; }
  .folder-badge svg { width: 24px; height: 24px; }
  .count-badge { top: 16px; right: 16px; padding: 4px 12px; font-size: 12px; }

  .folder-view { padding: 96px 24px 64px; }
  .back-link { margin-bottom: 24px; font-size: 16px; }
  .back-full { display: inline; }
  .back-short { display: none; }
  .folder-head-row { gap: 16px; margin-bottom: 0; }
  .folder-icon { width: 64px; height: 64px; border-radius: 12px; }
  .folder-icon svg { width: 32px; height: 32px; }
  .folder-head-row h1 { font-size: 30px; }
  .folder-head-row p { display: block; font-size: 16px; }
  .search { margin-top: 24px; }
  .search input { height: 44px; padding-left: 40px; font-size: 15px; }
  .search-icon { left: 14px; width: 18px; height: 18px; }

  .design-meta { padding: 16px; }
  .design-meta h4 { font-size: 18px; margin-bottom: 4px; }
  .design-meta p { font-size: 13px; margin-bottom: 12px; }
  .enquire-btn { height: 38px; font-size: 14px; }
  .enquire-btn svg { width: 16px; height: 16px; }
  .design-mobile-actions { display: none; }
  .design-hover-actions { display: flex; }
  .serial-badge {
    right: 12px;
    bottom: 12px;
    opacity: 0;
    transform: translateY(4px);
    z-index: 1;
  }
  .design-card:hover .serial-badge {
    opacity: .92;
    transform: translateY(0);
  }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }

  .upload-box { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 639px) {
  .upload-box, .upload-fields, .admin-product-grid, .admin-utility-grid, .collection-tabs, .admin-shell, .composer-grid { grid-template-columns: 1fr; }
  .upload-panel-head { align-items: stretch; flex-direction: column; }
  .admin-hero { align-items: stretch; flex-direction: column; }
  .admin-topbar, .workspace-head, .workspace-section-title, .workspace-actions { align-items: stretch; flex-direction: column; }
  .admin-top-actions { flex-wrap: wrap; }
  .workspace-section-title span { margin-left: 0; }
  .edit-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* lg (>=1024px) */
@media (min-width: 1024px) {
  .collections, .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* xl (>=1280px) */
@media (min-width: 1280px) {
  .design-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .footer-inner { grid-template-columns: 1fr; }
  nav.header-nav { position: static; transform: none; justify-content: center; margin-top: 12px; }
  .header-inner { flex-direction: column; }
  .admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-utility-grid { grid-template-columns: 1fr; }
  .upload-fields, .composer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  .footer-inner { grid-template-columns: 1fr; }
  nav.header-nav { position: static; transform: none; justify-content: center; margin-top: 12px; }
  .header-inner { flex-direction: column; }
}

.setting-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; flex: none; }
.logo-preview { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; justify-self: center; }
.form-actions { display: flex; gap: 10px; }
.form-actions button { flex: 1; }
.stack-form .secondary-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* Footer redesign */
.site-footer { position: relative; background: #141414; color: #d1d5db; border-top: 0; padding: 48px 0 24px; margin-top: 48px; }
.footer-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--yellow), #d97706, var(--yellow)); }
.site-footer .footer-inner { grid-template-columns: 1.6fr 1fr; gap: 56px; }
.site-footer .footer-brand span { color: #fff; }
.site-footer h4 { color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 14px; }
.site-footer p { color: #9ca3af; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-tags span { padding: 5px 12px; border: 1px solid rgba(255,204,2,.4); border-radius: 999px; color: var(--yellow); font-size: 12px; font-weight: 600; }
.site-footer .footer-contact { gap: 14px; }
.site-footer .footer-contact li { display: flex; align-items: center; gap: 12px; color: #d1d5db; font-size: 14px; }
.site-footer .footer-contact a { color: #fff; }
.site-footer .footer-contact a:hover { color: var(--yellow); }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 8px; background: rgba(255,204,2,.12); color: var(--yellow); }
.fc-icon svg { width: 17px; height: 17px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .footer-bottom p { color: #6b7280; }
@media (max-width: 899px) { .site-footer .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* Keep footer pinned to the bottom on short pages */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; margin-top: auto; }

/* Footer always sits below the fold: page content is at least one full screen tall */
main { min-height: 100vh; min-height: 100dvh; }

.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.footer-about-text { white-space: pre-line; }
.stack-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--yellow-soft); border: 1px solid var(--yellow); color: #4b3b00; font-size: 12px; font-weight: 600; }
.tag-chips-edit { min-height: 40px; padding: 8px; margin: 0; border: 1px dashed var(--line); border-radius: 10px; background: #fafafa; }
.tag-chips-edit span { padding: 5px 6px 5px 12px; font-size: 13px; }
.tag-chips-edit button { all: unset; cursor: pointer; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.1); font-size: 14px; line-height: 1; }
.tag-chips-edit button:hover { background: #dc2626; color: #fff; }
.tag-editor { display: grid; gap: 8px; }
.tag-editor-label { color: #374151; font-size: 13px; font-weight: 600; }
.tag-editor small { color: var(--muted); font-size: 12px; }
.tag-add { display: flex; gap: 8px; }
.tag-add input { flex: 1; }
.tag-add button { padding: 0 16px; }

/* Login card: the full-screen main rule above must not stretch it */
main.auth-card { min-height: 0; flex: 0 0 auto; margin: 0; }
